/* GRADUS panels v3 (2026-10-15): the scale and rhythm of the approved Codex mockups (docs/design/paineis-v2).
   Bigger type, roomier cards and tables, a calmer sidebar. Loaded after panels.css and panels-v2.css. */
body { font-size: 15px; }

/* sidebar */
.app { grid-template-columns: 272px minmax(0, 1fr); }
.side { padding: 28px 16px 20px; gap: 4px; }
.side-brand { flex-wrap: wrap; gap: 10px 12px; padding: 4px 12px 26px; font-size: 22px; letter-spacing: 0.02em; font-weight: 900; }
.side-brand svg { width: 34px; height: 34px; }
.side-brand small { margin-left: 46px; flex-basis: auto; font-size: 11px; letter-spacing: 0.12em; padding: 4px 12px; }
.side-brand span + small { order: 3; }
.side a.nav { min-height: 48px; gap: 14px; padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.side a.nav svg { width: 21px; height: 21px; }
.side a.nav.on { background: var(--surface2); color: var(--snow); }
.side a.nav .badge { min-width: 22px; height: 22px; font-size: 12px; }
.me { padding: 14px; border-radius: 16px; }
.me b { font-size: 14px; }
.me small { font-size: 12.5px; }

/* header */
.top { padding: 30px 40px 20px; gap: 16px; align-items: flex-end; border-bottom: 0; }
.top h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.top .sub { font-size: 16px; margin-top: 6px; color: var(--mist); }
.top-actions { align-self: center; gap: 12px; }
.content { padding: 12px 40px 72px; gap: 26px; }
.demo-bar { padding: 8px 40px; font-size: 13px; }
.hello h1 { font-size: 34px; }
.hello .when { font-size: 14.5px; }

/* cards & numbers */
.card { padding: 26px; gap: 18px; border-radius: 22px; }
.card-h h2, .card-h h3 { font-size: 20px; letter-spacing: -0.02em; }
.card-h .sub { font-size: 14px; }
.kpi { padding: 24px 26px; border-radius: 22px; gap: 8px; }
.kpi .lbl { font-size: 14.5px; }
.kpi .val { font-size: 44px; }
.kpi .delta { font-size: 13.5px; }
.kpis3 .kpi .val { font-size: 52px; }

/* buttons, chips, tags, inputs */
.btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 13px; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 11px; }
.btn-icon { width: 44px; min-height: 44px; }
.chip { min-height: 40px; padding: 0 16px; font-size: 14px; }
.tag { font-size: 12.5px; padding: 5px 11px; }
.pill { font-size: 12.5px; padding: 6px 12px; }
.input, .select, .textarea { min-height: 46px; font-size: 15px; border-radius: 13px; padding: 0 14px; }
.textarea { padding: 12px 14px; }
.field { font-size: 13.5px; gap: 8px; }
.seg2 button { min-height: 40px; font-size: 14px; padding: 0 16px; }
.seg button { font-size: 13.5px; padding: 8px 14px; }
.tabs a { padding: 14px 18px 16px; font-size: 15px; }
.tabs a.on { border-bottom-width: 3px; }

/* tables & lists */
.table-wrap { border-radius: 20px; background: var(--surface); }
th { font-size: 12px; padding: 16px 20px; background: transparent; }
td { padding: 16px 20px; font-size: 14.5px; }
.cell-person { gap: 14px; }
.cell-person b { font-size: 15px; }
.cell-person small { font-size: 13px; }
.av { width: 42px; height: 42px; font-size: 14px; }
.av.sm { width: 36px; height: 36px; font-size: 12.5px; }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.li { padding: 16px 6px; gap: 16px; }
.li small { font-size: 13.5px; }
.bar { height: 8px; }
.meter b { width: 46px; font-size: 14px; }
.need { grid-template-columns: 10px 36px minmax(140px, 0.8fr) minmax(0, 1.4fr) auto; padding: 14px 4px; }
.need-name { font-size: 15px; }
.need-why { font-size: 14.5px; }
.trow b { font-size: 15px; }
.trow small { font-size: 13px; }

