:root {
  --ink: #315a58;
  --ink-soft: #697c7a;
  --evergreen: #2d7770;
  --mint: #dff7ef;
  --cream: #fffaf1;
  --butter: #fff2bd;
  --blush: #ffdce2;
  --lilac: #e8e0ff;
  --sky: #d9efff;
  --coral: #ef7a70;
  --line: #d6e7df;
  --shadow: 0 20px 46px rgba(87, 112, 102, 0.14);
  --display: "Meiryo UI", Meiryo, "Yu Gothic UI", sans-serif;
  --body: "Meiryo UI", Meiryo, "Yu Gothic UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(255, 220, 226, .78) 0 75px, transparent 76px),
    radial-gradient(circle at 92% 93%, rgba(218, 244, 232, .9) 0 140px, transparent 141px),
    linear-gradient(135deg, #fff9ec 0%, #fffdf6 45%, #f2fbf6 100%);
  font-family: var(--body);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #eeb55e; outline-offset: 3px; }

.app-shell { position: relative; width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 36px; }
.sun-sticker { position: absolute; z-index: 2; top: 3px; right: 5.7%; display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: #f2ba4c; border: 4px solid #fff7dc; border-radius: 49% 51% 46% 54%; box-shadow: 0 6px 0 rgba(228, 173, 62, .28); font-size: 17px; transform: rotate(10deg); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; background: rgba(255, 253, 248, .92); border: 1px solid #fff; border-radius: 30px 30px 0 0; box-shadow: var(--shadow); }
.brand-lockup, .header-actions, .demo-pill, .panel-heading, .message, .quick-start, .ask-box { display: flex; align-items: center; }
.brand-lockup { gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; color: #fff; background: var(--evergreen); border: 4px solid #c6eee0; border-radius: 48% 52% 46% 54%; box-shadow: 3px 4px 0 #b7d8ca; font-size: 13px; font-weight: 900; letter-spacing: .04em; transform: rotate(-4deg); }
.eyebrow { margin: 0 0 4px; color: #5d9b8f; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--display); }
h1 { margin-bottom: 0; font-size: 27px; letter-spacing: -.04em; }
h1 span { display: inline-block; margin-left: 3px; padding: 2px 6px; color: #6e61b5; background: var(--lilac); border-radius: 8px; font-size: 11px; letter-spacing: 0; vertical-align: middle; transform: rotate(-4deg); }
.header-actions { gap: 10px; }
.demo-pill { gap: 6px; padding: 8px 11px; color: #78659e; background: #f2efff; border-radius: 999px; font-size: 12px; font-weight: 900; }
.demo-pill i { width: 8px; height: 8px; background: #8fce9c; border-radius: 50%; box-shadow: 0 0 0 3px #dff6e6; }
.reset-button { padding: 9px 13px; color: var(--evergreen); border: 1px solid #cfe8dd; border-radius: 13px; background: #fff; font-size: 12px; font-weight: 900; }
.reset-button:hover { background: var(--mint); }
.demo-notice { display: flex; align-items: center; gap: 8px; padding: 9px 26px; color: #766543; background: #fff6ce; border-top: 1px solid #f0e3aa; border-bottom: 1px solid #f0e3aa; font-size: 12px; }
.demo-notice span { color: var(--coral); font-size: 17px; }
.demo-notice p { margin: 0; }

.workbench { display: grid; grid-template-columns: 182px minmax(0, 1fr) 290px; min-height: 670px; overflow: hidden; background: rgba(255, 253, 248, .96); border: 1px solid #fff; border-radius: 0 0 30px 30px; box-shadow: var(--shadow); }
.side-nav { display: flex; flex-direction: column; gap: 7px; padding: 23px 15px; background: linear-gradient(180deg, #e7f8f0 0%, #f0fbf5 100%); border-right: 1px solid var(--line); }
.side-label { margin: 0 8px 8px; color: #73a092; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 10px; color: var(--ink-soft); border: 0; border-radius: 16px; background: transparent; text-align: left; font-size: 13px; font-weight: 900; }
.nav-item span { display: grid; place-items: center; width: 25px; height: 25px; background: #fff; border-radius: 10px; font-size: 14px; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: var(--evergreen); box-shadow: 0 6px 12px rgba(45,119,112,.17); }
.nav-item:hover span, .nav-item.is-active span { background: rgba(255,255,255,.22); }
.side-footer { margin-top: auto; padding: 14px 9px 2px; border-top: 1px dashed #badaca; }
.tiny-star { color: #e9a944; }
.side-footer p { margin: 6px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.side-footer b { color: var(--evergreen); font-size: 10px; }

.conversation-panel { display: flex; flex-direction: column; min-width: 0; padding: 28px 28px 22px; }
.panel-heading { align-items: flex-start; justify-content: space-between; gap: 14px; }
h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.heading-copy { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.help-badge { display: flex; align-items: center; gap: 6px; margin-top: 5px; padding: 8px 10px; color: #a0524b; background: #ffe7e2; border-radius: 15px 15px 15px 5px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.help-badge span { display: grid; place-items: center; width: 17px; height: 17px; color: #fff; background: var(--coral); border-radius: 50%; }
.scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 20px 0 15px; }
.scenario-button { min-height: 92px; padding: 10px 8px; color: var(--ink); border: 1px solid transparent; border-radius: 20px 20px 18px 18px; text-align: left; transition: transform .16s ease, box-shadow .16s ease; }
.scenario-button:hover { box-shadow: 0 9px 16px rgba(78,104,96,.13); transform: translateY(-3px) rotate(-1deg); }
.scenario-button b, .scenario-button small { display: block; }
.scenario-emoji { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 7px; background: rgba(255,255,255,.64); border-radius: 10px; font-size: 16px; }
.scenario-button b { font-size: 13px; }
.scenario-button small { margin-top: 2px; color: rgba(47,86,82,.72); font-size: 10px; font-weight: 800; }
.earthquake { background: var(--blush); border-color: #f3c7d0; }.weather { background: var(--sky); border-color: #c3e0f3; }.infection { background: #fff0ba; border-color: #f3dea2; }.handover { background: var(--mint); border-color: #bfebda; }
.chat-log { flex: 1; min-height: 305px; padding: 3px 0 16px; overflow-y: auto; scrollbar-color: #c7e6da transparent; }
.message { align-items: flex-start; gap: 10px; max-width: 92%; margin: 12px 0; }
.message.user-message { margin-left: auto; justify-content: flex-end; }
.message-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: #fff; background: #f0ad58; border: 3px solid #fff2d1; border-radius: 12px 12px 12px 4px; font-size: 13px; box-shadow: 2px 3px 0 #ead0a3; }
.message-body { padding: 14px 16px; color: var(--ink); background: #f1fbf6; border: 1px solid #d6ede1; border-radius: 6px 18px 18px 18px; }
.user-message .message-body { color: #fff; background: var(--evergreen); border-color: var(--evergreen); border-radius: 18px 5px 18px 18px; }
.message-body p { margin-bottom: 0; font-size: 13px; line-height: 1.65; }
.message-kicker { margin-bottom: 4px !important; color: #58a493; font-size: 10px !important; font-weight: 900; letter-spacing: .1em; }
.quick-start { justify-content: space-between; gap: 12px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed #c7e4d5; }
.quick-start span { color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.quick-start button { padding: 7px 9px; color: #fff; border: 0; border-radius: 999px; background: #e98a77; font-size: 10px; font-weight: 900; white-space: nowrap; }
.quick-start button:hover { background: var(--coral); }
.quick-start b { margin-left: 3px; }
.answer-card { max-width: calc(92% - 44px); margin: 11px 0 16px 44px; overflow: hidden; background: #fff; border: 1px solid #dbeae2; border-radius: 19px; box-shadow: 0 9px 20px rgba(74,103,94,.10); }
.answer-top { position: relative; padding: 14px 16px 12px; color: #fff; background: var(--evergreen); }
.answer-top::after { content: "✦"; position: absolute; right: 14px; top: 13px; color: #ffe797; font-size: 17px; }
.answer-top .eyebrow { color: #c4efe1; }.answer-top h3 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }
.answer-intro { padding: 12px 16px 3px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.action-list { padding: 2px 16px 0; }
.action-row { display: grid; grid-template-columns: 75px 1fr; gap: 11px; padding: 12px 0; border-bottom: 1px dashed #d8e7df; }
.action-row:last-child { border-bottom: 0; }.action-phase { align-self: start; padding: 4px 6px; color: #5a8b7e; background: #e5f8ef; border-radius: 999px; font-size: 10px; font-weight: 900; text-align: center; }
.action-copy b { display: block; margin-bottom: 3px; font-size: 13px; }.action-copy span { color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.answer-footer { padding: 10px 16px 13px; color: #875d56; background: #fff3ee; border-top: 1px solid #f5ddd4; font-size: 11px; line-height: 1.55; }
.source-pill { display: inline-block; margin-top: 7px; padding: 4px 7px; color: #5a8175; background: #e5f7ed; border-radius: 999px; font-size: 10px; font-weight: 900; }
.ask-box { gap: 8px; padding-top: 15px; border-top: 1px dashed #bedccc; }.input-spark { color: #eab551; font-size: 16px; }
.ask-box input { flex: 1; min-width: 0; padding: 13px 14px; color: var(--ink); border: 1px solid #c5e2d5; border-radius: 16px; background: #fffefa; }
.ask-box button { padding: 13px 14px; color: #fff; border: 0; border-radius: 16px 16px 16px 5px; background: var(--evergreen); font-size: 12px; font-weight: 900; }
.ask-box button:hover { background: #3f9086; }

.context-rail { display: flex; flex-direction: column; gap: 13px; padding: 22px 17px; background: #f8fcf8; border-left: 1px solid var(--line); }.rail-card, .screen-card { background: #fffefa; border: 1px solid #deece4; border-radius: 19px; }.rail-card { padding: 15px; }.source-card h2 { font-size: 20px; }.source-card > p:not(.eyebrow) { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }.mini-divider { display: flex; gap: 4px; margin: 12px 0; }.mini-divider span { width: 20px; height: 4px; border-radius: 99px; }.mini-divider span:nth-child(1) { background: #ef8d7b; }.mini-divider span:nth-child(2) { background: #f3c766; }.mini-divider span:nth-child(3) { background: #86c8af; }.small-copy { font-size: 11px !important; }.promise-card ul { display: grid; gap: 8px; margin: 9px 0 0; padding: 0; list-style: none; }.promise-card li { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }.promise-card i { display: grid; place-items: center; width: 20px; height: 20px; color: #558a7b; background: #dcf6eb; border-radius: 8px 8px 8px 3px; font-style: normal; font-size: 10px; font-weight: 900; }.screen-card { margin-top: auto; padding: 8px; overflow: hidden; }.screen-card img { display: block; width: 100%; border-radius: 13px; }.screen-card p { margin: 7px 6px 3px; color: #719088; font-size: 10px; font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 6; max-width: calc(100% - 32px); padding: 10px 14px; color: #fff; background: #3e716a; border-radius: 999px; box-shadow: 0 8px 25px rgba(42,81,73,.26); font-size: 12px; font-weight: 900; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; }.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1040px) { .workbench { grid-template-columns: 162px minmax(0, 1fr); }.context-rail { display: none; }.scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.scenario-button { min-height: 70px; }.scenario-emoji { float: left; margin: 0 7px 0 0; } }
@media (max-width: 720px) {
  .app-shell { width: 100%; padding: 0; }.sun-sticker { display: none; }
  .app-header { padding: 14px 16px; gap: 7px; border-radius: 0; }.brand-mark { width: 40px; height: 40px; border-width: 3px; font-size: 10px; }.brand-lockup { gap: 9px; min-width: 0; }.brand-lockup .eyebrow { display: none; }h1 { font-size: 22px; white-space: nowrap; }.header-actions { flex: 0 0 auto; gap: 5px; }.demo-pill { flex: 0 0 auto; gap: 4px; padding: 8px; font-size: 10px; white-space: nowrap; }.demo-pill i { width: 7px; height: 7px; }.reset-button { padding: 9px; font-size: 11px; white-space: nowrap; }
  .demo-notice { padding: 9px 15px; font-size: 12px; line-height: 1.55; }.demo-notice span { font-size: 18px; }
  .workbench { display: block; min-height: 100vh; border: 0; border-radius: 0; }.side-nav { position: sticky; top: 0; z-index: 3; flex-direction: row; gap: 5px; padding: 9px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }.side-label, .side-footer { display: none; }.nav-item { flex: 1 0 auto; width: auto; padding: 10px 11px; font-size: 12px; white-space: nowrap; }.nav-item span { width: 21px; height: 21px; font-size: 12px; }
  .conversation-panel { min-height: calc(100vh - 171px); padding: 21px 15px 17px; }.panel-heading { gap: 8px; }h2 { font-size: 28px; line-height: 1.25; }.heading-copy { margin-top: 7px; font-size: 13px; }.help-badge { padding: 8px; font-size: 10px; }.help-badge span { width: 18px; height: 18px; }
  .scenario-grid { gap: 8px; margin: 17px 0 15px; }.scenario-button { min-height: 88px; padding: 10px; border-radius: 18px; }.scenario-emoji { float: none; width: 30px; height: 30px; margin: 0 0 6px; font-size: 18px; }.scenario-button b { font-size: 15px; }.scenario-button small { margin-top: 3px; font-size: 11px; }
  .chat-log { min-height: 322px; }.message, .answer-card { max-width: 100%; }.answer-card { margin-left: 0; }.message-avatar { width: 36px; height: 36px; font-size: 14px; }.message-body { padding: 15px 16px; }.message-body p { font-size: 15px; line-height: 1.7; }.message-kicker { font-size: 11px !important; }.quick-start { align-items: flex-start; flex-direction: column; gap: 9px; }.quick-start span { font-size: 12px; }.quick-start button { padding: 9px 11px; font-size: 12px; }
  .answer-top h3 { font-size: 21px; }.answer-intro { font-size: 14px; }.action-row { grid-template-columns: 80px 1fr; gap: 12px; padding: 14px 0; }.action-phase { padding: 5px 7px; font-size: 11px; }.action-copy b { font-size: 15px; }.action-copy span { font-size: 13px; line-height: 1.55; }.answer-footer { font-size: 13px; line-height: 1.6; }.source-pill { font-size: 11px; }
  .ask-box { position: sticky; bottom: 0; padding: 13px 0 calc(16px + env(safe-area-inset-bottom)); background: #fffdf8; }.input-spark { display: none; }.ask-box input { padding: 14px 13px; font-size: 16px; }.ask-box button { padding: 14px 11px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) { .answer-card, .message { animation: pop-in .22s ease-out both; }@keyframes pop-in { from { opacity: 0; transform: translateY(7px) scale(.985); }to { opacity: 1; transform: translateY(0) scale(1); } } }
