:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffdf7;
  --panel-soft: #f8f4eb;
  --panel-wash: rgba(255, 253, 247, 0.78);
  --text: #24211c;
  --muted: #736d62;
  --quiet: #a49b8f;
  --line: rgba(36, 33, 28, 0.12);
  --line-soft: rgba(36, 33, 28, 0.08);
  --sage: #6f8d7a;
  --sage-deep: #3f6656;
  --sage-soft: rgba(111, 141, 122, 0.12);
  --blue: #3573d9;
  --blue-soft: rgba(53, 115, 217, 0.1);
  --amber: #9a6a21;
  --amber-soft: rgba(154, 106, 33, 0.11);
  --red: #9f5a4d;
  --red-soft: rgba(159, 90, 77, 0.11);
  --shadow: 0 18px 48px rgba(48, 39, 24, 0.09);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Avenir Next", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 0%, rgba(111, 141, 122, 0.16), transparent 28rem),
    linear-gradient(135deg, #f4f1ea 0%, #f9f4ea 56%, #ebe6da 100%);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.36;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  min-height: 100svh;
}

body.is-launch-screen {
  background: #171a15;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
summary:focus-visible {
  border-color: rgba(63, 102, 86, 0.46);
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 141, 122, 0.16);
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px;
}

.sidebar,
.workspace,
.focus-card,
.context-card,
.main-panel,
.history-panel,
.empty-state,
.dialog-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: var(--panel-wash);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.04);
}

.sidebar {
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: calc(100vh - 28px);
  min-height: calc(100svh - 28px);
  padding: 12px;
  border-radius: 24px;
}

.workspace {
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
}

.app-shell.is-empty {
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}

.app-shell.is-empty .sidebar {
  display: none;
}

.app-shell.is-empty .workspace {
  width: 100%;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell.is-empty .topbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 2px 4px 12px;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent),
    linear-gradient(135deg, #d8c9a9, #8fa493 55%, #4f7564);
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4f7e8;
  content: "";
}

.brand strong,
.brand span,
.skill-pill span,
.skill-pill small {
  display: block;
}

.brand strong {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.brand span,
.sidebar-note,
.quiet-copy,
.compact-list dd,
.history-item p,
.detail-grid p,
.panel-heading p,
.dialog-note {
  color: var(--muted);
}

.brand span {
  font-size: 12px;
  font-weight: 600;
}

.sidebar-section {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.section-kicker,
.eyebrow {
  margin: 0 0 7px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.focus-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: -1px 0 9px;
}

.focus-meter span {
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 33, 28, 0.08);
}

.focus-meter span.is-filled {
  background: var(--sage);
}

.active-list,
.queue-list {
  display: grid;
  gap: 6px;
}

.skill-pill,
.queue-item,
.history-item,
.gate-item {
  border: 1px solid var(--line-soft);
}

.skill-pill {
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.46);
  color: var(--text);
  text-align: left;
}

.skill-pill span {
  overflow: hidden;
  font-weight: 690;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-pill small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.skill-pill:hover,
.queue-item:hover {
  background: rgba(255, 253, 247, 0.68);
}

.skill-pill.is-selected {
  border-color: rgba(63, 102, 86, 0.23);
  background: var(--sage-soft);
}

.skill-pill.is-empty {
  border-style: dashed;
  color: var(--muted);
  text-align: center;
}

.sidebar-note {
  margin: 8px 2px 0;
  font-size: 12px;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.38);
}

.queue-item button:first-child {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 620;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(36, 33, 28, 0.08);
  background: rgba(255, 253, 247, 0.5);
}

.topbar h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.04em;
}

.topbar .eyebrow {
  display: none;
}

.topbar-actions,
.hero-actions,
.review-actions,
.dialog-header,
.focus-topline,
.context-card-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.practice-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 12px;
  padding: 12px;
}

.focus-card,
.context-card,
.main-panel,
.history-panel,
.empty-state,
.dialog-card {
  border-radius: var(--radius-lg);
}

.focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(360px, calc(100svh - 174px), 540px);
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 82% 16%, rgba(111, 141, 122, 0.18), transparent 14rem),
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(247, 242, 231, 0.86));
}

.stage-glow {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 141, 122, 0.16), transparent 64%);
  pointer-events: none;
}

