@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;650;750;850&family=Unbounded:wght@600;750&display=swap");

:root {
  color-scheme: dark;
  --bg: #111312;
  --panel: #1a1d1b;
  --panel-strong: #222722;
  --text: #f5f0e8;
  --muted: #a8b0a7;
  --line: #30362f;
  --line-soft: rgb(225 235 219 / 10%);
  --accent: #d6ff5f;
  --accent-ink: #15170c;
  --coral: #ff7a5c;
  --cyan: #73e0d7;
  --violet: #a996ff;
  --moss: #6e8f72;
  --shadow: 0 18px 60px rgb(0 0 0 / 32%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.login-screen,
.app-shell {
  min-height: 100dvh;
}

.login-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-panel h1,
.topbar h1,
.hero-strip h2,
.section-title h2,
.focus-card h3 {
  margin: 0;
  font-family: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.lead {
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.manual-card label,
.settings-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101210;
  color: var(--text);
  outline: none;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button,
.nav-button,
.chat-send,
.empty-chat-link {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.nav-button {
  display: grid;
  place-items: center;
  text-decoration: none;
  min-width: 0;
  padding: 0 6px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: var(--accent-ink);
}

.secondary-button {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button,
.icon-button,
.nav-button {
  background: transparent;
  color: var(--muted);
}

.ghost-button {
  border: 1px solid var(--line);
  padding: 0 14px;
}

.danger-button {
  border: 1px solid rgb(255 122 92 / 34%);
  background: rgb(255 122 92 / 7%);
  color: var(--coral);
  padding: 0 14px;
}

.danger-button:hover {
  border-color: rgb(255 122 92 / 58%);
  background: rgb(255 122 92 / 12%);
}

.error-text {
  margin: 0;
  color: var(--coral);
  font-weight: 700;
}

.app-shell {
  width: min(calc(100% - 24px), 430px);
  margin: 0 auto;
  padding: 18px 0 96px;
}

.app-shell.review-mode {
  padding-top: 22px;
}

.app-shell.review-mode .topbar {
  display: none;
}

.topbar,
.review-header,
.board-header,
.hero-strip,
.shutdown-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  padding: 8px 0 18px;
}

.status-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgb(115 224 215 / 13%);
  color: var(--cyan);
  border: 1px solid rgb(115 224 215 / 28%);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

#review-view.active {
  padding-bottom: 148px;
}

.hero-strip {
  min-height: 150px;
  padding: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 15%, rgb(214 255 95 / 18%), transparent 34%),
    linear-gradient(135deg, #20241f, #171b19);
  border: 1px solid var(--line);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.hero-strip h2 {
  max-width: 230px;
  font-size: 31px;
  line-height: 1.02;
}

.record-cluster {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.record-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid rgb(214 255 95 / 35%);
  border-radius: 50%;
  background: #0f110f;
  box-shadow: 0 0 0 10px rgb(214 255 95 / 8%);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.record-button:hover {
  transform: scale(1.03);
  border-color: rgb(214 255 95 / 58%);
}

.record-button.is-recording {
  border-color: rgb(255 122 92 / 74%);
  background: #17100f;
  box-shadow: 0 0 0 12px rgb(255 122 92 / 13%), 0 0 40px rgb(255 122 92 / 12%);
}

#today-view.voice-armed .hero-strip {
  border-color: rgb(214 255 95 / 56%);
  box-shadow: 0 0 0 1px rgb(214 255 95 / 18%), var(--shadow);
}

#today-view.is-recording .hero-strip {
  border-color: rgb(255 122 92 / 58%);
}

#today-view.voice-armed .record-button {
  transform: scale(1.04);
  border-color: rgb(214 255 95 / 70%);
  box-shadow: 0 0 0 12px rgb(214 255 95 / 13%), 0 0 42px rgb(214 255 95 / 12%);
}

.record-core {
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 32px rgb(255 122 92 / 60%);
}

.record-button.is-recording .record-core {
  width: 30px;
  border-radius: 8px;
}

.record-label {
  min-height: 1em;
}

.manual-card,
.task-board,
.recording-panel,
.transcript-box,
.settings-grid,
.shutdown-card,
.task-card,
.question-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.manual-card {
  display: grid;
  gap: 12px;
}

.recording-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
}

[hidden] {
  display: none !important;
}

.pulse-ring {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral) 0 28%, rgb(255 122 92 / 18%) 30% 100%);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.78; }
  50% { transform: scale(1.05); opacity: 1; }
}

