:root {
  color-scheme: light;
  --page: #f6f2e8;
  --surface: #fffcf5;
  --surface-strong: #ffffff;
  --ink: #172019;
  --muted: #677068;
  --line: #dad4c8;
  --line-dark: #bbb5aa;
  --green: #2f7d4a;
  --green-dark: #205c36;
  --green-soft: #ddf2e3;
  --red: #c94444;
  --red-dark: #8d292f;
  --red-soft: #fbe2de;
  --gold: #e0a52b;
  --gold-soft: #fff0bd;
  --blue: #3d79c4;
  --shadow: 0 18px 44px rgba(42, 48, 40, 0.09);
  --shadow-tight: 0 8px 20px rgba(42, 48, 40, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --press: 0 5px 0;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(224, 165, 43, .12), transparent 25rem),
    radial-gradient(circle at 92% 38%, rgba(47, 125, 74, .09), transparent 30rem),
    var(--page);
  color: var(--ink);
  font-family: "Nunito", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button { color: inherit; }

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(61, 121, 196, .28);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .45;
}

.ambient__orb--one {
  width: 280px;
  height: 280px;
  right: -100px;
  top: 22%;
  background: rgba(47, 125, 74, .12);
}

.ambient__orb--two {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 12%;
  background: rgba(201, 68, 68, .08);
}

.ambient__branch {
  position: absolute;
  width: 360px;
  height: 580px;
  right: -150px;
  bottom: -180px;
  border: 6px solid rgba(47, 125, 74, .08);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50% 0 0;
  transform: rotate(-16deg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 14px clamp(18px, 3vw, 48px);
  border-bottom: 2px solid rgba(218, 212, 200, .78);
  background: rgba(255, 252, 245, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #cce4d2;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  transform: rotate(-3deg);
}

.brand__mark svg { width: 38px; height: 38px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 54px;
  height: 40px;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: 0 3px 0 #cec8bc;
  font-size: 15px;
}

.stat--cases span { color: var(--red); font-size: 16px; }

.icon-button,
.language-toggle {
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: 0 3px 0 #cec8bc;
  cursor: pointer;
}

.icon-button { width: 40px; color: var(--green-dark); font-size: 19px; font-weight: 900; }
.icon-button[aria-pressed="true"] { color: var(--muted); }

.language-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 98px;
  padding: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.language-toggle span {
  display: grid;
  place-items: center;
  border-radius: 9px;
}

html[data-lang="en"] .language-toggle span:first-child,
html[data-lang="zh"] .language-toggle span:last-child {
  background: var(--green);
  color: white;
}

.willow-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 760px) 240px;
  align-items: start;
  justify-content: center;
  gap: clamp(22px, 3vw, 42px);
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 42px clamp(18px, 3vw, 48px) 100px;
}

.dossier-panel,
.policy-panel {
  position: sticky;
  top: 118px;
}

.panel-heading { margin-bottom: 24px; }
.eyebrow, .result-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.panel-heading h2,
.policy-card h2,
.workspace-heading h1,
.result-card h2,
.turn-card h2,
.policy-dialog h2,
.policy-dialog h3 { margin: 0; }

.panel-heading h2 { margin-top: 4px; font-size: 21px; letter-spacing: -.02em; }

.lens-path {
  position: relative;
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lens-path::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 27px;
  width: 4px;
  border-radius: 9px;
  background: #ddd9d0;
}

.lens-button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 10px 6px 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease);
}

.lens-button:hover { background: rgba(255, 255, 255, .68); transform: translateX(3px); }
.lens-button[aria-current="true"] { background: var(--green-soft); }

.lens-node {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 3px solid #c9c5bc;
  border-radius: 50%;
  background: #e6e2d9;
  color: #87847e;
  box-shadow: 0 4px 0 #bcb8af;
  font-size: 16px;
  font-weight: 1000;
}

.lens-button.is-current .lens-node {
  border-color: var(--green-dark);
  background: var(--green);
  color: white;
  box-shadow: 0 5px 0 var(--green-dark), 0 0 0 7px rgba(47, 125, 74, .1);
}

.lens-copy b,
.lens-copy small { display: block; }
.lens-copy b { color: var(--ink); font-size: 13px; }
.lens-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.secondary-button,
.grant-button,
.continue-button {
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .2s ease;
}

.secondary-button:active,
.grant-button:active,
.continue-button:active { transform: translateY(4px); box-shadow: none; }

.sealed-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  padding: 13px 14px;
  border: 2px solid #e1c46c;
  border-radius: 18px;
  background: var(--gold-soft);
  box-shadow: 0 4px 0 #caa548;
  text-align: left;
}