.focus-card::after {
  position: absolute;
  right: -85px;
  bottom: -115px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(111, 141, 122, 0.12);
  border-radius: 50%;
  content: "";
}

.panel-orbit,
.empty-orbit {
  display: none;
}

.focus-topline,
.focus-card h2,
.try-card,
.practice-ladder,
.hero-actions {
  position: relative;
  z-index: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.focus-card h2 {
  max-width: 760px;
  margin: 34px 0 14px;
  font-size: clamp(2rem, min(4.2vw, 7.2svh), 3.65rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.try-card {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(63, 102, 86, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(111, 141, 122, 0.1), rgba(255, 253, 247, 0.58)),
    rgba(255, 253, 247, 0.5);
}

.try-card span,
.help-strip span,
.attempt-brief span,
.compact-list dt {
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.try-card p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 690;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.practice-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 11px 0 14px;
}

.practice-ladder span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.48);
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.practice-ladder span.is-lit {
  border-color: rgba(63, 102, 86, 0.18);
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.attempt-count {
  display: grid;
  justify-items: end;
}

.attempt-count strong {
  color: var(--sage-deep);
  font-size: 1.65rem;
  line-height: 0.95;
}

.attempt-count span {
  color: var(--muted);
  font-size: 11px;
}

.context-card {
  display: grid;
  align-content: start;
  padding: 16px;
  background: rgba(255, 253, 247, 0.72);
}

.context-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.compact-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.compact-list div {
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}

.compact-list dd {
  margin: 0;
  font-size: 13px;
}

.primary-button,
.secondary-button,
.tiny-button,
.icon-button {
  min-height: 34px;
  border: 1px solid rgba(36, 33, 28, 0.12);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 690;
}

.primary-button {
  padding: 7px 12px;
  border-color: var(--text);
  background: var(--text);
  color: var(--panel);
}

.secondary-button {
  padding: 7px 12px;
  background: rgba(255, 253, 247, 0.68);
  color: var(--text);
}

.action-primary {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: #fffdf7;
}

.tiny-button {
  min-height: 28px;
  padding: 4px 8px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  background: rgba(255, 253, 247, 0.72);
  color: var(--muted);
  font-size: 18px;
}

.primary-button:hover,
.secondary-button:hover,
.tiny-button:hover,
.icon-button:hover {
  filter: brightness(0.98);
}

.full-width,
.wide-button {
  width: 100%;
}

.status-chip,
.band-chip,
.soft-badge,
.recommendation,
.tag-row span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 690;
}

.status-chip {
  text-transform: capitalize;
}

.band-chip {
  color: var(--sage-deep);
  border-color: rgba(63, 102, 86, 0.18);
  background: var(--sage-soft);
}

.soft-badge {
  max-width: 220px;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 12px 12px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.58);
}

.panel-tabs button {
  min-height: 31px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 690;
}

.panel-tabs button.is-selected {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 1px rgba(48, 39, 24, 0.08);
}

.panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 0 12px 12px;
  align-items: start;
}

.main-panel,
.history-panel {
  padding: 16px;
}

.main-panel {
  position: relative;
  overflow: hidden;
}

.main-panel h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.65rem, min(3.2vw, 5.8svh), 2.85rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.panel-heading {
  align-items: flex-start;
  padding-bottom: 14px;
}

.help-strip,
.attempt-brief {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(63, 102, 86, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(111, 141, 122, 0.1), rgba(255, 253, 247, 0.5)),
    rgba(255, 253, 247, 0.52);
}

.help-strip {
  margin: 0 0 12px;
  padding: 13px;
}

.help-strip p {
  margin: 0;
  font-weight: 600;
}

.attempt-form,
.edit-form {
  display: grid;
  gap: 11px;
}

.attempt-brief {
  padding: 13px;
}

.attempt-brief strong {
  font-size: 15px;
  font-weight: 690;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.wide-field {
  grid-column: 1 / -1;
}

label,
fieldset {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

label span,
legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 690;
}

.soft-details,
.edit-drawer {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.48);
  padding: 10px;
}

.soft-details summary,
.edit-drawer summary {
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 690;
}

.soft-details[open],
.edit-drawer[open] {
  display: grid;
  gap: 11px;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
}

.gate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.gate-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.54);
}