/* chat */
.chat { min-height: 640px; border-radius: 22px; grid-template-columns: 340px minmax(0, 1fr); }
.chat-list a { padding: 16px 18px; gap: 14px; }
.chat-list a b { font-size: 15px; }
.chat-list a small { font-size: 13.5px; }
.chat-msgs { padding: 26px; gap: 14px; }
.bubble { padding: 13px 17px; border-radius: 18px; font-size: 15px; }
.bubble small { font-size: 12px; }
.chat-form { padding: 16px; gap: 12px; }

/* modal & toast */
.modal { width: min(620px, 100%); padding: 32px; border-radius: 26px; gap: 18px; }
.modal.wide { width: min(880px, 100%); }
.modal h2 { font-size: 26px; }
.toast { font-size: 14.5px; }

/* login (mockup 01): brand and promise on the left, the form on the right */
.login.v3 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; padding: 48px clamp(24px, 6vw, 96px); place-items: center stretch; }
.login-hero { display: flex; flex-direction: column; gap: 26px; max-width: 560px; }
.login-hero .lock-up { display: flex; align-items: center; gap: 18px; font-weight: 900; font-size: 64px; letter-spacing: 0.04em; line-height: 1; }
.login-hero .lock-up svg { width: 64px; height: 64px; }
.login-hero h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.login-hero p { font-size: 18px; color: var(--mist); max-width: 420px; }
.login-hero .tagline { font-size: 12px; font-weight: 800; letter-spacing: 0.24em; color: var(--mist); margin-top: 40px; }
.login.v3 .login-card { width: min(470px, 100%); justify-self: center; padding: 40px; gap: 16px; border-radius: 26px; }
.login.v3 .login-card h1 { font-size: 34px; letter-spacing: -0.035em; }
.login.v3 .login-card .muted { font-size: 15px; }
.login.v3 .login-brand { display: none; }
.login-input { position: relative; }
.login-input > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mist); pointer-events: none; }
.login-input .input { padding-left: 44px; min-height: 52px; }
.login-input .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--mist); cursor: pointer; display: grid; place-items: center; }
.login-input .eye svg { width: 18px; height: 18px; }
.login.v3 .btn-p { min-height: 54px; font-size: 16px; }
.login.v3 .login-foot { font-size: 13.5px; }
@media (max-width: 900px) {
  .login.v3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .login-hero { align-items: flex-start; }
  .login-hero .lock-up { font-size: 40px; }
  .login-hero .lock-up svg { width: 42px; height: 42px; }
  .login-hero .tagline { display: none; }
}

