:root {
  --page: #eef2f7;
  --panel: #ffffff;
  --ink: #15171a;
  --muted: #667085;
  --line: #d8dde6;
  --rail: #0f172a;
  --accent: #002fa7;
  --accent-soft: #e9efff;
  --orange: #ff4f00;
  --green: #237a57;
  --red: #b42318;
  --amber: #9a6700;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.left-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: var(--rail);
  color: #fff;
  padding: 22px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.brand-block {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.brand-kicker,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.left-rail .brand-kicker {
  color: #9db5ff;
}

.brand-block h1 {
  font-size: 24px;
  line-height: 1.16;
}

.brand-block p {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, .78);
  text-align: left;
  padding: 9px 11px;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  border-color: rgba(157, 181, 255, .5);
  background: rgba(157, 181, 255, .14);
}

.rail-section {
  display: grid;
  gap: 12px;
}

.section-head,
.panel-head,
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.section-head h2,
.panel-head h2,
.card-head h2 {
  font-size: 16px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #9db5ff;
  padding: 0;
}

.goal-list {
  display: grid;
  gap: 8px;
}

.goal-item {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, .05);
}

.goal-item strong {
  display: block;
  font-size: 14px;
}

.goal-item span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.main-area {
  min-width: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.topline h2 {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1.15;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  border-radius: var(--radius);
  padding: 9px 13px;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #263241;
}

.secondary-button.full {
  width: 100%;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.work-column,
.ai-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.panel,
.focus-card,
.list-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 15px;
  display: grid;
  gap: 12px;
}

.focus-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.list-card {
  overflow: hidden;
}

.list-card .card-head {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.quick-input {
  width: 100%;
  min-height: 164px;
  resize: vertical;
  border: 1px dashed #aab3c2;
  border-radius: var(--radius);
  padding: 14px;
  outline: none;
  line-height: 1.65;
}

.quick-input:focus,
.input:focus,
.compact-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 47, 167, .12);
}

.input,
.compact-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  outline: none;
}

.compact-input {
  resize: vertical;
  line-height: 1.55;
}