.gate-item > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(36, 33, 28, 0.06);
  color: var(--sage-deep);
  font-weight: 760;
}

.gate-item.is-pass {
  border-color: rgba(63, 102, 86, 0.2);
  background: var(--sage-soft);
}

.gate-item strong,
.gate-item p {
  margin: 0;
}

.gate-item strong {
  font-weight: 720;
}

.gate-item p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.recommendation.is-stop {
  background: var(--red-soft);
  color: var(--red);
}

.recommendation.is-keep {
  background: var(--amber-soft);
  color: var(--amber);
}

.recommendation.is-ready {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.history-panel {
  position: sticky;
  top: 14px;
  background: rgba(255, 253, 247, 0.62);
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-width: 0 0 1px;
  border-color: var(--line-soft);
}

.history-item time {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 690;
}

.history-item strong {
  font-weight: 720;
}

.history-item p {
  margin: 0;
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.detail-grid section,
.fieldset-card {
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.48);
}

.detail-grid h3 {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 690;
}

.detail-grid p {
  margin: 0;
  font-size: 12px;
}

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

.two-column,
.three-column,
.check-grid {
  display: grid;
  gap: 9px;
}

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

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

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

.check-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-grid input {
  width: auto;
}

.fieldset-card {
  display: grid;
  gap: 9px;
}

.empty-state {
  display: grid;
  min-height: calc(100vh - 28px);
  min-height: calc(100svh - 28px);
  align-items: center;
  justify-items: center;
  padding: clamp(16px, 3vw, 28px);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 50% 12%, rgba(207, 219, 188, 0.15), transparent 15rem),
    radial-gradient(circle at 88% 88%, rgba(231, 204, 151, 0.1), transparent 16rem),
    linear-gradient(155deg, #22271f 0%, #171a15 64%, #11130f 100%);
  color: #f6efe3;
  box-shadow: 0 28px 76px rgba(36, 33, 28, 0.24);
}

.launch-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 3svh, 24px);
  width: min(430px, 100%);
  min-height: min(660px, calc(100svh - 72px));
}

.launch-top,
.launch-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launch-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.empty-state .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent),
    linear-gradient(135deg, #ddd0ad, #88a08e 56%, #4d6f5f);
}

.launch-brand strong {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.launch-top > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.06);
  color: rgba(246, 239, 227, 0.58);
  font-size: 12px;
  font-weight: 650;
}

.launch-intro {
  display: grid;
  gap: 10px;
}

.empty-state .eyebrow {
  margin-bottom: 0;
  color: rgba(246, 239, 227, 0.52);
}

.empty-state h2 {
  margin: 0;
  color: #fffaf1;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.launch-copy {
  max-width: 300px;
  margin: 0;
  color: rgba(246, 239, 227, 0.72);
  font-size: 14px;
}

.launch-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.empty-state .primary-button,
.empty-state .secondary-button {
  min-height: 38px;
  border-radius: 13px;
  padding: 8px 13px;
}

.empty-state .primary-button {
  border-color: rgba(255, 250, 241, 0.92);
  background: #fffaf1;
  color: #171a16;
}

