:root {
  color-scheme: dark;
  --bg: #070b0d;
  --panel: #0d1317;
  --line: #263037;
  --text: #f2f5f3;
  --muted: #95a1a7;
  --green: #68d735;
  --green-bright: #83e84d;
  --weekend: #f6a94a;
}
.weekly-cohorts { grid-column: 1 / -1; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.weekly-cohorts summary { cursor: pointer; font-size: 14px; font-weight: 800; padding: 6px 0; }
.weekly-cohorts p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.weekly-legend { display: flex; flex-wrap: wrap; gap: 20px; margin: 14px 0; font-size: 13px; }
.weekly-scroll { overflow-x: auto; max-width: 100%; }
.weekly-scroll svg { display: block; min-width: 960px; height: 260px; }
.weekly-scroll table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 13px; }
.weekly-scroll th, .weekly-scroll td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.login-view { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 24px; background: #080d10; opacity:1; transition:opacity 400ms ease; }
.auth-loading.is-leaving { opacity:0; pointer-events:none; }

.login-content { width: min(100%, 360px); }
.login-logo { display: block; width: 100%; height: auto; margin: 0 auto 54px; }
.login-form { display: grid; gap: 10px; }
.login-form label { font-size: 14px; font-weight: 600; color: #c5cfce; }
.login-form input { width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid #2b373d; border-radius: 10px; background: #10181d; color: #fff; font: inherit; font-size: 16px; }
.login-form input::placeholder { color: #6f828b; }
.login-form input:focus { border-color: #aebbbb; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.login-form label[for="loginPassword"] { margin-top: 12px; }
.login-form button { min-height: 50px; margin-top: 18px; border-radius: 10px; background: #fff; color: #080d10; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.login-form button:hover { background: #dde5e4; }
.login-form button:disabled { cursor: wait; opacity: .6; }
.login-message { min-height: 20px; margin: 6px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: #ff9696; }
@media (max-width: 480px) { .login-logo { margin-bottom: 40px; } }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(900px 520px at 18% -10%, #172329 0%, transparent 64%), linear-gradient(135deg, #090e11 0%, var(--bg) 58%, #090d0f 100%); font-family: "Manrope", Arial, sans-serif; }
.dashboard { width: min(100% - 48px, 1800px); margin: 0 auto; padding: 20px 0 24px; }
.topbar { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 86px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 16, 19, .8); }
.brand, .top-title p, .top-title span, .controls label, .metric p, .eyebrow, .legend, .weekend-legend { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.brand-mark { color: var(--green); font-size: 24px; line-height: 0; text-shadow: 0 0 18px rgba(104, 215, 53, .8); }
.top-title { border-left: 1px solid var(--line); padding-left: 24px; }
.top-title p { margin: 0 0 7px; font-size: 18px; color: #fff; }
.top-title span { color: var(--muted); }
.controls { display: flex; align-items: end; gap: 10px; }
.controls label { display: grid; gap: 6px; color: var(--muted); }
input, button { font: inherit; }
input { width: 154px; padding: 10px 11px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; outline: none; background: #11191e; }
input:focus { border-color: var(--green); }
button { cursor: pointer; padding: 12px 15px; color: #081005; border: 0; border-radius: 6px; background: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
button:hover { background: var(--green-bright); }
button:disabled { opacity: .65; cursor: wait; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 8px 0 14px; }
.account-view-switch { flex-shrink: 0; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; letter-spacing: 0; }
.account-view-switch:hover { background: #202c34; }
.profile-actions { display: flex; flex-direction: column; align-items: stretch; align-self: flex-start; flex-shrink: 0; gap: 8px; }
.profile-actions #logoutButton { order: -1; }
.profile-actions .account-view-switch { border-radius: 18px; }
.pf-overview { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, #131c21, #0b1115); }
#semifinishedView .pf-overview .semifinished-toolbar { border: 0; border-radius: 0; background: transparent; padding: 14px 18px; }
#semifinishedView .pf-overview .semifinished-summary { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
.pf-method summary { display: list-item; width: fit-content; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 18px; list-style-position: inside; }
.pf-method summary:hover { background: #ffffff08; }
.pf-method .semifinished-help { margin-top: 12px; max-width: 1000px; }
.pf-hidden-section { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pf-hidden-section > summary { padding: 14px 18px; color: var(--muted); font-size: 14px; cursor: pointer; }
.pf-sort { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pf-sort:hover { color: #fff; background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.pf-sort::after { content: ''; display: block; height: 15px; margin-top: 3px; font-size: 13px; line-height: 15px; }
.pf-sort[data-direction="asc"]::after { content: '↑'; }
.pf-sort[data-direction="desc"]::after { content: '↓'; }
.pf-hidden-section .semifinished-table-wrap { border: 0; border-radius: 0; }
.is-hidden .semifinished-priority-dot { background: #87969f; }
#semifinishedView .semifinished-table th:nth-child(2) { width: 30%; }
#semifinishedView .semifinished-table th:nth-child(n+3):nth-child(-n+7) { width: 10%; }
#semifinishedView .semifinished-table th:nth-child(8) { width: 16%; }
#semifinishedView .pf-overview { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
#semifinishedView .pf-overview .semifinished-summary { order: 0; flex: 1; min-width: 0; padding: 0; border: 0; }
#semifinishedView .pf-overview .semifinished-toolbar { order: 1; flex: 0 0 270px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; }
#semifinishedView .pf-overview .semifinished-toolbar > div:first-child { order: 2; }
#semifinishedView .pf-overview .semifinished-actions { order: 1; }
#semifinishedView .pf-overview .pf-method summary { margin: 0 auto; border: 0; padding: 2px 0; font-size: 12px; color: var(--muted); }
#semifinishedView .pf-overview #semifinishedSavedAt { max-width: none; font-size: 12px; }
@media (max-width: 880px) {
  #semifinishedView .pf-overview { flex-direction: column; align-items: stretch; }
  #semifinishedView .pf-overview .semifinished-toolbar { flex: 0 0 auto; }
}
@media (max-width: 600px) { .hero { flex-wrap: wrap; gap: 10px; } }
.point-switcher { display: flex; align-items: center; gap: 0; margin: 0 0 5px; }
.point-switcher { flex-wrap: wrap; row-gap: 10px; }
.dessert-controls { display: grid; gap: 10px; min-width: 180px; }
.dessert-controls label { font-size: 13px; color: var(--muted); }
.dessert-controls select { padding: 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.dessert-method { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.dessert-method summary { cursor: pointer; color: var(--text); font-weight: 700; }
.semifinished-table.dessert-table { min-width: 1100px; table-layout: fixed; }
.semifinished-table.dessert-table th { width: 7%; padding: 10px 8px; color: #fff; text-align: center; white-space: normal; letter-spacing: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.semifinished-table.dessert-table th:nth-child(n+5):nth-child(-n+11) { width: 7%; }
.semifinished-table.dessert-table td { padding: 6px 8px; height: 34px; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.35; font-variant-numeric: tabular-nums; }
.semifinished-table.dessert-table th:first-child,
.semifinished-table.dessert-table td:first-child { width: 25%; min-width: 240px; padding-left: 16px; text-align: left; font-size: 14px; font-weight: 600; overflow-wrap: break-word; }
.semifinished-table.dessert-table th:nth-child(2) { width: 10%; }
.semifinished-table.dessert-table th:nth-child(3) { width: 6%; }
.semifinished-table.dessert-table th:nth-child(4) { width: 10%; }
.dessert-includes { display: block; color: #aebbc2; font-size: 12px; font-weight: 400; line-height: 1.4; margin-top: 3px; }
.dessert-points { display:flex; gap:8px; margin-bottom:14px; }
.dessert-points button { padding:8px 15px; border:1px solid var(--line); background:#172128; color:#bac6cc; }
.dessert-points button.is-active { background:#26392b; border-color:var(--green); color:#fff; }
.dessert-cash-stock { font-variant-numeric: tabular-nums; }
.dessert-cash-stock.negative { color: #ff7979; }
.semifinished-table.dessert-table td.dessert-order { font-size: 20px; font-weight: 700; line-height: 1.2; }
.semifinished-table.dessert-table td.is-zero { color: #ff7979; }
.semifinished-table.dessert-table td.dessert-cash-stock strong { font-size: 20px; font-weight: 700; line-height: 1.2; }
.semifinished-table.dessert-table td.dessert-warning { font-size: 14px; font-weight: 400; }
.dessert-day-week { display: block; color: #aebbc2; font-size: 12px; font-weight: 400; margin-top: 3px; }
.auth-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #080d10; }
.auth-loading[hidden] { display: none; }
.auth-loading-logo { position:relative; width:min(360px,70vw); animation:gardenReveal 700ms ease-out both; }
.auth-loading-content { display: flex; flex-direction: column; align-items: center; padding: 24px; text-align: center; }
.auth-loading-caption { margin-top: 28px; }
.auth-loading-motto { margin: 0; color: #aebbc2; font-size: 14px; font-weight: 400; line-height: 1.5; animation: gardenCaption 1700ms ease-in-out 1000ms both; }
.auth-loading-location { margin: 8px 0 0; color: #f3f6f7; font-size: clamp(18px, 4vw, 22px); font-weight: 500; line-height: 1.4; animation: gardenCaption 1700ms ease-in-out 1600ms both; }
@keyframes gardenCaption { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .auth-loading-motto, .auth-loading-location { animation: none; } }
.auth-loading img { display:block; width:100%; height:auto; opacity:.75; }
.auth-loading-logo::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 35%,rgba(104,215,53,.35) 43%,#68d735 50%,rgba(104,215,53,.35) 57%,transparent 65%); background-size:300% 100%; mask:url('/garden-logo.svg') center / contain no-repeat; -webkit-mask:url('/garden-logo.svg') center / contain no-repeat; animation:gardenShine 3400ms ease-in-out 300ms both; }
@keyframes gardenReveal { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gardenShine { from { background-position:100% 0; } to { background-position:0% 0; } }
@media (prefers-reduced-motion: reduce) { .auth-loading-logo, .auth-loading-logo::after { animation:none; } .auth-loading-logo::after { display:none; } .auth-loading { transition:none; } }
#dessertsView { font-size: 14px; line-height: 1.45; }
.dessert-name-row { display: flex; align-items: center; gap: 8px; }
.dessert-position { flex: 0 0 22px; color: #aebbc2; font-size: 13px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.dessert-drag-handle { flex: 0 0 28px; padding: 5px 0; border: 0; background: transparent; color: #8fa2ac; font-size: 23px; cursor: grab; touch-action: none; user-select: none; }
.dessert-drag-handle:hover, .dessert-drag-handle:active { background: transparent; color: #fff; }
#semifinishedRows .dessert-drag-handle { display: flex; align-items: center; gap: 4px; padding: 2px 0; font-size: 20px; }
#semifinishedRows .dessert-drag-handle .semifinished-index { font-size: 13px; }
.dessert-dragging { background: #20313a !important; outline: 1px dashed #607d8b; }
.dessert-dragging > td { opacity: .2; }
.dessert-drag-ghost { position: fixed; z-index: 300; pointer-events: none; overflow: hidden; border: 1px solid #607d8b; border-radius: 8px; background: #1b2b33; box-shadow: 0 14px 35px #0009; will-change: transform; }
.dessert-drag-ghost table { margin: 0; }
.dessert-drag-ghost .dessert-drag-handle { color: #fff; }
.dessert-dragging .dessert-drag-handle { cursor: grabbing; color: #fff; }
#dessertsView > .semifinished-table-wrap { margin-top: 12px; }
#dessertsView .semifinished-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 20px; padding: 14px 18px; align-items: center; }
#dessertsView .semifinished-toolbar > div:first-child { display: contents; }
#dessertsView .dessert-points { grid-column: 1; grid-row: 1; margin: 0; }
#dessertsView #dessertEyebrow,
#dessertsView .semifinished-toolbar h2 { display: none; }
#dessertsView .semifinished-help { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 13px; line-height: 1.5; }
#dessertsView .dessert-method { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 13px; }
#dessertsView #dessertStatus { grid-column: 1 / -1; grid-row: 4; margin: 0; }
#dessertsView .dessert-controls { grid-column: 2; grid-row: 1; width: auto; margin: 0; }
#dessertsView .semifinished-toolbar .dessert-controls { grid-row: 1 / 5; align-self: center; }
#dessertsView .dessert-points button { border-radius: 18px; }
@media (max-width: 600px) {
  #dessertsView .semifinished-toolbar .dessert-controls { grid-row: 1; }
}
#dessertsView #refreshDesserts { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 36px; padding: 8px 12px; border: 1px solid #3b4a53; border-radius: 8px; color: #e6edf0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 500; }
#dessertsView #refreshDesserts:hover { background: #ffffff08; border-color: #748993; }
#dessertsView #refreshDesserts:disabled { opacity: .5; cursor: wait; }
#dessertsView .dessert-controls { display: flex; align-items: center; gap: 8px; }
#dessertsView .dessert-update-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#dessertsView #refreshDesserts { width: 36px; height: 36px; padding: 8px; border: 0; background: transparent; }
#dessertsView #refreshDesserts:disabled svg { animation: dessert-refresh-spin 1s linear infinite; }
#dessertsView .dessert-controls #refreshDesserts { width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #52656f; border-radius: 50%; background: #1b2931; color: #f3f6f7; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
#dessertsView .dessert-controls #refreshDesserts svg { width: 24px; height: 24px; flex-shrink: 0; }
#dessertsView .dessert-controls #refreshDesserts:hover { background: #2a3c46; border-color: #9aafb9; }
#dessertsView .dessert-controls #refreshDesserts:active { transform: scale(.94); }
#dessertsView .dessert-controls #refreshDesserts:focus-visible { outline: 2px solid #aebfc8; outline-offset: 3px; }
#dessertsView .dessert-controls #refreshDesserts:disabled { cursor: wait; }
#dessertsView #dessertStatus:empty { display: none; }
@keyframes dessert-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #dessertsView #refreshDesserts:disabled svg { animation: none; } }
@media (max-width: 480px) { #dessertsView .dessert-update-time { max-width: 80px; text-align: right; line-height: 1.4; } }
@media (max-width: 480px) {
  #dessertsView .semifinished-toolbar { gap: 10px; padding: 12px; }
  #dessertsView .dessert-points { gap: 5px; }
  #dessertsView .dessert-points button { padding: 8px; font-size: 12px; }
  #dessertsView #refreshDesserts { padding: 8px; font-size: 12px; gap: 5px; }
}
#dessertsView > .semifinished-note { margin-top: 12px; }
#dessertsView .semifinished-toolbar h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
#dessertsView .semifinished-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
#dessertsView .semifinished-help,
#dessertsView .dessert-method { font-size: 14px; font-weight: 400; line-height: 1.5; }
#dessertsView .dessert-method summary { font-size: 14px; font-weight: 600; }
#dessertsView .semifinished-status,
#dessertsView .semifinished-note { font-size: 12px; font-weight: 400; line-height: 1.45; color: #aebbc2; }
#dessertsView button { font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; }
@media (max-width: 880px) {
  .semifinished-table.dessert-table th:first-child,
  .semifinished-table.dessert-table td:first-child { position: sticky; left: 0; z-index: 2; background: #111a1f; box-shadow: 1px 0 #263037; }
}
.dessert-stock { width: 90px; font-size: 16px; }
.dessert-order { font-size: 22px; font-weight: 800; color: var(--green-bright); }
.dessert-warning { font-size: 12px; }
.dessert-warning.negative { color: #ff7979; }
.point-tab { position: relative; padding: 0 0 5px; color: var(--muted); background: transparent; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.point-tab + .point-tab { margin-left: 17px; padding-left: 17px; border-left: 2px solid var(--line); border-radius: 0; }
.point-tab:hover { color: #dce5e1; background: transparent; }
.point-tab.is-active { color: #fff; }
.point-tab.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; border-radius: 3px; background: var(--green); box-shadow: 0 0 8px rgba(104, 215, 53, .45); }
.point-tab + .point-tab.is-active::after { left: 17px; }
.matrix-tab { color: #b8c2bd; }
.eyebrow { margin: 0 0 5px; color: var(--green); }
h1 { margin: 0; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.04em; }
.updated, .source { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.source { max-width: 340px; text-align: right; color: #b8c2bd; }

.baristas-overall { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.baristas-overall span { font-size: 14px; font-weight: 600; }
.baristas-overall small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.baristas-overall strong { font-size: 28px; font-weight: 700; white-space: nowrap; }
.baristas-overall strong.is-low { color: #ef5a5a; }
.baristas-overall strong.is-medium { color: #f6a94a; }
.baristas-overall strong.is-high { color: #68d735; }
.baristas-overall strong.is-strong { color: #879eff; }
.conversion-target { margin-left: auto; text-align: right; display: flex; align-items: center; gap: 14px; }
.conversion-target-details { border-left: 1px solid var(--line); padding-left: 14px; }
.conversion-target-values { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; }
.baristas-overall .conversion-target-label { color: #aebbc2; font-size: 14px; font-weight: 400; white-space: nowrap; }
.conversion-target-label b { color: #f3f6f7; font-size: 21px; font-weight: 600; }
.baristas-overall .conversion-target small { margin-top: 4px; font-size: 12px; }
.metric-comparisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-pair { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(19, 28, 33, .98), rgba(11, 17, 21, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.metric-pair-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { position: relative; min-width: 0; min-height: 146px; padding: 14px 16px; overflow: hidden; }
.metric-pair-cards > .metric + .metric { border-left: 1px solid var(--line); }
.panel { min-width: 0; padding: 14px 18px 8px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(19, 28, 33, .98), rgba(11, 17, 21, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.metric p { margin: 0; color: var(--muted); }
.metric strong { display: block; margin: 8px 0 0; font-size: clamp(23px, 2.3vw, 34px); letter-spacing: -.045em; white-space: nowrap; }
.metric-value-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: 8px; }
.metric-value-row strong { margin: 0; }
.metric .metric-value-row .metric-forecast { margin: 0; color: var(--green-bright); font-size: 23px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.metric .metric-value-row .metric-forecast.negative { color: #ff7979; }
.metric-comparisons > :nth-child(1), .metric-comparisons > :nth-child(2) { align-self: start; }
.metric-comparisons > :nth-child(1) .metric-pair-cards, .metric-comparisons > :nth-child(2) .metric-pair-cards { min-height: 184px; }
.metric span { color: #aeb9b8; font-size: 12px; }
.metric-plan, .metric-forecast { display: block; font-size: 12px; font-weight: 600; }
.metric-plan { margin-top: 6px; color: #9ba8a7; }
.metric-forecast { margin-top: 2px; color: var(--green-bright); }
.metric-forecast.negative { color: #ff7979; }
.metric-footer { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin-top: 6px; }
.metric-footer .metric-plan { margin: 0; font-size: 12px; }
.metric-footer .metric-forecast { margin: 0; color: var(--green-bright); font-size: 15px; font-weight: 800; }
.metric-footer .metric-forecast.negative { color: #ff7979; }
.revenue-footer { align-items: center; justify-content: space-between; gap: 10px; }
.average-check-footer { justify-content: space-between; gap: 10px; }
.metric-footer .average-check-difference { flex: 0 0 auto; font-size: 23px; line-height: 1; }
.revenue-plan-stack { display: grid; gap: 3px; }
.metric-lines { display: grid; gap: 3px; }
.metric .metric-history-line { display: block; margin-top: 3px; color: #aeb9b8; font-size: 12px; font-weight: 600; white-space: nowrap; }
.revenue-forecast-label { color: #aeb9b8; font-size: 12px; font-weight: 600; }
.revenue-forecast-value { color: #d9e2df; }
.revenue-footer .revenue-forecast-percent { flex: 0 0 auto; font-size: 23px; line-height: 1; }
.revenue-pair .metric { display: flex; flex-direction: column; padding-bottom: 14px; }
.revenue-progress, .today-revenue-progress { position: absolute; right: 16px; bottom: 14px; left: 16px; height: 6px; margin-top: 0; overflow: hidden; border-radius: 99px; background: #263137; }
.revenue-progress i, .today-revenue-progress i { position: relative; display: block; width: 0; height: 100%; overflow: hidden; border-radius: inherit; background: var(--green); transition: width 350ms ease; }
.revenue-pair .revenue-progress, .revenue-pair .today-revenue-progress { position: relative; inset: auto; flex: 0 0 6px; margin-top: auto; }
.revenue-pair .metric-history-line { margin-bottom: 12px; }
.today-revenue-footer { justify-content: space-between; }
.today-revenue-footer .metric-forecast { font-size: 23px; line-height: 1; }
.revenue-progress.is-over-plan i::after, .today-revenue-progress.is-over-plan i::after { position: absolute; top: 0; right: 0; bottom: 0; width: var(--over-plan, 0%); content: ""; background: var(--weekend); }
.revenue-progress.has-over-plan,.today-revenue-progress.has-over-plan{overflow:visible}
.revenue-fire-outside{overflow:visible;background:linear-gradient(90deg,#ff9e32,#ffe294,#ff8a26);border-radius:0 99px 99px 0;box-shadow:0 0 8px #ff9b324f;pointer-events:none}
.revenue-flame{position:absolute;bottom:2px;width:13px;height:var(--flame-height,18px);transform:translateX(-50%);transform-origin:50% 100%;filter:drop-shadow(0 0 3px #ff9d3466);animation:revenue-flame-rise var(--flame-speed,1.5s) ease-in-out infinite alternate;animation-delay:var(--flame-delay,0s)}
.revenue-flame svg{display:block;width:100%;height:100%;overflow:visible}
.revenue-flame.is-down{bottom:auto;top:3px;height:calc(var(--flame-height,18px)*.65);transform-origin:50% 0;animation-name:revenue-flame-fall}
.revenue-flame.is-down svg{transform:scaleY(-1)}
.revenue-fire-percent{text-shadow:0 0 9px #ffb34830}
@keyframes revenue-flame-rise{from{transform:translateX(-50%) scale(.8,.65) rotate(-6deg);opacity:.7}to{transform:translateX(-50%) scale(1.05,1.1) rotate(6deg);opacity:1}}
@keyframes revenue-flame-fall{from{transform:translateX(-50%) scale(.85,.7) rotate(5deg);opacity:.65}to{transform:translateX(-50%) scale(1,1) rotate(-5deg);opacity:.95}}
@media(prefers-reduced-motion:reduce){.revenue-flame{animation:none}}

.archive-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:24px; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--panel); }
.archive-toolbar p { color:var(--muted); font-size:13px; margin:8px 0 0; }
.archive-toolbar .archive-eyebrow { color:var(--green-bright); font-size:10px; font-weight:800; letter-spacing:.06em; margin:0 0 8px; }
.archive-controls, .archive-month-control { display:flex; align-items:end; gap:10px; }
.archive-controls label { display:grid; gap:7px; font-size:10px; font-weight:800; color:var(--muted); }
.archive-controls select { min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#141e23; color:var(--text); font:600 14px 'Manrope',Arial,sans-serif; }
.archive-month-control button { height:44px; width:42px; padding:0; background:#202e35; color:var(--text); font-size:20px; }
.archive-month-control button:disabled { opacity:.3; cursor:default; }
.archive-status { display:flex; align-items:center; gap:10px; margin:18px 2px; color:var(--muted); font-size:13px; }
.archive-status.is-loading::before { content:''; width:14px; height:14px; border:2px solid #33454f; border-top-color:var(--green); border-radius:50%; animation:archiveSpin 1s linear infinite; }
@keyframes archiveSpin { to { transform:rotate(360deg); } }
.archive-metrics, .archive-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.archive-metric { padding:20px; }
.archive-metric > span { font-size:11px; font-weight:800; letter-spacing:.07em; color:var(--muted); }
.archive-metric > strong { display:block; font-size:clamp(26px,3vw,38px); margin:12px 0; letter-spacing:-.04em; }
.archive-metric > div { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.archive-metric small { font-size:13px; color:var(--muted); }
.archive-change { font-size:22px; color:var(--muted); }
.archive-change.positive { color:var(--green-bright); }
.archive-change.negative { color:#ff7979; }
.archive-charts { margin-top:16px; }
.archive-charts .panel { padding-bottom:16px; }
@media(max-width:880px) {
  .archive-metrics, .archive-charts { grid-template-columns:1fr; }
  .archive-controls { flex-wrap:wrap; width:100%; }
  .archive-month-control { flex:1; }
  .archive-month-control label { flex:1; }
  .history-tab { margin-left:0 !important; padding-left:0 !important; border-left:0 !important; }
  .history-tab.is-active::after { left:0 !important; }
}
.history-section { margin-top: 12px; }
.history-toggle { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 58px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(19, 28, 33, .98), rgba(11, 17, 21, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); cursor: pointer; list-style: none; user-select: none; }
.history-toggle::-webkit-details-marker { display: none; }
.history-toggle::marker { content: ""; }
.history-toggle > span:first-child { display: grid; gap: 3px; }
.history-toggle strong { font-size: 16px; line-height: 1.25; }
.history-toggle small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.history-action { display: flex; align-items: center; gap: 10px; color: var(--green-bright); font-size: 10px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.history-action i { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease; }
.history-hide { display: none; }
.history-section[open] .history-show { display: none; }
.history-section[open] .history-hide { display: inline; }
.history-section[open] .history-action i { transform: rotate(225deg) translate(-2px, -2px); }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
h2 { margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.legend { display: flex; align-items: center; gap: 7px; color: #c8d0cd; white-space: nowrap; }
.legend i { width: 23px; height: 3px; display: inline-block; border-radius: 5px; background: var(--green); box-shadow: 0 0 12px rgba(104, 215, 53, .6); }
.legend.bars i { width: 10px; height: 10px; box-shadow: none; }
.weekend-legend { display: flex; align-items: center; gap: 6px; color: #f2979a; white-space: nowrap; }
.weekend-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--weekend); box-shadow: 0 0 10px #f26c7066; }
.chart { position: relative; min-height: 190px; margin-top: 8px; }
.chart svg { display: block; width: 100%; height: 190px; overflow: visible; }
.gridline { stroke: #202a30; stroke-width: 1; }
.week-separator{stroke:#61747e;stroke-width:1;stroke-dasharray:3 4;opacity:.55;pointer-events:none}
.chart,.weekend-legend{--weekend:#f26c70}
.history-section .axis-label,.archive-charts .axis-label{font-size:13px}
.history-section .point-value,.history-section .bar-value{font-size:14px}
.history-action i{transition:transform 900ms cubic-bezier(.4,0,.2,1)}
.axis-label { fill: #9eabb1; font: 11px "Manrope", Arial, sans-serif; }
.point-value, .bar-value { fill: #d3dbd8; font: 13px "Manrope", Arial, sans-serif; font-weight: 800; }
.value-tag rect { fill: #0b1115; opacity: .94; }
.hour-value { fill: #eef4f0; font: 11px "Manrope", Arial, sans-serif; font-weight: 800; pointer-events: none; }
.hourly-benchmark-line { fill: none; stroke: #a7b0b4; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; opacity: .68; pointer-events: none; }
.weekend-value { fill: var(--weekend); }
.revenue-area { fill: url(#revenueFill); opacity: .35; }
.revenue-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(104, 215, 53, .42)); }
.revenue-dot { fill: var(--green-bright); transform-box: fill-box; transform-origin: center; transition: transform 120ms ease, filter 120ms ease; }
.check-bar { fill: var(--green); transform-box: fill-box; transform-origin: center bottom; transition: transform 120ms ease, filter 120ms ease; }
.revenue-dot.weekend-dot, .check-bar.weekend-bar { fill: var(--weekend); }
.chart-hit { cursor: crosshair; }
.chart-hit .hit-area { fill: transparent; pointer-events: all; }
.chart-hit:hover .revenue-dot { transform: scale(1.9); filter: drop-shadow(0 0 5px rgba(104, 215, 53, .9)); }
.chart-hit:hover .revenue-dot.weekend-dot { filter: drop-shadow(0 0 5px rgba(246, 169, 74, .9)); }
.chart-bar-hit:hover .check-bar { transform: scaleY(1.045); filter: brightness(1.18); }
.chart-tooltip { position: absolute; z-index: 5; max-width: 210px; padding: 7px 9px; color: #f5f8f6; border: 1px solid #3a4850; border-radius: 8px; background: rgba(8, 13, 16, .96); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); font-size: 11px; line-height: 1.35; opacity: 0; pointer-events: none; transform: translateY(2px); transition: opacity 70ms ease, transform 70ms ease; }
.chart-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.chart-tooltip > span { display: block; white-space: nowrap; }
.chart-tooltip-hour { margin-bottom: 3px; color: #fff; font-weight: 800; }
.chart-tooltip-delta { margin-top: 3px; font-weight: 800; }
.chart-tooltip-delta.positive { color: var(--green-bright); }
.chart-tooltip-delta.negative { color: #ff7979; }
.no-data { display: grid; place-items: center; height: 160px; color: var(--muted); font-size: 13px; }

.loyalty-recommendations-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.loyalty-panel { grid-column: 1; width: auto; margin: 0; }
.loyalty-metric { padding-bottom: 32px; }
.metric .loyalty-detail { display: block; margin-top: 6px; color: #aeb9b8; font-size: 12px; white-space: nowrap; }
.metric .loyalty-previous { display: block; margin-top: 4px; color: #aeb9b8; font-size: 12px; font-weight: 600; white-space: nowrap; }
.loyalty-progress { position: absolute; right: 16px; bottom: 14px; left: 16px; height: 6px; overflow: hidden; border-radius: 99px; background: #263137; }
.loyalty-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); box-shadow: 0 0 10px rgba(104, 215, 53, .25); transition: width 350ms ease; }
.loyalty-loading-dots { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; }
.loyalty-loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: #8db8ff; opacity: .3; animation: loyaltyDot 1.15s ease-in-out infinite; }
.loyalty-loading-dots i:nth-child(2) { animation-delay: .15s; }
.loyalty-loading-dots i:nth-child(3) { animation-delay: .3s; }
.loyalty-progress.is-loading i { width: 38% !important; background: linear-gradient(90deg, transparent, #668cff, #9a5cff, transparent); box-shadow: 0 0 10px rgba(102, 140, 255, .34); transition: none; animation: loyaltyLoading 1.5s ease-in-out infinite; }
@keyframes loyaltyDot { 0%, 70%, 100% { opacity: .28; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@keyframes loyaltyLoading { from { transform: translateX(-110%); } to { transform: translateX(270%); } }
.loyalty-segments { border-top: 1px solid var(--line); transition: background 160ms ease; }
.loyalty-segments[open] { background: rgba(4, 9, 12, .22); }
.loyalty-segments > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 11px 16px; cursor: pointer; list-style: none; user-select: none; }
.loyalty-segments > summary::-webkit-details-marker { display: none; }
.loyalty-segments > summary::marker { content: ""; }
.loyalty-segments > summary > span:first-child { display: grid; gap: 3px; }
.loyalty-segments > summary strong { color: var(--text); font-size: 17px; }
.loyalty-segments > summary small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.loyalty-segments-action { display: flex; align-items: center; gap: 8px; color: var(--green-bright); font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.loyalty-segments-action i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease; }
.loyalty-segments > summary { display: grid; grid-template-columns: max-content minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 10px 16px; background: transparent; }
.loyalty-returning-heading { min-width: 0; }
#loyaltyReturningDetail { grid-column: 1 / -1; display: block; margin-top: 0; color: #b5c0bd; font-size: 12px; line-height: 1.45; }
.loyalty-returning-side { display: grid; justify-items: end; gap: 10px; flex-shrink: 0; }
.loyalty-returning-heading { grid-column: 1; grid-row: 1; }
.loyalty-segments > summary .loyalty-returning-heading > strong { font-size: 16px; line-height: 1.25; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.loyalty-segments > summary .loyalty-returning-heading small { font-size: 12px; line-height: 1.4; letter-spacing: 0; font-weight: 600; }
.loyalty-returning-metrics { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; }
.loyalty-returning-metrics > span + span { border-left: 0; padding-left: 0; }
.loyalty-segments > summary .loyalty-returning-metrics strong { display: flex; align-items: baseline; gap: 6px; color: var(--text); font-size: 24px; line-height: 1.2; white-space: nowrap; }
.loyalty-segments > summary .loyalty-returning-metrics strong.positive { color: var(--green-bright); }
.loyalty-segments > summary .loyalty-returning-metrics strong.negative { color: #ff7979; }
.loyalty-segments > summary .loyalty-returning-metrics strong small { color: inherit; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.loyalty-segments > summary > .loyalty-segments-action { grid-column: 3; grid-row: 1; font-size: 0; }
.loyalty-segments > summary > .loyalty-segments-action i { width: 8px; height: 8px; }
.loyalty-returning-metrics em { font-style: normal; font-size: 14px; color: var(--text); }
.loyalty-returning-metrics > span > span { display: block; margin-top: 4px; color: #b5c0bd; font-size: 10px; line-height: 1.3; }
@media (max-width: 480px) {
  .loyalty-segments > summary { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 12px; }
  .loyalty-returning-metrics { grid-column: 1 / -1; grid-row: 2; }
  .loyalty-segments > summary > .loyalty-segments-action { grid-column: 2; }
  .loyalty-segments > summary .loyalty-returning-heading > strong { font-size: 16px; }
  .loyalty-segments > summary .loyalty-returning-metrics strong { font-size: 20px; }
}
.loyalty-conversions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.loyalty-conversions article { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.loyalty-conversions h3 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.loyalty-conversions article > strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 27px; color: var(--text); }
.loyalty-conversions .visit-conversion-change { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.loyalty-conversions .visit-conversion-change.positive { color: var(--green-bright); }
.loyalty-conversions .visit-conversion-change.negative { color: #ff7979; }
.loyalty-conversions article > p { margin: 6px 0; font-size: 13px; color: var(--text); }
.loyalty-conversions small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.loyalty-conversions-note { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 480px) { .loyalty-conversions { grid-template-columns: 1fr; } }
.loyalty-segments-close { display: none; }
.loyalty-segments[open] .loyalty-segments-open { display: none; }
.loyalty-segments[open] .loyalty-segments-close { display: inline; }
.loyalty-segments[open] .loyalty-segments-action i { transform: rotate(225deg) translate(-2px, -2px); }
.loyalty-segments-content { display: grid; gap: 11px; padding: 2px 16px 16px; }
.loyalty-segments-status { margin: 0; padding: 11px 0 2px; color: var(--muted); font-size: 11px; }
.loyalty-returning-summary { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3px 10px; padding: 11px 12px; border: 1px solid rgba(104, 215, 53, .28); border-radius: 10px; background: rgba(104, 215, 53, .045); }
.loyalty-returning-summary > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.loyalty-returning-summary > strong { grid-row: 1 / 3; grid-column: 2; color: var(--green-bright); font-size: 31px; line-height: 1; }
.loyalty-returning-summary > p { margin: 0; color: #b5c0bd; font-size: 12px; line-height: 1.4; }
.loyalty-segment-list { display: grid; gap: 9px; }
.loyalty-segment { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 12px 11px 15px; overflow: hidden; border: 1px solid #28343a; border-radius: 10px; background: rgba(255, 255, 255, .018); }
.loyalty-segment::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; content: ""; background: #617078; }
.loyalty-segment-title, .loyalty-segment-guests { display: grid; gap: 3px; }
.loyalty-segment-title strong { color: #dce4e1; font-size: 16px; }
.loyalty-segment-title span, .loyalty-segment-guests span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.loyalty-segment-guests { justify-items: end; }
.loyalty-segment-guests strong { color: var(--text); font-size: 23px; line-height: 1; }
.loyalty-segment-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 10px; border-top: 1px solid #253138; }
.loyalty-segment-metrics > span { display: grid; gap: 3px; min-width: 0; padding: 7px 8px; border-radius: 6px; background: rgba(255, 255, 255, .025); }
.loyalty-segment-metrics b { overflow: hidden; color: #d7e0dd; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-segment-metrics small { color: #849399; font-size: 10px; white-space: nowrap; }
.loyalty-segment-active::before { background: #f6a94a; }
.loyalty-segment-regular::before { background: var(--green); }
.loyalty-segment-loyal::before { background: #765cff; box-shadow: 0 0 9px rgba(118, 92, 255, .55); }
.loyalty-segment-unidentified::before { background: #75838a; }
.loyalty-segment-unidentified { background: rgba(117, 131, 138, .035); }
.loyalty-segment-table-wrap { overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #41515a transparent; }
.loyalty-segment-table { width: 100%; min-width: 545px; border-spacing: 0 6px; border-collapse: separate; table-layout: fixed; }
.loyalty-segment-table thead th { padding: 0 9px 2px; color: #829197; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.loyalty-segment-table thead th:first-child { width: 25%; }
.loyalty-segment-table thead th:nth-child(2) { width: 15%; }
.loyalty-segment-table thead th:nth-child(3) { width: 15%; }
.loyalty-segment-table thead th:nth-child(4) { width: 19%; }
.loyalty-segment-table thead th:nth-child(5) { width: 26%; }
.loyalty-segment-table tbody th,
.loyalty-segment-table tbody td { padding: 10px 9px; border-top: 1px solid #2b373d; border-bottom: 1px solid #2b373d; background: rgba(255, 255, 255, .018); text-align: left; vertical-align: middle; }
.loyalty-segment-table tbody th { border-left: 3px solid #617078; border-radius: 8px 0 0 8px; }
.loyalty-segment-table tbody td:last-child { border-right: 1px solid #2b373d; border-radius: 0 8px 8px 0; }
.loyalty-segment-table strong { display: block; overflow: hidden; color: #e1e8e5; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-segment-table th > strong { font-size: 14px; }
.loyalty-segment-table small { display: block; margin-top: 2px; overflow: hidden; color: #93a2a8; font-size: 10px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-segment-table .loyalty-segment-active th { border-left-color: #f6a94a; }
.loyalty-segment-table .loyalty-segment-regular th { border-left-color: var(--green); }
.loyalty-segment-table .loyalty-segment-loyal th { border-left-color: #765cff; }
.loyalty-segment-table .loyalty-segment-unidentified th { border-left-color: #75838a; }
.loyalty-segment-table .loyalty-segment-unidentified th,
.loyalty-segment-table .loyalty-segment-unidentified td { background: rgba(117, 131, 138, .035); }

.recommendations-panel { grid-column: 2; margin: 0; padding-bottom: 16px; }
.recommendations-caption { color: var(--green-bright); font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.recommendations-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; margin: 14px 0 0; padding: 0; list-style: none; }
.recommendation-item:nth-child(3) { padding-left: 0; border-left: 0; }
.recommendation-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 1px 16px; border-left: 1px solid var(--line); }
.recommendation-item:first-child { padding-left: 0; border-left: 0; }
.recommendation-number { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #3c4b52; border-radius: 50%; color: var(--green-bright); background: #11191e; font-size: 12px; font-weight: 800; }
.recommendation-item.is-warning .recommendation-number { color: var(--weekend); border-color: rgba(246, 169, 74, .55); }
.recommendation-item h3 { margin: 1px 0 5px; color: var(--text); font-size: 13px; line-height: 1.3; }
.recommendation-item p { margin: 0; color: #aeb9b8; font-size: 11px; line-height: 1.5; }

.support-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.baristas-panel { grid-column: 1; padding-bottom: 16px; }
.baristas-caption { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.baristas-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 13px; padding: 9px 10px; border: 1px solid #263238; border-radius: 9px; background: rgba(255, 255, 255, .015); }
.baristas-legend > span { display: flex; align-items: center; gap: 6px; min-width: 0; color: #aeb9b8; font-size: 11px; white-space: nowrap; }
.baristas-legend i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.baristas-legend b { color: #cbd4d1; font-size: inherit; }
.baristas-legend small { color: var(--muted); font-size: inherit; }
.baristas-legend .is-low i { background: #ef5a5a; box-shadow: 0 0 7px rgba(239, 90, 90, .35); }
.baristas-legend .is-medium i { background: #f6a94a; box-shadow: 0 0 7px rgba(246, 169, 74, .35); }
.baristas-legend .is-high i { background: #68d735; box-shadow: 0 0 7px rgba(104, 215, 53, .35); }
.baristas-legend .is-strong i { background: linear-gradient(135deg, #287cff, #7b4dff 35%, #ed365d 68%, #f2c94c); box-shadow: 0 0 8px rgba(126, 87, 255, .5); }
.hourly-checks-panel { grid-column: 2; }
.kiosk-panel { grid-column: 3; width: min(100%, 290px); min-height: 330px; padding-bottom: 16px; }
.checks-kiosk-stack { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 881px) {
  #dashboardView .checks-kiosk-stack { grid-column: 1; grid-row: 3; }
  #dashboardView .dashboard-tiles .hourly-checks-panel { grid-row: 3; }
  #dashboardView .checks-kiosk-stack > .kiosk-panel { width: 100%; height: var(--hourly-card-height,210px); min-height: 0; padding: 12px 16px; }
  .limited-access #dashboardView .checks-kiosk-stack { grid-row: 2; }
  #dashboardView .checks-kiosk-stack .kiosk-metric { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; align-content: stretch; gap: 4px 0; height: calc(100% - 30px); margin-top: 10px; }
  .checks-kiosk-stack .kiosk-primary { grid-column: 1; padding-right: 16px; }
  .checks-kiosk-stack .kiosk-month-row { grid-column: 1; padding-right: 16px; }
  .checks-kiosk-stack .kiosk-average { grid-column: 2; grid-row: 1 / 3; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 18px; align-content: start; align-self: start; }
  .checks-kiosk-stack .kiosk-average-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checks-kiosk-stack .kiosk-average-grid > div { padding: 8px; }
  .checks-kiosk-stack .kiosk-average-grid strong { font-size: 20px; }
  .checks-kiosk-stack .kiosk-gauge { width: 88px; height: 88px; }
  .checks-kiosk-stack .kiosk-gauge > div { width: 68px; height: 68px; }
  .checks-kiosk-stack .kiosk-gauge strong { font-size: 21px; }
  .checks-kiosk-stack .kiosk-gauge span { font-size: 10px; letter-spacing: 0; }
  .checks-kiosk-stack .kiosk-month-row { align-self: end; }
  .checks-kiosk-stack .kiosk-average-grid span,
  .checks-kiosk-stack .kiosk-average-title,
  .checks-kiosk-stack .kiosk-month-row span { font-size: 11px; }
  .checks-kiosk-stack .kiosk-month-row p { font-size: 12px; }
}
.kiosk-metric { display: grid; gap: 16px; margin-top: 15px; }
.kiosk-primary { display: flex; align-items: center; gap: 16px; }
.kiosk-primary > p { display: grid; gap: 2px; margin: 0; }
.kiosk-primary > p strong { color: var(--text); font-size: 22px; line-height: 1; }
.kiosk-conversion { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 7px;margin-top:0;font-size:12px;line-height:1.3;color:var(--muted); }
.checks-kiosk-stack .kiosk-average { gap:3px;align-self:stretch;align-content:start;min-width:0; }
.checks-kiosk-stack .kiosk-average-grid > div { padding:3px 8px;gap:0; }
@media (min-width: 1000px) {
  #dashboardView .checks-kiosk-stack .kiosk-average { margin-top:-30px; }
  #dashboardView .checks-kiosk-stack .kiosk-panel .panel-heading { max-width:47%; }
}
.kiosk-compare { margin:0;text-align:right;font-size:11px;line-height:1.3;font-weight:700;color:var(--muted); }
.kiosk-compare.is-kiosk { color:#9a89ff; }
.kiosk-compare.is-barista { color:var(--green-bright); }
.checks-kiosk-stack .kiosk-average-grid strong { font-size:20px;line-height:1.15; }
.checks-kiosk-stack .kiosk-conversion-grid { margin-top:0; }
.checks-kiosk-stack .kiosk-average .kiosk-winner { margin:0;font-size:16px;line-height:1.3; }
.kiosk-conversion b { color:#9a89ff;font-size:16px;font-weight:700; }
.kiosk-primary > p span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.kiosk-gauge { display: grid; flex: 0 0 auto; width: 96px; height: 96px; place-items: center; border-radius: 50%; background: conic-gradient(#765cff 0 var(--kiosk-percent), #263137 var(--kiosk-percent) 360deg); box-shadow: 0 0 15px rgba(118, 92, 255, .14); }
.kiosk-gauge > div { display: grid; width: 72px; height: 72px; place-content: center; justify-items: center; border-radius: 50%; background: #10181d; }
.kiosk-gauge strong { color: #eef4f0; font-size: 21px; line-height: 1; letter-spacing: -.04em; }
.kiosk-gauge span { margin-top: 5px; color: #8db8ff; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.kiosk-month-row { display: grid; gap: 6px; }
.kiosk-month-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kiosk-month-row span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.kiosk-month-row strong { color: #dfe7e4; font-size: 13px; }
.kiosk-month-row p { margin: 0; color: #aeb9b8; font-size: 10px; }
.kiosk-month-track { height: 6px; overflow: hidden; border-radius: 99px; background: #263137; }
.kiosk-month-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3478f6, #765cff); box-shadow: 0 0 9px rgba(118, 92, 255, .28); }
.kiosk-average { display: grid; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.kiosk-average-title { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.kiosk-average-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kiosk-average-grid > div { display: grid; gap: 3px; padding: 8px 9px; border: 1px solid #2a353b; border-radius: 8px; background: rgba(255, 255, 255, .018); }
.kiosk-average-grid span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.kiosk-average-grid strong { color: var(--text); font-size: 16px; line-height: 1.1; white-space: nowrap; }
.kiosk-average-grid > div:first-child strong { color: #9a89ff; }
.kiosk-average-grid > div:last-child strong { color: var(--green-bright); }
.kiosk-winner { margin: 3px 0 0; color: #b6c0c0; font-size: 18px; font-weight: 700; text-align: center; }
.kiosk-winner.is-kiosk { color: #9a89ff; }
.kiosk-winner.is-barista { color: var(--green-bright); }
.kiosk-average small { color: #78878d; font-size: 8px; line-height: 1.35; }
.kiosk-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 94px; color: #9fb0b7; font-size: 11px; font-weight: 750; }
.kiosk-loading i { width: 14px; height: 14px; box-sizing: border-box; border: 2px solid #344149; border-top-color: #8db8ff; border-radius: 50%; animation: baristasSpinner .8s linear infinite; }
.kiosk-loading-line { height: 8px; overflow: hidden; border-radius: 99px; background: linear-gradient(90deg, #202b31, #344654, #202b31); background-size: 200% 100%; animation: kioskShimmer 1.5s ease-in-out infinite; }
.kiosk-loading-line.short { width: 68%; }
.kiosk-no-data { display: grid; min-height: 150px; margin: 0; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
@keyframes kioskShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hourly-comparison { display: grid; justify-items: end; gap: 4px; text-align: right; }
.hourly-delta { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.hourly-delta.positive { color: var(--green-bright); }
.hourly-delta.negative { color: #ff7979; }
.hourly-benchmark-legend { display: flex; align-items: center; gap: 6px; color: #9ca7ab; font-size: 9px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.hourly-benchmark-legend i { width: 24px; height: 3px; border: 0; border-radius: 99px; background: linear-gradient(90deg,#57b5ff 0%,#f2d85c 45%,#ffa347 72%,#ff6269 100%); }
.records-panel { margin-top: 12px; padding: 14px 18px 16px; }
.records-caption { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin-top: 14px; }
.records-status { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.record-item { min-width: 0; padding: 2px 18px 4px; border-left: 1px solid var(--line); }
.record-item:first-child { padding-left: 0; border-left: 0; }
.record-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.record-item h3 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; }
.record-item strong { display: block; margin-top: 7px; color: var(--text); font-size: clamp(20px, 1.75vw, 29px); font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.record-item p { margin: 5px 0 0; color: #aeb9b8; font-size: 11px; }
.record-badge { padding: 3px 6px; border: 1px solid rgba(131, 232, 77, .5); border-radius: 99px; color: var(--green-bright); background: rgba(104, 215, 53, .08); box-shadow: 0 0 10px rgba(104, 215, 53, .12); font-size: 8px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.record-change { display: block; margin-top: 5px; color: var(--green-bright); font-size: 10px; font-weight: 700; }
.record-item.has-new-record strong { color: #fff; }
.hourly-checks-panel .chart { min-height: 300px; margin-top: 12px; }
.hourly-checks-panel .chart svg { height: 300px; min-height: 0; }
.hourly-checks-panel .axis-label { font-size: 12px; font-weight: 500; }
.hourly-checks-panel .hour-value { font-size: 13px; font-weight: 800; pointer-events: none; }
.hourly-checks-panel .hourly-benchmark-line { stroke-width: 2.5; opacity: 1; vector-effect: non-scaling-stroke; }
.hourly-checks-panel .gridline { stroke-width: 1; opacity: .65; vector-effect: non-scaling-stroke; }
.hourly-checks-panel .chart-tooltip { font-size: 13px; line-height: 1.5; padding: 10px 12px; max-width: 260px; }
@media (max-width: 480px) {
  .hourly-checks-panel .chart { min-height: 260px; }
  .hourly-checks-panel .chart svg { height: 260px; }
}
.baristas-chart { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 13px; }
.baristas-loading { display: grid; gap: 13px; min-height: 164px; align-content: center; padding: 4px 10px; }
.baristas-loading-title { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 3px; color: #9fb0b7; font-size: 12px; font-weight: 750; }
.baristas-loading-title i { width: 13px; height: 13px; box-sizing: border-box; border: 2px solid #344149; border-top-color: #8db8ff; border-radius: 50%; animation: baristasSpinner .8s linear infinite; }
.baristas-loading-row { display: grid; grid-template-columns: 28% 1fr; gap: 16px; align-items: center; }
.baristas-loading-row b,
.baristas-loading-row span { display: block; height: 9px; overflow: hidden; border-radius: 99px; background: #202b31; position: relative; }
.baristas-loading-row span { height: 7px; }
.baristas-loading-row b::after,
.baristas-loading-row span::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, transparent, rgba(141, 184, 255, .24), transparent); transform: translateX(-100%); animation: baristasShimmer 1.35s ease-in-out infinite; }
.baristas-loading-row:nth-child(3) b::after,
.baristas-loading-row:nth-child(3) span::after { animation-delay: .14s; }
.baristas-loading-row:nth-child(4) b::after,
.baristas-loading-row:nth-child(4) span::after { animation-delay: .28s; }
@keyframes baristasSpinner { to { transform: rotate(360deg); } }
@keyframes baristasShimmer { to { transform: translateX(100%); } }
.barista-row { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; align-items: center; }
.barista-place { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #334047; border-radius: 50%; color: #dbe4e0; background: #11191e; font-size: 13px; font-weight: 800; }
.barista-place.is-pending { border-color: transparent; color: #68777d; background: transparent; }
.barista-profile-link { color: inherit; text-decoration: none; }
.barista-profile-link:hover { color: #fff; text-decoration: none; }
.barista-rank { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rank-change { font-size: 11px; line-height: 1.2; font-weight: 600; color: #94a7b2; white-space: nowrap; }
.rank-change.is-up { color: #68d735; }
.rank-change.is-down { color: #ef5a5a; }
.barista-data { min-width: 0; }
.barista-line { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 5px; color: #cbd4d1; font-size: 15px; }
.barista-line span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.barista-line strong { flex: 0 0 auto; color: #f2f5f3; font-size: 14px; }
.barista-detail { display: flex; align-items: center; gap: 8px; margin: -2px 0 5px; color: var(--muted); font-size: 12px; }
.barista-track { height: 9px; overflow: hidden; background: #202a30; }
.barista-level { flex: 0 0 auto; margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.barista-track i { display: block; height: 100%; border-radius: 0 2px 2px 0; transition: width 350ms ease; }
.barista-row.is-pending .barista-line strong { color: #68777d; }
.barista-row.is-pending .barista-level { color: #819096; }
.barista-row.is-pending .barista-track i { background: #53636b; box-shadow: none; }
.barista-row.is-low .barista-level { color: #ff7979; }
.barista-row.is-low .barista-track i { background: #ef5a5a; box-shadow: 0 0 10px rgba(239, 90, 90, .25); }
.barista-row.is-medium .barista-level { color: #f6b45f; }
.barista-row.is-medium .barista-track i { background: #f6a94a; box-shadow: 0 0 10px rgba(246, 169, 74, .28); }
.barista-row.is-high .barista-level { color: var(--green-bright); }
.barista-row.is-high .barista-track i { background: #68d735; box-shadow: 0 0 10px rgba(104, 215, 53, .28); }
.barista-row.is-strong .barista-level { color: #8db8ff; text-shadow: 0 0 9px rgba(126, 87, 255, .62); }
.barista-row.is-strong .barista-track i { background: repeating-linear-gradient(90deg, #287cff 0, #7b4dff 120px, #ed365d 240px, #f2c94c 360px, #287cff 480px); background-size: 480px 100%; box-shadow: 0 0 13px rgba(113, 75, 255, .55); animation: strongUpsell 4s linear infinite; }
@keyframes strongUpsell { from { background-position: 0 0; } to { background-position: 480px 0; } }

.semifinished-view { display: grid; gap: 12px; }
.semifinished-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(19, 28, 33, .98), rgba(11, 17, 21, .98)); }
.semifinished-eyebrow { margin: 0 0 5px; color: var(--green-bright); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.semifinished-toolbar h2 { font-size: 21px; }
.semifinished-help { max-width: 1050px; margin: 8px 0 0; color: #b9c7cc; font-size: 13px; line-height: 1.55; }
.semifinished-help strong { color: var(--text); }
.semifinished-status { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.semifinished-status.is-error { color: #ff7979; }
.semifinished-status.is-saved { color: var(--green-bright); }
.techcards-connection { display: inline-flex; align-items: center; gap: 6px; margin: 7px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.techcards-connection::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--muted); }
.techcards-connection.is-connected { color: var(--green-bright); }
.techcards-connection.is-connected::before { background: var(--green); box-shadow: 0 0 8px rgba(104, 215, 53, .55); }
.techcards-connection.is-error { color: #ff7979; }
.techcards-connection.is-error::before { background: #ff7979; }
.semifinished-save { min-width: 148px; border-radius: 9px; font-size: 12px; }
.semifinished-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#semifinishedView .semifinished-actions { flex-direction: column; flex-wrap: nowrap; flex-shrink: 0; gap: 6px; }
#semifinishedSavedAt { text-align: center; max-width: 260px; font-size: 14px; line-height: 1.4; }
#saveSemifinished { border-radius: 18px; }
#semifinishedStatus:empty { display: none; }
.pf-cook-switch { position: relative; display: inline-flex; flex: 0 0 40px; width: 40px; height: 24px; cursor: pointer; }
.pf-cook-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pf-cook-switch span { width: 40px; height: 24px; border-radius: 20px; background: #4b555b; pointer-events: none; transition: background .25s; }
.pf-cook-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0004; transition: transform .25s; }
.pf-cook-switch input:checked + span { background: #68d735; }
.pf-cook-switch input:checked + span::after { transform: translateX(16px); }
.pf-cook-switch input:focus-visible + span { outline: 2px solid white; outline-offset: 3px; }
.semifinished-name-row { display: flex; align-items: center; gap: 8px; }
.semifinished-priority-marker { position: relative; display: grid; place-items: center; flex: 0 0 28px; height: 32px; color: #ffbd5b; border-radius: 6px; }
.semifinished-priority-marker.is-important { color: #68d735; }
.semifinished-priority-marker.is-unimportant { color: #87969f; }
.semifinished-priority-dot { width: 13px; height: 13px; border-radius: 50%; background: currentColor; }
.semifinished-priority { padding: 0; border: 0; background: transparent; cursor: pointer; }
.semifinished-priority:hover, .semifinished-priority:active { background: transparent; box-shadow: none; }
.priority-menu { position: fixed; z-index: 200; width: 196px; padding: 6px; border: 1px solid #34434c; border-radius: 12px; background: #142027; box-shadow: 0 12px 36px #0008; }
.priority-menu-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; color: #f3f6f7; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.priority-menu-option:hover, .priority-menu-option:focus-visible, .priority-menu-option[aria-pressed="true"] { background: #23343e; outline: none; }
.priority-menu-option.is-important .semifinished-priority-dot { color: #68d735; }
.priority-menu-option.is-medium .semifinished-priority-dot { color: #ffbd5b; }
.priority-menu-option.is-unimportant .semifinished-priority-dot { color: #87969f; }
.priority-menu-check { margin-left: auto; color: #b4c3cb; }
.semifinished-priority-marker:focus-within { outline: 2px solid #9eb0b7; outline-offset: 1px; }
.semifinished-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(19, 28, 33, .98), rgba(11, 17, 21, .98)); }
.semifinished-summary article { min-height: 86px; padding: 14px 18px; }
.semifinished-summary article + article { border-left: 1px solid var(--line); }
.semifinished-summary span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.semifinished-summary strong { display: block; margin-top: 6px; font-size: 25px; letter-spacing: -.035em; }
#semifinishedView .pf-summary-breakdown { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 40px; min-height: 0; }
.pf-summary-counts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 10px; }
.pf-summary-counts > div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #becbd2; }
.pf-summary-counts b { color: #fff; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-summary-dot { width: 8px; height: 8px; border-radius: 50%; background: #87969f; }
.pf-summary-dot.is-important { background: #68d735; }
.pf-summary-dot.is-medium { background: #ffbd5b; }
#semifinishedView .semifinished-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 18px; }
#semifinishedView .semifinished-summary > article { min-height: 0; padding: 0; border: 0; }
#semifinishedView .semifinished-summary > article > span,
#semifinishedView .pf-summary-breakdown > div > span { font-size: 11px; font-weight: 500; letter-spacing: .025em; }
#semifinishedView .semifinished-summary strong { margin-top: 5px; font-size: 20px; font-weight: 600; }
#semifinishedView .semifinished-summary .pf-summary-breakdown { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; border: 0; }
#semifinishedView .pf-summary-counts { gap: 10px 18px; margin-top: 7px; }
#semifinishedView .pf-summary-counts > div { font-size: 13px; gap: 6px; }
#semifinishedView .pf-summary-counts b { font-size: 18px; }
#semifinishedView .semifinished-summary > article + article { border-left: 1px solid var(--line); padding-left: 28px; }
#semifinishedView .pf-summary-breakdown > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
@media (max-width: 600px) {
  #semifinishedView .semifinished-summary { gap: 14px 18px; }
  #semifinishedView .semifinished-summary > article + article { padding-left: 18px; }
  #semifinishedView .semifinished-summary > .pf-summary-breakdown { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  #semifinishedView .pf-summary-breakdown > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; width: 100%; }
}
.semifinished-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(19, 28, 33, .98), rgba(11, 17, 21, .98)); }
.semifinished-table { width: 100%; min-width: 1180px; table-layout: fixed; border-collapse: collapse; }
.semifinished-table th { padding: 14px 16px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-align: left; white-space: nowrap; }
.semifinished-table td { height: 62px; padding: 10px 16px; border-bottom: 1px solid rgba(38, 48, 55, .72); vertical-align: middle; }
.semifinished-table tr:last-child td { border-bottom: 0; }
.semifinished-table th:nth-child(1) { width: 52px; text-align: center; }
.semifinished-table th:nth-child(2) { width: 27%; }
.semifinished-table th:nth-child(3),
.semifinished-table th:nth-child(4),
.semifinished-table th:nth-child(5) { width: 10%; }
.semifinished-table th:nth-child(6) { width: 16%; }
.semifinished-table th:nth-child(7) { width: 15%; white-space: normal; }
.semifinished-table th:nth-child(8) { width: 14%; }
.semifinished-table tr.has-production { background: transparent; }
.semifinished-table tr.has-production td:first-child { box-shadow: none; }
.semifinished-table tr.is-covered { opacity: 1; background: transparent; }
.semifinished-index { width: 34px; color: var(--muted); font-size: 13px; font-weight: 800; text-align: center; }
.semifinished-name { color: var(--text); font-size: 15px; font-weight: 750; line-height: 1.3; }
.semifinished-history { color: #9eb0b7; font-size: 14px; font-weight: 650; white-space: nowrap; }
.semifinished-demand { color: #d5dde0; font-size: 16px; font-weight: 700; white-space: nowrap; }
.semifinished-stock { width: 112px; height: 42px; padding: 8px 11px; color: var(--text); border: 1px solid #48565e; border-radius: 8px; outline: none; background: #11191e; font-size: 16px; font-weight: 750; text-align: right; }
.semifinished-stock:focus { border-color: #ffae4a; box-shadow: 0 0 0 3px rgba(255, 174, 74, .1); }
.semifinished-stock-unit { margin-left: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.semifinished-result { color: var(--green-bright); font-size: 21px; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.semifinished-result.is-zero { color: #8da097; font-size: 15px; }
#semifinishedView .semifinished-table th { padding: 12px 14px; color: #f3f6f7; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; white-space: normal; }
#semifinishedView .semifinished-table th:nth-child(1) { width: 4%; }
#semifinishedView .semifinished-table th:nth-child(2) { width: 28%; }
#semifinishedView .semifinished-table th:nth-child(3),
#semifinishedView .semifinished-table th:nth-child(4),
#semifinishedView .semifinished-table th:nth-child(5) { width: 9%; }
#semifinishedView .semifinished-table th:nth-child(6) { width: 14%; }
#semifinishedView .semifinished-table th:nth-child(7) { width: 13%; }
#semifinishedView .semifinished-table th:nth-child(8) { width: 14%; }
#semifinishedView .semifinished-table { min-width: 1350px; }
#semifinishedView .semifinished-table th:nth-child(1) { width: 4%; }
#semifinishedView .semifinished-table th:nth-child(2) { width: 30%; }
#semifinishedView .semifinished-table th:nth-child(n+3):nth-child(-n+7) { width: 10%; }
#semifinishedView .semifinished-table th:nth-child(8) { width: 16%; }
#semifinishedView .semifinished-table th:nth-child(9) { width: 10%; }
#semifinishedView .semifinished-table th:nth-child(10) { width: 10%; }
.semifinished-weekday { display: block; margin-top: 3px; color: #aebbc2; font-size: 12px; font-weight: 400; }
#semifinishedView .semifinished-table thead { background: #141e24; }
#semifinishedView .semifinished-table thead th { height: 68px; padding-top: 13px; padding-bottom: 13px; vertical-align: middle; font-size: 14px; font-weight: 600; white-space: nowrap; }
#semifinishedView .pf-head-note,
#semifinishedView .semifinished-weekday { display: block; margin-top: 5px; color: #94a7b2; font-size: 12px; font-weight: 400; line-height: 1.35; }
#semifinishedView .semifinished-table th:nth-child(8),
#semifinishedView .semifinished-table td:nth-child(8) { border-left: 1px solid var(--line); }
#semifinishedView .pf-head-note { white-space: normal; text-wrap: balance; }
#semifinishedView .semifinished-table td { height: 54px; padding: 8px 14px; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
#semifinishedView .semifinished-table th:nth-child(n+3),
#semifinishedView .semifinished-table td:nth-child(n+3) { text-align: right; }
#semifinishedView .semifinished-index { font-size: 13px; font-weight: 400; }
#semifinishedView .semifinished-name { font-size: 15px; font-weight: 600; line-height: 1.4; }
#semifinishedView .semifinished-history { color: #b4c0c6; font-size: 15px; font-weight: 400; }
#semifinishedView .semifinished-demand { color: #f3f6f7; font-size: 16px; font-weight: 600; }
#semifinishedView .semifinished-stock { width: 64px; height: 36px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: 16px; font-weight: 600; text-align: right; }
#semifinishedView .pf-stock-inline { display: inline-flex; align-items: center; gap: 5px; padding: 0 5px; cursor: text; transition: background .2s; }
#semifinishedView .pf-stock-inline::before { content: '['; }
#semifinishedView .pf-stock-inline::after { content: ']'; }
#semifinishedView .pf-stock-inline::before,
#semifinishedView .pf-stock-inline::after { color: #94a7b2; font-size: 20px; font-weight: 400; transition: color .2s; }
#semifinishedView .pf-stock-inline:hover { background: #ffffff08; }
#semifinishedView .pf-stock-inline:focus-within { background: #ffffff08; }
#semifinishedView .pf-stock-inline:focus-within::before,
#semifinishedView .pf-stock-inline:focus-within::after { color: #68d735; }
#semifinishedView .pf-input-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.3; }
#semifinishedView .pf-stock-inline .semifinished-stock-unit { margin-left: 0; }
#semifinishedView .semifinished-table th:nth-child(8),
#semifinishedView .semifinished-table td:nth-child(8) { text-align: center; }
#semifinishedView .pf-stock-inline { display: inline-grid; grid-template-columns: 8px 58px 20px 8px; width: 114px; gap: 3px; padding: 0 5px; box-sizing: border-box; }
#semifinishedView .pf-stock-inline .semifinished-stock { width: 58px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
#semifinishedView .pf-stock-inline .semifinished-stock-unit { width: 20px; text-align: left; }
#semifinishedView .pf-stock-inline::before,
#semifinishedView .pf-stock-inline::after { text-align: center; }
#semifinishedView .semifinished-stock-unit { font-size: 13px; font-weight: 400; }
#semifinishedView .semifinished-result { font-size: 18px; font-weight: 700; letter-spacing: 0; }
#semifinishedView .semifinished-result.is-zero { color: #aebbc2; font-size: 15px; font-weight: 400; }
.semifinished-note { margin: 0; padding: 0 4px; color: var(--muted); font-size: 11px; }

@media (min-width: 881px) {
  .metric-comparisons > :nth-child(1), .metric-comparisons > :nth-child(2) { height: auto; min-height: 0; align-self: stretch; }
  .metric-comparisons > :nth-child(1) .metric-pair-cards, .metric-comparisons > :nth-child(2) .metric-pair-cards { height: 100%; }
  #dashboardView { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
  #dashboardView > .metric-comparisons,
  #dashboardView > .loyalty-recommendations-row,
  #dashboardView > .support-panels { display: contents; }
  .metric-comparisons > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .metric-comparisons > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .metric-comparisons > :nth-child(3) { grid-column: 1; grid-row: 3; }
  #dashboardView .loyalty-panel { grid-column: 1; grid-row: 2; }
  #dashboardView .recommendations-panel { grid-column: 2; grid-row: 2; }
  #dashboardView .baristas-panel { grid-column: 3; grid-row: 1 / 5; }
  #dashboardView .hourly-checks-panel { grid-column: 2; grid-row: 3 / 5; }
  #dashboardView .kiosk-panel { grid-column: 1; grid-row: 4; }
  .limited-access #dashboardView .metric-comparisons > :nth-child(3) { grid-column: 1; grid-row: 2; }
  .limited-access #dashboardView .recommendations-panel { grid-column: 2; grid-row: 2; }
  .limited-access #dashboardView { grid-template-rows: 190px auto auto; }
  .limited-access #dashboardView .baristas-panel { grid-column: 3; grid-row: 1; height: max-content; }
  .limited-access #dashboardView .hourly-checks-panel { grid-column: 1 / 3; grid-row: 3; }
  #dashboardView > .records-panel,
  #dashboardView > .history-section { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 1200px) {
  .recommendations-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .recommendation-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .records-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .record-item:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 880px) {
  .dashboard { width: min(100% - 28px, 760px); padding-top: 14px; }
  .topbar { grid-template-columns: 1fr; gap: 15px; }
  .top-title { border: 0; padding: 0; }
  .controls { justify-content: space-between; }
  .hero { align-items: start; flex-direction: column; padding-top: 28px; }
  .source { text-align: left; }
  .history-toggle { align-items: flex-start; }
  .history-action { padding-top: 3px; }
  .metric-comparisons, .charts, .support-panels, .loyalty-recommendations-row { grid-template-columns: 1fr; }
  .baristas-panel, .hourly-checks-panel, .kiosk-panel { grid-column: auto; }
  .kiosk-panel { width: 100%; }
  .baristas-chart { grid-template-columns: 1fr; }
  .loyalty-panel, .recommendations-panel { grid-column: auto; width: 100%; }
  .recommendations-list { grid-template-columns: 1fr; gap: 12px; }
  .recommendations-panel .panel-heading { flex-wrap: wrap; }
  .recommendation-item, .recommendation-item:nth-child(3), .recommendation-item:nth-child(4) { padding: 0 0 12px; border-bottom: 1px solid var(--line); border-left: 0; }
  .recommendation-item:last-child { padding-bottom: 0; border-bottom: 0; }
  .records-grid { grid-template-columns: 1fr; gap: 12px; }
  .records-panel .panel-heading { flex-wrap: wrap; }
  .record-item, .record-item:nth-child(4) { padding: 0 0 12px; border-bottom: 1px solid var(--line); border-left: 0; }
  .record-item:last-child { padding-bottom: 0; border-bottom: 0; }
  .point-switcher { flex-wrap: wrap; row-gap: 9px; }
  .matrix-tab { flex-basis: 100%; margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
  .matrix-tab.is-active::after { left: 0 !important; }
  .semifinished-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .semifinished-save { width: 100%; }
  .semifinished-summary strong { font-size: 20px; }
  .semifinished-summary { grid-template-columns: 1fr; }
  .semifinished-summary article + article { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 480px) {
  .metric-comparisons .metric { padding-left: 10px; padding-right: 10px; }
  .metric-comparisons .metric strong { font-size: clamp(18px, 5vw, 24px); }
  .metric-comparisons .metric-value-row { gap: 6px 8px; }
  .metric-comparisons .metric .metric-value-row .metric-forecast { font-size: 20px; }
  .metric-comparisons .metric .metric-history-line { white-space: normal; overflow-wrap: anywhere; }
  .metric-comparisons .metric p { min-height: 30px; font-size: 10px; line-height: 1.5; }
  .revenue-progress, .today-revenue-progress { left: 10px; right: 10px; }
  .loyalty-segments > summary { align-items: flex-start; }
  .loyalty-segment { grid-template-columns: 1fr; }
  .loyalty-segment-guests { justify-items: start; }
  .loyalty-segment-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .hero { min-width: 0; }
  .hero > div:first-child { width: 100%; min-width: 0; }
  .point-switcher { flex-wrap: wrap; gap: 8px; overflow: visible; max-width: 100%; padding: 0 0 10px; margin-bottom: 12px; }
  .point-switcher .point-tab { flex: 0 0 auto; white-space: nowrap; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 18px; font-size: 14px; font-weight: 600; letter-spacing: 0; background: #111a20; }
  .point-switcher .point-tab.is-active { border-color: #68d735; background: #1e3024; }
  .point-switcher .point-tab.is-active::after { display: none; }
  .point-switcher .point-tab { max-width: 100%; white-space: normal; text-align: left; }
  .point-switcher .profile-actions { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 8px; margin-top: 2px; }
  .point-switcher .profile-actions .account-view-switch { font-size: 14px; font-weight: 500; }
  .profile-actions .account-view-switch { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 600px) {
  #dessertsView .semifinished-toolbar { grid-template-columns: minmax(0,1fr); }
  #dessertsView .semifinished-toolbar .dessert-controls { grid-column: 1; grid-row: 2; justify-self: end; }
  #dessertsView .semifinished-help { grid-row: 3; }
  #dessertsView .dessert-method { grid-row: 4; }
  #dessertsView #dessertStatus { grid-row: 5; }
  #dessertsView .dessert-update-time { max-width: none; white-space: nowrap; }
}
#semifinishedView .semifinished-table th:nth-child(1) { width: 44px !important; }
#semifinishedView .semifinished-table th:nth-child(2) { width: 62px !important; }
#semifinishedView .semifinished-table th:nth-child(3) { width: 70px !important; }
#semifinishedView .semifinished-table th:nth-child(4) { width: calc(34% - 176px) !important; }
#semifinishedView .semifinished-table th:nth-child(2) .pf-sort,
#semifinishedView .semifinished-table th:nth-child(3) .pf-sort { font-size: 14px; }
#semifinishedView .semifinished-table th:nth-child(-n+3),
#semifinishedView .semifinished-table td:nth-child(-n+3) { padding-left: 3px; padding-right: 3px; }
#semifinishedView .semifinished-table td:nth-child(3) .semifinished-priority-marker { margin: 0 auto; }
#semifinishedView .semifinished-table th:nth-child(n+5):nth-child(-n+9) { width: 10% !important; }
#semifinishedView .semifinished-table th:nth-child(10) { width: 16% !important; }
#semifinishedView .semifinished-table th:nth-child(n+2):nth-child(-n+3),
#semifinishedView .semifinished-table td:nth-child(n+2):nth-child(-n+3) { text-align: center; }
#semifinishedView .semifinished-table th:nth-child(4),
#semifinishedView .semifinished-table td:nth-child(4) { text-align: left; }
#semifinishedView .semifinished-table th:nth-child(n+5),
#semifinishedView .semifinished-table td:nth-child(n+5) { text-align: right; border-left: 0; }
#semifinishedView .semifinished-table th:nth-child(10),
#semifinishedView .semifinished-table td:nth-child(10) { border-left: 1px solid var(--line); }
#semifinishedView .semifinished-table thead th { vertical-align: top; padding-top: 16px; font-size: 14px; line-height: 20px; }
#semifinishedView .pf-sort { font-size: 14px; line-height: 20px; font-weight: 600; }
#semifinishedView .semifinished-table td:first-child .dessert-drag-handle { gap: 2px; width: 38px; font-size: 19px; }
#semifinishedView .semifinished-table td:first-child .semifinished-index { width: 18px; flex: 0 0 18px; font-size: 12px; }
#semifinishedView .semifinished-table th:nth-child(2) { width: 74px !important; }
#semifinishedView .semifinished-table th:nth-child(3) { width: 84px !important; }
#semifinishedView .semifinished-table th:nth-child(4) { width: calc(34% - 202px) !important; }
@media (min-width: 881px) {
  .metric-comparisons > .metric-pair:nth-child(-n+2) { height: 184px; min-height: 0; align-self: start; }
  .metric-comparisons > .metric-pair:nth-child(-n+2) .metric-pair-cards { height: 100%; min-height: 0; }
  .metric-comparisons > .metric-pair:nth-child(-n+2) .metric { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .metric-comparisons > .metric-pair:nth-child(-n+2) .metric-value-row { flex-wrap: nowrap; gap: 6px; }
  .metric-comparisons > .metric-pair:nth-child(-n+2) .metric-value-row strong { font-size: clamp(20px,1.85vw,32px); }
  .metric-comparisons > .metric-pair:nth-child(-n+2) .metric-value-row .metric-forecast { font-size: clamp(17px,1.3vw,23px); }
  .revenue-pair .metric-history-line { margin-bottom: 8px; }
}
@media (min-width: 881px) {
  #dashboardView { display: flex; flex-direction: column; gap: 12px; }
  .dashboard-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; width: 100%; align-items: start; }
  .dashboard-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; grid-template-rows: 184px auto auto; align-content: start; align-items: start; min-width: 0; }
  #dashboardView .dashboard-tiles > section { display: contents; }
  #dashboardView .dashboard-layout > .baristas-panel { grid-column: 2; grid-row: 1; height: auto; }
  #dashboardView .dashboard-tiles > .records-panel { display: block; grid-column: 1 / -1; grid-row: 4; width: 100%; margin: 0; }
  #dashboardView .dashboard-tiles > .history-section { display: block; grid-column: 1 / -1; grid-row: 5; width: 100%; margin: 0; }
  .limited-access #dashboardView .dashboard-tiles > .records-panel { display: none !important; }
  .limited-access #dashboardView { grid-template-rows: none; }
  .limited-access .dashboard-tiles { grid-template-rows: 184px auto auto; }
  #dashboardView .dashboard-tiles > section > * { margin-top: 0; margin-bottom: 0; }
}
@media (max-width: 880px) {
  .dashboard-layout,.dashboard-tiles { display: contents; }
  #dashboardView { display: flex; flex-direction: column; gap: 12px; }
  #dashboardView .dashboard-tiles > section { margin-top: 0; margin-bottom: 0; gap: 12px; }
  #dashboardView > *, .dashboard-layout > .baristas-panel { margin-top: 0; margin-bottom: 0; }
}
