/* Workflow UI reset — focused views, readable type, even spacing. */
:root {
  --app-bg: #f3f5f7;
  --app-surface: #ffffff;
  --app-surface-subtle: #f8fafb;
  --app-ink: #17243a;
  --app-muted: #607086;
  --app-line: #dfe5eb;
  --app-navy: #11243b;
  --app-mint: #1d9f7d;
  --app-mint-soft: #e9f7f2;
  --app-amber: #b96810;
  --app-amber-soft: #fff3e2;
  --app-blue: #4f73ba;
  --app-radius: 16px;
  --app-shadow: 0 8px 28px rgba(23, 36, 58, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: auto; }
body {
  min-width: 320px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
}
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

.dashboard {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--app-bg);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: auto;
  height: 100dvh;
  padding: 22px 14px 16px;
  background: #102139;
  box-shadow: none;
}
.brand { gap: 11px; padding: 0 6px 20px; }
.brand .brand-mark.small { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
.brand strong { color: #fff; font-size: 14px; letter-spacing: -.01em; }
.brand span { margin-top: 2px; color: #8fa2b9; font-size: 10px; }
.sidebar nav { display: grid; gap: 3px; }
.nav-item {
  min-height: 42px;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 10px;
  color: #aebdce;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.055); color: #f4f8fb; }
.nav-item.active {
  background: rgba(71, 215, 176, .13);
  color: #f5fffb;
  box-shadow: inset 3px 0 0 #54d8b3;
}
.nav-icon { width: 20px; color: #89a2b9; font-size: 15px; text-align: center; }
.nav-item.active .nav-icon { color: #65ddba; }
.nav-item b {
  min-width: 22px;
  margin-left: auto;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255,255,255,.08);
  color: #c9d5e1;
  font-size: 9px;
  text-align: center;
}
.nav-item.active b { background: rgba(85, 221, 183, .15); color: #93efd3; }
.privacy-note {
  margin-top: auto;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  padding: 16px 5px 10px;
  background: transparent;
}
.privacy-note strong { color: #c7d5e1; font-size: 10px; }
.privacy-note p { color: #8195aa; font-size: 9px; line-height: 1.45; }
.privacy-note .shield { width: 22px; height: 22px; font-size: 9px; }
.logout-button { margin-top: 4px; min-height: 36px; border-radius: 9px; font-size: 10px; }

.main-panel {
  min-width: 0;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px clamp(24px, 3.25vw, 48px) 56px;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--app-line);
}
.page-header-copy { min-width: 260px; max-width: 650px; }
.page-header .eyebrow { margin: 0 0 8px; color: #66778c; font-size: 9px; letter-spacing: .1em; }
.page-header h1 {
  margin: 0;
  color: var(--app-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.page-header-copy > p:last-child { max-width: 610px; margin: 7px 0 0; color: var(--app-muted); font-size: 12px; line-height: 1.5; }
.header-actions { flex: 0 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-actions #voice-header-button,
.header-actions #add-machine-button { display: none; }
.machine-select-wrap {
  min-width: 178px;
  min-height: 40px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-surface);
}
.machine-select-wrap span { font-size: 8px; }
.machine-select-wrap select { font-size: 11px; }
.search-box {
  width: min(250px, 22vw);
  min-height: 40px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-surface);
}
.search-box input { font-size: 11px; }
.global-search { position: relative; z-index: 40; width: min(310px, 26vw); }
.global-search .search-box { width: 100%; }
.search-box kbd { flex: 0 0 auto; border: 1px solid var(--app-line); border-radius: 5px; padding: 1px 5px; background: var(--app-surface-subtle); color: #7c899a; font: 700 9px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.global-search-results { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: min(460px, calc(100vw - 28px)); max-height: min(520px, 70vh); overflow-y: auto; border: 1px solid var(--app-line); border-radius: 14px; padding: 7px; background: var(--app-surface); box-shadow: 0 22px 60px rgba(21, 35, 55, .2); overscroll-behavior: contain; }
.global-search-result { width: 100%; min-width: 0; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 10px; background: transparent; color: var(--app-ink); text-align: left; cursor: pointer; }
.global-search-result:hover, .global-search-result.selected { background: var(--app-mint-soft); }
.global-search-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--app-surface-subtle); color: #168669; font-size: 14px; font-weight: 800; }
.global-search-copy { min-width: 0; }
.global-search-copy strong, .global-search-copy small { display: block; overflow-wrap: anywhere; }
.global-search-copy strong { color: var(--app-ink); font-size: 12px; line-height: 1.35; }
.global-search-copy small { margin-top: 2px; color: var(--app-muted); font-size: 10px; line-height: 1.4; }
.global-search-kind { align-self: start; border-radius: 999px; padding: 4px 7px; background: var(--app-surface-subtle); color: var(--app-muted); font-size: 8px; font-weight: 800; white-space: nowrap; }
.global-search-empty { display: grid; gap: 4px; padding: 17px 14px; text-align: center; }
.global-search-empty strong { color: var(--app-ink); font-size: 12px; }
.global-search-empty span { color: var(--app-muted); font-size: 10px; line-height: 1.45; }
.global-search-highlight { animation: global-search-pulse 2.6s ease-out; }
@keyframes global-search-pulse { 0%, 25% { box-shadow: 0 0 0 3px rgba(41,195,155,.5), var(--app-shadow); } 100% { box-shadow: var(--app-shadow); } }
.button { min-height: 40px; border-radius: 10px; padding: 9px 13px; font-size: 11px; font-weight: 750; }
.button.compact { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.button.primary { background: #1c9f7d; box-shadow: none; }
.button.primary:hover { background: #168669; }
.button.ghost { border-color: var(--app-line); background: #fff; color: #31445d; }
.theme-toggle-button { gap: 6px; white-space: nowrap; }
.mobile-install-card { display: none; }

.main-panel > section { margin-top: 0 !important; }
.panel {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}
.panel-head {
  min-height: 76px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--app-line);
}
.panel-head h2 { color: var(--app-ink); font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin-top: 5px; color: var(--app-muted); font-size: 11px; line-height: 1.45; }
.panel-head.dark { background: #fff; color: var(--app-ink); }
.panel-head.dark h2 { color: var(--app-ink); }
.panel-head.dark p { color: var(--app-muted); }
.section-kicker { color: #238b70 !important; font-size: 8px !important; letter-spacing: .11em !important; }
.pill { min-height: 25px; padding: 5px 9px; font-size: 9px; }
.loading-row, .empty-row { padding: 28px 22px; color: #758399; font-size: 11px; }

/* Daily focus */
.today-panel {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--app-shadow);
  color: var(--app-ink);
}
.today-hero {
  align-items: center;
  min-height: 132px;
  padding: 24px 26px 20px;
  background: linear-gradient(125deg, #10243c 0%, #17354b 72%, #17624f 145%);
  color: #fff;
}
.today-hero h2 { margin: 4px 0 7px; color: #fff; font-size: 27px; }
.today-hero p:not(.section-kicker) { max-width: 720px; color: #b8c8d7; font-size: 12px; line-height: 1.5; }
.today-score strong { color: #71dfbc; font-size: 34px; }
.today-score span { color: #a7bacb; font-size: 9px; }
.today-signals { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 0; background: #12283f; }
.today-signal { min-height: 76px; padding: 14px 18px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(6,19,34,.35); }
.today-signal:last-child { border-right: 0; }
.today-signal span { font-size: 10px; }
.today-signal strong { font-size: 20px; }
.today-signal small { font-size: 9px; }
.productivity-strip {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 18px 20px 0;
  border: 1px solid #cfe7df;
  border-radius: 12px;
  padding: 11px 13px;
  background: #f2faf7;
}
.productivity-strip strong { display: block; margin-bottom: 2px; color: #28465a; font-size: 11px; }
.productivity-strip p { margin: 0; color: #6f7e90; font-size: 10px; }
.todo-composer {
  display: block;
  padding: 18px 20px;
  background: #fff;
}
.todo-capture-label {
  display: block;
  margin-bottom: 7px;
  color: var(--app-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.todo-capture-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 8px;
}
.todo-capture-row #todo-title {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--app-line);
  border-radius: 11px;
  padding: 10px 13px;
  background: #fff;
  color: var(--app-ink);
  font-size: 13px;
  outline: none;
}
.todo-capture-row #todo-title:focus { border-color: #6dcdb3; box-shadow: 0 0 0 3px rgba(29,159,125,.11); }
.todo-details-toggle {
  min-height: 44px;
  border: 1px solid var(--app-line);
  border-radius: 11px;
  padding: 0 12px;
  background: #f8fafb;
  color: #516277;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.todo-details-toggle span { display: inline-block; margin-left: 3px; transition: transform .16s ease; }
.todo-details-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.todo-details-toggle.has-values { border-color: #a6ddcf; background: #edf8f4; color: #16775f; }
.todo-add-button { min-width: 66px; min-height: 44px !important; align-self: auto !important; border-radius: 11px !important; }
.todo-capture-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: #8a96a6;
  font-size: 9px;
}
#todo-details-summary { color: #637287; text-align: right; }
.todo-details {
  display: grid;
  grid-template-columns: 130px 160px minmax(220px,1fr);
  gap: 10px;
  margin-top: 13px;
  border-top: 1px solid #edf1f4;
  padding-top: 13px;
}
.todo-details[hidden] { display: none; }
.todo-details label { display: grid; gap: 6px; }
.todo-details label > span { color: var(--app-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.todo-details input, .todo-details select { width: 100%; min-height: 40px; border: 1px solid var(--app-line); border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--app-ink); font-size: 11px; outline: none; }
.todo-toolbar { padding: 17px 21px 12px; }
.todo-toolbar h3 { font-size: 14px; }
.todo-toolbar p { font-size: 10px; }
.todo-filter { padding: 6px 10px; font-size: 9px; }
.todo-row { gap: 14px; padding: 14px 21px; }
.todo-main h3 { margin-top: 4px; font-size: 13px; line-height: 1.4; }
.todo-main > p { color: var(--app-muted); font-size: 10px; }
.todo-meta, .todo-actions { font-size: 9px; }
.todo-actions button { font-size: 9px; }

.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px !important; }
.metric { min-height: 108px; border: 1px solid var(--app-line); border-radius: 14px; padding: 18px; box-shadow: none; }
.metric span { font-size: 9px; }
.metric b { margin: 7px 0 4px; font-size: 24px; }
.metric small { font-size: 9px; }
.metric-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }

/* Usage */
.usage-panel { background: #f7f9fa; }
.usage-summary-grid { grid-template-columns: minmax(330px,1.35fr) repeat(3,minmax(150px,.65fr)); gap: 12px; padding: 18px; }
.usage-limit-card { min-height: 156px; border-radius: 14px; padding: 20px; box-shadow: none; }
.usage-ring { width: 96px; height: 96px; }
.usage-limit-copy > span, .usage-stat-card > span { font-size: 8px; }
.usage-limit-copy h3 { font-size: 20px; }
.usage-limit-copy p, .usage-limit-copy small { font-size: 9px; }
.usage-stat-card { min-height: 156px; border-radius: 14px; padding: 17px; }
.usage-stat-card strong { font-size: 21px; }
.usage-stat-card p { font-size: 9px; }
.usage-detail-grid { gap: 12px; padding: 0 18px 18px; }
.usage-subpanel, .usage-optimization { border-radius: 14px; }
.usage-subhead h3, .usage-table-head h3 { font-size: 13px; }
.usage-subhead p, .usage-table-head p { font-size: 9px; }
.usage-optimization { margin: 0 18px 18px; }
.usage-insights { grid-template-columns: repeat(3,minmax(0,1fr)); }
.usage-insight strong { font-size: 10px; }
.usage-insight p { font-size: 9px; }
.usage-chat-row { padding: 14px 19px; }
.usage-chat-main h4, .usage-chat-stat strong { font-size: 11px; }
.usage-chat-advice { font-size: 9px; }
.usage-apply-button { min-height: 30px; padding: 6px 10px; font-size: 8px; }

/* Needs you */
.needs-panel { width: 100%; }
.attention-actions { gap: 9px; }
.secretary-strip {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 16px 20px 0;
  border: 1px solid #d9e6ef;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f6f9fb;
}
.secretary-strip strong { color: #31445d; font-size: 11px; }
.secretary-strip p { color: var(--app-muted); font-size: 10px; }
.secretary-mark { width: 29px; height: 29px; border-radius: 9px; font-size: 10px; }
.filter-row { gap: 6px; padding: 14px 20px 10px; }
.filter-chip { padding: 6px 10px; font-size: 9px; }
.obligation-row {
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 14px;
  min-height: 0;
  padding: 16px 20px;
}
.attention-icon { width: 36px; height: 36px; border-radius: 11px; }
.obligation-row h3 { margin: 6px 0 4px; font-size: 13px; line-height: 1.4; }
.obligation-row p { font-size: 10px; line-height: 1.5; }
.row-meta { gap: 6px; }
.project-folder-tag, .machine-tag, .possible-tag, .priority { font-size: 8px; }
.evidence { margin-top: 9px !important; padding: 9px 10px !important; }
.verification-state { margin-top: 8px !important; font-size: 9px !important; }
.resolve-button { min-height: 32px; padding: 7px 10px; border-radius: 9px; font-size: 9px; }
.age { font-size: 8px; }
.needs-you-reply {
  margin-top: 12px;
  border: 1px solid #dbe8e4;
  border-radius: 11px;
  padding: 11px;
  background: #f7fbfa;
}
.needs-you-reply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.needs-you-reply-head > div { min-width: 0; display: grid; gap: 2px; }
.needs-you-reply-head strong { color: #243a52; font-size: 10px; }
.needs-you-reply-head span { overflow: hidden; color: var(--app-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.reply-queued { flex: 0 0 auto; border-radius: 999px; padding: 4px 7px; background: #e5f7f1; color: #14765e; font-size: 8px; }
.needs-you-reply-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: stretch; }
.needs-you-reply textarea { min-height: 38px; max-height: 120px; resize: vertical; border: 1px solid #cedbd8; border-radius: 9px; padding: 9px 10px; background: #fff; color: var(--app-ink); font-size: 10px; line-height: 1.4; }
.needs-you-reply textarea:focus { border-color: #74cdb5; outline: 3px solid rgba(29,159,125,.11); }
.needs-you-reply .button { align-self: stretch; min-width: 86px; }
.needs-you-reply small { display: block; margin-top: 7px; color: #6c7a8c; font-size: 8px; line-height: 1.4; }
.obligation-guide { margin-top: 12px; border: 1px solid #dbe5eb; border-radius: 12px; padding: 12px; background: #f8fafc; }
.obligation-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.obligation-guide-head > div { min-width: 0; display: grid; gap: 3px; }
.obligation-guide-head strong { color: #263b52; font-size: 10px; }
.obligation-guide-head span { color: #708094; font-size: 8px; line-height: 1.4; }
.guide-status { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; background: #edf2f6; color: #637387; font-size: 8px; }
.guide-status.running { background: #edf3ff; color: #4773b7; }
.guide-status.resolved { background: #e6f8f2; color: #13765e; }
.guide-status.open { background: #fff1df; color: #a66313; }
.guide-response { margin-top: 10px; border-left: 2px solid #5c88c7; padding: 9px 10px; background: #f0f5fc; }
.guide-response strong { display: block; margin-bottom: 4px; color: #385d91; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.guide-response p { color: #425a77 !important; font-size: 9px !important; white-space: pre-wrap; }
.guide-progress { display: flex; align-items: center; gap: 8px; margin-top: 10px; border-radius: 9px; padding: 8px 10px; background: #edf3ff; }
.guide-progress span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4c7cc3; box-shadow: 0 0 0 4px rgba(76,124,195,.12); }
.guide-progress p { color: #4d6e9e !important; font-size: 8px !important; }
.obligation-guide-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 10px; }
.obligation-guide-form textarea { min-height: 52px; max-height: 140px; resize: vertical; border: 1px solid #cdd9e1; border-radius: 9px; padding: 9px 10px; background: #fff; color: var(--app-ink); font-size: 10px; line-height: 1.45; }
.obligation-guide-form textarea:focus { border-color: #74cdb5; outline: 3px solid rgba(29,159,125,.11); }
.obligation-guide-form textarea:disabled { background: #f0f3f5; color: #8a96a5; }
.obligation-guide-form .button { align-self: stretch; min-width: 100px; }
.guide-actions { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.guide-actions small { margin-left: auto; color: #718095; font-size: 8px; line-height: 1.4; text-align: right; }
.check-resolution-button { border: 1px solid #bcd8ce; border-radius: 8px; padding: 7px 9px; background: #eef8f5; color: #14745d; font-size: 9px; font-weight: 800; cursor: pointer; }
.check-resolution-button:hover { background: #e2f4ee; }

/* Projects and chats */
.project-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px; background: #f7f9fa; }
.project-card { margin: 0; min-height: 130px; border: 1px solid var(--app-line); border-radius: 13px; padding: 16px; background: #fff; }
.project-card:last-child { border-bottom: 1px solid var(--app-line); }
.project-panel { border: 1px solid var(--app-line); background: #fff; color: var(--app-ink); }
.project-card h3 { color: var(--app-ink); font-size: 13px; }
.project-card p { margin-top: 6px; color: var(--app-muted); font-size: 10px; line-height: 1.45; }
.project-bottom { margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf1f4; font-size: 10px; }
.project-bottom span { color: #52647a; font-size: 10px; }
.project-bottom b { color: #8794a5; }
.chat-project-group { margin: 0; border-bottom: 1px solid var(--app-line); }
.chat-project-heading { padding: 16px 20px 10px; background: #f8fafb; }
.chat-project-heading small { font-size: 9px; }
.chat-row { grid-template-columns: minmax(0,1fr) 90px 80px 72px; gap: 14px; padding: 14px 20px; }
.chat-row h3 { font-size: 12px; line-height: 1.4; }
.chat-row p, .chat-status, .chat-time { font-size: 9px; }
.prompt-button { min-height: 31px; border-radius: 8px; font-size: 9px; }
.chat-browser-toolbar { padding: 18px 20px; }
.chat-inline-composer { margin-inline: 20px; }

/* Fleet, machines, security, and operations */
.fleet-stat-grid { gap: 1px; border-color: #263d55; background: #263d55; }
.fleet-stat-grid article { min-height: 94px; padding: 18px 21px; background: #14283f; }
.fleet-stat-grid strong { font-size: 24px; }
.fleet-stat-grid span, .fleet-stat-grid small { font-size: 9px; }
.smart-fleet-composer { margin: 20px; padding: 22px; border-radius: 15px; }
.composer-title h3 { font-size: 15px; }
.composer-title p { font-size: 10px; }
.smart-composer-grid { gap: 16px; margin-top: 18px; }
.smart-picker-card, .smart-instruction { border-radius: 14px; padding: 17px; }
.task-project-grid { gap: 8px; }
.task-project-choice { padding: 11px; }
.smart-instruction .composer-prompt textarea { min-height: 104px; }
.smart-composer-footer { margin-top: 16px; }

.machine-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; }
.machine-card { min-height: 150px; border-radius: 14px; padding: 16px; }
.machine-card h3 { font-size: 13px; }
.machine-card p { font-size: 10px; }
.machine-card-bottom { padding-top: 14px; }

.security-posture { gap: 10px; padding: 18px 20px; }
.posture-card { min-height: 72px; padding: 13px; }
.posture-card strong { font-size: 10px; }
.posture-card small { font-size: 9px; }
.security-section-head, .session-row { padding-inline: 20px; }
.session-row h4 { font-size: 11px; }
.session-row p { font-size: 9px; }

.operations-overview { gap: 12px; padding: 18px; }
.mail-delivery-card { margin: 0 18px 18px; border-radius: 14px; }
.diagnostic-section-head, .system-command-history-head, .login-activity-head { margin-top: 18px; padding: 18px 20px 11px; }
.diagnostic-machine-list { gap: 12px; padding: 0 18px 18px; }
.diagnostic-card { border-radius: 14px; }
.device-state-grid { gap: 8px; padding: 14px 16px 4px; }
.device-state-grid > div { padding: 10px; }
.device-state-grid strong { font-size: 12px; }
.process-control-head { padding-inline: 16px; }
.process-row { padding: 11px 16px; }
.process-row strong { font-size: 10px; }
.process-row span { font-size: 9px; }
.system-command-row, .login-event-row { padding-inline: 18px; }
.connection-note { margin: 16px 18px 18px !important; }

.prompt-row { padding: 15px 20px; }
.prompt-body h3 { font-size: 12px; }
.prompt-copy, .prompt-meta, .task-result, .prompt-error { font-size: 9px; }
.voice-launcher { right: 20px; bottom: 20px; min-height: 50px; border-radius: 15px; box-shadow: 0 12px 34px rgba(17,36,59,.24); }

.mobile-nav { display: none; }

.prompt-attachments {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}
.prompt-attachment-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt-attachment-tools > span {
  color: var(--app-muted);
  font-size: 9px;
}
.prompt-attachment-tools input[type="file"] {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.prompt-image-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid #cfdbe3;
  border-radius: 9px;
  padding: 6px 10px;
  background: #fff;
  color: #2f5268;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.prompt-image-button:hover { border-color: #79cbb5; background: #f1faf7; color: #14765e; }
.prompt-image-button:disabled { opacity: .45; cursor: not-allowed; }
.prompt-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 8px;
}
.prompt-image-preview {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  border: 1px solid #dce5ea;
  border-radius: 10px;
  padding: 6px 30px 6px 6px;
  background: #fff;
}
.prompt-image-preview img { width: 46px; height: 42px; border-radius: 7px; object-fit: cover; background: #eef2f5; }
.prompt-image-preview figcaption { min-width: 0; }
.prompt-image-preview figcaption span,
.prompt-image-preview figcaption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-image-preview figcaption span { color: var(--app-ink); font-size: 9px; font-weight: 750; }
.prompt-image-preview figcaption small { margin-top: 2px; color: var(--app-muted); font-size: 8px; }
.prompt-image-preview > button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  background: #eef2f5;
  color: #5b6879;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.prompt-image-preview > button:hover { background: #fdebe7; color: #ad3d33; }
.attachment-count-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: #edf3fb;
  color: #416b9f;
  font-weight: 800;
}
.prompt-footnote-picker {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid #dce6e7;
  border-radius: 11px;
  padding: 10px 11px;
  background: #f7faf9;
}
.prompt-footnote-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.prompt-footnote-picker-head > span {
  color: #536579;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}
.prompt-footnote-picker-head > button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #14765e;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.prompt-footnote-picker > p { margin: 0; color: var(--app-muted); font-size: 9px; line-height: 1.45; }
.prompt-footnote-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt-footnote-chips > button {
  min-height: 30px;
  border: 1px solid #cbdde0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #2d5264;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.prompt-footnote-chips > button:hover { border-color: #77cbb5; background: #edf9f5; color: #126f59; }
.prompt-footnote-chips > button.added { border-color: #83cdb8; background: #e8f7f2; color: #126f59; }
.prompt-footnote-chips > button:disabled { opacity: .45; cursor: not-allowed; }
.needs-you-reply .prompt-footnote-picker { margin-top: 8px; }
.obligation-guide-form .prompt-footnote-picker { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.prompt-refinement { margin-top: 8px; }
.prompt-refinement-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prompt-refinement-tools > button {
  min-height: 32px;
  border: 1px solid #b9d6e7;
  border-radius: 9px;
  padding: 7px 11px;
  background: #f2f8fc;
  color: #315f7e;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}
.prompt-refinement-tools > button:hover { border-color: #7dbad5; background: #eaf5fb; color: #1f5777; }
.prompt-refinement-tools > button:disabled { opacity: .58; cursor: wait; }
.prompt-refinement-tools label { display: flex; align-items: center; gap: 6px; color: var(--app-muted); font-size: 8px; font-weight: 750; }
.prompt-refinement-tools select { min-height: 31px; border: 1px solid #d4e0e6; border-radius: 8px; padding: 5px 26px 5px 8px; background: #fff; color: #40566b; font: inherit; font-size: 8px; }
.prompt-refinement-result { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; margin-top: 7px; border: 1px solid #d7e5ec; border-radius: 10px; padding: 8px 9px; background: #f8fbfd; }
.prompt-refinement-result > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #e8f4fb; color: #39749a; font-size: 9px; font-weight: 900; }
.prompt-refinement-result > span.refinement-ready { background: #e6f7f1; color: #168068; }
.prompt-refinement-result > span.refinement-error { background: #fff0eb; color: #b2533a; }
.refinement-spinner { animation: refinement-spin 1s linear infinite; }
.prompt-refinement-result p { margin: 0; color: #51677b; font-size: 8px; line-height: 1.4; }
.prompt-refinement-result strong,
.prompt-refinement-result small { display: block; }
.prompt-refinement-result strong { color: #2d465c; font-size: 9px; }
.prompt-refinement-result small { margin-top: 2px; color: var(--app-muted); }
.prompt-refinement-result button { border: 1px solid #bddbd2; border-radius: 8px; padding: 6px 8px; background: #edf9f5; color: #14745d; font-size: 8px; font-weight: 850; cursor: pointer; }
@keyframes refinement-spin { to { transform: rotate(360deg); } }
.needs-you-reply .prompt-refinement { margin-top: 8px; }
.obligation-guide-form .prompt-refinement { grid-column: 1 / -1; grid-row: 3; margin: 0; }
.needs-you-reply .prompt-attachments { margin: 8px 0 0; }
.obligation-guide-form .prompt-attachments { grid-column: 1 / -1; grid-row: 4; margin: 0; }
.obligation-guide-form > .button { grid-column: 2; grid-row: 1; }
.prompt-dialog .prompt-attachments { margin: 8px 0 12px; }

.footnote-workspace {
  display: grid;
  grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr);
  gap: 18px;
  padding: 20px;
}
.footnote-editor,
.footnote-library {
  min-width: 0;
  border: 1px solid #dce5ea;
  border-radius: 14px;
  background: #fbfcfc;
}
.footnote-editor { display: grid; align-content: start; gap: 14px; padding: 17px; }
.footnote-editor-head strong,
.footnote-library-head strong { display: block; color: var(--app-ink); font-size: 12px; }
.footnote-editor-head span,
.footnote-library-head span { display: block; margin-top: 3px; color: var(--app-muted); font-size: 9px; line-height: 1.45; }
.footnote-editor label { display: grid; gap: 6px; }
.footnote-editor label > span { color: #52647a; font-size: 9px; font-weight: 800; }
.footnote-editor input,
.footnote-editor textarea {
  width: 100%;
  border: 1px solid #cedae2;
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--app-ink);
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
}
.footnote-editor textarea { min-height: 156px; resize: vertical; }
.footnote-editor input:focus,
.footnote-editor textarea:focus { border-color: #77cbb5; outline: 3px solid rgba(29,159,125,.1); }
.footnote-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.footnote-library { overflow: hidden; background: #fff; }
.footnote-library-head { border-bottom: 1px solid #e2e9ed; padding: 17px; }
.footnote-list { display: grid; }
.footnote-card { min-width: 0; border-bottom: 1px solid #e6ecef; padding: 15px 17px; }
.footnote-card:last-child { border-bottom: 0; }
.footnote-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.footnote-card-head > div:first-child { min-width: 0; }
.footnote-card-head strong { display: block; color: var(--app-ink); font-size: 11px; }
.footnote-card-head span { display: block; margin-top: 2px; color: var(--app-muted); font-size: 8px; }
.footnote-card-head > div:last-child { display: flex; flex: 0 0 auto; gap: 5px; }
.footnote-card-head button {
  border: 1px solid #d5e0e5;
  border-radius: 8px;
  padding: 5px 8px;
  background: #f7f9fa;
  color: #40566b;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.footnote-card-head button:hover { border-color: #8fcfbe; background: #eff9f6; color: #14765e; }
.footnote-card-head button.delete:hover { border-color: #e6b5ad; background: #fff3f0; color: #a64036; }
.footnote-card > p { margin: 11px 0 0; color: #42566d; font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .dashboard { grid-template-columns: 208px minmax(0,1fr); }
  .main-panel { padding-inline: 26px; }
  .header-actions { flex-wrap: wrap; }
  .search-box { width: 220px; }
  .usage-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .usage-limit-card { grid-column: 1 / -1; }
  .project-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .todo-details { grid-template-columns: 120px 150px minmax(190px,1fr); }
}

@media (max-width: 820px) {
  .dashboard { display: block; }
  .sidebar { position: static; height: 64px; padding: 12px 15px; }
  .sidebar .brand { padding: 0; }
  .sidebar nav, .privacy-note, .logout-button, .install-app-button { display: none; }
  .main-panel { max-width: none; padding: 18px 14px 100px; }
  .mobile-install-card { width: 100%; align-items: center; gap: 12px; margin: 0 0 15px; border: 1px solid #a8ddcf; border-radius: 13px; padding: 13px 14px; background: var(--app-mint-soft); color: #146f59; text-align: left; }
  .mobile-install-card > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #d8f4eb; font-size: 19px; }
  .mobile-install-card div { min-width: 0; flex: 1; }
  .mobile-install-card strong, .mobile-install-card small { display: block; }
  .mobile-install-card strong { font-size: 14px; }
  .mobile-install-card small { margin-top: 2px; color: var(--app-muted); font-size: 12px; }
  .mobile-install-card b { border-radius: 9px; padding: 8px 10px; background: var(--app-mint); color: #fff; font-size: 12px; }
  .page-header { align-items: flex-start; min-height: 0; margin-bottom: 16px; padding-bottom: 16px; }
  .page-header h1 { font-size: 24px; }
  .page-header-copy > p:last-child { font-size: 14px; }
  .header-actions { width: 100%; margin-top: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; }
  .global-search { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .search-box { display: flex; width: 100%; min-height: 50px; }
  .search-box input { min-width: 0; padding-block: 12px; font-size: 16px; }
  .search-box kbd { display: none; }
  .global-search-results { position: fixed; z-index: 80; inset: 128px 12px auto; width: auto; max-height: min(62vh, 560px); border-radius: 16px; padding: 8px; }
  .global-search-result { grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 12px; }
  .global-search-icon { width: 38px; height: 38px; font-size: 16px; }
  .global-search-copy strong { font-size: 16px; }
  .global-search-copy small { margin-top: 3px; font-size: 13px; line-height: 1.45; }
  .global-search-kind { grid-column: 2; justify-self: start; margin-top: -5px; font-size: 11px; }
  .machine-select-wrap { grid-column: 1 / -1; grid-row: 2; }
  .machine-select-wrap { width: 100%; min-width: 0; }
  .header-actions #refresh-button { width: 100%; }
  .panel { border-radius: 14px; }
  .panel-head { align-items: flex-start; min-height: 0; padding: 17px 16px; }
  .panel-head h2 { font-size: 20px; }
  .panel-head p { font-size: 13px; }
  .today-hero { align-items: flex-start; min-height: 0; padding: 20px 18px 17px; }
  .today-hero h2 { font-size: 23px; }
  .today-signals { grid-template-columns: 1fr 1fr; }
  .today-signal:nth-child(2) { border-right: 0; }
  .today-signal:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .productivity-strip { grid-template-columns: auto minmax(0,1fr); margin: 14px 14px 0; }
  .productivity-strip .button, .productivity-strip .pill { grid-column: 2; justify-self: start; }
  .todo-composer { padding: 16px 14px; }
  .todo-details { grid-template-columns: 1fr 1fr; }
  .todo-details label:last-child { grid-column: 1 / -1; }
  .todo-toolbar { align-items: flex-start; padding: 16px 15px 11px; }
  .todo-row { padding: 13px 15px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 96px; padding: 14px; }
  .metric b { font-size: 21px; }
  .usage-summary-grid { grid-template-columns: 1fr; padding: 13px; }
  .usage-limit-card { grid-column: auto; }
  .usage-detail-grid { padding: 0 13px 13px; }
  .usage-optimization { margin: 0 13px 13px; }
  .usage-insights { grid-template-columns: 1fr; }
  .usage-chat-row { grid-template-columns: 28px minmax(0,1fr) auto; }
  .usage-chat-stat.cache { display: none; }
  .usage-chat-action { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; }
  .usage-chat-advice { display: block; }
  .attention-actions { align-items: flex-end; flex-direction: column-reverse; }
  .secretary-strip { margin: 13px 14px 0; }
  .filter-row { padding-inline: 14px; overflow-x: auto; }
  .filter-chip { flex: 0 0 auto; }
  .obligation-row { grid-template-columns: 34px minmax(0,1fr); padding: 14px; }
  .obligation-row .row-action { grid-column: 2; align-items: flex-start; flex-direction: row-reverse; justify-content: flex-end; }
  .needs-you-reply-row { grid-template-columns: 1fr; }
  .needs-you-reply .button { width: 100%; min-height: 38px; }
  .obligation-guide-form { grid-template-columns: 1fr; }
  .obligation-guide-form .button { grid-column: 1; grid-row: 5; min-height: 38px; }
  .guide-actions { align-items: stretch; flex-direction: column; }
  .guide-actions > button { width: 100%; }
  .guide-actions small { margin-left: 0; text-align: left; }
  .project-list, .machine-list { min-width: 0; grid-template-columns: minmax(0,1fr); padding: 13px; }
  .project-card { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; padding: 17px; }
  .project-top { min-width: 0; align-items: flex-start; }
  .project-top > div { min-width: 0; max-width: 100%; }
  .project-card h3 { align-items: flex-start; font-size: 18px !important; line-height: 1.35 !important; overflow-wrap: anywhere; word-break: break-word; }
  .project-card h3 .folder-glyph { margin-top: 4px; flex: 0 0 auto; }
  .project-card p { max-width: 100%; font-size: 15px !important; line-height: 1.55 !important; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
  .project-path { max-width: 100%; overflow: visible; font-size: 13px !important; line-height: 1.55 !important; text-overflow: clip; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
  .project-dot { flex: 0 0 9px; margin: 7px 3px 0 0; }
  .project-bottom { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .project-bottom span { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .chat-row { grid-template-columns: minmax(0,1fr) auto auto; padding: 13px 14px; }
  .chat-browser-toolbar { grid-template-columns: 1fr 1fr; padding: 14px; }
  .chat-search, .chat-browser-count { grid-column: 1 / -1; }
  .chat-browser-count { border-left: 0; border-top: 1px solid #dfe5eb; padding: 10px 0 0; }
  .chat-browser-note { margin-inline: 14px; }
  .chat-inline-composer { margin: 0 14px 14px; }
  .chat-inline-actions { grid-template-columns: 1fr; }
  .chat-inline-actions p { margin: 0; }
  .chat-inline-actions .button { width: 100%; }
  .chat-status { display: none; }
  .smart-fleet-composer { margin: 13px; padding: 15px; }
  .footnote-workspace { grid-template-columns: 1fr; padding: 13px; }
  .fleet-stat-grid { grid-template-columns: 1fr 1fr; }
  .security-posture { grid-template-columns: 1fr 1fr; padding: 14px; }
  .operations-overview, .diagnostic-machine-list { padding-inline: 13px; }
  .mail-delivery-card { margin-inline: 13px; }
  .device-state-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mobile-nav {
    position: fixed;
    z-index: 25;
    inset: auto 0 0;
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding: 7px 8px max(7px,env(safe-area-inset-bottom));
    border-top: 1px solid var(--app-line);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 24px rgba(23,36,58,.09);
    scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 76px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 9px; padding: 6px 4px; background: transparent; color: #748196; font-size: 10px; font-weight: 700; text-decoration: none; }
  .mobile-nav a span { font-size: 16px; }
  .mobile-nav a.active { background: var(--app-mint-soft); color: #14765e; }
  .voice-launcher { right: 13px; bottom: 72px; }
  .main-panel, .main-panel input, .main-panel select, .main-panel textarea, .main-panel button { font-size: 16px; }
  .page-header .eyebrow, .section-kicker { font-size: 11px !important; }
  .panel-head small, .chat-project-heading small, .chat-folder-line, .machine-identity p, .machine-card-bottom, .diagnostic-card p, .diagnostic-details, .system-command-row p, .todo-main p, .todo-meta, .row-meta, .obligation-row p, .verification-state, .needs-you-reply small, .obligation-guide-head span, .guide-actions small { font-size: 14px !important; line-height: 1.55; overflow-wrap: anywhere; }
  .chat-main h3, .machine-identity h3, .diagnostic-card h3, .todo-main h3, .obligation-row h3 { font-size: 17px !important; line-height: 1.4; overflow-wrap: anywhere; }
  .button, .button.compact, .prompt-button, .filter-chip, .todo-filter, .travel-badge, .machine-controls button, .machine-controls a { font-size: 14px; }
  .panel-head h2 { font-size: 23px; }
  .panel-head p { font-size: 15px; line-height: 1.55; }
  .main-panel, .panel, .project-panel, .project-list, .project-card, .project-top, .project-top > div { box-sizing: border-box; }
  body { overflow-x: hidden; }
}

@media (max-width: 540px) {
  .page-header { display: block; }
  .header-actions { width: 100%; margin-top: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .machine-select-wrap { width: auto; }
  .header-actions #refresh-button { width: auto; }
  .today-score { min-width: 64px; }
  .today-score strong { font-size: 28px; }
  .todo-capture-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .todo-capture-row #todo-title { grid-column: 1; grid-row: 1; }
  .todo-add-button { grid-column: 2; grid-row: 1; }
  .todo-details-toggle { grid-column: 1 / -1; grid-row: 2; justify-self: start; min-height: 32px; padding-inline: 9px; }
  .todo-add-button { min-width: 56px; }
  .todo-capture-foot { display: none; }
  #todo-details-summary { text-align: left; }
  .todo-details { grid-template-columns: 1fr; }
  .todo-details label:last-child { grid-column: auto; }
  .todo-toolbar { gap: 12px; }
  .todo-filters { width: 100%; overflow-x: auto; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .usage-limit-card { flex-direction: column; align-items: flex-start; }
  .usage-head-actions { width: 100%; flex-wrap: wrap; }
  .security-posture { grid-template-columns: 1fr; }
  .device-state-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .session-row { grid-template-columns: auto minmax(0,1fr); }
  .session-row button { grid-column: 2; }
}

:root[data-theme="dark"] {
  --app-bg: #09111d;
  --app-surface: #111c2b;
  --app-surface-subtle: #162335;
  --app-ink: #edf4fb;
  --app-muted: #a7b6c8;
  --app-line: #2a3a4d;
  --app-navy: #0c1a2a;
  --app-mint-soft: #12372f;
  --app-amber-soft: #3d2b15;
  --app-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .dashboard,
:root[data-theme="dark"] .main-panel { background: var(--app-bg); color: var(--app-ink); }
:root[data-theme="dark"] .sidebar { background: #081726; }
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .panel-head,
:root[data-theme="dark"] .panel-head.dark,
:root[data-theme="dark"] .project-panel,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .machine-card,
:root[data-theme="dark"] .diagnostic-card,
:root[data-theme="dark"] .footnote-library,
:root[data-theme="dark"] .todo-composer,
:root[data-theme="dark"] .todo-toolbar,
:root[data-theme="dark"] .chat-project-heading,
:root[data-theme="dark"] .chat-inline-composer,
:root[data-theme="dark"] .obligation-guide,
:root[data-theme="dark"] .needs-you-reply,
:root[data-theme="dark"] .button.ghost,
:root[data-theme="dark"] .machine-select-wrap,
:root[data-theme="dark"] .search-box { background: var(--app-surface); color: var(--app-ink); border-color: var(--app-line); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .todo-details input,
:root[data-theme="dark"] .todo-details select,
:root[data-theme="dark"] .needs-you-reply textarea,
:root[data-theme="dark"] .obligation-guide-form textarea { background: #0d1826; color: var(--app-ink); border-color: #33465b; }
:root[data-theme="dark"] .page-header h1,
:root[data-theme="dark"] .panel-head h2,
:root[data-theme="dark"] .project-card h3,
:root[data-theme="dark"] .machine-card h3,
:root[data-theme="dark"] .diagnostic-card h3,
:root[data-theme="dark"] .chat-main h3,
:root[data-theme="dark"] .todo-main h3,
:root[data-theme="dark"] .obligation-row h3,
:root[data-theme="dark"] .button.ghost { color: var(--app-ink); }
:root[data-theme="dark"] .project-bottom,
:root[data-theme="dark"] .chat-browser-count,
:root[data-theme="dark"] .todo-details,
:root[data-theme="dark"] .todo-row,
:root[data-theme="dark"] .obligation-row,
:root[data-theme="dark"] .chat-row,
:root[data-theme="dark"] .process-row,
:root[data-theme="dark"] .system-command-row { border-color: var(--app-line); }
:root[data-theme="dark"] .guide-response,
:root[data-theme="dark"] .guide-progress,
:root[data-theme="dark"] .chat-browser-note,
:root[data-theme="dark"] .secretary-strip,
:root[data-theme="dark"] .productivity-strip { background: #142639; border-color: #2c4a58; }
:root[data-theme="dark"] .mobile-nav { background: rgba(9,17,29,.98); border-color: var(--app-line); }
:root[data-theme="dark"] .mobile-nav a { color: #a8b6c8; }
:root[data-theme="dark"] .mobile-nav a.active { background: #12372f; color: #79dfc0; }
:root[data-theme="dark"] .mobile-install-card { background: #12372f; border-color: #286454; color: #8ce2c7; }
:root[data-theme="dark"] .mobile-install-card > span { background: #19483d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