.empty-state .secondary-button {
  border-color: rgba(255, 250, 241, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fffaf1;
}

.launch-graphic {
  position: relative;
  display: grid;
  min-height: clamp(280px, 42svh, 350px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(255, 250, 241, 0.085), rgba(255, 250, 241, 0.032)),
    radial-gradient(circle at 50% 8%, rgba(196, 211, 174, 0.12), transparent 12rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.launch-graphic::before {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 250, 241, 0.075);
  border-radius: 50%;
  content: "";
}

.launch-stack-card,
.launch-preview-card {
  position: absolute;
  width: min(314px, 82%);
  border-radius: 24px;
}

.launch-stack-card {
  height: 204px;
  border: 1px solid rgba(255, 250, 241, 0.1);
  background: rgba(255, 250, 241, 0.075);
}

.launch-stack-card-back {
  transform: translateY(19px) scale(0.9);
  opacity: 0.44;
}

.launch-stack-card-mid {
  transform: translateY(10px) scale(0.95);
  opacity: 0.62;
}

.launch-preview-card {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(255, 250, 241, 0.78);
  background: #fffaf1;
  color: #24211c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.launch-preview-top span,
.launch-preview-next small {
  color: rgba(36, 33, 28, 0.48);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-preview-top i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c8d9b4;
  box-shadow: 0 0 0 7px rgba(111, 141, 122, 0.13);
}

.launch-preview-card strong {
  max-width: 220px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.launch-preview-lines {
  display: grid;
  gap: 7px;
}

.launch-preview-lines span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(36, 33, 28, 0.08);
}

.launch-preview-lines span:nth-child(1) {
  width: 74%;
}

.launch-preview-lines span:nth-child(2) {
  width: 55%;
}

.launch-preview-lines span:nth-child(3) {
  width: 63%;
}

.launch-preview-next {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(111, 141, 122, 0.11);
}

.launch-preview-next span {
  font-size: 13px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

.toast {
  margin: 12px 12px 0;
  padding: 9px 10px;
  border: 1px solid rgba(63, 102, 86, 0.2);
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 690;
}

.app-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.app-dialog::backdrop {
  background: rgba(36, 33, 28, 0.22);
  backdrop-filter: blur(8px);
}

.dialog-card {
  display: grid;
  gap: 11px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.94);
}

.dialog-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.dialog-note {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .app-shell,
  .practice-stage,
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .history-panel {
    position: static;
    min-height: auto;
  }

  .workspace {
    order: 1;
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 700px) {
  .app-shell {
    gap: 10px;
    padding: 10px;
  }

  .workspace,
  .sidebar {
    border-radius: 24px;
  }

  .app-shell.is-empty {
    display: flex;
    min-height: 100dvh;
    min-height: 100svh;
    padding: 0;
  }

  .app-shell.is-empty .workspace {
    min-height: 100dvh;
    min-height: 100svh;
  }

  .topbar {
    min-height: 52px;
    padding: 10px 12px;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions .secondary-button {
    display: none;
  }

  .practice-stage,
  .panel-layout {
    gap: 10px;
    padding: 10px;
  }

  .focus-card,
  .context-card,
  .main-panel,
  .history-panel,
  .empty-state {
    border-radius: 22px;
    padding: 14px;
  }

  .focus-card {
    min-height: clamp(360px, calc(100svh - 84px), 480px);
  }

  .focus-card h2 {
    margin-top: 24px;
    font-size: clamp(1.85rem, 8.6vw, 3rem);
  }

  .try-card p {
    font-size: 15px;
  }

  .hero-actions,
  .panel-heading,
  .context-card-header,
  .review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .review-actions .primary-button,
  .review-actions .secondary-button {
    width: 100%;
  }

  .panel-tabs {
    margin: 0 10px 10px;
  }

  .main-panel h2 {
    font-size: clamp(1.6rem, 7.2vw, 2.45rem);
  }

  .reflection-grid,
  .gate-list,
  .detail-grid,
  .two-column,
  .three-column,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  textarea {
    min-height: 82px;
  }

  .empty-state {
    min-height: 100dvh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    padding:
      max(16px, calc(env(safe-area-inset-top) + 14px))
      max(20px, calc(env(safe-area-inset-right) + 20px))
      max(18px, calc(env(safe-area-inset-bottom) + 18px))
      max(20px, calc(env(safe-area-inset-left) + 20px));
  }

  .launch-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 100%;
  }

  .launch-brand {
    margin-bottom: 0;
  }

  .launch-intro {
    max-width: none;
    gap: 10px;
  }

  .empty-state h2 {
    font-size: clamp(2.05rem, 10.5vw, 2.9rem);
  }

  .launch-copy {
    max-width: 280px;
    font-size: 14px;
  }

  .launch-actions {
    width: 100%;
  }

  .launch-actions .secondary-button {
    min-width: 98px;
  }

  .launch-graphic {
    align-self: stretch;
    min-height: 0;
    height: auto;
    border-radius: 22px;
  }

  .launch-graphic::before {
    inset: 22px;
  }

  .launch-stack-card,
  .launch-preview-card {
    width: min(292px, 83%);
  }

  .launch-stack-card {
    height: 194px;
  }

  .launch-preview-card {
    padding: 15px;
    border-radius: 21px;
  }

  .launch-preview-card strong {
    font-size: 20px;
  }

  .launch-preview-next {
    padding: 11px;
  }

  .launch-preview-next span {
    font-size: 12px;
  }
}

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