#recording-timer {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.row > * {
  flex: 1;
}

.shutdown-card {
  border-color: rgb(169 150 255 / 42%);
  background: rgb(169 150 255 / 10%);
}

.shutdown-card h3 {
  margin: 0;
}

.task-columns {
  display: grid;
  gap: 12px;
}

.focus-lane,
.next-stack,
.task-list,
.quiet-list {
  display: grid;
  gap: 10px;
}

.focus-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 238px;
  width: 100%;
  overflow: hidden;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid rgb(214 255 95 / 22%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(214 255 95 / 11%), transparent 42%),
    linear-gradient(180deg, #1b201b, #141714);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), var(--shadow);
}

.focus-glow {
  position: absolute;
  inset: auto 20px 18px auto;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(214 255 95 / 22%), transparent 68%);
  pointer-events: none;
}

.focus-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.focus-card h3 {
  max-width: 620px;
  min-width: 0;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.03;
  overflow-wrap: break-word;
  word-break: normal;
}

.empty-chat-link {
  width: fit-content;
  padding: 0 18px;
  border: 1px solid rgb(214 255 95 / 28%);
  background: rgb(214 255 95 / 8%);
  color: var(--accent);
}

.focus-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.finish-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px 0 10px;
  border: 1px solid rgb(214 255 95 / 26%);
  border-radius: 999px;
  background: rgb(214 255 95 / 8%);
  color: var(--accent);
  font-weight: 850;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.finish-control:hover {
  transform: translateY(-1px);
  border-color: rgb(214 255 95 / 48%);
}

.finish-control span {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: rgb(0 0 0 / 18%);
}

.finish-control span::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: .28;
}

.finish-control.ready {
  background: var(--accent);
  color: var(--accent-ink);
}

.finish-control.ready span::after {
  opacity: 1;
}

.quiet-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quiet-actions button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 850;
}

.quiet-actions button:hover {
  border-color: var(--line-soft);
  color: var(--text);
}

.quiet-actions .danger-link {
  color: rgb(255 122 92 / 82%);
}

.quiet-actions .danger-link:hover {
  border-color: rgb(255 122 92 / 32%);
  color: var(--coral);
}

.lane-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.lane-heading h3 {
  margin: 0;
  font-size: 20px;
}

.lane-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.task-row {
  display: grid;
  gap: 10px;
}

.task-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 2.5%);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.task-row:hover {
  transform: translateY(-1px);
  border-color: rgb(214 255 95 / 18%);
  background: rgb(255 255 255 / 3.8%);
}

.task-row.done {
  opacity: 0.58;
}

.task-row h3 {
  margin: 0;
  font-size: 17px;
}

.task-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.task-kicker,
.project-mark,
.task-tags {
  display: flex;
  align-items: center;
  gap: 7px;
}

.task-tags {
  flex-wrap: wrap;
  min-width: 0;
}

.task-kicker {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-mark {
  color: var(--text);
  text-transform: none;
}

.project-mark span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgb(110 143 114 / 13%);
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgb(115 224 215 / 12%);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.first-step {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: break-word;
}

.step-count {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.micro-steps {
  margin-top: 4px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(0 0 0 / 14%);
}

.micro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  font-weight: 850;
}

.micro-head strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgb(214 255 95 / 12%);
  color: var(--accent);
  font-size: 12px;
}

.micro-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
}