.capture-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.capture-status {
  min-width: 120px;
  text-align: right;
  color: var(--accent);
  font-weight: 700;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.check-row input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.review-card {
  border-left: 4px solid var(--orange);
}

.analysis-status {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.analysis-status span,
.analysis-status p,
.analysis-status details {
  margin: 0;
  color: var(--muted);
}

.analysis-status-success {
  border-color: rgba(13, 157, 120, .26);
  background: rgba(13, 157, 120, .055);
}

.analysis-status-private {
  border-color: rgba(22, 119, 255, .24);
  background: rgba(22, 119, 255, .045);
}

.analysis-status-fallback {
  border-color: rgba(196, 114, 0, .34);
  background: rgba(196, 114, 0, .07);
}

.analysis-status-fallback details {
  margin-top: 2px;
}

.analysis-status-fallback summary {
  cursor: pointer;
  color: #6d4700;
  font-weight: 700;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.review-item span {
  display: grid;
  gap: 3px;
}

.review-item small {
  color: var(--muted);
  font-size: 12px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.65;
}

.report-actions {
  display: flex;
  gap: 8px;
}

.source-note {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 12px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.hidden-file {
  display: none;
}

.rule-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: #344054;
  font-size: 13px;
}

.source-focus {
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.subtle {
  color: var(--muted);
  font-size: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
  min-height: 104px;
}

.summary-tile strong {
  font-size: 24px;
}

.summary-tile span {
  color: var(--muted);
  font-size: 13px;
}

.row-list,
.insight-list,
.state-stack {
  display: grid;
  gap: 10px;
}

.item-row {
  display: grid;
  gap: 6px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.item-row:last-child {
  border-bottom: 0;
}

.item-row strong,
.insight strong,
.state-card strong {
  font-size: 14px;
}

.item-row p,
.insight p,
.state-card p {
  font-size: 13px;
}

.insight,
.state-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  display: grid;
  gap: 6px;
  background: #fff;
}

.insight.high {
  border-left: 4px solid var(--orange);
}

.insight.normal {
  border-left: 4px solid var(--accent);
}

.insight.low {
  border-left: 4px solid var(--green);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: #344054;
  background: #fff;
  font-size: 12px;
}

.task-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.task-actions {
  display: flex;
  gap: 6px;
}

.mini-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  padding: 5px 8px;
}

.empty {
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

.analysis-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faff;
  padding: 13px;
  display: grid;
  gap: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  width: min(420px, calc(100vw - 32px));
}

.dialog form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dialog::backdrop {
  background: rgba(15, 23, 42, .32);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: .18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop cockpit homepage: action lane, AI hub, and a focused sediment lane. */
.cockpit-shell {
  display: grid;
  gap: 16px;
}

.cockpit-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 4px;
}

.cockpit-intro h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.12;
}

.cockpit-intro p {
  margin-top: 8px;
  max-width: 620px;
  font-size: 14px;
}

.cockpit-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cockpit-counts span {
  min-width: 88px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.cockpit-counts strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
}

.cockpit-counts .is-alert {
  border-color: rgba(180, 35, 24, .36);
}

.cockpit-counts .is-alert strong {
  color: var(--red);
}

.cockpit-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(400px, 1.18fr);
  gap: 16px;
  align-items: stretch;
}

.cockpit-route,
.cockpit-core {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cockpit-route {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.cockpit-section-head,
.sediment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cockpit-section-head > div,
.sediment-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-section-head h2 {
  font-size: 18px;
}

.lane-mark {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.lane-mark.core-mark {
  width: 31px;
  border-color: var(--green);
  color: var(--green);
}

.lane-mark.sediment-mark {
  border-color: var(--orange);
  color: var(--orange);
}

.lane-description {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.route-list {
  border-top: 1px solid var(--line);
}

.route-list .item-row {
  padding: 12px 0;
}

.route-list .task-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cockpit-core {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border-top: 3px solid var(--green);
}

.core-status {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.core-message {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: #f8faff;
}

.core-message strong {
  font-size: 18px;
}

.core-message p {
  font-size: 13px;
}

.core-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.core-flow span {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  font-size: 12px;
  text-align: center;
}

.cockpit-input {
  min-height: 180px;
  border-style: solid;
  background: #fbfcff;
}

.cockpit-actions {
  align-items: center;
}

.cockpit-history {
  margin-top: 2px;
}

.cockpit-sediment .panel {
  box-shadow: none;
}

.cockpit-sediment .panel:first-child {
  border-top: 3px solid var(--accent);
}

.cockpit-sediment .panel:nth-child(2) {
  border-top: 3px solid var(--orange);
}

.sediment-head {
  align-items: flex-start;
  justify-content: flex-start;
  padding-bottom: 2px;
}

.sediment-head > div {
  display: grid;
  gap: 2px;
}

.sediment-head p {
  font-size: 12px;
}

.cockpit-sediment .state-card {
  gap: 8px;
}

.cockpit-sediment .state-card .mini-button {
  width: fit-content;
}

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .ai-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-grid,
  .two-col,
  .cockpit-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .left-rail {
    position: relative;
    height: auto;
  }

  .ai-column,
  .summary-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* PC shell rebuild: closer to the selected dual-route cockpit reference. */
:root {
  --page: #eef3f7;
  --panel: rgba(255, 255, 255, .86);
  --ink: #141a26;
  --muted: #687284;
  --line: rgba(20, 26, 38, .1);
  --rail: #ffffff;
  --accent: #1677ff;
  --accent-soft: #edf5ff;
  --green: #0d9d78;
  --orange: #e18a20;
  --red: #b42318;
  --radius: 24px;
  --shadow: 0 22px 55px rgba(28, 39, 66, .12);
  --soft-shadow: 0 12px 28px rgba(28, 39, 66, .08);
}

body {
  background:
    radial-gradient(circle at 7% 8%, rgba(22, 119, 255, .14), transparent 28%),
    radial-gradient(circle at 94% 10%, rgba(13, 157, 120, .12), transparent 26%),
    linear-gradient(180deg, #fbfcfe 0%, var(--page) 58%, #e9edf3 100%);
  color: var(--ink);
}

.app-shell {
  width: min(1640px, calc(100vw - 48px));
  min-height: 100vh;
  display: block;
  margin: 0 auto;
  padding: 14px 0 46px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: var(--ink);
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 14px 26px rgba(22, 119, 255, .18);
}

.brand-block h1 {
  font-size: 20px;
}

.brand-block p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-area {
  padding: 0;
  gap: 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: end;
  padding: 42px 4px 22px;
}

.hero h2 {
  max-width: 940px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
}

.hero-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--soft-shadow);
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 20px;
}

.nav-item {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.nav-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.nav-item span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nav-item.active,
.nav-item:hover {
  transform: translateY(-6px);
  background: #fff;
  color: var(--ink);
  border-color: rgba(13, 157, 120, .38);
  box-shadow: 0 24px 46px rgba(13, 157, 120, .14);
}

.nav-item.active strong,
.nav-item:hover strong {
  color: var(--ink);
}

.nav-item.active span,
.nav-item:hover span {
  color: var(--muted);
}

.stage {
  min-height: 680px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.stage-head h2 {
  margin-top: 8px;
  font-size: 38px;
  line-height: 1.1;
}

.stage-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.stage-tags span,
.tag {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(13, 157, 120, .1);
  color: #0d7e64;
  font-size: 12px;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.workspace-grid.dashboard-mode {
  grid-template-columns: 1fr;
}

.workspace-grid.dashboard-mode .ai-column {
  display: none;
}

.concept-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.concept-head h3 {
  font-size: 30px;
  line-height: 1.15;
}

.concept-head p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 14px;
}

.cockpit-brief {
  align-items: center;
  margin-bottom: 14px;
}

.cockpit-brief p {
  margin-top: 0;
}

.cockpit-board {
  display: grid;
  grid-template-columns: minmax(330px, 1.1fr) minmax(290px, .7fr) minmax(330px, 1.1fr);
  gap: 18px;
  min-height: 560px;
  padding: 22px;
  border: 1px solid rgba(20, 26, 38, .08);
  border-radius: 32px;
  background: #f7f8fb;
}

.route-panel,
.core-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(20, 26, 38, .08);
  border-radius: 30px;
  background: #fff;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.route-panel:hover,
.core-panel:hover,
.panel:hover,
.list-card:hover,
.focus-card:hover,
.goal-item:hover,
.flow-node:hover,
.summary-tile:hover {
  transform: translateY(-7px);
  border-color: rgba(22, 119, 255, .24);
  box-shadow: 0 26px 52px rgba(28, 39, 66, .14);
}

.route-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.route-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.route-title h3 {
  font-size: 25px;
}

.node-list {
  display: grid;
  gap: 14px;
}

.flow-node {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: #f1f4f8;
  color: var(--muted);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.flow-node strong {
  color: #596579;
  font-size: 14px;
}

.task-node {
  background: #f5f7fa;
}

.warning-node {
  background: rgba(255, 79, 0, .08);
}

.warning-node strong {
  color: var(--red);
}

.node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.core-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(13, 157, 120, .12), #fff 58%);
}

@property --ai-progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.core-orb-shell {
  --ai-progress: 0deg;
  position: relative;
  width: 194px;
  height: 194px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #2563eb 0deg,
    #18b9d6 calc(var(--ai-progress) * .58),
    #0d9d78 var(--ai-progress),
    rgba(37, 99, 235, .13) var(--ai-progress),
    rgba(13, 157, 120, .13) 360deg
  );
  box-shadow: 0 26px 58px rgba(22, 119, 255, .18);
  transition: --ai-progress .55s ease-out, box-shadow .35s ease, transform .35s ease;
}

.core-orb-shell::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, .08);
}

.core-orb-shell[data-state="working"] {
  box-shadow: 0 28px 68px rgba(22, 119, 255, .28), 0 0 34px rgba(24, 185, 214, .18);
  animation: aiRingBreath 1.8s ease-in-out infinite;
}

.core-orb-shell[data-state="complete"] {
  box-shadow: 0 28px 72px rgba(13, 157, 120, .3), 0 0 30px rgba(24, 185, 214, .22);
}

.core-orb-shell[data-state="fallback"] {
  box-shadow: 0 28px 68px rgba(37, 99, 235, .25), 0 0 28px rgba(13, 157, 120, .16);
}

.core-orb {
  position: relative;
  z-index: 1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  background: linear-gradient(135deg, #246fee 0%, #18a6ca 52%, #0d9d78 100%);
  background-size: 220% 220%;
  box-shadow: 0 34px 72px rgba(22, 119, 255, .22);
  overflow: hidden;
  text-shadow: 0 2px 14px rgba(3, 44, 78, .32);
  transition: transform .22s ease, box-shadow .28s ease, filter .28s ease;
}

.core-submit-button {
  cursor: pointer;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
  scroll-margin-top: 120px;
}

.core-submit-button::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .4) 48%, transparent 64%);
  transform: translateX(-48%) rotate(8deg);
  pointer-events: none;
}

.core-submit-button::after {
  content: "";
  position: absolute;
  inset: 50%;
  z-index: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  opacity: 0;
  pointer-events: none;
}

.core-orb-label {
  position: relative;
  z-index: 1;
  max-width: 118px;
  line-height: 1.08;
}

.core-orb-percent {
  position: absolute;
  z-index: 1;
  bottom: 38px;
  min-height: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .82);
  font-variant-numeric: tabular-nums;
}

.core-submit-button:not(:disabled):hover,
.core-submit-button:not(:disabled):focus-visible {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 38px 86px rgba(13, 157, 120, .32), 0 0 28px rgba(24, 185, 214, .22);
}

.core-submit-button:not(:disabled):active {
  transform: translateY(1px) scale(.96);
  transition-duration: .08s;
}

.core-submit-button.is-launching::after {
  animation: aiClickPulse .52s ease-out;
}

.core-submit-button.is-working {
  background-size: 260% 260%;
  animation: aiSurfaceFlow 2.6s ease-in-out infinite;
}

.core-submit-button.is-working::before {
  opacity: 1;
  animation: aiSurfaceSweep 2.1s ease-in-out infinite;
}

.core-submit-button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .32);
  outline-offset: 6px;
}