.sealed-button > span:first-child { color: #a8760d; font-size: 24px; }
.sealed-button b, .sealed-button small { display: block; }
.sealed-button b { font-size: 13px; }
.sealed-button small { color: #7d6a39; font-size: 10px; }

.workspace { min-width: 0; }

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.workspace-heading h1 {
  max-width: 560px;
  margin-top: 6px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.ticket-number {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.56);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.mascot-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: end;
  gap: 14px;
  margin: 24px 0 14px;
}

.willow-mascot {
  position: relative;
  width: 88px;
  height: 108px;
  filter: drop-shadow(0 10px 8px rgba(34, 68, 43, .13));
  transform-origin: bottom center;
  animation: mascot-breathe 3.4s ease-in-out infinite;
}

.willow-mascot__head {
  position: absolute;
  z-index: 3;
  top: 27px;
  left: 16px;
  width: 58px;
  height: 54px;
  border: 3px solid var(--green-dark);
  border-radius: 48% 52% 46% 54%;
  background: #76bd78;
}

.willow-mascot__body {
  position: absolute;
  bottom: 1px;
  left: 27px;
  width: 36px;
  height: 43px;
  border: 3px solid var(--green-dark);
  border-radius: 14px 14px 18px 18px;
  background: #5ea966;
}

.eye {
  position: absolute;
  top: 19px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #173621;
}
.eye--left { left: 15px; }
.eye--right { right: 15px; }
.mouth {
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 13px;
  height: 7px;
  border-bottom: 3px solid #173621;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.willow-mascot__leaf {
  position: absolute;
  z-index: 4;
  width: 20px;
  height: 34px;
  border: 3px solid var(--green-dark);
  border-radius: 100% 0 100% 0;
  background: #95cf71;
  transform-origin: bottom center;
}
.willow-mascot__leaf--a { top: 0; left: 36px; transform: rotate(39deg); }
.willow-mascot__leaf--b { top: 4px; left: 14px; transform: rotate(-39deg) scale(.88); }
.willow-mascot__leaf--c { top: 8px; right: 8px; transform: rotate(74deg) scale(.72); }

.willow-mascot__headset {
  position: absolute;
  z-index: 5;
  top: 35px;
  left: 8px;
  width: 74px;
  height: 43px;
  border: 4px solid #29463a;
  border-bottom-color: transparent;
  border-radius: 40px 40px 0 0;
}

.willow-mascot__headset::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -12px;
  width: 21px;
  height: 11px;
  border-bottom: 4px solid #29463a;
  border-radius: 0 0 12px 0;
}

.willow-mascot.is-thinking { animation: mascot-think .5s ease-in-out infinite alternate; }
.willow-mascot.is-dark .willow-mascot__head { background: #b65a56; border-color: #672b2f; }
.willow-mascot.is-dark .willow-mascot__body { background: #88443f; border-color: #672b2f; }
.willow-mascot.is-dark .willow-mascot__leaf { background: #7d5943; border-color: #5d3329; }

.agent-bubble {
  position: relative;
  min-height: 84px;
  padding: 17px 20px;
  border: 2px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-tight);
}

.agent-status { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.agent-status i { width: 8px; height: 8px; border-radius: 50%; background: #45aa62; box-shadow: 0 0 0 4px #e0f4e5; }
.agent-bubble p { margin: 7px 0 0; color: #3d453f; font-size: 15px; }

.wish-ticket,
.result-card,
.turn-card,
.processing-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wish-ticket { padding: clamp(18px, 4vw, 28px); }
.wish-ticket > label { display: block; margin-bottom: 10px; color: #475048; font-size: 12px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }

.input-shell { position: relative; }
.input-shell textarea {
  display: block;
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 18px 19px 34px;
  border: 3px solid #d3cec4;
  border-radius: 19px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-shell textarea::placeholder { color: #aaa9a2; }
.input-shell textarea:focus { border-color: #62a777; box-shadow: 0 0 0 5px rgba(47, 125, 74, .09); outline: 0; }
.character-count { position: absolute; right: 15px; bottom: 10px; color: #9a978f; font-size: 11px; }

.example-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.example-row { scrollbar-width: none; }
.example-row::-webkit-scrollbar { display: none; }
.example-chip {
  padding: 8px 11px;
  border: 2px solid #d9d5cb;
  border-radius: 999px;
  background: #fff;
  color: #5b635c;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.example-chip:hover { border-color: #7ab18a; color: var(--green-dark); }

.grant-button,
.continue-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--green);
  box-shadow: var(--press) var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .055em;
}

.grant-button:hover, .continue-button:hover { filter: brightness(1.06); }
.grant-button:disabled { background: #9bab9f; box-shadow: 0 5px 0 #718176; cursor: wait; }
.grant-button__icon { font-size: 24px; transform: rotate(-22deg); }

.processing-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 25px;
  border-color: #c8ddcd;
  background: #f4fbf5;
}
.processing-card b { color: var(--green-dark); }
.processing-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.twig-animation { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 18px; background: var(--green-soft); }
.twig-animation span { position: absolute; top: 12px; width: 6px; height: 34px; border-radius: 6px; background: var(--green-dark); }
.twig-animation span:first-child { left: 24px; transform: rotate(-27deg); transform-origin: bottom; animation: twig-left .8s ease-in-out infinite alternate; }
.twig-animation span:last-child { right: 21px; transform: rotate(31deg); transform-origin: top; animation: twig-right .8s ease-in-out infinite alternate; }

.result-card {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  scroll-margin-top: 112px;
  border-color: #42332f;
  background: #211b1a;
  color: #fff9ee;
  animation: reveal-card .55s var(--ease) both;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0, rgba(201, 68, 68, .22), transparent 42%);
}

.result-stamp {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: -35px;
  width: 160px;
  padding: 7px 0;
  background: var(--green);
  color: white;
  text-align: center;
  transform: rotate(37deg);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .18em;
}

.result-main,
.consequence-main { position: relative; padding: clamp(24px, 5vw, 38px); }
.result-main { padding-right: 100px; }
.result-main .result-label { color: #78cf91; }
.result-card h2 { margin-top: 8px; font-size: clamp(23px, 4vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
.result-card p { margin: 9px 0 0; color: #d8d0c7; font-size: 15px; line-height: 1.6; }

.but-divider { position: relative; display: grid; height: 34px; place-items: center; background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark)); }
.but-divider::before, .but-divider::after { content: ""; position: absolute; top: 50%; width: calc(50% - 50px); height: 1px; background: rgba(255,255,255,.38); }
.but-divider::before { left: 16px; }.but-divider::after { right: 16px; }
.but-divider span { position: relative; z-index: 1; padding: 0 13px; color: white; font-size: 16px; font-weight: 1000; letter-spacing: .22em; }

.consequence-main .result-label { color: #f6a09a; }
.severity-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.severity-pill { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #974e4e; border-radius: 99px; background: rgba(201, 68, 68, .18); color: #f4a8a3; font-size: 9px; font-weight: 1000; letter-spacing: .09em; }
.clause-chip { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; padding: 8px 11px; border: 1px solid #67504c; border-radius: 10px; background: rgba(255,255,255,.05); color: #c8bdb7; font-size: 11px; }
.clause-chip b { color: #fff0de; }

.support-note {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 17px clamp(24px, 5vw, 38px);
  border-top: 1px dashed #59433f;
  background: #181413;
}
.support-note span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #392a27; color: #eaa49f; }
.support-note p { margin: 3px 0 0; color: #b9ada6; font-size: 12px; font-style: italic; }

.turn-card { margin-top: 18px; padding: clamp(20px, 4vw, 28px); animation: reveal-card .5s .15s var(--ease) both; }
.turn-heading { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 14px; }
.turn-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 3px solid #b9b2a7; border-radius: 16px; background: #eae5da; color: var(--red-dark); font-size: 24px; font-weight: 1000; }
.turn-card h2 { margin-top: 3px; font-size: 19px; line-height: 1.25; }
.turn-card > p { margin: 18px 0 20px; padding: 16px 18px; border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; background: #fff8f5; color: #594b47; font-size: 14px; line-height: 1.65; }
.continue-button { width: 100%; min-height: 48px; padding: 11px 20px; border-radius: 14px; font-size: 12px; }

.policy-panel { display: grid; gap: 16px; }
.policy-card, .session-card {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255,252,245,.78);
  box-shadow: var(--shadow-tight);
}
.policy-card h2 { margin-top: 5px; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.policy-card ul { display: grid; gap: 13px; margin: 20px 0; padding: 0; list-style: none; }
.policy-card li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; }
.policy-card li > span { display: grid; width: 27px; height: 27px; place-items: center; border: 2px solid #c8d9cc; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; font-weight: 1000; }
.policy-card li p { margin: 2px 0 0; color: #5d655e; font-size: 12px; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--green); font-size: 11px; font-weight: 1000; cursor: pointer; }

.session-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.session-card__top b { color: var(--green); font-size: 15px; }
.session-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.fan-note { margin: 0; padding: 0 8px; color: #908b83; font-size: 9px; line-height: 1.5; }

.policy-dialog {
  width: min(680px, calc(100% - 28px));
  padding: clamp(24px, 5vw, 40px);
  border: 0;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(23, 32, 25, .3);
  color: var(--ink);
}
.policy-dialog::backdrop { background: rgba(24, 29, 25, .52); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 16px; right: 17px; width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 13px; background: white; font-size: 24px; cursor: pointer; }
.policy-dialog h2 { margin-top: 6px; font-size: 30px; letter-spacing: -.035em; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.dialog-grid article { padding: 18px; border: 2px solid var(--line); border-radius: 18px; background: white; }
.dialog-grid article > b { color: var(--green); font-size: 11px; }
.dialog-grid h3 { margin-top: 5px; font-size: 16px; }
.dialog-grid p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  min-width: min(360px, calc(100% - 30px));
  padding: 13px 18px;
  border: 2px solid #b5d8bd;
  border-radius: 16px;
  background: #effbf1;
  box-shadow: 0 12px 32px rgba(35, 52, 39, .18);
  color: var(--green-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 30px);
  transition: opacity .25s ease, transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.noscript-copy { max-width: 760px; margin: 24px auto 80px; padding: 28px; border: 2px solid var(--line); border-radius: 24px; background: var(--surface); }
.noscript-copy p { color: var(--muted); }

@keyframes mascot-breathe { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes mascot-think { from { transform: rotate(-3deg) translateY(-2px); } to { transform: rotate(3deg) translateY(1px); } }
@keyframes twig-left { from { transform: rotate(-18deg); } to { transform: rotate(-39deg) translateX(-2px); } }
@keyframes twig-right { from { transform: rotate(21deg); } to { transform: rotate(42deg) translateX(2px); } }
@keyframes reveal-card { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 1120px) {
  .topbar { grid-template-columns: minmax(210px, 1fr) auto; }
  .willow-shell { grid-template-columns: 210px minmax(0, 720px); }
  .policy-panel { position: static; grid-column: 2; grid-template-columns: 1fr 1fr; }
  .fan-note { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  .topbar { grid-template-columns: 1fr auto; gap: 10px; min-height: 76px; padding: 11px 16px; }
  .stats .stat { min-width: 42px; height: 36px; }
  .stats .icon-button { display: none; }
  .language-toggle { width: 88px; height: 36px; }
  .willow-shell { display: block; padding: 24px 16px 80px; }
  .dossier-panel { position: static; margin-bottom: 28px; }
  .panel-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }
  .lens-path { display: flex; gap: 9px; overflow-x: auto; padding: 8px 3px 12px; scroll-snap-type: x mandatory; }
  .lens-path::before { display: none; }
  .lens-path li { flex: 0 0 155px; scroll-snap-align: start; }
  .lens-button { grid-template-columns: 44px 1fr; padding: 7px; background: rgba(255,255,255,.55); }
  .lens-node { width: 44px; height: 44px; }
  .sealed-button { display: none; }
  .policy-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; }
}

@media (max-width: 580px) {
  .topbar { grid-template-columns: 1fr auto; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand small { display: none; }
  .stats { gap: 5px; }
  .stats .stat { display: none; }
  .language-toggle { width: 74px; border-width: 1px; font-size: 9px; }
  .willow-shell, .workspace, .dossier-panel, .wish-ticket { min-width: 0; max-width: 100%; }
  .dossier-panel { overflow: hidden; }
  .panel-heading { display: block; }
  .panel-heading h2 { margin-top: 4px; }
  .workspace-heading { align-items: start; }
  .workspace-heading h1 { max-width: 100%; font-size: 32px; overflow-wrap: anywhere; }
  .ticket-number { display: none; }
  .mascot-row { grid-template-columns: 70px minmax(0, 1fr); }
  .willow-mascot { transform: scale(.78); transform-origin: left bottom; width: 70px; }
  .agent-bubble { min-width: 0; min-height: 76px; padding: 14px 15px; overflow-wrap: anywhere; }
  .agent-bubble p { font-size: 13px; }
  .wish-ticket { padding: 15px; border-radius: 23px; }
  .input-shell textarea { min-height: 120px; padding: 15px 15px 32px; font-size: 16px; }
  .example-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .example-chip { flex: 0 0 auto; }
  .grant-button { min-height: 52px; font-size: 11px; letter-spacing: .03em; }
  .result-main, .consequence-main { padding: 24px 20px; }
  .result-main { padding-right: 66px; }
  .result-card h2 { font-size: 24px; }
  .severity-row { display: block; }
  .severity-pill { display: inline-block; margin-top: 8px; }
  .support-note { padding: 15px 20px; }
  .turn-card { padding: 18px 15px; }
  .turn-heading { grid-template-columns: 42px 1fr; }
  .turn-icon { width: 40px; height: 40px; }
  .policy-panel { grid-template-columns: 1fr; }
  .dialog-grid { grid-template-columns: 1fr; }
}

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