.micro-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 850;
  padding: 0 8px;
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.micro-step > span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
}

.micro-step:hover {
  border-color: var(--line-soft);
  background: rgb(255 255 255 / 2.5%);
  color: var(--text);
}

.micro-step.done {
  color: rgb(168 176 167 / 58%);
}

.micro-step.done > span:last-child {
  text-decoration: line-through;
}

.micro-box {
  display: grid;
  place-items: center;
  width: 25px;
  aspect-ratio: 1;
  border: 1px solid rgb(214 255 95 / 28%);
  border-radius: 7px;
  background: rgb(214 255 95 / 5%);
}

.micro-box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.micro-step.done .micro-box {
  background: rgb(214 255 95 / 18%);
  border-color: rgb(214 255 95 / 52%);
}

.micro-step.done .micro-box::after {
  opacity: 1;
}

.task-check {
  width: 28px;
  aspect-ratio: 1;
  margin-top: 2px;
  border: 1px solid rgb(214 255 95 / 28%);
  border-radius: 50%;
  background: rgb(214 255 95 / 6%);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.task-check:hover {
  transform: scale(1.05);
  background: var(--accent);
  border-color: var(--accent);
}

.task-more {
  position: relative;
}

.task-more summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

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

.task-more div {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: 128px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101310;
  box-shadow: var(--shadow);
}

.task-more button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 800;
}

.task-more .danger-menu {
  background: rgb(255 122 92 / 8%);
  color: var(--coral);
}

.quiet-group {
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.quiet-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.quiet-group summary span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--panel-strong);
}

.review-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.review-header h2 {
  margin: 0;
  font-family: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(30px, 10vw, 40px);
  line-height: 1.05;
}

.transcript-box,
.review-summary {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 2.5%);
}