.core-submit-button:disabled {
  cursor: not-allowed;
  opacity: 1;
  filter: saturate(.88) brightness(.98);
  box-shadow: 0 24px 54px rgba(22, 119, 255, .2);
}

@keyframes aiRingBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes aiSurfaceFlow {
  0%, 100% { background-position: 0% 48%; }
  50% { background-position: 100% 52%; }
}

@keyframes aiSurfaceSweep {
  0%, 18% { transform: translateX(-56%) rotate(8deg); opacity: 0; }
  42% { opacity: 1; }
  72%, 100% { transform: translateX(56%) rotate(8deg); opacity: 0; }
}

@keyframes aiClickPulse {
  0% { inset: 50%; opacity: .7; }
  100% { inset: -8%; opacity: 0; }
}

.core-copy {
  max-width: 300px;
}

.core-copy strong {
  font-size: 18px;
}

.core-copy p {
  margin-top: 7px;
  font-size: 13px;
}

.core-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.core-steps span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cockpit-input {
  min-height: 142px;
  border-style: solid;
  border-color: rgba(20, 26, 38, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  text-align: left;
}

.cockpit-actions {
  width: 100%;
  text-align: left;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ghost-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #344054;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ghost-button:hover,
.mini-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.goal-dock {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--soft-shadow);
}

.goal-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.goal-item {
  border-color: var(--line);
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.goal-item span {
  color: var(--muted);
}

.priority-strip {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.priority-strip-summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.priority-strip-summary::-webkit-details-marker {
  display: none;
}

.priority-strip-summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.priority-strip[open] .priority-strip-summary {
  border-bottom: 1px solid var(--line);
}

.priority-strip[open] .priority-strip-summary::after {
  content: "-";
}

.priority-summary-title {
  display: grid;
  gap: 2px;
}

.priority-summary-title .eyebrow {
  font-size: 11px;
}

.priority-summary-title strong {
  font-size: 15px;
}

.priority-summary-items {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.priority-summary-item {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 33.333%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.priority-summary-item strong,
.priority-summary-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-summary-item strong {
  flex: 0 1 auto;
  color: var(--ink);
}

.priority-summary-item span::before {
  content: " · ";
}

.priority-summary-item.high {
  border-color: rgba(180, 35, 24, .3);
  background: rgba(180, 35, 24, .05);
}

.priority-summary-item.normal {
  border-color: rgba(22, 119, 255, .25);
  background: rgba(22, 119, 255, .045);
}

.priority-summary-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.priority-expanded {
  padding: 12px 14px 14px;
}

.priority-strip-head,
.priority-action,
.filter-row,
.settings-grid,
.dialog-grid,
.feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.priority-strip-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.priority-strip-head h3 {
  margin-top: 5px;
  font-size: 18px;
}

.priority-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.priority-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.review-card {
  scroll-margin-top: 120px;
}

.priority-item.high {
  border-color: rgba(180, 35, 24, .3);
  background: rgba(180, 35, 24, .05);
}

.priority-item.normal {
  border-color: rgba(22, 119, 255, .25);
  background: rgba(22, 119, 255, .045);
}

.priority-item p,
.priority-action p,
.scope-note,
.method-note,
.task-blocker {
  margin-top: 6px;
  font-size: 12px;
}

.priority-action {
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 11px;
}

.priority-action details,
.analysis-details,
.report-details {
  color: var(--muted);
  font-size: 12px;
}

.priority-action summary,
.analysis-details summary,
.report-details summary {
  cursor: pointer;
  color: #344054;
  font-weight: 700;
}

.feedback-actions {
  margin-top: 8px;
}

.filter-row {
  flex-wrap: wrap;
  padding: 0 18px 14px;
}

.filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-row > .input {
  min-width: min(100%, 300px);
}

.compact-select {
  min-width: 120px;
}

.settings-grid,
.dialog-grid {
  align-items: stretch;
}

.settings-grid > label,
.dialog-grid > label {
  flex: 1 1 0;
}

.settings-grid label,
.dialog label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
}

.scope-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: rgba(13, 157, 120, .06);
}

.report-details {
  margin-top: 14px;
}

.report-details[open] {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.task-blocker {
  color: var(--red);
}

.method-note {
  max-width: 760px;
}

.dialog {
  width: min(560px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.dialog::backdrop {
  background: rgba(20, 26, 38, .28);
}

.panel,
.focus-card,
.list-card,
.summary-tile,
.insight,
.state-card,
.analysis-box {
  border-color: var(--line);
  border-radius: 22px;
}

.list-card .card-head {
  padding: 16px 18px;
}

.item-row {
  padding: 14px 18px;
}

@media (max-width: 1280px) {
  .hero,
  .cockpit-board {
    grid-template-columns: 1fr;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .priority-strip-head,
  .priority-action,
  .settings-grid,
  .dialog-grid {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 1181px) {
  .cockpit-board {
    grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.2fr) minmax(260px, 1fr);
  }

  .nav-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .core-orb-shell,
  .core-submit-button,
  .core-submit-button::before,
  .core-submit-button::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* Simplified front layer: keep the existing palette while the system absorbs the detail. */
.utility-menu {
  position: relative;
}

.utility-menu > summary,
.menu-subdetails > summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  background: #fff;
  color: #263241;
  cursor: pointer;
  list-style: none;
}

.utility-menu > summary::-webkit-details-marker,
.menu-subdetails > summary::-webkit-details-marker {
  display: none;
}

.utility-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 240px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(28, 39, 66, .16);
}

.utility-menu-panel .nav-item {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
}

.utility-menu-panel .nav-item span {
  margin-top: 4px;
}

.menu-subdetails {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.menu-subdetails > summary {
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: #f7f8fb;
}

.menu-subdetails-body {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.simple-focus-card,
.library-workbench,
.assistant-workbench {
  display: grid;
  gap: 18px;
}

.simple-focus-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.simple-focus-head,
.simple-next-action,
.simple-today-footer,
.assistant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.simple-focus-head h2,
.simple-page-head h2 {
  margin-top: 7px;
  font-size: 30px;
  line-height: 1.15;
}

.simple-focus-head p,
.simple-page-head p {
  max-width: 700px;
  margin-top: 8px;
}

.simple-focus-status,
.library-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.simple-focus-status.prompt-status {
  background: #eaf1ff;
  color: var(--blue);
}

.simple-next-action,
.simple-empty-action,
.assistant-next-action,
.quiet-review-note {
  padding: 15px 16px;
  border: 1px solid #dce5f6;
  border-radius: 16px;
  background: #f8fbff;
}

.simple-next-action div,
.simple-empty-action,
.assistant-next-action,
.quiet-review-note {
  display: grid;
  gap: 5px;
}

.simple-next-action span,
.simple-empty-action span,
.assistant-next-action span {
  color: var(--muted);
  font-size: 12px;
}

.simple-next-action strong,
.simple-empty-action strong,
.assistant-next-action strong {
  color: var(--ink);
  font-size: 16px;
}

.simple-next-action small {
  color: var(--muted);
}

.simple-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.prompt-next-action {
  border-color: #d6e4ff;
  background: #f7faff;
}

.checkin-color-0 {
  --checkin-color: #3b82f6;
  --checkin-rgb: 59, 130, 246;
}

.checkin-color-1 {
  --checkin-color: #10b981;
  --checkin-rgb: 16, 185, 129;
}

.checkin-color-2 {
  --checkin-color: #f59e0b;
  --checkin-rgb: 245, 158, 11;
}

.checkin-color-3 {
  --checkin-color: #ef6b73;
  --checkin-rgb: 239, 107, 115;
}

.checkin-color-4 {
  --checkin-color: #8b5cf6;
  --checkin-rgb: 139, 92, 246;
}

.daily-checkin-card,
.home-checkin-row {
  border-color: rgba(var(--checkin-rgb), .34);
  background: rgba(var(--checkin-rgb), .065);
  box-shadow: 0 9px 20px rgba(var(--checkin-rgb), .12), 0 0 0 1px rgba(var(--checkin-rgb), .16);
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1), border-color 320ms ease, box-shadow 420ms ease, background 320ms ease;
  will-change: transform;
}

.daily-checkin-card:hover,
.home-checkin-row:hover {
  z-index: 1;
  border-color: var(--checkin-color);
  background: rgba(var(--checkin-rgb), .12);
  box-shadow: 0 20px 42px rgba(var(--checkin-rgb), .28), 0 0 0 3px rgba(var(--checkin-rgb), .66), 0 0 0 7px rgba(var(--checkin-rgb), .14);
  transform: translateY(-8px) scale(1.022);
}

.home-checkin-list {
  display: grid;
  gap: 10px;
}

.home-checkin-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 15px;
}

.home-checkin-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.home-checkin-copy span {
  color: var(--checkin-color);
  font-size: 12px;
  font-weight: 800;
}

.home-checkin-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  white-space: normal;
}

.home-checkin-copy strong em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.home-checkin-button {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 14px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.daily-checkin-idle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  background: #fbfcfe;
}

.daily-checkin-idle > div {
  display: grid;
  gap: 4px;
}

.daily-checkin-idle span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.daily-checkin-idle strong {
  color: var(--ink);
  font-size: 15px;
}

.daily-checkin-idle small {
  color: var(--muted);
}

.simple-stalled-summary {
  border-top: 1px solid var(--line);
}

.simple-stalled-summary summary {
  min-height: 42px;
  padding-top: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.simple-stalled-summary > div {
  display: grid;
  gap: 4px;
  padding: 0 0 4px;
}

.simple-stalled-summary button {
  display: grid;
  gap: 3px;
  padding: 10px 4px;
  border: 0;
  border-left: 3px solid #d9e7ff;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, color 180ms ease, transform 220ms ease;
}

.simple-stalled-summary button:hover {
  border-left-color: var(--blue);
  color: var(--blue);
  transform: translateX(3px);
}

.simple-stalled-summary button small {
  color: var(--muted);
  font-size: 12px;
}

.simple-stalled-summary button span {
  font-size: 14px;
  font-weight: 750;
}

.prompt-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-summary-row > button:first-child {
  flex: 1;
}

.prompt-summary-row .mini-button {
  flex: 0 0 auto;
}

.simple-core-panel {
  width: 100%;
  min-height: 500px;
  padding: 28px;
  border-radius: 22px;
}

.simple-core-panel .core-copy {
  max-width: 760px;
  text-align: center;
}

.simple-core-panel .core-copy > .eyebrow,
.simple-core-panel .core-copy > strong {
  display: inline;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.simple-core-panel .core-copy > .eyebrow {
  margin-right: 6px;
}

.simple-core-panel .core-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.simple-today-footer {
  color: var(--muted);
  font-size: 13px;
}

.simple-page-head {
  padding: 8px 4px 2px;
}

.library-search-card,
.assistant-question-card,
.assistant-result-card,
.quiet-empty-state {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.library-search-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.library-result-card {
  overflow: hidden;
}

.library-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.library-type.type-experience {
  background: #f5f3ff;
  color: #6d28d9;
}

.library-type.type-knowledge {
  background: #eefbf5;
  color: #18794e;
}

.library-row p {
  margin-top: 7px;
}

.library-guide {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.library-guide summary {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.library-guide summary::-webkit-details-marker {
  display: none;
}

.library-guide summary::after {
  content: "+";
  margin-left: 8px;
  font-size: 18px;
  font-weight: 500;
}

.library-guide[open] summary::after {
  content: "-";
}

.library-guide-body {
  display: grid;
  gap: 12px;
  padding: 4px 0 2px;
}

.library-guide-block {
  border-left: 3px solid #d9e7ff;
  padding-left: 12px;
}

.library-guide-block > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.library-guide-block p,
.library-guide-block ol,
.library-guide-block ul {
  margin: 5px 0 0;
}

.library-guide-block ol,
.library-guide-block ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.library-guide-source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.assistant-question-card .quick-input {
  min-height: 130px;
}

.assistant-result-card {
  gap: 16px;
}

.assistant-result-head {
  display: grid;
  gap: 6px;
}

.assistant-result-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.assistant-result-head h3 {
  font-size: 24px;
}

.assistant-result-card > p {
  color: var(--ink);
  line-height: 1.8;
}

.assistant-sources {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.assistant-sources summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.goal-dock[hidden] {
  display: none;
}

.auth-dialog {
  width: min(420px, calc(100vw - 32px));
}

.auth-dialog form {
  display: grid;
  gap: 14px;
}

.auth-dialog .dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    padding: max(8px, env(safe-area-inset-top)) 10px calc(28px + env(safe-area-inset-bottom));
  }

  .topbar {
    top: max(8px, env(safe-area-inset-top));
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-block h1 {
    font-size: 18px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .top-actions > * {
    min-width: 0;
  }

  .top-actions .utility-menu,
  .top-actions .utility-menu > summary {
    width: 100%;
  }

  .top-actions .utility-menu > summary,
  .top-actions > button {
    justify-content: center;
    min-height: 44px;
    padding-inline: 8px;
    text-align: center;
  }

  .main-area {
    gap: 14px;
  }

  .panel,
  .focus-card,
  .list-card,
  .summary-tile {
    border-radius: 18px;
  }

  .quick-input {
    min-height: 132px;
    font-size: 16px;
  }

  .input,
  .compact-input,
  select,
  button {
    min-height: 44px;
  }

  .dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    border-radius: 18px;
  }

  .simple-focus-head,
  .simple-next-action,
  .simple-today-footer,
  .assistant-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-focus-head > *,
  .simple-next-action > *,
  .simple-today-footer > *,
  .assistant-actions > * {
    width: 100%;
  }

  .library-search-card {
    grid-template-columns: 1fr;
  }

  .utility-menu-panel {
    right: -64px;
  }
}
/* Keep the five-step workflow inside the original visual system. */
.pending-capture {
  border-color: rgba(13, 157, 120, .38);
  background: linear-gradient(135deg, #ffffff, #effcf7);
}

.review-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--soft-shadow);
}

.review-source,
.review-outcome,
.review-field {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(22, 119, 255, .06);
}

.review-outcome {
  background: rgba(13, 157, 120, .08);
}

.review-count {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.review-actions,
.task-workbench-head,
.method-workbench-head,
.report-workbench-head,
.setting-action-row,
.report-period-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-workbench,
.method-workbench,
.report-workbench,
.settings-workbench {
  display: grid;
  gap: 16px;
}

.task-workbench-head,
.method-workbench-head,
.report-workbench-head,
.settings-workbench-head {
  padding: 4px 4px 18px;
  border-bottom: 1px solid var(--line);
}

.task-workbench-head h2,
.method-workbench-head h2,
.report-workbench-head h2,
.settings-workbench-head h2,
.empty-task-state h2,
.empty-method-state h2,
.empty-report-state h2 {
  margin: 5px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.task-summary,
.method-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.task-summary .summary-tile,
.method-summary .summary-tile {
  min-height: 104px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--soft-shadow);
}

.task-list-card,
.method-list-card,
.setting-section,
.setting-details,
.report-ready-state,
.empty-task-state,
.empty-method-state,
.empty-report-state {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--soft-shadow);
}

.task-list-card .card-head,
.method-list-card .card-head,
.setting-section {
  padding: 18px;
}

.task-list-card .task-row,
.method-row {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(216, 221, 230, .78);
}

.task-primary-action,
.method-primary-action {
  min-width: 104px;
}

.task-more,
.method-more {
  position: relative;
}

.task-more summary,
.method-more summary {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.task-more summary::-webkit-details-marker,
.method-more summary::-webkit-details-marker {
  display: none;
}

.task-more > div,
.method-more > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 118px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.report-ready-state,
.empty-task-state,
.empty-method-state,
.empty-report-state {
  min-height: 230px;
  padding: 24px;
}

.report-overview {
  border-left: 4px solid var(--accent);
}

.setting-details summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
}

.setting-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.setting-details-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}

.work-prompt-intro {
  display: grid;
  gap: 5px;
}

.work-prompt-intro strong {
  color: var(--ink);
  font-size: 16px;
}

.work-prompt-intro p,
.work-prompt-row p,
.work-prompt-draft p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.work-prompt-capture {
  display: grid;
  gap: 10px;
}

.work-prompt-capture .primary-button {
  justify-self: start;
}

.work-prompt-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d6e4ff;
  border-radius: 14px;
  background: #f7faff;
}

.work-prompt-draft > div:first-child {
  display: grid;
  gap: 4px;
}

.work-prompt-draft .eyebrow {
  font-size: 12px;
}

.work-prompt-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.work-prompt-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.work-prompt-list-head span {
  color: var(--muted);
  font-size: 12px;
}

.work-prompt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(216, 221, 230, .78);
}

.work-prompt-row:first-of-type {
  border-top: 0;
}

.work-prompt-row > div:first-child {
  display: grid;
  gap: 4px;
}

.work-prompt-row.is-paused {
  opacity: .62;
}

.work-prompt-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.danger-button {
  color: #b42318;
}

.prompt-history-details {
  border-top: 1px solid var(--line);
}

.prompt-history-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.prompt-history-list {
  display: grid;
  gap: 0;
  padding-bottom: 4px;
}

.prompt-history-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(216, 221, 230, .65);
}

.prompt-history-list strong {
  font-size: 14px;
}

.prompt-history-list span,
.work-prompt-empty {
  color: var(--muted);
  font-size: 12px;
}

.prompt-review-panel {
  display: grid;
  gap: 10px;
}

.prompt-review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.prompt-review-head span {
  color: var(--muted);
  font-size: 12px;
}

.work-prompt-empty {
  margin: 0;
  padding: 8px 0 2px;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px 18px 42px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .task-workbench-head,
  .method-workbench-head,
  .report-workbench-head,
  .review-actions,
  .setting-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-action-buttons,
  .daily-checkin-idle,
  .work-prompt-draft,
  .work-prompt-row,
  .prompt-history-list > div {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-action-buttons > *,
  .work-prompt-draft .setting-action-row > *,
  .work-prompt-row-actions > * {
    width: 100%;
  }

  .home-checkin-row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-checkin-button {
    width: 100%;
  }

  .prompt-review-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-summary,
  .method-summary {
    grid-template-columns: 1fr;
  }

  .task-primary-action,
  .method-primary-action,
  .setting-action-row > * {
    width: 100%;
  }

  .task-more > div,
  .method-more > div {
    left: 0;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-checkin-card,
  .home-checkin-row {
    transition: none;
  }

  .daily-checkin-card:hover,
  .home-checkin-row:hover {
    transform: none;
  }
}
