:root {
  --ink: #172321;
  --muted: #5f6f6c;
  --brand: #12645b;
  --brand-dark: #0d4741;
  --brand-soft: #e6f4f1;
  --accent: #e8a11a;
  --surface: #fff;
  --canvas: #f5f7f6;
  --line: #dce4e2;
  --danger: #ad2d2d;
  --success: #237a4b;
  --warning: #8a5b09;
  --shadow: 0 14px 36px rgba(18, 45, 42, .09);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #e8a11a; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 12px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 720; text-decoration: none; cursor: pointer; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { border-color: #b8c8c5; background: #fff; color: var(--ink); }
.button.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.button.danger { color: var(--danger); border-color: #e7c3c3; background: #fff8f8; }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Acesso */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(440px, .88fr); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 6vw, 88px); background: linear-gradient(145deg, #0c3835, #12645b 68%, #27887c); color: #fff; }
.auth-story::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -180px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--brand-dark); font-weight: 900; letter-spacing: -.08em; }
.auth-story-copy { position: relative; z-index: 1; max-width: 630px; }
.auth-story h1 { max-width: 600px; margin: 0 0 20px; font-size: clamp(2.3rem, 4.6vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.auth-story p { max-width: 540px; margin: 0; font-size: 1.12rem; line-height: 1.65; color: #d5efeb; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.auth-benefits span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; font-size: .88rem; }
.auth-story footer { position: relative; z-index: 1; color: #bde0da; font-size: .88rem; }
.auth-panel { display: grid; place-items: center; padding: 32px; background: #f8faf9; }
.auth-card { width: min(100%, 470px); padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 9px; font-size: 2rem; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field > span:first-child { font-size: .9rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #adbfbc; border-radius: 9px; background: #fff; color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,100,91,.12); outline: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 92px; }
.password-toggle { position: absolute; right: 6px; top: 6px; min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--brand); cursor: pointer; font-size: .84rem; font-weight: 700; }
.remember { display: flex; align-items: center; gap: 9px; margin: 6px 0 20px; color: var(--muted); font-size: .9rem; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); }
.auth-card .button.primary { width: 100%; }
.auth-links { display: flex; justify-content: center; gap: 9px; margin-top: 18px; font-size: .9rem; }
.form-message { margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; background: #fff0f0; color: #8c2222; font-size: .9rem; line-height: 1.45; }
.form-message.success { background: #edf8f1; color: #18613b; }
.company-options { display: grid; gap: 10px; margin-top: 18px; }
.company-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.company-option:hover { border-color: var(--brand); background: var(--brand-soft); }
.signup-card { width: min(100%, 820px); }
.signup-card fieldset { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.signup-card legend { width: 100%; margin-bottom: 16px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 800; }
.signup-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.signup-service { display: flex; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.signup-service:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.signup-service input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.signup-service strong, .signup-service small { display: block; }
.signup-service small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.terms { display: flex; align-items: start; gap: 10px; margin: 4px 0 20px; color: var(--muted); line-height: 1.45; }
.terms input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--brand); }
.field-error { min-height: 1em; color: var(--danger); }
.loading-state.compact { min-height: 180px; padding: 20px; }

/* Estrutura */
.portal-layout { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 264px; display: flex; flex-direction: column; padding: 24px 15px; background: #103b37; color: #fff; overflow-y: auto; }
.sidebar .brand { padding: 0 10px 24px; }
.sidebar .brand small { display: block; margin-top: 2px; color: #acd6d0; font-size: .7rem; font-weight: 600; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #d8eeea; text-decoration: none; font-size: .92rem; font-weight: 650; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-icon { width: 22px; flex: 0 0 22px; text-align: center; font-size: 1.05rem; }
.sidebar-foot { margin-top: auto; padding: 18px 10px 0; color: #afd2cd; font-size: .75rem; line-height: 1.5; }
.portal-main { grid-column: 2; min-width: 0; }
.env-banner { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 16px; background: #fff3d2; color: #714c09; font-size: .77rem; font-weight: 700; }
.topbar { min-height: 74px; display: flex; align-items: center; gap: 18px; padding: 12px clamp(18px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 1.2rem; }
.company-heading { min-width: 0; }
.company-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.company-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.topbar-spacer { flex: 1; }
.notification { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.account-copy strong, .account-copy small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: var(--muted); font-size: .72rem; }
.account-popover { position: absolute; z-index: 50; right: 0; top: 52px; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.account-popover a, .account-popover button { width: 100%; display: block; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.account-popover a:hover, .account-popover button:hover { background: var(--canvas); }
.page { padding: clamp(24px, 4vw, 54px); }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.page-header p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Componentes */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { min-height: 138px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(18,45,42,.035); }
.metric span { display: block; color: var(--muted); font-size: .84rem; }
.metric strong { display: block; margin: 13px 0 5px; font-size: 1.65rem; letter-spacing: -.035em; }
.metric small { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 18px rgba(18,45,42,.035); }
.panel + .panel { margin-top: 18px; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3 { margin: 0 0 5px; font-size: 1.08rem; }
.panel-header p { margin: 0; color: var(--muted); font-size: .86rem; }
.panel-body { padding: 22px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #edf1f0; }
.checklist li:last-child { border-bottom: 0; }
.checkmark { width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #adbfbc; border-radius: 50%; color: transparent; font-size: .75rem; }
.complete .checkmark { border-color: var(--success); background: var(--success); color: #fff; }
.checklist strong, .checklist small { display: block; }
.checklist small { margin-top: 3px; color: var(--muted); }
.progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e6ecea; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.quick-actions { display: grid; gap: 9px; }
.quick-actions a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none; }
.quick-actions a:hover { border-color: var(--brand); background: var(--brand-soft); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #eef1f0; color: #4f5d5a; font-size: .76rem; font-weight: 750; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.success { background: #e7f5ec; color: var(--success); }
.status-pill.warning { background: #fff3d6; color: var(--warning); }
.status-pill.danger { background: #ffeded; color: var(--danger); }
.hero-state { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg,#fff,#f3faf8); }
.hero-icon { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 22px; background: var(--brand-soft); color: var(--brand); font-size: 2.2rem; }
.hero-state h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.hero-state p { max-width: 680px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.radio-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 24px 0; }
.radio-card { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { width: 19px; height: 19px; accent-color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.service-card { display: flex; flex-direction: column; min-height: 235px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-card h2 { margin: 16px 0 8px; font-size: 1.08rem; }
.service-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.service-card dl { margin: auto 0 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-card dt { color: var(--muted); font-size: .72rem; }
.service-card dd { margin: 3px 0 0; font-weight: 700; }
.data-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { background: #f7f9f8; color: #596764; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }
.data-table td { font-size: .88rem; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; }
.row-actions .button { min-height: 36px; padding: 6px 9px; font-size: .78rem; }
.empty-state, .error-state, .loading-state, .center-state { min-height: 340px; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; }
.empty-state .state-icon, .error-state .state-icon { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 20px; background: var(--brand-soft); font-size: 2rem; }
.empty-state h2, .error-state h2, .center-state h1 { margin: 0 0 9px; }
.empty-state p, .error-state p, .center-state p { max-width: 580px; margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.spinner { width: 34px; height: 34px; display: inline-block; border: 4px solid #d7e4e1; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.route-loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }

/* Formulários, wizard e modais */
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.wizard-layout { min-height: 100vh; display: grid; grid-template-columns: 310px minmax(0,1fr); }
.wizard-side { position: sticky; top: 0; height: 100vh; padding: 34px 28px; background: #103b37; color: #fff; }
.wizard-side h1 { margin: 40px 0 10px; font-size: 1.65rem; }
.wizard-side > p { color: #b9dad5; line-height: 1.5; }
.wizard-steps { list-style: none; display: grid; gap: 10px; margin: 32px 0 0; padding: 0; }
.wizard-steps li { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 9px; color: #b9dad5; }
.wizard-steps li.active { background: rgba(255,255,255,.12); color: #fff; }
.wizard-step-number { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.wizard-content { display: grid; align-content: start; padding: clamp(30px,6vw,74px); }
.wizard-card { width: min(100%, 850px); margin: 0 auto; }
.wizard-card h2 { margin: 0 0 9px; font-size: clamp(1.8rem,4vw,2.5rem); letter-spacing: -.04em; }
.wizard-card > p { margin: 0 0 30px; color: var(--muted); line-height: 1.55; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hours-list { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 120px 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.hours-row input[type="time"] { width: 100%; min-height: 40px; border: 1px solid #b8c5c3; border-radius: 7px; }
.hours-row label { display: flex; align-items: center; gap: 5px; font-size: .8rem; }
dialog { width: min(92vw, 620px); max-height: 90vh; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,26,24,.62); backdrop-filter: blur(2px); }
.dialog-content { padding: 28px; }
.dialog-content header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-content h2 { margin: 0 0 7px; }
.dialog-content header p { margin: 0; color: var(--muted); }
.dialog-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.3rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.meta-checklist { padding-left: 22px; color: var(--muted); line-height: 1.7; }
.tour-dialog { width: min(92vw, 520px); }
.tour-visual { min-height: 150px; display: grid; place-items: center; margin: -28px -28px 24px; border-radius: 18px 18px 0 0; background: linear-gradient(135deg,#dff3ef,#f4faf8); color: var(--brand); font-size: 3rem; }
.settings-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.settings-item { display: flex; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff; }
.settings-item:hover { border-color: var(--brand); }
.settings-item strong, .settings-item small { display: block; }
.settings-item small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.settings-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); }
.notice { padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 8px; background: #fff7df; color: #69480b; line-height: 1.5; }
.meta-welcome { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 24px; padding: clamp(28px,5vw,54px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg,#fff 15%,#eff9f6); }
.meta-welcome h2 { max-width: 720px; margin: 10px 0 14px; font-size: clamp(1.6rem,3vw,2.45rem); letter-spacing: -.04em; }
.meta-welcome-copy > p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.meta-benefits, .meta-prerequisites ul { padding-left: 22px; color: var(--muted); line-height: 1.9; }
.meta-benefits li::marker { color: var(--success); }
.meta-connect-button { margin-top: 8px; }
.meta-help { display: inline-block; margin-left: 14px; color: var(--brand); font-weight: 700; }
.meta-prerequisites { align-self: stretch; padding: 24px; border: 1px solid #cfe2de; border-radius: 15px; background: rgba(255,255,255,.82); }
.meta-prerequisites h3 { margin-top: 0; }
.meta-prerequisites small { color: var(--muted); line-height: 1.5; }
.meta-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 22px; border-color: #b9d9d2; }
.meta-progress p { margin: 4px 0 0; color: var(--muted); }
.meta-inline-error { margin: 0 0 18px; padding: 14px 16px; border-radius: 9px; }
.simulator-notice { margin-bottom: 18px; border-color: #7a5af8; background: #f1edff; color: #41308c; }
.meta-connected-head { display: flex; align-items: center; gap: 18px; }
.meta-connected-head h2 { margin: 9px 0 3px; }
.meta-connected-head p { margin: 0; color: var(--muted); }
.meta-brand-icon { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 64px; border-radius: 18px; background: #e4f6eb; color: var(--success); font-size: 1.6rem; font-weight: 900; }
.meta-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 26px 0; }
.meta-details div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }
.meta-details dt { color: var(--muted); font-size: .76rem; }
.meta-details dd { margin: 5px 0 0; font-weight: 750; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 300px; padding: 34px; }
  .auth-story h1 { font-size: 2.5rem; }
  .auth-story footer { display: none; }
  .signup-services { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-main { grid-column: 1; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.25); }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open::after { content: ""; position: fixed; z-index: 20; inset: 0; background: rgba(0,0,0,.48); }
  .menu-toggle { display: block; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side { position: static; height: auto; padding: 22px; }
  .wizard-side h1, .wizard-side > p { display: none; }
  .wizard-steps { grid-template-columns: repeat(6,1fr); margin-top: 20px; }
  .wizard-steps li { justify-content: center; padding: 4px; }
  .wizard-steps li span:last-child { display: none; }
  .hours-row { grid-template-columns: 100px 1fr 1fr auto; }
  .hours-row .break-time { display: none; }
  .meta-welcome { grid-template-columns: 1fr; }
  .meta-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .auth-story { min-height: 240px; }
  .auth-story h1 { font-size: 2rem; }
  .auth-story p { font-size: .96rem; }
  .auth-benefits { display: none; }
  .auth-panel { padding: 18px; }
  .auth-card { padding: 25px 21px; }
  .topbar { padding: 10px 14px; }
  .account-copy, .notification { display: none; }
  .page { padding: 24px 16px 44px; }
  .page-header { align-items: start; flex-direction: column; }
  .header-actions, .header-actions .button { width: 100%; }
  .metric-grid, .cards, .settings-list, .form-grid, .radio-cards { grid-template-columns: 1fr; }
  .metric { min-height: 116px; }
  .hero-state { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin: 0 auto; }
  .checklist li { grid-template-columns: 28px minmax(0,1fr); }
  .checklist li .button { grid-column: 2; justify-self: start; }
  .wizard-content { padding: 30px 16px; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions .button { flex: 1 1 130px; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row strong { grid-column: 1 / -1; }
  .hours-row label { justify-self: end; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .meta-help { display: block; margin: 14px 0 0; }
  .meta-details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) { .status-pill, .checkmark { border: 1px solid currentColor; } }
