:root {
  color-scheme: light;
  --canvas: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #e9ede7;
  --surface-strong: #dfe5dc;
  --ink: #172019;
  --ink-soft: #344039;
  --muted: #748078;
  --line: #d9dfd8;
  --line-strong: #c9d1c8;
  --nav: #101914;
  --nav-soft: #19241d;
  --nav-text: #f3f7f2;
  --lime: #79e83f;
  --lime-deep: #43b81d;
  --blue: #377cf6;
  --amber: #d99316;
  --red: #db554c;
  --violet: #7559d9;
  --shadow-sm: 0 1px 2px rgba(17, 27, 21, .04), 0 8px 24px rgba(17, 27, 21, .05);
  --shadow-lg: 0 32px 90px rgba(17, 27, 21, .16);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(121, 232, 63, .35); outline-offset: 2px; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; color: var(--lime-deep); font: 500 10px/1.4 "DM Mono", monospace; letter-spacing: .16em; }
.eyebrow.light { color: var(--lime); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: #101914; font-size: 17px; font-weight: 800; letter-spacing: -.08em; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(420px, .92fr); background: var(--surface); }
.login-story { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: clamp(36px, 5vw, 72px); background: var(--nav); color: var(--nav-text); }
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(121, 232, 63, .16); border-radius: 50%; pointer-events: none; }
.login-story::before { width: 620px; height: 620px; right: -310px; top: -260px; }
.login-story::after { width: 410px; height: 410px; right: -205px; top: -155px; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 800; }
.login-message { position: relative; z-index: 1; max-width: 690px; margin: auto 0 8vh; }
.login-message h1 { margin: 0; font-size: clamp(48px, 6vw, 84px); line-height: .94; letter-spacing: -.07em; }
.login-message > p:last-child { max-width: 620px; margin: 30px 0 0; color: #aebbb2; font-size: clamp(15px, 1.55vw, 20px); line-height: 1.7; }
.login-proof { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid #29372e; background: #29372e; }
.login-proof > div { display: flex; gap: 14px; min-height: 112px; padding: 22px 18px; background: #131e18; }
.login-proof > div > span { color: var(--lime); font: 10px "DM Mono", monospace; }
.login-proof p { display: grid; align-content: start; gap: 7px; margin: 0; }
.login-proof b { font-size: 12px; }
.login-proof small { color: #839188; font-size: 10px; line-height: 1.5; }
.login-foot { position: relative; z-index: 1; margin: 28px 0 0; color: #55645a; font: 9px "DM Mono", monospace; letter-spacing: .12em; }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: clamp(28px, 6vw, 88px); background: #f7f8f5; }
.login-card { width: min(430px, 100%); }
.login-card-head { margin-bottom: 38px; }
.login-kicker { display: inline-flex; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 500 9px "DM Mono", monospace; letter-spacing: .12em; }
.login-card h2 { margin: 24px 0 8px; font-size: clamp(31px, 4vw, 44px); line-height: 1.05; letter-spacing: -.05em; }
.login-card-head p { margin: 0; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 20px; }
label { display: grid; gap: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 11px 13px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
input::placeholder, textarea::placeholder { color: #a4aea6; }
input:focus, textarea:focus, select:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 3px rgba(121, 232, 63, .15); }
textarea { resize: vertical; }
.form-error { min-height: 17px; margin: -5px 0 0; color: var(--red); font-size: 11px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 0; color: #879189; font: 9px "DM Mono", monospace; }
.secure-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(121, 232, 63, .14); }

/* Shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 262px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 18px; background: var(--nav); color: var(--nav-text); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 29px; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand b { font-size: 14px; }
.brand small { color: #718077; font-size: 9px; font-weight: 500; }
.workspace-label, .sidebar-caption { margin: 0; padding: 0 10px 9px; color: #66746b; font: 500 8px "DM Mono", monospace; letter-spacing: .16em; }
.workspace-switch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 1px solid #2a372f; border-radius: 12px; background: #16211a; color: var(--nav-text); text-align: left; cursor: pointer; }
.workspace-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #213025; }
.workspace-icon i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(121, 232, 63, .1); }
.workspace-switch > span:nth-child(2) { display: grid; gap: 2px; }
.workspace-switch b { font-size: 10px; }
.workspace-switch small { color: #78877d; font-size: 8px; }
.workspace-chevron { color: #647269; font-size: 14px; }
nav { display: grid; gap: 5px; margin-top: 28px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #89978e; text-align: left; font-size: 11px; font-weight: 650; cursor: pointer; transition: color .18s, background .18s, transform .18s; }
.nav-item:hover { background: #162119; color: #e8eee9; transform: translateX(2px); }
.nav-item.active { background: var(--lime); color: #111a14; }
.nav-glyph { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #2b3930; border-radius: 7px; font: 500 8px "DM Mono", monospace; }
.nav-item.active .nav-glyph { border-color: rgba(17, 26, 20, .25); }
.nav-item em { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #26342b; color: #b3beb6; font: 8px "DM Mono", monospace; font-style: normal; text-align: center; }
.nav-item.active em { background: rgba(17, 26, 20, .12); color: #111a14; }
.sidebar-divider { height: 1px; margin: auto 8px 20px; background: #26332b; }
.sidebar-status { display: flex; align-items: center; gap: 11px; padding: 12px 10px; border: 1px solid #26342b; border-radius: 11px; background: #141f18; }
.agent-orb { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #536057; }
.agent-orb.online { background: var(--lime); box-shadow: 0 0 0 5px rgba(121, 232, 63, .09); }
.sidebar-status > div:last-child { display: grid; gap: 3px; }
.sidebar-status b { font-size: 9px; }
.sidebar-status small { color: #718078; font-size: 8px; }
.logout-button { margin-top: 9px; padding: 9px; border: 0; background: transparent; color: #65736a; font-size: 9px; cursor: pointer; }
.logout-button:hover { color: #c6d0c9; }

.main-column { min-width: 0; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 14px clamp(22px, 3.4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .93); backdrop-filter: blur(18px); }
.topbar-title h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.topbar-title p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.today-pill { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; color: var(--muted); font: 8px "DM Mono", monospace; }
.today-pill > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); }
.button, .icon-button { border: 1px solid var(--line-strong); border-radius: 9px; cursor: pointer; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.button:hover, .icon-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button { min-height: 38px; padding: 9px 14px; font-size: 10px; font-weight: 800; }
.button.large { min-height: 49px; padding: 12px 16px; font-size: 11px; }
.button.large span { margin-left: 8px; font-size: 16px; }
.button.primary { border-color: var(--lime); background: var(--lime); color: #101914; }
.button.primary:hover { border-color: #69dc32; background: #69dc32; }
.button.secondary { border-color: #cdd5cc; background: #edf1eb; color: #315128; }
.button.ghost { background: var(--surface); color: var(--ink-soft); }
.button.danger { border-color: rgba(219, 85, 76, .35); background: #fff4f2; color: var(--red); }
.button.wide { width: 100%; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: var(--surface); color: var(--ink-soft); }
.content { width: 100%; max-width: 1720px; margin: 0 auto; padding: 38px clamp(22px, 3.4vw, 54px) 70px; }

/* Dashboard */
.hero-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; overflow: hidden; margin-bottom: 18px; padding: clamp(26px, 3vw, 42px); border-radius: 22px; background: #17231c; color: #f3f7f3; }
.hero-row::after { content: ""; position: absolute; right: -84px; top: -112px; width: 330px; height: 330px; border: 1px solid rgba(121, 232, 63, .2); border-radius: 50%; }
.hero-row > * { position: relative; z-index: 1; }
.hero-row h1 { max-width: 820px; margin: 0; font-size: clamp(30px, 3.7vw, 54px); line-height: 1.03; letter-spacing: -.055em; }
.hero-row h1 span { color: var(--lime); }
.hero-row p:not(.eyebrow) { max-width: 620px; margin: 15px 0 0; color: #aab7ae; font-size: 13px; line-height: 1.65; }
.progress-ring { position: relative; display: grid; place-items: center; flex: 0 0 112px; height: 112px; border-radius: 50%; background: #1d2b22; }
.progress-ring svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 2.3; }
.progress-ring .ring-track { stroke: #34433a; }
.progress-ring .ring-value { stroke: var(--lime); stroke-linecap: round; }
.progress-ring strong, .progress-ring small { position: relative; z-index: 1; }
.progress-ring strong { margin-top: 12px; font-size: 27px; letter-spacing: -.04em; }
.progress-ring small { margin-top: -17px; color: #8d9b92; font: 7px "DM Mono", monospace; letter-spacing: .06em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.stat-card { position: relative; min-height: 128px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-card::before { content: ""; position: absolute; left: 18px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: #b7c0b9; }
.stat-card.accent::before { background: var(--lime-deep); }
.stat-card small { display: block; padding-left: 15px; color: var(--muted); font: 500 8px "DM Mono", monospace; letter-spacing: .09em; }
.stat-card strong { display: block; margin: 16px 0 3px; font-size: 30px; line-height: 1; letter-spacing: -.055em; }
.stat-card span { color: #8b958e; font-size: 9px; }
.stat-card.accent { border-color: #b9d9ab; background: #f5fff1; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 28px 0 12px; }
.section-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.section-heading .button { min-height: 33px; }
.timeline { display: grid; grid-template-columns: repeat(12, minmax(94px, 1fr)); gap: 6px; overflow-x: auto; padding: 6px 2px 10px; }
.timeline-day { position: relative; min-height: 104px; padding: 13px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s; }
.timeline-day:hover { z-index: 1; border-color: #aeb8b0; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.timeline-day.today { border-color: var(--lime-deep); box-shadow: inset 0 3px 0 var(--lime); }
.timeline-day.done { background: #f5fff1; }
.timeline-day time { color: var(--muted); font: 8px "DM Mono", monospace; }
.timeline-day b { display: block; margin-top: 11px; font-size: 9px; line-height: 1.35; }
.timeline-day i { position: absolute; right: 10px; bottom: 10px; width: 6px; height: 6px; border-radius: 50%; background: #a8b2aa; }
.timeline-day.ready i, .timeline-day.running i { background: var(--blue); }
.timeline-day.blocked i { background: var(--red); }
.timeline-day.done i { background: var(--lime-deep); }

.board { display: grid; grid-template-columns: repeat(4, minmax(235px, 1fr)); gap: 10px; overflow-x: auto; padding: 2px 2px 10px; }
.board-column { min-width: 235px; min-height: 250px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #e9ede7; }
.column-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.column-header span { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; }
.column-header span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9da8a0; }
.column-header.running span::before { background: var(--blue); }
.column-header.review span::before { background: var(--amber); }
.column-header.done span::before { background: var(--lime-deep); }
.column-header em { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 999px; background: #d9dfd8; color: #66726a; font: 8px "DM Mono", monospace; font-style: normal; }
.task-list { display: grid; gap: 8px; }
.task-card { display: grid; gap: 12px; width: 100%; padding: 15px; border: 1px solid #d8ded7; border-radius: 11px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(17, 27, 21, .04); transition: transform .18s, border-color .18s, box-shadow .18s; }
.task-card:hover { border-color: #aeb8b0; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: #edf0ec; color: #657168; font: 500 7px "DM Mono", monospace; letter-spacing: .02em; }
.chip.p0 { background: #fff0ee; color: var(--red); }
.chip.human { background: #fff4df; color: #a36b0d; }
.chip.codex { background: #eaf1ff; color: #2f69d3; }
.chip.shared { background: #f0edff; color: var(--violet); }
.task-card time { color: #8f9992; font: 8px "DM Mono", monospace; }
.task-card h4 { margin: 0; font-size: 11px; line-height: 1.5; }
.task-progress { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.progress-track { width: 100%; height: 4px; border: 0; border-radius: 5px; overflow: hidden; appearance: none; background: #e4e9e3; }
.progress-track::-webkit-progress-bar { background: #e4e9e3; }
.progress-track::-webkit-progress-value { background: var(--lime-deep); }
.progress-track::-moz-progress-bar { background: var(--lime-deep); }
.task-progress small { color: #88938b; font: 8px "DM Mono", monospace; }
.empty-column { display: grid; place-items: center; min-height: 100px; border: 1px dashed #cbd2cb; border-radius: 9px; color: #9aa49c; font-size: 9px; }

/* Agenda e relatórios */
.schedule-list { display: grid; gap: 9px; }
.schedule-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); }
.schedule-row:hover { border-color: #aeb8b0; }
.schedule-date { display: grid; gap: 1px; padding-right: 18px; border-right: 1px solid var(--line); font: 8px "DM Mono", monospace; }
.schedule-date strong { color: var(--ink); font-size: 24px; }
.schedule-row h4 { margin: 0 0 5px; font-size: 12px; }
.schedule-row p { margin: 0; color: var(--muted); font-size: 10px; }
.schedule-row .status-label { padding: 6px 9px; border-radius: 999px; background: #edf0ec; color: #69756d; font: 8px "DM Mono", monospace; }
.reports-grid { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 12px; }
.report-list, .report-view { min-height: 520px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.report-list { padding: 10px; }
.report-item { width: 100%; padding: 13px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.report-item:hover, .report-item.active { background: var(--surface-soft); }
.report-item b { display: block; font-size: 11px; }
.report-item span { color: var(--muted); font: 8px "DM Mono", monospace; }
.report-view { padding: 28px; overflow: auto; }
.report-view pre { margin: 0; white-space: pre-wrap; color: var(--ink-soft); font: 10px/1.8 "DM Mono", monospace; }

/* Drawer e modal */
.drawer-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(16, 25, 20, .52); backdrop-filter: blur(3px); }
.task-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(610px, 100%); height: 100vh; overflow-y: auto; padding: 30px; border-left: 1px solid var(--line); background: #f8faf7; color: var(--ink); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.task-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.drawer-header h3 { margin: 7px 0 0; font-size: 28px; line-height: 1.12; letter-spacing: -.045em; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.drawer-section { padding: 21px 0; border-top: 1px solid var(--line); }
.drawer-section h4 { margin: 0 0 12px; font-size: 11px; }
.drawer-section > p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-box { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.info-box small { color: var(--lime-deep); font: 500 7px "DM Mono", monospace; letter-spacing: .08em; }
.info-box p { margin: 7px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }
.checklist { display: grid; gap: 7px; }
.check-item { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.check-item input { appearance: none; width: 17px; height: 17px; min-height: 0; padding: 0; border-radius: 5px; cursor: pointer; }
.check-item input:checked { border-color: var(--lime-deep); background: var(--lime); box-shadow: inset 0 0 0 3px #fff; }
.check-item span { font-size: 10px; line-height: 1.55; }
.check-item.done span { color: #8e9891; text-decoration: line-through; }
.comment-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.comment { padding: 11px 13px; border-left: 3px solid var(--line-strong); background: var(--surface); }
.comment-head { display: flex; justify-content: space-between; color: var(--muted); font: 8px "DM Mono", monospace; }
.comment p { margin: 7px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.comment-form { display: flex; gap: 7px; margin-top: 10px; }
.comment-form input { min-width: 0; }
.run-card { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.run-card-head { display: flex; justify-content: space-between; gap: 10px; font: 8px "DM Mono", monospace; }
.run-card pre { max-height: 170px; overflow: auto; white-space: pre-wrap; color: var(--ink-soft); font: 9px/1.6 "DM Mono", monospace; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.schedule-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 8px; }
.modal { width: min(570px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 17px; background: #f8faf7; color: var(--ink); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(16, 25, 20, .58); backdrop-filter: blur(4px); }
.modal form { display: grid; gap: 16px; padding: 27px; }
.modal-header, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-header h3 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.modal-actions { justify-content: flex-end; margin-top: 5px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast-region { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 13px 15px; border: 1px solid #b9d3ae; border-radius: 10px; background: #f4fff0; color: #294322; box-shadow: var(--shadow-lg); font-size: 10px; animation: toast-in .25s ease; }
.toast.error { border-color: #e2aaa5; background: #fff4f2; color: #a63c35; }
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: .1em; }
.mobile-only { display: none; }
.menu-button { align-content: center; gap: 3px; }
.menu-button span { width: 15px; height: 1px; background: currentColor; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1120px) {
  .login-shell { grid-template-columns: 1fr 1fr; }
  .login-proof { grid-template-columns: 1fr; }
  .login-proof > div { min-height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .reports-grid { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .login-shell { display: block; background: var(--nav); }
  .login-story { min-height: auto; padding: 30px 24px 56px; }
  .login-message { margin: 72px 0 38px; }
  .login-message h1 { font-size: clamp(42px, 12vw, 64px); }
  .login-message > p:last-child { margin-top: 20px; font-size: 14px; }
  .login-proof { display: none; }
  .login-foot { display: none; }
  .login-panel { min-height: auto; padding: 46px 24px 54px; border-radius: 24px 24px 0 0; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 40; left: 0; width: 262px; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: grid; }
  .topbar { gap: 11px; padding: 12px 14px; }
  .topbar-title { margin-right: auto; }
  .topbar-title p { display: none; }
  .topbar-actions .today-pill, .topbar-actions .icon-button { display: none; }
  .topbar-actions .button { padding-inline: 11px; }
  .content { padding: 20px 14px 48px; }
  .hero-row { align-items: flex-start; padding: 24px 20px; border-radius: 17px; }
  .hero-row h1 { font-size: clamp(28px, 9vw, 42px); }
  .hero-row p:not(.eyebrow) { font-size: 11px; }
  .progress-ring { flex-basis: 78px; height: 78px; }
  .progress-ring strong { font-size: 19px; }
  .progress-ring small { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 116px; padding: 16px; }
  .stat-card strong { font-size: 26px; }
  .timeline { grid-template-columns: repeat(12, 94px); }
  .board { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .report-list { min-height: auto; display: flex; overflow-x: auto; }
  .report-item { min-width: 160px; }
  .info-grid, .action-grid, .field-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 58px 1fr; gap: 12px; padding: 14px; }
  .schedule-date { padding-right: 12px; }
  .schedule-row .status-label { grid-column: 2; justify-self: start; }
  .task-drawer { padding: 22px 18px; }
  .drawer-header h3 { font-size: 24px; }
}

@media (max-width: 460px) {
  .login-panel { padding-inline: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 104px; }
  .hero-row { display: block; }
  .progress-ring { margin-top: 22px; }
  .topbar-actions .button { font-size: 0; }
  .topbar-actions .button span { font-size: 17px; }
  .comment-form, .schedule-form { grid-template-columns: 1fr; display: grid; }
}