.transcript-box summary {
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.transcript-box summary:focus-visible {
  outline: 2px solid rgb(115 224 215 / 60%);
  outline-offset: 4px;
  border-radius: 4px;
}

.transcript-box p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-summary {
  display: grid;
  gap: 12px;
  border-color: rgb(214 255 95 / 20%);
  background:
    linear-gradient(135deg, rgb(214 255 95 / 8%), transparent 52%),
    rgb(255 255 255 / 2.5%);
}

.review-summary h3 {
  margin: 0;
  font-family: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  line-height: 1.05;
}

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

.review-summary-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.review-summary-list span {
  display: grid;
  place-items: center;
  width: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(214 255 95 / 12%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.review-summary-list p {
  margin: 0;
  color: var(--text);
  font-weight: 850;
  line-height: 1.35;
}

.review-tasks {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.review-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgb(214 255 95 / 22%);
  border-radius: 8px;
  background: var(--panel);
}

.review-main {
  display: grid;
  gap: 12px;
}

.review-main h3 {
  margin: 0;
  font-family: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 8vw, 34px);
  line-height: 1.05;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.review-meta .focus-badge {
  background: rgb(115 224 215 / 12%);
  color: var(--cyan);
}

.review-next {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgb(214 255 95 / 18%);
  border-radius: 8px;
  background: rgb(0 0 0 / 18%);
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.review-next span {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.review-checklist {
  display: grid;
  gap: 8px;
}

.review-checklist div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 2.5%);
}

.review-checklist span {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(214 255 95 / 32%);
  background: rgb(214 255 95 / 7%);
}

.review-checklist p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.review-more {
  min-height: 32px;
  padding-left: 30px;
  color: var(--accent) !important;
  font-size: 13px;
}

.review-edit {
  border-top: 1px solid var(--line-soft);
  padding-top: 4px;
}

.review-edit summary {
  min-height: 44px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.review-edit[open] summary {
  color: var(--accent);
}

.review-card input,
.review-card textarea {
  padding: 11px 12px;
}

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

.review-grid.two {
  grid-template-columns: 1fr 1fr;
}

.question-card {
  background:
    linear-gradient(135deg, rgb(214 255 95 / 9%), transparent 62%),
    var(--panel);
}

.question-card.is-answered {
  border-color: rgb(214 255 95 / 46%);
  box-shadow: 0 0 0 1px rgb(214 255 95 / 12%);
}

.question-card p {
  margin: 0 0 10px;
}

.quick-answers {
  display: grid;
  gap: 8px;
}

.quick-answers button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111411;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  line-height: 1.2;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.quick-answers button::after {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  aspect-ratio: 1;
  border: 1px solid rgb(214 255 95 / 32%);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
}

.quick-answers button:hover,
.quick-answers button:focus-visible {
  border-color: rgb(115 224 215 / 62%);
  background: rgb(115 224 215 / 10%);
  outline: none;
}

.quick-answers button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.quick-answers button.is-selected::after {
  content: "✓";
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: var(--accent);
}

.quick-answers button.is-selected:hover,
.quick-answers button.is-selected:focus-visible {
  border-color: var(--accent);
  background: #e1ff7d;
  color: var(--accent-ink);
}

.quick-answers span {
  min-width: 0;
}

.question-state {
  margin: 10px 0 0 !important;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.question-card.is-answered .question-state {
  color: var(--accent);
}

.review-clarifications {
  display: grid;
  gap: 6px;
}

.review-clarifications p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgb(115 224 215 / 24%);
  border-radius: 8px;
  background: rgb(115 224 215 / 8%);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.review-clarifications span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sticky-actions {
  position: sticky;
  bottom: 78px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101310;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chat-title {
  display: grid;
  gap: 8px;
}

.chat-title p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.chat-thread {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 42dvh;
  max-height: calc(100dvh - 310px);
  overflow: auto;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(214 255 95 / 5%), transparent 36%),
    rgb(255 255 255 / 2%);
}

.chat-thread.is-empty {
  align-content: center;
  min-height: 108px;
  background: rgb(255 255 255 / 2%);
}

.chat-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.chat-bubble {
  display: grid;
  gap: 6px;
  max-width: min(82%, 560px);
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 3.5%);
}

.chat-bubble.user {
  justify-self: end;
  background: rgb(214 255 95 / 11%);
  border-color: rgb(214 255 95 / 20%);
}

.chat-bubble.assistant {
  justify-self: start;
}

.chat-bubble span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.chat-bubble p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(20 23 21 / 92%);
}

.chat-form textarea {
  min-height: 48px;
  max-height: 130px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.chat-send {
  align-self: end;
  padding: 0 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 850;
}

.chat-send:disabled {
  cursor: progress;
  opacity: .7;
}

.profile-title {
  display: grid;
  gap: 8px;
}

.profile-title p:last-child {
  margin: 0;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.profile-panel {
  display: grid;
  gap: 18px;
}

.profile-panel.important-dates {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.profile-panel.deleted-tasks-panel {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.profile-preview {
  padding: 18px;
  border: 1px solid rgb(214 255 95 / 20%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(214 255 95 / 11%), transparent 52%),
    rgb(255 255 255 / 2.5%);
}

.profile-preview h3 {
  margin: 0;
  font-family: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.05;
}

.profile-preview p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.profile-block {
  display: grid;
  gap: 12px;
}

.profile-block-title {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.profile-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-block-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.profile-fields {
  display: grid;
  gap: 10px;
}

.tone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tone-option {
  position: relative;
  display: block;
}

.tone-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tone-option span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101210;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}

.tone-option input:checked + span {
  border-color: rgb(214 255 95 / 48%);
  background: rgb(214 255 95 / 12%);
  color: var(--accent);
}

.tone-option:active span {
  transform: scale(.98);
}

.tone-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .tone-option:hover span {
    transform: translateY(-1px);
    box-shadow: inset 0 -2px 0 rgb(115 224 215 / 44%);
  }
}

.profile-checks {
  display: grid;
  gap: 8px;
}

.profile-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.profile-checks input {
  width: 20px;
  padding: 0;
  accent-color: var(--accent);
}

.date-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.important-dates-list,
.deleted-tasks-list {
  display: grid;
  gap: 8px;
}

.date-row,
.deleted-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 2.5%);
}

.date-row div,
.deleted-task-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.date-row strong,
.deleted-task-row strong {
  overflow-wrap: anywhere;
}

.date-row span,
.deleted-task-row span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.date-row button {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101210;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.deleted-task-row button {
  min-height: 36px;
  border: 1px solid rgb(115 224 215 / 26%);
  border-radius: 8px;
  background: rgb(115 224 215 / 8%);
  color: var(--cyan);
  padding: 0 12px;
  font-weight: 900;
}

.deleted-task-row button:hover {
  border-color: rgb(115 224 215 / 52%);
  background: rgb(115 224 215 / 14%);
}

.settings-grid div {
  display: grid;
  gap: 6px;
}

.settings-grid strong {
  overflow-wrap: anywhere;
}

.projects-list,
.project-stack,
.project-detail,
.project-task-list {
  display: grid;
  gap: 10px;
}

.projects-list {
  margin-top: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgb(255 255 255 / 2.5%);
  color: var(--text);
  text-align: left;
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease);
}

.project-row:hover {
  transform: translateY(-1px);
  border-color: rgb(214 255 95 / 22%);
  background: rgb(255 255 255 / 4%);
}

.project-row-dot {
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgb(214 255 95 / 9%);
}

.project-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-row-copy strong,
.project-hero-card h3 {
  overflow-wrap: anywhere;
  font-family: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.project-row-copy small,
.project-row-copy em,
.project-row-side {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.project-row-copy em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row-side {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.project-row-side i {
  color: var(--accent);
  font-style: normal;
  font-size: 22px;
  line-height: 1;
}

.project-back {
  justify-self: start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101210;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}

.project-hero-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(214 255 95 / 20%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(214 255 95 / 10%), transparent 54%),
    var(--panel);
}

.project-hero-card h3 {
  margin: 0;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.04;
}

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

.project-stats span,
.project-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.project-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
}

.project-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.project-task-section {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.project-section-head h3 {
  margin: 0;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 430px);
  display: grid;
  grid-template-columns: 1fr 1fr 1.12fr 1fr 1fr;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101310;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.bottom-nav .nav-button {
  border: 1px solid rgb(225 235 219 / 8%);
  background: #171b18;
  color: var(--muted);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.bottom-nav .nav-button:hover {
  transform: translateY(-1px);
  border-color: rgb(214 255 95 / 22%);
  background: #20251f;
  color: var(--text);
}

.bottom-nav .nav-button:focus-visible {
  outline: 2px solid rgb(115 224 215 / 58%);
  outline-offset: 2px;
}

.nav-button.active {
  border-color: rgb(214 255 95 / 18%);
  background: #232a22;
  color: var(--text);
}

.bottom-nav .voice-nav {
  border-color: rgb(115 224 215 / 28%);
  background: rgb(115 224 215 / 8%);
  color: var(--cyan);
}

.bottom-nav .voice-nav:hover,
.bottom-nav .voice-nav:focus-visible,
.bottom-nav .voice-nav.is-armed {
  border-color: rgb(115 224 215 / 58%);
  background: rgb(115 224 215 / 16%);
  color: var(--text);
  box-shadow: inset 0 -2px 0 rgb(115 224 215 / 72%);
}

.task-dialog {
  width: min(calc(100% - 24px), 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.task-dialog::backdrop {
  background: rgb(0 0 0 / 66%);
}

@media (max-width: 560px) {
  .review-header {
    display: grid;
  }

  .review-grid.two {
    grid-template-columns: 1fr;
  }

  .focus-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .finish-control {
    justify-content: center;
  }

  .quiet-actions {
    justify-content: center;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .tone-grid,
  .date-form {
    grid-template-columns: 1fr;
  }
}