/* page header helpers used by the v3 views */
.ph-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dotchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line2); background: var(--surface); color: var(--snow); font-weight: 700; font-size: 14px; cursor: pointer; }
.dotchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--mist)); }
.dotchip.on { background: var(--volt); color: var(--void); border-color: var(--volt); }
.dotchip .n { color: var(--mist); font-weight: 800; }
.dotchip.on .n { color: var(--void); opacity: 0.7; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-ok { color: var(--success); background: rgba(61, 220, 151, 0.1); border-color: rgba(61, 220, 151, 0.25); }
.s-warn { color: var(--warning); background: rgba(245, 183, 0, 0.1); border-color: rgba(245, 183, 0, 0.25); }
.s-bad { color: var(--danger); background: rgba(255, 92, 92, 0.1); border-color: rgba(255, 92, 92, 0.28); }
.s-off { color: var(--mist); background: var(--surface2); border-color: var(--line2); }
.big-kpi { display: flex; align-items: flex-start; gap: 18px; }
.big-kpi .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.big-kpi .ic svg { width: 24px; height: 24px; }
.big-kpi .lbl { color: var(--mist); font-size: 14.5px; font-weight: 600; }
.big-kpi .val { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.big-kpi small { color: var(--mist); font-size: 14px; }
.meter-pct { display: grid; grid-template-columns: minmax(80px, 1fr) 48px; align-items: center; gap: 12px; }
.meter-pct b { text-align: right; font-size: 14.5px; }
.row-link { color: var(--mist); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.row-link svg { width: 16px; height: 16px; }
.row-link:hover { color: var(--snow); }
.kpis3 .kpi .lbl { font-size: 15px; }
@media (max-width: 1180px) {
  .top { padding: 22px 24px 14px; }
  .content { padding: 10px 24px 64px; }
  .top h1 { font-size: 30px; }
}
@media (max-width: 860px) {
  .top h1 { font-size: 26px; }
  .top .sub { font-size: 14px; }
  .kpis3 .kpi .val { font-size: 40px; }
}
.mstack { display: flex; flex-direction: column; gap: 7px; max-width: 150px; }
.mstack b { font-size: 14.5px; }
.pal-btn { width: 44px; min-height: 44px; }
.pal-btn svg { width: 19px; height: 19px; }
.kpi.big-kpi { flex-direction: row; }
.segbar { display: flex; gap: 5px; margin-top: 10px; }
.segbar i { flex: 1; height: 8px; border-radius: 4px; background: var(--surface3); }
.segbar i.on { background: var(--volt); }
.btn-icon { padding: 0; }
.btn svg { flex: none; }
.chart text { font-size: 12px; }
/* programas (mockup 05) */
.pcard { gap: 16px; }
.pcard:hover { border-color: var(--line2); }
.prog-h { display: flex; align-items: flex-start; gap: 16px; }
.prog-h h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 800; }
.prog-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 22%, var(--surface2)); color: var(--c); }
.prog-ic svg { width: 26px; height: 26px; }
.prog-meta { display: flex; gap: 18px; margin-top: 6px; color: var(--mist); font-size: 14px; }
.prog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prog-meta svg { width: 16px; height: 16px; }
.prog-desc { font-size: 14.5px; line-height: 1.5; }
.prog-phases { display: flex; flex-direction: column; gap: 12px; }
.prog-bar { display: flex; gap: 4px; height: 12px; }
.prog-bar span { border-radius: 6px; }
.prog-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.prog-legend span { display: grid; grid-template-columns: 10px auto; column-gap: 8px; align-items: center; }
.prog-legend i { width: 10px; height: 10px; border-radius: 50%; }
.prog-legend b { font-size: 13.5px; }
.prog-legend small { grid-column: 2; color: var(--mist); font-size: 12.5px; }
.sec-title { font-size: 26px; letter-spacing: -0.03em; font-weight: 800; }
.tpl { flex-direction: row; align-items: center; gap: 16px; }
.tpl b { display: block; font-size: 15.5px; }
.tpl small { display: block; font-size: 13px; margin-top: 2px; }
.tpl .prog-ic { width: 48px; height: 48px; border-radius: 14px; }
/* relatórios (mockup 08) */
.rep-hero { flex-direction: row; align-items: center; gap: 32px; flex-wrap: wrap; }
.rep-big { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.rep-big h2 { font-size: 20px; }
.rep-pct { font-size: 96px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.rep-chart { flex: 1; min-width: 320px; }
/* financeiro (mockup 09) */
.big-kpi .ic.round { border-radius: 50%; border: 2px solid; background: transparent; width: 48px; height: 48px; }
.fees { display: flex; flex-direction: column; }
.fee { display: grid; grid-template-columns: 42px minmax(160px, 1.4fr) minmax(140px, 1fr) 120px 130px auto; align-items: center; gap: 16px; padding: 16px 4px; border-top: 1px solid var(--line); }
.fee:first-child { border-top: 0; }
.fee-who b { display: block; font-size: 15.5px; }
.fee-who small { color: var(--mist); font-size: 13px; }
.fee-when { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: 14px; }
.fee-when svg { width: 17px; height: 17px; }
.fee-when.late { color: var(--danger); }
.fee-amt { font-size: 17px; text-align: right; }
.fee-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 1180px) { .fee { grid-template-columns: 42px minmax(0, 1fr) auto; } .fee-when, .fee-amt { grid-column: 2; text-align: left; } .fee .status { grid-column: 3; grid-row: 1; } .fee-acts { grid-column: 2 / 4; justify-content: flex-start; } }
.card.tpl { flex-direction: column; align-items: stretch; gap: 16px; }
.tpl-h { display: flex; gap: 14px; align-items: flex-start; }
.tpl-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.tpl-f span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.tpl-f svg { width: 16px; height: 16px; }
td.num, .nowrap { white-space: nowrap; }
/* mensagens (mockup 07) */
.chat-tools { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 17px; }
.chat-head small { color: var(--mist); font-size: 13.5px; }
.chat-list { max-height: 76vh; }
/* nutri hoje / clientes (mockups 10–11) */
.overline { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--mist); }
.ncard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface2); border: 1px solid var(--line); min-width: 0; }
.ncard:hover { border-color: var(--line2); }
.ncard-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--c); border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ncard-ic svg { width: 22px; height: 22px; }
.ncard b { display: block; font-size: 15.5px; }
.ncard small { display: block; color: var(--mist); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncard > svg { width: 18px; height: 18px; color: var(--mist); flex: none; }
.kpi.big-kpi .ic { margin-left: auto; }
.tdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.tcount { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 8px; background: var(--surface3); color: var(--mist); font-size: 12.5px; font-weight: 800; }
.tabs a.on .tcount { background: rgba(184, 255, 61, 0.14); color: var(--volt); }
.split { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.split.split-stack { grid-template-columns: minmax(0, 1fr); }
.split.split-stack > :last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1280px) { .split { grid-template-columns: minmax(0, 1fr); } }
/* check-ins (mockup 13) */
.ck-top { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.6fr); }
@media (max-width: 1180px) { .ck-top { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: var(--line2); }
.timeline li { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.tl-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--c); border: 1.5px solid var(--c); background: var(--surface); z-index: 1; }
.tl-ic svg { width: 19px; height: 19px; }
.timeline small { display: block; color: var(--mist); font-size: 13px; }
.timeline b { display: block; font-size: 15px; }
.timeline span:not(.tl-ic) { display: block; font-size: 14px; color: var(--success); font-weight: 700; }
.meal-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 52px; gap: 14px; align-items: center; font-size: 15px; }
.meal-bar .bar { height: 10px; }
.meal-bar b { text-align: right; }
/* alimentos (mockup 14) */
.food-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface2); border: 1px solid var(--line2); color: var(--mist); }
.food-ic svg { width: 18px; height: 18px; }
th.r, td.r { text-align: right; }
.pager { display: flex; align-items: center; gap: 6px; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--snow); font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.pg svg { width: 16px; height: 16px; }
.pg.on { background: var(--volt); color: var(--void); border-color: var(--volt); }
.pg[disabled] { opacity: 0.35; cursor: default; }
.card-h > div > h2 + .sub, .card-h > div > h3 + .sub { display: block; margin-top: 4px; }
.card-h > div { min-width: 0; }
/* academia hoje (mockup 15) */
.kpi.stat { flex-direction: column; padding: 26px 28px; }
.kpi.stat:hover { border-color: var(--line2); }
.stat-ic { display: block; color: var(--volt); margin-bottom: 14px; }
.stat-ic svg { width: 30px; height: 30px; }
.kpi.stat .val { font-size: 64px; line-height: 1; }
.kpi.stat .lbl { font-size: 17px; margin-top: 8px; display: block; }
.groups { display: flex; flex-direction: column; }
.group-row { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-top: 1px solid var(--line); }
.group-row:first-child { border-top: 0; }
.group-row:hover b { color: var(--volt); }
.group-row .g-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--mist); border: 1px solid var(--line2); }
.group-row .g-ic svg { width: 21px; height: 21px; }
.group-row b { display: block; font-size: 17px; }
.group-row small { display: block; color: var(--mist); font-size: 14px; }
.group-row > svg { width: 18px; height: 18px; color: var(--mist); }
.slots { display: flex; flex-direction: column; gap: 18px; }
.slot-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px; gap: 14px; align-items: center; font-size: 15px; }
.slot-row .bar { height: 10px; }
.slot-row b { text-align: right; }
/* avaliação física (mockup 17) */
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.m-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surface2); cursor: text; position: relative; }
.m-tile:focus-within { border-color: var(--volt); }
.m-tile > span:first-child { font-size: 14px; color: var(--mist); font-weight: 600; }
.m-val { display: flex; align-items: baseline; gap: 6px; }
.m-val input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--snow); font: 800 26px/1.1 inherit; letter-spacing: -0.02em; padding: 0; -moz-appearance: textfield; }
.m-val input::-webkit-outer-spin-button, .m-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m-val input:focus { outline: none; }
.m-val em { font-style: normal; font-size: 18px; font-weight: 700; color: var(--snow); }
.m-delta { position: absolute; right: 16px; bottom: 16px; font-size: 14px; color: var(--mist); }
.m-title { font-size: 20px; letter-spacing: -0.02em; margin-top: 10px; }
.m-more summary { cursor: pointer; color: var(--mist); font-weight: 700; font-size: 14px; padding: 6px 0; }
.m-more .m-grid { margin-top: 10px; }
.m-progs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-prog { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--surface2); cursor: pointer; position: relative; }
.m-prog input { position: absolute; opacity: 0; pointer-events: none; }
.m-prog:has(input:checked) { border-color: var(--volt); background: rgba(184, 255, 61, 0.05); }
.m-prog:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 2px; }
.m-prog b { display: block; font-size: 16px; }
.m-prog small { display: block; color: var(--mist); font-size: 13.5px; }
.m-prog-ic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mist); flex: none; }
.m-prog-ic svg { width: 24px; height: 24px; }
.m-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.m-prog:has(input:checked) .m-radio { border-color: var(--volt); box-shadow: inset 0 0 0 4px var(--surface2), inset 0 0 0 10px var(--volt); }
.m-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 700px) { .m-grid, .m-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* matrícula (mockup 18): numbered circles on one line, labels underneath */
.stepper { position: relative; gap: 0; padding: 4px 0 6px; }
.stepper::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 1px; background: var(--line2); }
.stepper li { flex-direction: column; gap: 10px; background: none; border: 0; padding: 0; font-size: 15.5px; position: relative; }
.stepper .n { width: 36px; height: 36px; background: var(--void); border-width: 2px; font-size: 15px; }
.stepper li.on { color: var(--volt); }
.stepper li.on .n { box-shadow: 0 0 0 5px rgba(184, 255, 61, 0.15); }
.stepper li.done { color: var(--snow); }
.enroll { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.invite-side .code { font-size: 30px !important; letter-spacing: 0.06em; }
@media (max-width: 980px) { .stepper::before { display: none; } }
.assign-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface2); }
.assign-row b { display: block; font-size: 14.5px; }
.assign-row small { display: block; font-size: 12.5px; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 18px 18px 12px; flex-wrap: wrap; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .content, .demo-bar { padding-left: 18px; padding-right: 18px; }
  .kpi .val, .big-kpi .val { font-size: 30px; }
  .kpi.stat .val { font-size: 46px; }
  .rep-pct { font-size: 64px; }
  .card { padding: 20px; }
  .fee { grid-template-columns: 42px minmax(0, 1fr) auto; }
}

/* the hidden attribute always wins over component display rules (e.g. .card { display: flex }) */
[hidden] { display: none !important; }
