:root {
  color-scheme: light;
  --bg: #f3f8f9;
  --surface: #ffffff;
  --surface-soft: #eaf4f6;
  --ink: #0b2028;
  --muted: #526b75;
  --line: #d7e5e9;
  --accent: #05768a;
  --accent-bright: #48ddeb;
  --accent-ink: #052028;
  --accent-soft: #d9f7fa;
  --attention: #dff5f7;
  --attention-line: #83d5dd;
  --shadow: 0 12px 28px rgba(4, 29, 39, .05);
  --nav: rgba(255, 255, 255, .96);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07151d;
  --surface: #10242d;
  --surface-soft: #14313a;
  --ink: #f1fbfc;
  --muted: #a6c3ca;
  --line: #294851;
  --accent: #55ddea;
  --accent-bright: #55ddea;
  --accent-ink: #042028;
  --accent-soft: #123b45;
  --attention: #16343d;
  --attention-line: #397c88;
  --shadow: 0 12px 30px rgba(0, 0, 0, .13);
  --nav: rgba(10, 29, 37, .97);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:active { transform: scale(.98); }
button:disabled { cursor: not-allowed; opacity: .55; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.app-shell { width: min(100%, 560px); min-height: 100dvh; margin: 0 auto; padding-bottom: calc(82px + env(safe-area-inset-bottom)); background: var(--bg); }
.app-header { min-height: 76px; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-image, .hero-logo { overflow: hidden; border-radius: 50%; flex: none; background: #06151c; }
.brand-image { width: 46px; height: 46px; }
.brand-image img, .hero-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.055); }
.brand-text strong, .brand-text small { display: block; }
.brand-text strong { font-size: 1.07rem; letter-spacing: -.025em; line-height: 1.18; }
.brand-text small { color: var(--muted); font-size: .75rem; margin-top: 3px; }
.theme-button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; box-shadow: var(--shadow); }
.theme-button span { font-size: 1.55rem; line-height: 1; }
.demo-banner { margin: 0 20px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.demo-banner strong { color: var(--ink); white-space: nowrap; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
main { padding: 27px 20px 36px; }
.screen { animation: none; }
.intro { margin-bottom: 22px; }
.overline { display: block; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.intro h1, .page-head h1 { font-size: clamp(2rem, 8vw, 2.45rem); line-height: 1.08; letter-spacing: -.045em; margin: 10px 0 8px; font-weight: 780; }
.intro p, .page-head p { color: var(--muted); font-size: .98rem; line-height: 1.5; margin: 0; max-width: 30rem; }
.request-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.request-box label { display: block; color: var(--ink); font-weight: 750; font-size: .88rem; margin-bottom: 9px; }
.request-box textarea { width: 100%; min-height: 74px; padding: 0; border: 0; resize: vertical; background: transparent; color: var(--ink); outline: none; font-size: 1rem; line-height: 1.5; }
.request-box textarea::placeholder { color: var(--muted); opacity: .8; }
.request-box textarea:focus-visible { outline: none; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 12px; padding: 11px 17px; font-weight: 750; font-size: .91rem; transition: transform 140ms cubic-bezier(.23,1,.32,1), background-color 140ms ease, border-color 140ms ease; }
.primary-button { border: 1px solid var(--accent-bright); background: var(--accent-bright); color: var(--accent-ink); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.request-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.request-submit span { font-size: 1.25rem; line-height: 1; }
.suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.suggestions button { min-height: 44px; padding: 7px 9px; color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; border-radius: 12px; font-size: .75rem; font-weight: 650; }
.home-section { margin-top: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2, .timeline-section h2, .result-panel h2 { font-size: 1.11rem; letter-spacing: -.025em; margin: 0; }
.attention-count { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bright); color: var(--accent-ink); font-size: .73rem; font-weight: 800; }
.text-link { border: 0; background: transparent; color: var(--accent); font-size: .8rem; font-weight: 700; padding: 8px 0; }
.attention-card, .working-card, .simple-row, .menu-row, .task-row, .file-row { width: 100%; color: var(--ink); text-align: left; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 140ms ease; }
.attention-card { min-height: 86px; display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 17px; background: var(--attention); border-color: var(--attention-line); }
.attention-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--accent-bright); color: var(--accent-ink); font-size: 1.25rem; font-weight: 800; }
.attention-copy, .row-copy { min-width: 0; flex: 1; }
.attention-copy strong, .attention-copy small, .row-copy strong, .row-copy small { display: block; }
.attention-copy strong, .row-copy strong { font-size: .94rem; line-height: 1.27; }
.attention-copy small, .row-copy small { color: var(--muted); font-size: .76rem; margin-top: 4px; line-height: 1.3; }
.chevron { font-size: 1.55rem; color: var(--muted); line-height: 1; flex: none; }
.working-card { border-radius: 17px; padding: 17px; }
.working-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; width: max-content; min-height: 27px; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .71rem; font-weight: 750; }
.pill.done { background: var(--surface-soft); color: var(--muted); }
.pill.draft { background: var(--surface-soft); color: var(--muted); }
.working-card strong { display: block; font-size: 1.01rem; line-height: 1.3; }
.working-card p { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 7px 0 13px; }
.working-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font-size: .75rem; }
.working-foot b { color: var(--accent); font-size: .76rem; }
.simple-row { min-height: 77px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; }
.row-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; font-weight: 750; }
.bottom-nav { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 560px); min-height: calc(68px + env(safe-area-inset-bottom)); padding: 4px 9px env(safe-area-inset-bottom); background: var(--nav); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; border: 0; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 650; }
.nav-button.is-active { color: var(--accent); }
.nav-button svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-button svg circle { fill: currentColor; stroke: none; }
.page-head { margin: 4px 0 22px; }
.page-head h1 { overflow-wrap: anywhere; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; padding: 1px; }
.filter-row button { min-height: 44px; padding: 7px 14px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .79rem; font-weight: 700; }
.filter-row button.is-active { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
.task-list, .file-list { display: grid; gap: 10px; }
.task-row { border-radius: 16px; padding: 16px; }
.task-row strong { display: block; font-size: .99rem; line-height: 1.32; margin: 9px 0 5px; }
.task-row small { color: var(--muted); font-size: .79rem; line-height: 1.4; }
.task-row .task-row-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--accent); font-size: .76rem; font-weight: 700; }
.back-button { color: var(--accent); background: none; border: 0; padding: 6px 0; margin: -5px 0 21px; font-size: .88rem; font-weight: 700; }
.detail-panel, .result-panel, .approval-panel, .file-preview, .connection-panel { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.detail-panel h2 { margin: 17px 0 5px; font-size: 1.07rem; }
.detail-panel p, .result-panel p, .file-preview p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.timeline-section { margin-top: 27px; }
.timeline-section ol { list-style: none; padding: 0 0 0 13px; margin: 17px 0 0 6px; border-left: 2px solid var(--line); }
.timeline-section li { position: relative; padding: 0 0 23px 18px; color: var(--muted); font-size: .87rem; }
.timeline-section li::before { content: ""; position: absolute; left: -19px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.timeline-section li.is-done::before, .timeline-section li.is-current::before { background: var(--accent-bright); border-color: var(--accent-bright); }
.timeline-section li.is-current { color: var(--ink); font-weight: 750; }
.result-panel { margin-top: 7px; }
.result-panel h2 { margin-bottom: 8px; }
.approval-site { display: flex; align-items: center; gap: 13px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.site-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; color: var(--accent); background: var(--accent-soft); font-size: 1.4rem; }
.approval-site small, .approval-site strong { display: block; }
.approval-site small { color: var(--muted); font-size: .76rem; }
.approval-site strong { font-size: .99rem; overflow-wrap: anywhere; }
.explanation { padding-top: 16px; }
.explanation h2 { margin: 0 0 4px; font-size: .88rem; }
.explanation p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.approval-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 9px; margin-top: 24px; }
.fine-print { color: var(--muted); font-size: .72rem; line-height: 1.45; margin: 13px 0 0; }
.empty-panel { text-align: center; border: 1px dashed var(--line); border-radius: 18px; padding: 34px 18px; color: var(--muted); }
.empty-panel span { color: var(--accent); font-size: 1.9rem; }
.empty-panel h2 { color: var(--ink); font-size: 1.09rem; margin: 6px 0; }
.empty-panel p { font-size: .84rem; margin: 0; }
.menu-list { display: grid; gap: 10px; }
.menu-row { display: flex; align-items: center; gap: 13px; min-height: 79px; padding: 13px 15px; border-radius: 16px; }
.menu-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.22rem; flex: none; }
.menu-row > span:nth-child(2) { flex: 1; min-width: 0; }
.menu-row strong, .menu-row small { display: block; }
.menu-row strong { font-size: .93rem; }
.menu-row small { color: var(--muted); font-size: .77rem; margin-top: 3px; }
.logo-panel { display: flex; align-items: center; gap: 16px; padding: 20px 5px; margin-top: 25px; border-top: 1px solid var(--line); }
.hero-logo { width: 69px; height: 69px; }
.logo-panel p { color: var(--muted); font-size: .78rem; line-height: 1.48; margin: 0; }
.file-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 15px; border-radius: 15px; }
.file-row .row-copy strong { font-size: .88rem; }
.file-preview { min-height: 110px; }
.connection-panel { text-align: center; padding: 34px 22px; }
.connection-icon { display: grid; place-items: center; margin: 0 auto 11px; width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--accent); color: var(--accent); font-size: 1.3rem; }
.connection-panel h2 { font-size: 1.08rem; margin: 0 0 7px; }
.connection-panel p { color: var(--muted); font-size: .86rem; line-height: 1.55; margin: 0; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: calc(83px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; width: max-content; max-width: min(90vw, 440px); padding: 12px 15px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: .8rem; line-height: 1.4; box-shadow: var(--shadow); transition: transform 180ms cubic-bezier(.23,1,.32,1), opacity 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .attention-card:hover, .working-card:hover, .simple-row:hover, .menu-row:hover, .task-row:hover, .file-row:hover { border-color: var(--accent); }
}
@media (min-width: 561px) {
  body { background: var(--surface-soft); }
  .app-shell { box-shadow: 0 0 50px rgba(3, 28, 37, .09); }
  .bottom-nav { box-shadow: 0 -8px 28px rgba(3, 28, 37, .05); }
}
@media (max-width: 350px) {
  .app-header, main { padding-left: 16px; padding-right: 16px; }
  .demo-banner { margin-left: 16px; margin-right: 16px; }
  .demo-banner span:last-child { font-size: .66rem; }
  .suggestions button { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bottom-nav { backdrop-filter: none; }
}


.subtle { color: var(--muted); font-size: .75rem; }
.working-card strong, .task-row strong, .row-copy strong { overflow-wrap: anywhere; }
.request-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.back-button, .text-link { min-height: 44px; }
.keyboard-nav button:active { transform: none; }
@media (prefers-reduced-motion: reduce) { button:active { transform: none; } }

