/* Phase 3 design system: opaque fallbacks first; one restrained blur layer. */
:root{--g-bg:#edf0f4;--g-surface:#fffffff0;--g-muted:#f6f8fb;--ink:#162536;--muted:#536477;--line:#d6dee8;--g-radius:24px;--g-small:14px;--g-shadow:0 10px 30px #20355009;--g-space:clamp(16px,3vw,30px);--g-dark:#182a39;--g-font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--paper:var(--g-bg)}
body{background:radial-gradient(ellipse at 0 0,#dce7e5,transparent 60%),radial-gradient(ellipse at 100% 30%,#e2e7f3,transparent 55%),var(--g-bg);background-attachment:fixed;font-family:var(--g-font);color:var(--ink)}
.r-main{padding-top:32px}.r-header{background:#f8fafcf5;border-bottom:1px solid #fff;box-shadow:0 3px 20px #22384406}.r-brand{letter-spacing:-.045em}.r-header nav a{text-decoration:none;padding:8px 3px;color:#354b5f;font-weight:600}.r-header nav a:hover{color:var(--brand-text)}
.r-card,.r-food,.h-tools>a,.h-tools>form,.h-settings>.r-card{border:1px solid #ffffffd9;background:var(--g-surface);border-radius:var(--g-radius);box-shadow:var(--g-shadow)}
.r-card{padding:var(--g-space)}h1,h2,h3{color:var(--ink)}h1{font-weight:750;letter-spacing:-.055em}.h-cover h2{color:#fff}.r-eyebrow{font-size:.68rem;letter-spacing:.18em}.h-welcome{padding:20px 0 34px}.h-welcome h1{font-size:clamp(2.4rem,5vw,4rem)}
.h-cover{border:1px solid #ffffff80;box-shadow:var(--g-shadow);border-radius:30px}.h-cover::after{background:linear-gradient(90deg,#112c32ed,#112c3285 60%,#112c3212)}.h-cover>div{padding:clamp(26px,4vw,48px)}.h-tag{background:#ffffff22;border:1px solid #ffffff40}
.h-loyalty,.h-digital-card{background:linear-gradient(120deg,#f5fbf8,#e4eeea);border:1px solid #fff;box-shadow:var(--g-shadow);border-radius:var(--g-radius)}.h-tools>a,.h-tools button{gap:9px;padding:24px}.h-tools svg{color:var(--brand-text)}.h-tools small{line-height:1.5}.h-tools>a:hover,.h-tools button:hover{background:#f8fbfc}.h-tools strong{letter-spacing:-.02em}
.r-button{border-radius:var(--g-small);min-height:48px;gap:8px;letter-spacing:-.01em;box-shadow:none}.r-button.secondary{background:#eff3f6;color:var(--brand-text);border:1px solid #d9e2e7}.r-button:disabled{opacity:.55;cursor:wait}.r-notice{background:#f1f8f4;border:1px solid #b9d3c5;color:#24503f;border-radius:var(--g-small)}
input,textarea,select{background:#fcfdfe;border:1px solid #c7d3df;border-radius:var(--g-small);box-shadow:none;min-height:48px}input:focus,textarea:focus,select:focus{border-color:var(--brand);outline:2px solid #c4d8e2;outline-offset:2px}fieldset{border-color:var(--line);border-radius:var(--g-small)}input[type=checkbox],input[type=radio]{accent-color:var(--brand)}
.r-bottom{background:#fbfcfff5;border:1px solid #fff;border-radius:24px;box-shadow:0 8px 28px #1e324516}.r-bottom a{min-height:52px;border-radius:17px}.r-food{border-radius:22px}.r-food img{aspect-ratio:1.35}.r-food>div{padding:20px}.r-food footer{margin-top:14px}.r-food footer span{color:var(--brand-text)}.r-hero{border-radius:28px;border:1px solid #fff}.r-categories a{background:#ffffffd9;border-color:#fff;border-radius:var(--g-small)}.r-status,.r-table{background:#e7eef2;color:#284e58;border-radius:12px}.r-progress span{background:#e9eff4;border-radius:10px;font-weight:600}.r-product-image{border-radius:28px}.r-product .r-card h1{font-size:clamp(2rem,4vw,3rem)}
.r-order-item{padding:16px 0}.r-order-head{align-items:start}.r-order-head strong{font-size:1.2rem}.r-kitchen-grid{gap:20px}.r-request{background:#f5f8fb;border-color:var(--line);border-radius:18px}.r-kitchen-grid>.r-card{margin-bottom:0}.r-staff .r-main{max-width:1440px}.r-staff .r-header nav{scrollbar-width:thin;overscroll-behavior:contain}.e-metrics strong{font-weight:750}.h-digital-card h2{color:#183f37}.h-footer{line-height:1.8}
.g-connection{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;margin:0 0 24px;background:#f8fbfff0;border:1px solid #fff;border-radius:20px;box-shadow:var(--g-shadow)}.g-connection p{margin:4px 0;font-size:.85rem}.g-connection strong{font-size:1rem}.g-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.g-dialog{border:1px solid #fff;border-radius:28px;padding:28px;width:min(520px,calc(100% - 28px));max-height:90dvh;overflow:auto;background:#f8fafc;color:var(--ink);box-shadow:0 30px 90px #11263840}.g-dialog::backdrop{background:#132b3d80}.g-dialog h2{font-size:1.8rem;margin:12px 0}.g-dialog video{width:100%;max-height:300px;border-radius:18px;background:#112331}.g-dialog .g-actions>*{flex:1}.g-skeleton{min-height:50px;background:#edf2f6;border-radius:14px}.g-pending{opacity:.6;pointer-events:none}.g-batch{border-top:1px solid var(--line);padding-top:16px}.g-participant{display:inline-block;font-size:.75rem;padding:5px 9px;border-radius:9px;background:#edf2f6;color:#435970}.g-table-section{grid-column:1/-1;margin:22px 0 0;padding:0 3px}.g-table-section h2{margin:5px 0}
@supports(backdrop-filter:blur(12px)){.r-header,.r-bottom{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}
@media(max-width:650px){body{background-attachment:scroll}.r-main{padding-top:20px}.r-header{padding:14px 18px}.h-cover{border-radius:24px}.h-tools>a,.h-tools button{padding:20px 16px}.h-welcome h1{font-size:2.45rem}.h-welcome p:last-child{font-size:.95rem}.r-food>div{padding:14px}.r-food h3{font-size:.94rem}.r-food p{font-size:.78rem}.r-card{padding:20px}.r-product form>.r-button{bottom:100px}.r-staff .r-header{position:static}.g-connection{padding:18px}.g-connection .g-actions{width:100%}.g-connection .g-actions>*{flex:1}.g-dialog{padding:22px}.s-game{padding:14px}.r-cart-row form{flex-wrap:wrap}.r-cart-row form input{max-width:80px}.h-settings{gap:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.r-card,.r-header,.r-bottom{background:#fff;backdrop-filter:none}}
@media print{body{background:#fff}.r-header,.r-bottom{display:none}.r-card{box-shadow:none}}

.g-dialog.sf-upgrade-dialog {
  width: min(33rem, calc(100% - 2rem));
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid #fff;
  background: #fcfdfb;
}
.sf-upgrade-dialog #plan-offer-title {
  margin: .45rem 0;
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  letter-spacing: -.04em;
}
.g-dialog.sf-upgrade-dialog p { font-size: .9rem; color: var(--muted); }
.sf-upgrade-dialog ul {
  margin: 1rem 0 1.4rem;
  padding-inline-start: 1.2rem;
  line-height: 1.65;
  font-size: .92rem;
}
.g-dialog > .sf-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .55rem;
}
.g-dialog > .sf-upgrade-actions .r-button, .sf-upgrade-hide {
  min-height: 44px;
  font-size: .85rem;
  padding: .55rem .75rem;
}
.sf-upgrade-hide {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.sf-workspace-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.sf-workspace-settings > .r-card { min-width: 0; }
.sf-workspace-copy { display: flex; flex-wrap: wrap; gap: .55rem; margin: .35rem 0 1rem; }
.sf-workspace-copy input { flex: 1 1 13rem; min-width: 0; margin: 0; }
.sf-workspace-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 1.2rem 0; }
.sf-workspace-plan dt { color: var(--muted); font-size: .82rem; }
.sf-workspace-plan dd { margin: .2rem 0 0; font-weight: 700; }

.sf-employee-editor {
  width: min(100%, 46rem);
  margin-inline: auto;
}
.sf-employee-editor .sf-employee-back { font-size: .85rem; }
.sf-employee-heading { margin: .6rem 0 1.5rem; }
.sf-employee-heading h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.sf-employee-heading p,
.sf-employee-mode {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.sf-employee-editor .sf-employee-form {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
}
.sf-employee-form-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.3rem;
}
.sf-employee-form-title > span {
  display: grid;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .8rem;
  background: #edf2e9;
  color: var(--brand-text);
}
.sf-employee-form-title svg { width: 1.2rem; height: 1.2rem; }
.sf-employee-form-title h2 { margin: 0; font-size: 1.1rem; }
.sf-employee-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.sf-employee-form label {
  display: grid;
  gap: .35rem;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: .875rem;
}
.sf-employee-form input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
}
.sf-employee-form small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.sf-employee-password {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.sf-employee-password small { display: block; margin-top: .35rem; }
.sf-employee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.4rem;
}
.sf-employee-actions .r-button { margin: 0; font-size: .875rem; }
.sf-employee-mode { margin-top: .6rem; }
.sf-employee-mode .ui-text-link {
  color: var(--brand-text);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 620px) {
  .sf-employee-fields { grid-template-columns: minmax(0, 1fr); }
  .sf-employee-actions .r-button { flex: 1 1 auto; justify-content: center; }
}

.r-staff {
  --workspace-glass: linear-gradient(145deg, #fffffff0, #ffffffb8);
  --workspace-rim: #fffffff2;
  --workspace-depth: inset 0 1px 0 #fff, 0 0 0 1px #62759825, 0 16px 38px -25px #29395764;
  background:
    radial-gradient(ellipse 55rem 32rem at 92% 0%, #e6dcf6, transparent 77%),
    radial-gradient(ellipse 56rem 36rem at 17% 2%, #d8e8fb, transparent 78%),
    radial-gradient(ellipse 52rem 34rem at 98% 100%, #ddede6, transparent 74%),
    #f3f5f9;
  background-attachment: fixed;
}
.r-staff .ui-sidebar,
.r-staff .r-header {
  background: #fafbfd;
  box-shadow: var(--workspace-depth);
}
.r-staff .ui-sidebar nav a { color: #445467; }
.r-staff .ui-nav-label,
.r-staff .ui-desktop-heading small { color: #526175; }
.r-staff .ui-sidebar nav a:hover { background: #ffffffe0; }
.r-staff .ui-sidebar nav a[aria-current="page"] {
  background: linear-gradient(145deg, #fff, #eaf0fa);
  box-shadow: var(--workspace-depth);
  color: #203447;
  font-weight: 700;
}
.r-staff .ui-sidebar nav a[aria-current="page"] i { background: var(--brand-text); }
.r-staff .r-header :is(.ui-workspace-pill, .ui-icon-btn) {
  border-color: var(--workspace-rim);
  background: #ffffffe0;
  box-shadow: 0 0 0 1px #62759822;
}
.r-staff .r-header .ui-icon-btn:hover { background: #fff; }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .r-staff .ui-sidebar,
  .r-staff .r-header {
    background: linear-gradient(150deg, #ffffffe0, #f8faffb3);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }
}
@media (min-width: 1001px) {
  .r-staff .ui-sidebar {
    inset: 12px auto 12px 12px;
    width: calc(var(--ui-rail) - 12px);
    border: 1px solid var(--workspace-rim);
    border-radius: 24px;
  }
  .r-staff .r-header {
    top: 12px;
    min-height: 72px;
    margin: 12px 30px 0 calc(var(--ui-rail) + 30px);
    padding: 12px 22px;
    border: 1px solid var(--workspace-rim);
    border-radius: 22px;
  }
}

.op-dashboard-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .85rem 1.5rem;
}
.op-dashboard-heading .r-eyebrow { margin: 0 0 .45rem; }
.op-dashboard-heading h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.1;
}
.ui-page-kitchen :is(.op-live-status, .op-history-totals, .op-table, .op-empty, [id="waiter-requests"]) {
  border: 1px solid var(--workspace-rim);
  background: var(--workspace-glass);
  box-shadow: var(--workspace-depth);
}
.op-dashboard-heading .op-live-status {
  max-width: min(100%, 30rem);
  margin: 0;
  padding: .55rem .9rem;
  border-radius: 999px;
  color: #405166;
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.r-staff .op-nav {
  width: fit-content;
  max-width: 100%;
  gap: .35rem;
  padding: .35rem;
  margin: 0 0 1.5rem;
  border: 1px solid #ffffffb3;
  border-radius: 18px;
  background: linear-gradient(155deg, #ffffff73, #ffffff24 53%, #ffffff4d);
  box-shadow: inset 0 1px 0 #ffffffb8, 0 0 0 1px #62759820, 0 12px 30px -22px #29395770;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
.r-staff .op-nav .r-button { border: 1px solid transparent; border-radius: 12px; text-align: center; }
.r-staff .op-nav .secondary {
  background: transparent;
  color: #35475a;
}
.r-staff .op-nav .secondary:hover { background: #ffffff59; }
.r-staff .op-nav .r-button[aria-current="page"] {
  background: #8099d546;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  border-color: #ffffffb3;
  box-shadow: inset 0 1px 0 #ffffffa6, 0 2px 7px #29395720;
  color: #203447;
}
.ui-page-kitchen .op-dashboard-heading { margin-bottom: 1.25rem; }
.ui-page-kitchen .op-alert { box-shadow: var(--workspace-depth); }
.ui-page-kitchen .op-alert:not(.has-new) { background: var(--workspace-glass); }
.ui-page-kitchen .op-lane > h2 > span {
  background: #f6f8fd;
  color: #405166;
  box-shadow: inset 0 0 0 1px #6475952e;
}
.ui-page-kitchen .op-empty { color: #4c5a6a; }

@media (max-width: 1000px) {
  .r-staff { background-attachment: scroll; }
}
@media (max-width: 620px) {
  .r-staff .op-nav { width: 100%; }
  .r-staff .op-nav .r-button { flex: 1 1 8rem; justify-content: center; }
}
@media (prefers-reduced-transparency: reduce), print {
  .r-staff {
    --workspace-glass: #fff;
    --workspace-depth: 0 0 0 1px #dbe2ec;
    background: #f3f5f9;
  }
  .r-staff .ui-sidebar,
  .r-staff .r-header,
  .r-staff .op-nav {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .r-staff .op-nav { box-shadow: var(--workspace-depth); }
  .r-staff .op-nav .secondary:hover,
  .r-staff .op-nav .r-button[aria-current="page"] { background: #eaf0fa; }
  .r-staff .ui-sidebar nav a[aria-current="page"] { background: #eaf0fa; }
}
@media print {
  .r-staff { --workspace-depth: none; background: #fff; }
}

.sf-sales-report .op-dashboard-heading { margin-bottom: 1.25rem; }
.sf-sales-report .op-dashboard-heading p:last-child { margin-bottom: 0; }
.sf-sales-report .r-card {
  background: var(--workspace-glass, #fff);
  border-color: var(--workspace-rim);
  box-shadow: var(--workspace-depth);
}
.sf-sales-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.sf-sales-filter label { flex: 1 1 10rem; margin: 0; min-width: 0; font-size: .875rem; }
.sf-sales-filter input { width: 100%; min-width: 0; }
.sf-sales-metrics,
.sf-sales-breakdown { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.sf-sales-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.sf-sales-breakdown { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: start; }
.sf-sales-metrics .r-card,
.sf-sales-breakdown .r-card { margin: 0; padding: 1.1rem; }
.sf-sales-metrics span { display: block; color: var(--muted); font-size: .85rem; }
.sf-sales-metrics strong { display: block; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.sf-sales-breakdown h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.sf-sales-breakdown .report-row {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.sf-sales-breakdown .report-row strong { flex: 0 0 auto; text-align: right; }

.ea-dashboard {
  --ea-tint: #edf2fb;
  --ea-tint: color-mix(in srgb, var(--brand) 12%, white);
  --ea-qr: color-mix(in srgb, var(--brand-text) 65%, #75839a);
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.ea-dashboard :is(.r-card, .ea-hero) {
  margin: 0;
  border: 1px solid var(--workspace-rim);
  background: var(--workspace-glass, #fff);
  box-shadow: var(--workspace-depth);
}
.ea-dashboard .ea-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3.5vw, 2.4rem);
  border-radius: var(--ui-radius, 22px);
  background: linear-gradient(125deg, #fffffff5 26%, var(--ea-tint));
}
.ea-hero > div { flex: 1 1 17rem; min-width: 0; }
.ea-hero .r-eyebrow { margin: 0 0 .45rem; }
.ea-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.09; overflow-wrap: anywhere; }
.ea-hero p:last-child { margin: .5rem 0 0; color: var(--muted); }
.ea-dates { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.ea-dates label { margin: 0; font-size: .8rem; }
.ea-dates input { max-width: 100%; }
.ea-period { display: flex; gap: .5rem; align-items: center; margin: 0; color: var(--muted); font-size: .85rem; }
.ea-period svg, .ea-icon svg { width: 1rem; height: 1rem; flex: none; }

.ea-kpis, .ea-charts, .ea-breakdown { display: grid; gap: 1rem; }
.ea-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.ea-charts { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.ea-breakdown { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ea-dashboard .ea-kpi { display: flex; gap: .75rem; align-items: start; padding: 1rem; border-radius: 16px; }
.ea-icon, .ea-rank {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .7rem;
  background: var(--ea-tint);
  color: var(--brand-text);
}
.ea-kpi small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.ea-kpi strong { display: block; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.3; }
.ea-dashboard strong, .ea-rows dd { font-variant-numeric: tabular-nums; }
.ea-dashboard .ea-panel { min-width: 0; padding: clamp(1rem, 2.4vw, 1.5rem); }
.ea-panel-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .55rem 1rem; margin-bottom: .9rem; }
.ea-panel-heading h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.ea-panel-heading p, .ea-subtle, .ea-empty { margin: 0; color: var(--muted); font-size: .85rem; }
.ea-empty { display: grid; min-height: 7rem; place-items: center; padding: .9rem; border-radius: .85rem; background: var(--ea-tint); text-align: center; }
.ea-charts .ea-empty { min-height: 11rem; }
.ea-legend { display: flex; flex-wrap: wrap; gap: .35rem .85rem; color: var(--muted); font-size: .77rem; }
.ea-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ea-legend span::before { content: ""; width: .95rem; border-top: 2px solid var(--brand); }
.ea-legend span:last-child::before { border-top: 2px dashed var(--ea-qr, var(--brand-text)); }
.ea-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .6rem; }
.ea-chart svg { display: block; width: 100%; height: clamp(8rem, 17vw, 13rem); overflow: visible; }
.ea-scale { display: flex; flex-direction: column; justify-content: space-between; text-align: right; }
.ea-axis { grid-column: 2; display: flex; justify-content: space-between; }
.ea-scale, .ea-axis { font-size: .72rem; color: var(--muted); }
.ea-grid-lines { fill: none; stroke: var(--line); vector-effect: non-scaling-stroke; }
.ea-fill-start { stop-color: var(--brand); stop-opacity: .26; }
.ea-fill-end { stop-color: var(--brand); stop-opacity: .035; }
.ea-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ea-line-qr { stroke: var(--ea-qr, var(--brand-text)); stroke-width: 1.75; stroke-dasharray: 5 4; }
.ea-point { fill: var(--brand); }
.ea-point-qr { fill: none; stroke: var(--ea-qr, var(--brand-text)); stroke-width: 2; }
.ea-chart-data { margin-top: .85rem; }
.ea-chart-data summary, .ea-methodology summary { cursor: pointer; color: var(--brand-text); font-weight: 700; }
.ea-chart-data summary { font-size: .85rem; }
.ea-table-wrap { max-height: 14rem; overflow: auto; margin-top: .5rem; }
.ea-table-wrap table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ea-table-wrap :is(th, td) { padding: .4rem; border-bottom: 1px solid var(--line); text-align: left; }

.ea-ring { display: grid; width: min(100%, 9rem); margin: .2rem auto .9rem; place-items: center; }
.ea-ring > * { grid-area: 1 / 1; }
.ea-ring svg { width: 100%; }
.ea-ring circle { fill: none; stroke-width: 12; }
.ea-ring-track { stroke: var(--ea-tint); }
.ea-ring-value { stroke: var(--brand); stroke-linecap: round; }
.ea-ring div { text-align: center; }
.ea-ring strong { display: block; font-size: 1.5rem; line-height: 1.15; }
.ea-ring span { font-size: .72rem; color: var(--muted); }
.ea-rows, .ea-dishes { margin: 0; padding: 0; font-size: .87rem; }
.ea-rows > div, .ea-dishes li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.ea-rows dd, .ea-dishes strong { margin: 0 0 0 auto; flex: none; font-weight: 700; }
.ea-dishes li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.ea-rank { width: 1.65rem; height: 1.65rem; font-weight: 700; }
.ea-subtle { margin-top: .45rem; }
.ea-methodology p, .ea-methodology li { color: var(--muted); font-size: .875rem; }
.ea-methodology li + li { margin-top: .4rem; }

@media (max-width: 1180px) {
  .ea-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ea-dates { width: 100%; }
  .ea-dates label { flex: 1 1 7.5rem; min-width: 0; }
  .ea-dates input { width: 100%; }
  .ea-dates .r-button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-transparency: reduce), print {
  .ea-dashboard .ea-hero { background: #fff; }
}
