/* Brasa: shared visual language. Structural components remain in app.css. */
:root {
  --bg: #f7f7f4;
  --surface: #fff;
  --surface-solid: #fff;
  --text: #282923;
  --muted: #74766d;
  --line: #e7e8e1;
  --shadow: 0 3px 12px #25281f03;
  --blue: #c85838;
  --green: #348267;
  --amber: #b48532;
  --red: #c75149;
  --purple: #777499;
  --pink: #b06f7f;
  --brand: #c85838;
  --sidebar-width: 236px;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
::selection { color: #632e20; background: #f6d9c9; }
:focus-visible { outline: 3px solid #c8583880; outline-offset: 4px; }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: middle; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 33px 18px 18px; overflow-x: hidden; overflow-y: auto; color: #cbc9c1; background: #252823; }
.brand { gap: 11px; width: fit-content; }
.sidebar > .brand { margin: 0 13px 36px; }
.brand-mark { width: 35px; height: 39px; border-radius: 11px; background: var(--brand); color: #fff8e9; }
.brand-mark .icon { width: 27px; height: 27px; stroke-width: 1.8; }
.brand-name { display: flex; align-items: baseline; gap: 5px; color: #fbfaf4; font-size: 27px; font-weight: 700; letter-spacing: -1.1px; }
.brand-name > span { color: #a8aa9e; font-size: 22px; font-weight: 350; }
.workspace-label { display: flex; align-items: center; gap: 10px; margin: 0 2px 32px; padding: 14px 8px; border-top: 1px solid #ffffff10; border-bottom: 1px solid #ffffff10; }
.workspace-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff15; border-radius: 8px; color: #babdac; }
.workspace-label strong { display: block; color: #e0e0d5; font-size: 12px; font-weight: 600; }
.workspace-label small { display: block; margin-top: 4px; color: #95998c; font-size: 10px; }
.nav-caption { margin: 0 14px 12px; color: #8b9183; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; }
.side-nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 14px; border-radius: 8px; color: #b9bcb0; font-size: 12px; transition: background .18s, color .18s; }
.nav-link > .icon { width: 18px; height: 18px; color: #989e90; }
.nav-link > .icon:last-child:not(:first-child) { width: 14px; margin-left: auto; color: #ebc6b5; }
.nav-link:hover { background: #ffffff09; color: #fff; }
.nav-link.active { color: #ffeadc; background: #503c2f; font-weight: 600; }
.nav-link.active > .icon:first-child { color: #e99a77; }
.sidebar-bottom { margin-top: auto; padding-top: 38px; }
.sidebar-note { margin: 0 13px 25px; padding-top: 30px; color: #a4aa98; }
.sidebar-note > .icon { width: 22px; height: 26px; margin-bottom: 9px; color: #c08e69; }
.sidebar-note p { margin: 0; font-size: 11px; line-height: 1.8; }
.sidebar-note strong { font-weight: 400; color: #747d6c; }
.account { display: flex; align-items: center; gap: 10px; padding: 17px 7px 0; border-top: 1px solid #ffffff12; }
.avatar, .header-avatar { display: grid; flex: none; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #e8ddcb; color: #775b41; font-size: 12px; font-weight: 600; }
.account strong { display: block; color: #e5e7db; font-size: 12px; font-weight: 500; }
.account small { display: block; margin-top: 3px; color: #a2a997; font-size: 10px; }
.account .icon-button { margin-left: auto; color: #a5ab9e; }
.icon-button { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--brand); background: #c8583810; }
.app-frame { display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--sidebar-width); }
.app-header { display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb, .header-meta, .today { display: flex; align-items: center; gap: 17px; }
.breadcrumb { color: #93968c; font-size: 11px; }
.breadcrumb > .icon { width: 12px; height: 12px; color: #a6aa9e; }
.breadcrumb strong { color: #44483c; font-weight: 500; }
.today { gap: 8px; color: var(--muted); font-size: 11px; }
.today .icon { width: 15px; height: 15px; }
.header-avatar { width: 30px; height: 30px; border: 3px solid #faf9f4; outline: 1px solid #e9e6dc; font-size: 10px; }
.menu-toggle { display: none; }
#main-content { flex: 1; min-width: 0; outline: none; }
.shell { width: 100%; max-width: 1700px; padding: 34px 36px 45px; }
.page-title { align-items: center; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 9px; color: #838477; font-size: 9px; line-height: 1.5; font-weight: 650; letter-spacing: 1.55px; }
.page-title .eyebrow { color: var(--brand); }
h1 { font-size: clamp(25px, 2.45vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -1.25px; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.4px; }
h3 { font-size: 13px; font-weight: 600; }
.title-dot { color: var(--brand); }
.page-description { max-width: 610px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.sync-card { position: relative; min-width: 215px; max-width: 290px; padding: 1px 0 1px 20px; gap: 5px; border: 0; border-left: 2px solid #e2e3da; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.sync-card .pill { justify-self: start; order: 1; min-height: 21px; margin-top: 3px; font-size: 9px; }
.sync-card small { font-size: 10px; line-height: 1.4; }
.sync-card small:last-child { font-size: 9px; }
.sync-card strong { color: #515749; font-size: 12px; font-weight: 600; }
.panel, .metric-card, .login-panel { border-radius: 12px; backdrop-filter: none; }
.panel { min-width: 0; padding: 23px; }
.panel-header { align-items: center; margin-bottom: 23px; }
.panel-header .eyebrow { margin-bottom: 4px; }
.button { gap: 8px; min-height: 39px; padding: 0 14px; border-radius: 7px; background: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 1px 2px #22222203; }
.button .icon { width: 15px; height: 15px; }
.button:hover { transform: none; background: #f8f8f3; border-color: #ced0c5; }
.button.primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 2px 3px #84351912; }
.button.primary:hover { background: #ac492f; border-color: #ac492f; }
.button.ghost { background: transparent; }
.button.compact { min-height: 32px; padding: 0 10px; font-size: 10px; }
.button:disabled { opacity: .65; }
.sync-config { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 24px; padding: 18px 22px; border: 1px solid #e6e5db; border-radius: 10px; background: #f0f1e9; box-shadow: none; }
.sync-config h2 { font-size: 14px; letter-spacing: -.2px; }
.sync-config .eyebrow { margin-bottom: 4px; color: #758066; font-size: 8px; }
.sync-config p:not(.eyebrow) { margin-top: 5px; font-size: 11px; }
.sync-config .credential-state { display: none; }
.sync-actions { gap: 8px; }
.sync-actions .button.ghost { border-color: transparent; }
.metric-grid { gap: 13px; }
.metric-card { min-width: 0; min-height: 144px; padding: 17px; box-shadow: var(--shadow); }
.metric-card::before { display: none; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.metric-label { color: #707665; font-size: 11px; font-weight: 500; line-height: 1.4; }
.metric-symbol { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--brand); background: #faeee8; }
.metric-symbol .icon { width: 14px; height: 14px; }
.accent-green .metric-symbol { color: var(--green); background: #eaf3ec; }
.accent-amber .metric-symbol { color: var(--amber); background: #f8f2e6; }
.accent-red .metric-symbol { color: var(--red); background: #faece8; }
.accent-purple .metric-symbol { color: var(--purple); background: #f0eef6; }
.accent-pink .metric-symbol { color: var(--pink); background: #f8edf0; }
.metric-card strong { margin: 15px 0 7px; color: #343a2d; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.metric-card small { display: block; color: #78806d; font-size: 11px; line-height: 1.45; }
.metric-trend, .trend-badge { min-height: 20px; padding: 4px 7px; font-size: 9px; font-weight: 500; white-space: normal; text-align: center; line-height: 1.3; }
.metric-trend { margin-top: 10px; }
.evolution-panel { margin-top: 24px; }
.evolution-grid { gap: 12px; }
.evolution-card { display: flex; justify-content: space-between; min-height: 106px; gap: 10px; padding: 15px; border-color: #eeeeE7; border-radius: 9px; background: #fafbf7; }
.evolution-card::before { display: none; }
.evolution-card > div:first-child { min-width: 0; }
.evolution-card strong { margin: 12px 0 6px; font-size: 23px; font-weight: 600; letter-spacing: -.6px; }
.evolution-card small { font-size: 9px; }
.evolution-side { flex: 0 1 105px; }
.sparkline { width: 76px; height: 30px; }
.sparkline i { border-radius: 3px 3px 0 0; opacity: .75; }
.dashboard-grid { gap: 22px; margin-top: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(295px, 1fr); }
.chart-block, .table-block { padding: 17px; border-radius: 9px; background: #fcfcfa; }
.chart-block header { margin-bottom: 20px; }
.chart-block header > strong { font-size: 14px; font-weight: 600; }
.stack-bar { height: 7px; }
.legend-list { gap: 11px; margin-top: 17px; }
.legend-row, .bar-row { font-size: 10px; }
.legend-row strong, .bar-row strong { font-weight: 600; }
.bar-row { grid-template-columns: 40px minmax(0, 1fr) 34px; }
.bar-list { gap: 15px; }
.bar-track { height: 6px; }
.mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-grid .metric-card { min-height: 110px; background: #fff; }
.mini-grid .metric-card strong { font-size: 25px; }
.rank-grid { display: grid; gap: 12px; }
.endpoint-panel { margin-top: 24px; }
.pill { min-width: auto; min-height: 23px; padding: 4px 9px; font-size: 9px; line-height: 1.4; font-weight: 600; }
.pill.ok, .pill.good, .trend-badge.trend-good, .metric-trend.trend-good { color: #397759; background: #eaf4eb; }
.pill.bad, .trend-badge.trend-bad, .metric-trend.trend-bad { color: #b34d3a; background: #faebe5; }
.pill.stable, .trend-badge.trend-stable, .metric-trend.trend-stable { color: #946e26; background: #f7f0dd; }
.pill.neutral, .trend-badge.trend-neutral, .metric-trend.trend-neutral { color: #737b67; background: #eef0e8; }
.reports-shell .report-panel, .report-filter-panel { margin-top: 22px; }
.report-filter-panel .panel-header { margin-bottom: 19px; }
.reports-filter-form { grid-template-columns: minmax(130px, 1.2fr) minmax(80px, .65fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(160px, 1.25fr) auto; gap: 13px; }
.reports-filter-form label, .members-search-form label, .settings-form label, .login-form label { min-width: 0; color: #646a5b; font-size: 11px; font-weight: 600; }
.reports-filter-form input, .reports-filter-form select, .members-search-form input, .settings-form input, .login-form input { min-height: 42px; border-color: #e3e5db; border-radius: 7px; background: #fdfefb; color: #3e4535; font-size: 11px; }
input::placeholder { color: #989f8f; }
.reports-filter-form select { padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23777e6b' stroke-width='1.5'%3E%3Cpath d='m5 6 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.reports-filter-form .button { min-height: 42px; }
.reports-filter-form input:focus, .reports-filter-form select:focus, .members-search-form input:focus, .settings-form input:focus, .login-form input:focus, .sync-form input:focus { border-color: #bc7154; box-shadow: 0 0 0 3px #c8583810; }
.report-summary-grid { gap: 13px; margin-bottom: 23px; }
.report-summary-grid .metric-card { min-height: 126px; background: #fafbf7; border-color: #eaede2; }
.report-summary-grid .metric-card strong { margin-top: 13px; font-size: 28px; }
.report-toolbar { gap: 8px; }
.report-toolbar > .pill { background: transparent; color: var(--muted); }
.table-scroll { max-width: 100%; border: 1px solid var(--line); border-radius: 9px; scrollbar-width: thin; scrollbar-color: #d7dbcf transparent; }
table { font-size: 12px; }
th { padding: 13px 14px; color: #6d765f; background: #f5f7ef; font-size: 10px; font-weight: 600; white-space: nowrap; }
td { padding: 14px; color: #535c46; vertical-align: middle; line-height: 1.5; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf6; }
.report-table td:nth-child(3) { color: #35412b; font-weight: 600; }
.report-table td { min-width: 64px; }
.report-table td:first-child { min-width: 36px; color: #909884; }
.report-table td:nth-child(3), .report-table td:nth-child(4) { min-width: 130px; }
.report-actions { min-width: 120px; }
td.report-actions { display: table-cell; white-space: nowrap; }
td.report-actions a + a { margin-left: 5px; }
.frequency-cell { display: grid; gap: 7px; justify-items: end; }
.frequency-cell strong { font-weight: 600; }
.frequency-track { display: block; width: 65px; height: 4px; overflow: hidden; border-radius: 5px; background: #edefe7; }
.frequency-track i { display: block; height: 100%; border-radius: inherit; background: #9da68d; }
.frequency-track.good i, .frequency-track.ok i { background: var(--green); }
.frequency-track.bad i { background: var(--red); }
.frequency-track.stable i { background: var(--amber); }
.integration-details { margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.integration-details summary { padding: 18px 22px; color: var(--muted); cursor: pointer; font-size: 12px; }
.integration-details .endpoint-panel { margin: 0; border: 0; }
.muted-cell { padding: 35px 18px; color: #818873; line-height: 1.7; }
.report-section, .field-item, .progress-card { border-radius: 9px; background: #f9faf5; }
.settings-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; }
.settings-form { gap: 19px; }
.form-hint { font-size: 10px; line-height: 1.6; }
.credential-state { margin-top: 8px; }
.settings-grid .panel-header { align-items: flex-start; }
.settings-grid .panel-header .credential-state { margin-top: 0; justify-content: flex-end; }
.login-error { padding: 13px 15px; color: #a4513a; background: #faf0e9; border: 1px solid #f3dfd1; font-size: 11px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.participant-modal { border-radius: 15px; padding: 25px; }
.modal-backdrop { background: #20291abb; }
.app-footer { display: flex; justify-content: space-between; gap: 16px; margin: 0 36px; padding: 21px 0; border-top: 1px solid var(--line); color: #979d8c; font-size: 9px; }
.footer-dot { margin: 0 7px; color: #b4ad98; }
.skip-link { position: fixed; left: 260px; top: -80px; z-index: 80; padding: 12px 18px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 10px; }
.nav-backdrop { display: none; }
/* Entry screen */
.login-page { min-height: 100vh; background: #f7f7f2; }
.login-topbar { display: flex; justify-content: space-between; align-items: center; height: 90px; padding: 0 6vw; }
.login-topbar .brand-name { color: #30362a; }
.login-topbar > span { color: #848977; font-size: 11px; }
.login-shell { display: grid; grid-template-columns: 1.05fr 1fr; place-items: stretch; min-height: calc(100vh - 110px); max-width: 1500px; margin: 0 auto; padding: 0 28px 28px; gap: 20px; }
.login-story { position: relative; overflow: hidden; min-height: 640px; padding: 65px 11% 45px; border-radius: 20px; color: #f6f3e5; background: #292f25; }
.story-kicker { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #aab297; font-size: 8px; font-weight: 600; letter-spacing: 2px; }
.story-kicker > span { width: 5px; height: 5px; border-radius: 50%; background: #d98b64; }
.login-story h2 { position: relative; z-index: 1; margin: 34px 0 24px; font-size: clamp(33px, 3.8vw, 56px); line-height: 1.13; font-weight: 450; letter-spacing: -2px; }
.login-story h2 em { font-style: normal; color: #ddac84; }
.login-story > p { position: relative; z-index: 1; max-width: 320px; color: #a9b29b; font-size: 12px; line-height: 1.8; }
.community-art { position: relative; width: 290px; height: 250px; margin: 15px auto 0; }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid #919e6625; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 120px; height: 120px; }
.orbit-two { width: 220px; height: 220px; }
.orbit-three { width: 310px; height: 310px; border-style: dashed; }
.art-center { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 75px; height: 75px; border: 1px solid #c68e5a55; border-radius: 22px; background: #4b4630; color: #e5bb8b; transform: translate(-50%, -50%) rotate(-7deg); box-shadow: 0 0 70px #c1943620; }
.art-center .icon { width: 43px; height: 43px; }
.art-node { position: absolute; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #667a4e66; border-radius: 12px; color: #aebd91; background: #333e2e; }
.node-one { top: 65px; left: 31px; transform: rotate(-10deg); }
.node-two { top: 53px; right: 35px; transform: rotate(9deg); }
.node-three { bottom: 3px; left: 100px; transform: rotate(8deg); }
.story-footer { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 26px; color: #969f88; font-size: 9px; }
.story-line { width: 25px; height: 1px; background: #a1a587; }
.login-form-area { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 25px; }
.login-panel { width: min(360px, 100%); padding: 0; border: 0; box-shadow: none; background: transparent; }
.login-brand { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 14px; }
.login-lock { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e5e6da; border-radius: 12px; color: #85906f; background: #f0f2e9; }
.login-brand .eyebrow { color: #8b927c; font-size: 8px; }
.login-brand h1 { font-size: 30px; font-weight: 600; }
.login-description { margin-bottom: 33px; color: #858b7a; font-size: 11px; line-height: 1.8; }
.login-form { gap: 22px; }
.login-form label { gap: 9px; font-size: 11px; }
.login-form input { min-height: 48px; padding: 0 14px; background: #fff; font-size: 12px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #969e89; cursor: pointer; }
.password-toggle .icon { width: 17px; height: 17px; }
.password-toggle:hover { color: var(--brand); background: #f9f3eb; }
.login-form .button { justify-content: space-between; min-height: 48px; margin-top: 7px; padding: 0 17px; font-size: 12px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 25px; color: #929984; font-size: 9px; }
.login-footnote .icon { width: 12px; height: 12px; }
.login-copyright { margin: 70px 0 0; color: #a5ac99; font-size: 9px; }
@media (min-width: 1600px) { .shell { padding-top: 45px; } }
@media (max-width: 1360px) {
  :root { --sidebar-width: 215px; }
  .shell { padding: 28px; }
  .app-header { padding: 0 28px; }
  .app-footer { margin: 0 28px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evolution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reports-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .report-summary-grid .metric-card { padding: 13px; }
  .report-summary-grid .metric-symbol { display: none; }
}
@media (max-width: 1120px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-row: auto; }
  .sync-config { grid-template-columns: 1fr; }
  .sync-actions { justify-content: flex-start; }
  .page-title { align-items: flex-start; }
  .sync-card { min-width: 175px; max-width: 210px; }
  .report-panel > .panel-header { flex-wrap: wrap; }
  .login-story { padding: 55px 9% 35px; }
}
@media (max-width: 860px) {
  :root { --sidebar-width: 230px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; visibility: hidden; }
  .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 35; border: 0; background: #1c241c88; }
  .app-frame { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .app-header { min-height: 65px; padding: 0 20px; }
  .breadcrumb { gap: 10px; }
  .shell { padding: 27px 20px; }
  .app-footer { margin: 0 20px; }
  .skip-link { left: 20px; }
  .login-shell { grid-template-columns: 1fr 1fr; padding: 0 18px 18px; gap: 0; }
  .login-story { min-height: 570px; padding: 40px 25px; }
  .login-story h2 { font-size: 35px; }
  .login-story > p { font-size: 11px; }
  .community-art { width: 220px; }
  .login-form-area { padding: 30px 25px; }
  .login-brand h1 { font-size: 26px; }
}
@media (max-width: 760px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evolution-grid, .report-summary-grid, .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evolution-card { display: flex; }
  .evolution-side { justify-items: end; }
  .page-title { flex-direction: column; gap: 18px; }
  .sync-card { max-width: 100%; width: 100%; padding: 0 0 0 14px; }
  .sync-card .pill { position: absolute; top: 0; right: 0; }
  .sync-card > small, .sync-card > strong { padding-right: 135px; }
  .reports-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-actions { flex-direction: row; }
  .quick-sync-form, .sync-actions .button, .quick-sync-form .button { width: auto; }
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid.single { grid-template-columns: 1fr; }
  .report-panel > .panel-header .credential-state { justify-content: flex-start; }
  .login-topbar { height: 80px; padding: 0 27px; }
  .login-topbar > span { display: none; }
  .login-shell { display: block; min-height: calc(100vh - 80px); padding: 10px 24px 28px; }
  .login-story { display: none; }
  .login-form-area { padding: 30px 0; }
  .login-brand h1 { font-size: 30px; }
  .login-copyright { margin-top: 50px; }
}
@media (max-width: 480px) {
  .shell { padding: 24px 15px; }
  .app-header { padding: 0 13px; }
  .breadcrumb > span { display: none; }
  .breadcrumb > .icon { display: none; }
  .header-meta { gap: 12px; }
  h1 { font-size: 29px; letter-spacing: -1px; }
  h2 { font-size: 17px; }
  .page-description { font-size: 11px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 132px; padding: 14px; }
  .metric-card strong { font-size: 28px; }
  .panel { padding: 17px; }
  .panel-header { flex-wrap: wrap; gap: 12px; }
  .report-filter-panel .panel-header { align-items: center; }
  .reports-filter-form { gap: 15px 10px; }
  .reports-filter-form label:first-child { grid-column: 1 / -1; }
  .reports-filter-form .button { grid-column: 1 / -1; }
  .reports-filter-form input, .reports-filter-form select { font-size: 12px; padding-left: 9px; }
  .evolution-grid, .chart-grid { grid-template-columns: 1fr; }
  .evolution-card { min-height: 100px; }
  .evolution-side { flex-basis: 120px; }
  .sync-config { padding: 17px; }
  .sync-actions { flex-wrap: wrap; }
  .sync-actions .button { padding: 0 10px; font-size: 10px; }
  .sync-card > small, .sync-card > strong { padding-right: 115px; }
  .app-footer { margin: 0 15px; font-size: 8px; }
  .app-footer > span:last-child { display: none; }
  .participant-modal { padding: 17px; }
  .modal-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
