:root {
  color-scheme: light;
  --ink: #11120f;
  --paper: #f7f6f0;
  --acid: #eaff35;
  --violet: #6e55ff;
  --red: #ff5a47;
  --mint: #b9fbd2;
  --line: rgba(17, 18, 15, 0.15);
  --muted: #77786f;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); position: relative; overflow: hidden; }
.auth-shell::before { content: ""; position: absolute; width: 72vw; height: 72vw; border-radius: 50%; background: var(--violet); filter: blur(1px); right: -34vw; top: -38vw; }
.auth-shell::after { content: ""; position: absolute; width: 42vw; height: 42vw; border-radius: 50%; border: 1px solid rgba(234,255,53,.6); left: -18vw; bottom: -22vw; }
.auth-card { width: min(100%, 450px); padding: 42px; border-radius: 32px; background: var(--paper); position: relative; z-index: 1; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.brand-mark { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--acid); font-weight: 950; font-size: 28px; margin-bottom: 36px; }
.brand-mark span, .wordmark span { color: var(--violet); }
.auth-card h1 { font-size: clamp(37px, 6vw, 55px); line-height: .91; letter-spacing: -.065em; margin: 0 0 24px; }
.auth-copy { color: var(--muted); line-height: 1.5; margin-bottom: 28px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 14px 15px; outline: none; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(110,85,255,.12); }
.primary { border: 0; border-radius: 14px; padding: 16px 18px; background: var(--ink); color: white; font-size: 12px; font-weight: 900; letter-spacing: .09em; display: flex; justify-content: space-between; cursor: pointer; }
.primary:hover { background: var(--violet); }
.error { min-height: 20px; color: #c02718; font-size: 13px; }
.setup-note { font-size: 13px; color: var(--muted); }
.setup-person { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.setup-person small { color: var(--violet); font-size: 9px; font-weight: 900; letter-spacing: .1em; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; display: flex; flex-direction: column; padding: 30px 20px; border-right: 1px solid var(--line); background: rgba(247,246,240,.94); backdrop-filter: blur(20px); z-index: 20; }
.wordmark { font-size: 18px; font-weight: 950; letter-spacing: -.05em; margin: 0 12px 56px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { appearance: none; border: 0; background: transparent; border-radius: 13px; display: flex; align-items: center; gap: 12px; padding: 11px 12px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 750; position: relative; }
.nav-item i { font-style: normal; width: 20px; font-size: 18px; }
.nav-item:hover, .nav-item.active { background: var(--ink); color: white; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: auto; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.ai-pill { font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.ai-pill span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 5px; box-shadow: 0 0 0 4px rgba(185,251,210,.35); }
.ai-pill.off span { background: #aaa; box-shadow: none; }
.quiet { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.content { grid-column: 2; padding: 50px clamp(28px, 5vw, 80px) 100px; max-width: 1500px; width: 100%; margin: auto; position: relative; z-index: 1; }
.view { display: none; animation: enter .28s ease both; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.mobile-header, .mobile-nav { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; }
.page-head h1 { font-size: clamp(40px, 4.35vw, 68px); line-height: .9; letter-spacing: -.065em; margin: 0; max-width: 780px; }
.page-head p { color: var(--muted); max-width: 400px; line-height: 1.45; margin: 15px 0 0; }
.identity { display: flex; align-items: center; gap: 12px; flex: none; }
.avatar { width: 43px; height: 43px; border-radius: 50%; border: 0; background: var(--violet); color: white; font-weight: 900; }
.identity div { display: grid; }
.identity strong { font-size: 12px; }
.identity small { font-size: 9px; color: var(--muted); letter-spacing: .08em; font-weight: 800; }

.pulse { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.onboarding { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; margin: -14px 0 18px; border-radius: 22px; background: var(--ink); color: white; }
.onboarding small { display: block; color: var(--acid); font-size: 8px; font-weight: 950; letter-spacing: .12em; margin-bottom: 7px; }
.onboarding strong { font-size: 18px; }
.onboarding p { color: rgba(255,255,255,.65); font-size: 11px; margin: 5px 0 0; }
.onboarding button { flex: none; border: 0; border-radius: 999px; padding: 11px 14px; background: var(--acid); font-size: 9px; font-weight: 950; cursor: pointer; }
.protocol { display: grid; grid-template-columns: repeat(9, auto); align-items: stretch; gap: 7px; margin-bottom: 18px; }
.protocol span { min-width: 0; padding: 12px 14px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.protocol span b { font-size: 20px; letter-spacing: -.04em; }
.protocol span.acid { background: var(--acid); border-color: transparent; }
.protocol span.violet { background: var(--violet); color: white; border-color: transparent; }
.protocol i { align-self: center; color: var(--muted); font-style: normal; }
.widget-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.widget-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: white; min-height: 135px; }
.widget-card.acid { background: var(--acid); border-color: transparent; }
.widget-card.violet { background: var(--violet); color: white; border-color: transparent; }
.widget-card.urgent { background: var(--red); color: white; border-color: transparent; }
.widget-kind { font-size: 8px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.widget-card h3 { font-size: 16px; margin: 18px 0 5px; }
.widget-card p { font-size: 11px; line-height: 1.4; margin: 0; opacity: .72; white-space: pre-wrap; }
.widget-card a { display: inline-block; margin-top: 14px; font-size: 9px; font-weight: 950; color: inherit; }
.widget-value { display: block; font-size: 36px; letter-spacing: -.05em; margin-top: 14px; }
.pulse-card { border: 1px solid var(--line); border-radius: 20px; padding: 19px; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.55); }
.pulse-card.acid { background: var(--acid); border-color: transparent; }
.pulse-card.violet { background: var(--violet); color: white; border-color: transparent; }
.pulse-card span { font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.pulse-card strong { font-size: 38px; letter-spacing: -.05em; }
.pulse-card small { color: inherit; opacity: .62; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45); overflow: hidden; }
.panel-head { padding: 22px 24px 16px; display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { font-size: 13px; margin: 0; letter-spacing: .02em; }
.panel-head button, .small-button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; font-size: 10px; font-weight: 850; cursor: pointer; }
.task-list, .event-list, .activity-list { display: grid; }
.decision-list { display: grid; }
.decision-row { padding: 19px 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); gap: 24px; align-items: center; background: rgba(234,255,53,.22); }
.decision-row > div { min-width: 0; }
.decision-row strong { display: block; font-size: 14px; line-height: 1.35; }
.decision-row p, .decision-row blockquote { margin: 5px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.decision-row blockquote { color: var(--ink); border-left: 2px solid var(--violet); padding-left: 10px; display: grid; gap: 3px; }
.decision-row blockquote b { font-size: 10px; color: var(--violet); }
.decision-answer { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: stretch; }
.decision-answer textarea { min-height: 52px; resize: vertical; padding: 10px 12px; font-size: 11px; }
.choice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.choice-buttons button, .decision-send { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 8px 10px; font-size: 9px; font-weight: 950; cursor: pointer; }
.choice-buttons button.selected { background: var(--ink); color: white; border-color: var(--ink); }
.decision-send { background: var(--violet); color: white; border-color: transparent; }
.decision-kicker { display: block; color: var(--violet); font-size: 8px; font-weight: 950; letter-spacing: .12em; margin-bottom: 5px; }
.task-row, .event-row, .activity-row { padding: 16px 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; }
.task-check { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.task-row.done { opacity: .48; }
.task-row.done .task-title { text-decoration: line-through; }
.task-title { font-size: 13px; font-weight: 750; }
.task-meta { font-size: 10px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; }
.priority { width: 7px; height: 7px; border-radius: 50%; background: #bbb; }
.priority.urgent { background: var(--red); box-shadow: 0 0 0 4px rgba(255,90,71,.15); }
.priority.high { background: #ff9d2e; }
.rafa-flag { background: var(--acid); padding: 5px 8px; font-size: 8px; font-weight: 950; letter-spacing: .08em; border-radius: 7px; }
.empty { padding: 40px 24px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.event-date { width: 45px; text-align: center; }
.event-date strong { font-size: 22px; display: block; line-height: 1; }
.event-date span { font-size: 9px; font-weight: 900; text-transform: uppercase; color: var(--violet); }
.event-row { grid-template-columns: 45px 1fr auto; }
.event-row time { font-size: 10px; color: var(--muted); }

.chat-shell { height: calc(100vh - 100px); min-height: 600px; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); border-radius: 28px; background: white; overflow: hidden; }
.chat-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat-people { display: flex; align-items: center; }
.chat-people .avatar { border: 3px solid white; margin-right: -8px; }
.avatar.debbie { background: var(--red); }
.avatar.ai { background: var(--acid); color: var(--ink); }
.chat-title { margin-left: 20px; }
.chat-title strong { display: block; font-size: 13px; }
.chat-title small { color: var(--muted); font-size: 10px; }
.messages { overflow-y: auto; padding: 30px max(20px, 8%); display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #fff, #faf9f5); }
.message { max-width: min(72%, 620px); align-self: flex-start; }
.message.mine { align-self: flex-end; }
.bubble { padding: 13px 16px; border-radius: 18px 18px 18px 4px; background: #efeee8; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.mine .bubble { background: var(--ink); color: white; border-radius: 18px 18px 4px 18px; }
.message-meta { display: flex; gap: 7px; margin: 6px 5px 0; color: var(--muted); font-size: 9px; }
.mine .message-meta { justify-content: flex-end; }
.ai-status { color: var(--violet); font-weight: 800; }
.composer { border-top: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: end; }
.composer textarea { resize: none; min-height: 48px; max-height: 130px; background: var(--paper); }
.icon-button { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 20px; }
.send { background: var(--acid); border-color: transparent; }
.audio-input { display: none; }

.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.column { min-height: 440px; border-radius: 20px; background: rgba(255,255,255,.5); border: 1px solid var(--line); }
.column-head { padding: 18px; font-size: 10px; font-weight: 900; letter-spacing: .1em; display: flex; justify-content: space-between; }
.task-card { margin: 0 10px 10px; padding: 15px; border-radius: 15px; background: white; border: 1px solid var(--line); }
.task-area { display: block; margin-bottom: 8px; color: var(--violet); font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.task-card strong { display: block; font-size: 13px; line-height: 1.35; }
.task-card p { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 7px 0; }
.task-outcome { margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--mint); background: rgba(185,251,210,.18); color: var(--muted); font-size: 10px; line-height: 1.4; }
.task-outcome b { color: var(--ink); font-size: 8px; letter-spacing: .08em; margin-right: 4px; }
.task-card select { margin-top: 10px; padding: 7px; font-size: 10px; }

.calendar-list { display: grid; gap: 14px; }
.day-group { display: grid; grid-template-columns: 100px 1fr; border-top: 1px solid var(--line); padding-top: 18px; }
.day-label strong { font-size: 28px; display: block; }
.day-label small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.day-events { display: grid; gap: 8px; }
.calendar-event { padding: 16px 18px; border-radius: 16px; background: white; border: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; }
.calendar-event time { color: var(--violet); font-weight: 850; font-size: 12px; }
.calendar-event strong { font-size: 13px; }
.calendar-event small { display: block; color: var(--muted); margin-top: 4px; }
.tentative { border-style: dashed; }
.activity-row { grid-template-columns: 9px 1fr auto; }
.activity-row > span:first-child { width: 9px; height: 9px; background: var(--mint); border-radius: 50%; }
.activity-row p { margin: 0; font-size: 12px; }
.activity-row small { color: var(--muted); font-size: 9px; }

.atlas-actions { border-bottom: 1px solid var(--line); }
.atlas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.atlas-group { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.5); overflow: hidden; }
.atlas-group > header { padding: 17px 20px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.atlas-group > header span { color: var(--muted); }
.atlas-group > div { display: grid; }
.atlas-card { padding: 17px 20px; border-top: 1px solid var(--line); }
.atlas-card strong { display: block; font-size: 14px; margin-top: 6px; }
.atlas-card p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 5px 0 0; white-space: pre-wrap; }
.atlas-lock { font-size: 8px; font-weight: 900; color: var(--violet); letter-spacing: .1em; }

dialog { border: 0; padding: 0; background: transparent; }
dialog::backdrop { background: rgba(17,18,15,.55); backdrop-filter: blur(8px); }
.dialog-card { width: min(560px, calc(100vw - 30px)); border-radius: 28px; padding: 30px; background: var(--paper); position: relative; }
.dialog-card h2 { font-size: 34px; letter-spacing: -.05em; margin: 0 0 28px; }
.dialog-close { position: absolute; right: 20px; top: 18px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid button, .upload-button { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 20px; text-align: left; cursor: pointer; font-size: 12px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.quick-grid span { display: block; font-size: 24px; margin-bottom: 18px; }
.upload-button input { display: none; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 140%); background: var(--ink); color: white; border-radius: 999px; padding: 12px 18px; font-size: 11px; font-weight: 800; z-index: 100; transition: .25s; }
.toast.show { transform: translate(-50%, 0); }

.pulse-card { text-align: left; color: inherit; cursor: pointer; }
.pulse-card:hover { transform: translateY(-2px); }
.upload-inline { position: relative; overflow: hidden; }
.upload-inline input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.inbox-list, .review-list { display: grid; gap: 12px; }
.inbox-card { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: stretch; background: rgba(255,255,255,.66); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.inbox-card.unread { border-color: var(--ink); box-shadow: inset 4px 0 var(--acid); }
.inbox-preview { background: var(--ink); color: white; display: grid; place-items: center; align-content: center; gap: 8px; text-decoration: none; min-height: 118px; }
.inbox-preview b { font-size: 24px; }
.inbox-preview span { font-size: 9px; letter-spacing: .1em; font-weight: 900; }
.inbox-media { min-width: 0; background: var(--ink); display: grid; place-items: center; }
.inbox-media audio, .inbox-media video { width: 100%; max-height: 130px; }
.inbox-preview.media { width: 100%; height: 100%; padding: 0; overflow: hidden; }
.inbox-preview.media img { width: 100%; height: 100%; min-height: 118px; object-fit: cover; }
.inbox-body { min-width: 0; padding: 18px 20px; }
.inbox-body small, .suggestion-card small, .project-card small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; font-weight: 900; margin-bottom: 9px; }
.inbox-body strong { display: block; overflow-wrap: anywhere; }
.inbox-body p { color: var(--muted); margin: 7px 0; font-size: 12px; }
.inbox-body em { display: inline-block; font-style: normal; font-size: 9px; font-weight: 900; color: var(--violet); margin-top: 10px; }
.inbox-actions { padding: 14px; border-left: 1px solid var(--line); display: grid; align-content: center; gap: 7px; min-width: 150px; }
.inbox-actions select, .inbox-actions button, .project-card select { width: 100%; font-size: 9px; }
.suggestion-card { border: 1px solid var(--line); background: rgba(255,255,255,.66); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: minmax(210px,.8fr) minmax(280px,1.2fr) auto; gap: 20px; align-items: center; }
.suggestion-card strong { display: block; font-size: 17px; }
.suggestion-card p { color: var(--muted); margin: 8px 0 0; white-space: pre-wrap; }
.suggestion-source { align-self: stretch; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.suggestion-source blockquote { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.suggestion-draft { min-width: 0; }
.draft-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.draft-meta span { padding: 5px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.draft-meta .missing { background: #fff1c9; border-color: #e7c767; }
.source-link { border: 0; background: transparent; color: var(--violet); padding: 10px 0 0; font-size: 8px; font-weight: 950; letter-spacing: .08em; cursor: pointer; }
.source-highlight .bubble { outline: 3px solid var(--acid); outline-offset: 4px; transition: outline-color .4s; }
.form-note { color: var(--muted); font-size: 11px; margin: -4px 0 0; }
.suggestion-actions { display: grid; gap: 8px; min-width: 150px; }
.suggestion-actions .approve { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.review-origin { padding: 14px; border-radius: 14px; background: var(--paper); border-left: 4px solid var(--violet); }
.review-origin small { font-size: 8px; font-weight: 900; letter-spacing: .1em; color: var(--violet); }
.review-origin p { margin: 6px 0 0; line-height: 1.45; white-space: pre-wrap; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.project-card { border: 1px solid var(--line); background: rgba(255,255,255,.66); border-radius: 22px; padding: 22px; min-height: 210px; display: flex; flex-direction: column; }
.project-card > strong { font-size: 24px; letter-spacing: -.04em; }
.project-card > p { color: var(--muted); line-height: 1.45; flex: 1; }
.project-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.project-counts span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; font-size: 8px; font-weight: 900; }
.check-label { display: flex !important; align-items: center; gap: 8px; }
.check-label input { width: auto !important; }
.static { pointer-events: none; }

@media (max-width: 900px) {
  .workspace { display: block; }
  .sidebar { display: none; }
  .content { padding: 96px 18px 105px; }
  .mobile-header { position: fixed; inset: 0 0 auto; height: 70px; padding: max(14px, env(safe-area-inset-top)) 20px 10px; display: flex; justify-content: space-between; align-items: center; background: rgba(247,246,240,.96); backdrop-filter: blur(20px); z-index: 100; }
  .mobile-header .wordmark { margin: 0; }
  .mobile-nav { position: fixed; inset: auto 0 0; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: rgba(247,246,240,.96); backdrop-filter: blur(20px); z-index: 100; }
  .mobile-nav .nav-item { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; background: transparent; color: var(--muted); font-size: 9px; }
  .mobile-nav .nav-item.active { color: var(--ink); }
  .mobile-nav .nav-item i { width: auto; font-size: 20px; }
  .mobile-nav .create-action i { background: var(--ink); color: white; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; margin-top: -23px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
  .page-head { align-items: flex-start; margin-bottom: 30px; }
  .page-head h1 { font-size: 48px; }
  .page-head .identity { display: none; }
  .pulse { grid-template-columns: 1fr 1fr; }
  .protocol { grid-template-columns: repeat(5, minmax(90px,1fr)); overflow-x: auto; }
  .protocol i { display: none; }
  .pulse-card { min-height: 110px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .atlas-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .chat-shell { height: calc(100dvh - 190px); min-height: 490px; border-radius: 20px; }
  .messages { padding: 20px 14px; }
  .message { max-width: 88%; }
  .board { margin-right: -18px; }
  .suggestion-card { grid-template-columns: 1fr 1fr; }
  .suggestion-actions { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
}

@media (max-width: 520px) {
  .auth-card { padding: 28px 23px; border-radius: 25px; }
  .page-head h1 { font-size: 41px; }
  .pulse-card strong { font-size: 31px; }
  .task-row, .event-row { padding: 14px 16px; }
  .decision-row { padding: 14px 16px; align-items: flex-start; }
  .decision-row { grid-template-columns: 1fr; }
  .decision-answer { grid-template-columns: 90px 1fr; }
  .decision-send { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: 1fr; }
  .day-group { grid-template-columns: 70px 1fr; }
  .calendar-event { grid-template-columns: 58px 1fr; }
  .calendar-event > span:last-child { display: none; }
  .inbox-card { grid-template-columns: 78px minmax(0,1fr); }
  .inbox-preview { min-height: 100px; }
  .inbox-actions { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr auto auto; }
  .suggestion-card { grid-template-columns: 1fr; }
  .suggestion-actions { grid-column: auto; grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .onboarding { align-items: flex-start; flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; }
}
