:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --surface-strong: #ededed;
  --ink: #0d0d0d;
  --muted: #8a8a8a;
  --line: #e3e3e3;
  --action: #0b0b0b;
  --action-hover: #242424;
  --accent: #0876d8;
  --accent-strong: #005eb8;
  --accent-soft: #e4f1fc;
  --green: var(--accent);
  --green-strong: var(--accent-strong);
  --green-soft: var(--accent-soft);
  --blue: var(--accent);
  --blue-soft: var(--accent-soft);
  --amber: #a46418;
  --amber-soft: #f5ead7;
  --red: #9a3c35;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --radius-control: 8px;
  --radius-card: 8px;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { min-width: 280px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui); letter-spacing: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease; }
button:disabled { opacity: 0.48; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(8, 118, 216, 0.2); outline-offset: 2px; }

.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 108px; padding: calc(24px + env(safe-area-inset-top)) 22px 20px; border-bottom: 1px solid rgba(227, 227, 227, 0.92); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px); }
.topbar h1, .sheet h2 { margin: 4px 0 0; font-size: 30px; line-height: 1.1; font-weight: 760; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 720; text-transform: uppercase; }
.icon-button { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 25px; cursor: pointer; box-shadow: none; }
.top-actions { display: flex; gap: 8px; }
.primary-icon { border-color: var(--action); background: var(--action); color: #fff; box-shadow: none; }
.primary-icon:hover { border-color: var(--action-hover); background: var(--action-hover); }
.icon-button:active, .nav-item:active, .task-toggle:active { transform: scale(0.96); }
.content { padding: 24px 20px 34px; }
.section { margin-bottom: 34px; }
.section:last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.section-heading h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.section-heading span { color: var(--muted); font-size: 13px; }

.brief-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.metric { min-width: 0; padding: 14px 12px; background: var(--surface); }
.metric strong { display: block; font-size: 22px; line-height: 1; }
.metric span { display: block; margin-top: 7px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.25; }
.task-list, .meeting-list, .project-list, .knowledge-list { display: grid; gap: 8px; }
.task-card, .meeting-row, .project-row, .knowledge-row { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 2px 10px rgba(24, 43, 32, 0.035); }
.task-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px; align-items: start; min-height: 76px; padding: 12px 8px 12px 10px; }
.task-card.is-done { opacity: 0.72; }
.task-card.is-done .task-title { text-decoration: line-through; }
.task-toggle { display: grid; width: 32px; height: 32px; margin-top: 2px; place-items: center; border: 2px solid #9aa69f; border-radius: 50%; background: transparent; color: transparent; font-size: 17px; cursor: pointer; }
.task-toggle.is-done { border-color: var(--action); background: var(--action); color: white; }
.task-title { margin: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; font-weight: 680; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: var(--surface-muted); color: #48534c; font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.chip.is-urgent { background: #f3dfdc; color: var(--red); }
.chip.is-date { background: var(--amber-soft); color: var(--amber); }
.chip.is-project { background: var(--blue-soft); color: var(--blue); }
.task-menu { width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 21px; cursor: pointer; }
.task-actions { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.small-button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 680; cursor: pointer; }
.small-button.is-focus { border-color: #b8d8f3; color: var(--accent); }
.small-button:hover, .secondary-button:hover { border-color: #b8c9bf; background: var(--surface-muted); }

.recommendation-card, .focus-card { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: none; }
.recommendation-kicker, .focus-kicker { margin: 0 0 7px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.recommendation-card h2, .focus-card h2 { margin: 0; overflow-wrap: anywhere; font-size: 19px; line-height: 1.3; }
.recommendation-reasons { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recommendation-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.compact-button { width: auto; min-height: 38px; padding: 8px 12px; }
.secondary-button { min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; }
.ai-explanation { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #34463b; font-size: 13px; line-height: 1.5; }
.focus-time { margin: 18px 0; font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 760; }
.focus-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px; }
.focus-actions .primary-button, .focus-actions .secondary-button { width: 100%; }

.day-progress { margin-bottom: 18px; padding: 14px 2px; }
.progress-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.progress-heading span { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-track { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: #dce4de; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--action); transition: width 180ms ease; }
.day-progress p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.load-warning { margin-top: 10px; padding: 9px 10px; border-radius: 6px; background: var(--amber-soft); color: #71470f; font-size: 12px; line-height: 1.4; }

.meeting-row, .project-row, .knowledge-row { padding: 16px; }
.meeting-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 34px; gap: 10px; }
.meeting-time { color: var(--accent); font-size: 13px; font-weight: 760; }
.meeting-row h3, .project-row h3, .knowledge-row h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; }
.meeting-row p, .project-row p, .knowledge-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.meeting-details { margin-top: 8px; }
.meeting-details summary { width: fit-content; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.meeting-details summary::marker { color: var(--muted); }
.meeting-description { max-height: 160px; overflow: auto; padding-right: 4px; }
.meeting-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.meeting-open { display: grid; width: 34px; height: 34px; place-items: center; align-self: center; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.project-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.project-marker { width: 8px; height: 44px; border-radius: 3px; background: var(--green); }
.project-marker.marker-1 { background: #315e8a; }
.project-marker.marker-2 { background: #a46418; }
.project-marker.marker-3 { background: #75558d; }
.project-marker.marker-4 { background: #9a3c35; }
.project-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.project-links .chip { margin: 0; }
.chip.is-link { background: #eef2ef; color: #4d5d53; }
.project-empty-links { color: var(--muted); font-size: 11px; }
.project-count { display: grid; min-width: 48px; color: var(--muted); text-align: right; font-size: 10px; }
.project-count strong { color: var(--ink); font-size: 18px; line-height: 1; }
.project-count span { margin-top: 4px; }
.knowledge-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; }
.file-icon { display: grid; width: 36px; height: 40px; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 700; }

.search-box { position: relative; margin-bottom: 14px; }
.search-box input, .sheet textarea, .sheet select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-control); outline: 0; background: var(--surface); color: var(--ink); }
.search-box input { height: 46px; padding: 0 14px 0 42px; }
.search-box span { position: absolute; left: 15px; top: 12px; color: var(--muted); }
.search-box input:focus, .sheet textarea:focus, .sheet select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 118, 216, 0.12); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 14px; padding: 4px; border-radius: var(--radius-control); background: var(--surface-muted); }
.segmented button { min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.segmented button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(28, 45, 35, 0.1); }
.empty-state, .error-state { padding: 30px 18px; border: 1px dashed #bfc9c2; border-radius: 8px; text-align: center; }
.empty-state strong, .error-state strong { display: block; font-size: 15px; }
.empty-state p, .error-state p { margin: 8px auto 0; max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.error-state { border-color: #ddb7b3; background: #fbf3f2; }
.skeleton { height: 76px; border-radius: 8px; background: #e5eae6; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.45; } }

.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(100%, 760px); min-height: calc(76px + env(safe-area-inset-bottom)); margin: 0 auto; padding: 9px 6px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px); box-shadow: 0 -8px 24px rgba(24, 43, 32, 0.035); }
.nav-item { display: grid; min-width: 0; place-content: center; gap: 5px; border: 0; background: transparent; color: #7a857e; font-size: 11px; font-weight: 650; cursor: pointer; }
.nav-item span:first-child { font-size: 21px; line-height: 1; }
.nav-item.is-active { color: var(--ink); }
.nav-item.is-active span:last-child { font-weight: 760; }
.sheet { width: min(100% - 16px, 560px); max-height: 90vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(16, 27, 20, 0.52); backdrop-filter: blur(3px); }
.sheet form { padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: #c7cfca; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.sheet label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; }
.sheet textarea { min-height: 108px; padding: 12px; resize: vertical; line-height: 1.45; }
.sheet select { height: 48px; padding: 0 12px; }
.field-help { margin: 8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.primary-button { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--action); border-radius: var(--radius-control); background: var(--action); color: #fff; font-weight: 680; cursor: pointer; box-shadow: none; }
.primary-button:hover { border-color: var(--action-hover); background: var(--action-hover); }
.primary-button:active, .secondary-button:active, .small-button:active { transform: translateY(1px); }
.capture-preview { margin: 0 0 14px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf8; }
.capture-preview > strong { display: block; margin-bottom: 10px; font-size: 13px; }
.capture-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid #e3e8e4; font-size: 12px; }
.capture-row span { color: var(--muted); }
.capture-row b { overflow-wrap: anywhere; font-weight: 650; }
.capture-actions { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px; }
.capture-actions .primary-button, .capture-actions .secondary-button { width: 100%; }
.duplicate-warning { margin: 10px 0 0; padding: 9px; border-radius: 6px; background: var(--amber-soft); color: #71470f; font-size: 11px; line-height: 1.4; }
.toast { position: fixed; z-index: 40; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); left: 16px; width: min(calc(100% - 32px), 480px); margin: 0 auto; padding: 12px 14px; border-radius: 8px; background: #17201b; color: white; box-shadow: var(--shadow); font-size: 13px; text-align: center; }
.gate { min-height: 100vh; padding: 24px; display: grid; place-content: center; justify-items: start; background: #111713; color: #f3f6f4; }
.gate .brand-mark { display: grid; width: 48px; height: 48px; margin-bottom: 28px; place-items: center; border: 1px solid #476052; border-radius: 8px; background: #1c2921; color: #7fd3a9; font-size: 24px; font-weight: 800; }
.gate h1 { margin: 0; font-size: 30px; }
.gate p { max-width: 430px; margin: 12px 0 24px; color: #b3c0b8; line-height: 1.55; }
.gate-status { padding-top: 14px; border-top: 1px solid #354139; color: #d3dbd6; font-size: 13px; }

.welcome { margin: 0 2px 10px; color: var(--muted); font-size: 13px; }
.next-card, .progress-panel, .ai-brief, .timeline, .review-summary, .tomorrow-card, .analytics-overview, .bar-list, .profile-card { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.next-card { padding: 22px; border-color: var(--line); box-shadow: none; }
.card-kicker { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 760; text-transform: uppercase; }
.next-card h2, .review-summary h2, .tomorrow-card h2 { margin: 0; overflow-wrap: anywhere; font-size: 22px; line-height: 1.28; }
.card-actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.card-actions .primary-button, .card-actions .secondary-button { width: 100%; }
.card-actions .primary-button, .card-actions .secondary-button { min-height: 50px; }
.progress-panel { padding: 18px; }
.progress-panel > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.mini-metrics .metric { padding: 14px 10px; }
.mini-metrics .metric strong { font-size: 18px; }
.ai-brief { padding: 18px; background: var(--surface); }
.clean-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding-left: 17px; color: #435047; font-size: 13px; line-height: 1.5; }
.clean-list li::before { position: absolute; left: 0; color: var(--accent); content: "•"; }
.text-button { min-height: 30px; padding: 3px 6px; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }

.task-group { margin-bottom: 22px; }
.task-title-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; font-weight: 700; cursor: pointer; }
.task-open { display: grid; width: 34px; height: 34px; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.task-card { grid-template-columns: 38px minmax(0, 1fr) 34px; }
.task-card.is-compact { min-height: 64px; }
.chip.is-status { background: #e1f0e8; color: var(--green); }

.assistant-intro { padding: 22px 14px 18px; text-align: center; }
.assistant-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 23px; }
.assistant-intro h2 { margin: 0; font-size: 19px; }
.assistant-intro p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.chat-list { display: grid; gap: 8px; margin-bottom: 12px; }
.chat-bubble { max-width: 88%; padding: 12px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.chat-bubble.is-user { justify-self: end; background: var(--green); color: #fff; }
.chat-bubble.is-assistant { justify-self: start; border: 1px solid var(--line); background: var(--surface); }
.prompt-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.prompt-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--green); font-size: 11px; cursor: pointer; }
.assistant-form { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.97); box-shadow: var(--shadow); }
.assistant-form textarea { min-height: 44px; max-height: 120px; padding: 10px; border: 0; outline: 0; resize: none; background: transparent; }
.send-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--action); color: white; font-size: 20px; cursor: pointer; }

.timeline { position: relative; padding: 16px; }
.timeline-row { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; min-height: 58px; padding: 10px 10px 10px 20px; border-left: 2px solid #cad4cd; }
.timeline-row::before { position: absolute; top: 17px; left: -6px; width: 10px; height: 10px; border: 2px solid var(--surface); border-radius: 50%; background: #7d8981; content: ""; }
.timeline-row.is-meeting { border-left-color: #8eb2d0; background: #f4f8fb; }
.timeline-row.is-meeting::before { background: var(--blue); }
.timeline-row.is-focus { border-left-color: #86c2a8; background: #f2f9f5; }
.timeline-row.is-focus::before, .timeline-row.is-free::before { background: var(--green); }
.timeline-time { color: var(--muted); font-size: 11px; font-weight: 700; }
.timeline-row strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.timeline-button { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; color: var(--ink); text-align: left; cursor: pointer; }

.meeting-project-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.meeting-project-control .secondary-button { min-width: 104px; }
.meeting-full-description { margin: -8px 0 14px; }
.meeting-source-details { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf8; }
.meeting-source-details summary { color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.meeting-source-details p { max-height: 180px; margin: 10px 0 0; overflow: auto; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.meeting-work-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.meeting-work-section .detail-section-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 0; }
.meeting-preparation { display: grid; gap: 10px; padding: 12px; border: 1px solid #b9d7c8; border-radius: 8px; background: #f7fbf8; }
.meeting-preparation h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; }
.meeting-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.prep-block { display: grid; gap: 7px; padding-top: 9px; border-top: 1px solid #dbe8e0; }
.prep-block > strong { font-size: 12px; }
.prep-source { margin: 0; color: var(--green); font-size: 10px; }
.meeting-related-tasks { display: grid; gap: 7px; }
.protocol-preview { margin-top: 12px; padding: 12px; border: 1px solid #b9d7c8; border-radius: 8px; background: #f7fbf8; }
.protocol-preview > strong { display: block; margin-bottom: 10px; font-size: 13px; }
.protocol-preview-block { display: grid; gap: 7px; padding: 9px 0; border-top: 1px solid #dbe8e0; }
.protocol-preview-block > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.protocol-summary-label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.protocol-summary-label textarea, .protocol-edit-fields textarea, .protocol-edit-fields input, .protocol-edit-fields select { width: 100%; min-width: 0; margin: 0; background: var(--surface); font-size: 12px; font-weight: 500; text-transform: none; }
.protocol-edit-list { display: grid; gap: 8px; }
.protocol-edit-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; align-items: start; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.protocol-edit-row > input { width: 17px; height: 17px; margin-top: 8px; accent-color: var(--green); }
.protocol-edit-fields { display: grid; min-width: 0; gap: 6px; }
.protocol-edit-fields textarea { resize: vertical; overflow-wrap: anywhere; }
.protocol-task-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.clean-list li.is-muted { color: var(--muted); }
.protocol-actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px; margin-top: 12px; }
.protocol-actions .primary-button, .protocol-actions .secondary-button { width: 100%; }
.protocol-history { display: grid; gap: 8px; }
.protocol-row { padding: 10px 12px; border-left: 3px solid #9cc9b4; background: #f7f9f7; }
.protocol-row time { color: var(--muted); font-size: 9px; }
.protocol-row .protocol-summary { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 12px; }
.protocol-row .clean-list { margin-top: 7px; }
.protocol-row p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }

.project-dashboard { display: grid; gap: 10px; }
.project-card { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.project-head { display: flex; align-items: center; gap: 9px; }
.project-head h2 { margin: 0; font-size: 16px; }
.project-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); }
.dot-1 { background: var(--blue); } .dot-2 { background: var(--amber); } .dot-3 { background: #775494; } .dot-4 { background: var(--red); }
.project-progress { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 3px; background: var(--surface-muted); }
.project-progress span { display: block; height: 100%; background: var(--green); }
.project-progress-label { margin: 5px 0 10px; color: var(--muted); font-size: 10px; }
.project-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.project-stat-grid .metric { padding: 10px; }
.project-stat-grid .metric strong { font-size: 17px; }
.next-step { margin: 10px 0; color: #48534c; font-size: 11px; line-height: 1.45; }
.project-card > .secondary-button { width: 100%; margin-top: 10px; }
.project-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.project-card-actions .secondary-button { min-width: 0; padding: 8px 5px; font-size: 10px; }
.project-card-actions .secondary-button:only-child { grid-column: 1 / -1; }

.more-menu, .settings-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.more-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; width: 100%; align-items: center; gap: 10px; padding: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.more-row:last-child { border-bottom: 0; }
.more-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; background: var(--surface-muted); color: var(--green); font-size: 17px; }
.more-copy { display: grid; gap: 3px; }
.more-copy strong { font-size: 13px; }
.more-copy small { color: var(--muted); font-size: 10px; }
.more-chevron { color: var(--muted); font-size: 22px; }
.subview-header { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 7px; margin-bottom: 14px; }
.subview-header h2 { margin: 0; font-size: 19px; }
.back-button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--green); font-size: 28px; cursor: pointer; }

.review-summary, .tomorrow-card { padding: 16px; }
.review-summary > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.tomorrow-card .primary-button { margin-top: 14px; }
.analytics-overview { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; }
.analytics-overview h2 { margin: 0; font-size: 16px; }
.analytics-overview p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.stat-ring { display: grid; width: 82px; height: 82px; place-items: center; border-radius: 50%; background: radial-gradient(circle at center, white 57%, transparent 59%), conic-gradient(var(--green) var(--value), #e5ebe7 0); font-size: 17px; font-weight: 800; }
.bar-list { padding: 14px; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 22px; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 4px; background: var(--surface-muted); }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.bar-row b { text-align: right; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 16px; }
.avatar { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 19px; font-weight: 800; }
.profile-card h2 { margin: 0; font-size: 16px; }
.profile-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.setting-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { color: var(--muted); text-align: right; font-weight: 600; }

.detail-sheet { max-height: 94vh; }
.detail-sheet input[type="text"], .detail-sheet input[type="number"], .detail-sheet input[type="date"] { width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface); color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; }
.detail-grid + .detail-grid { margin-top: 10px; }
.checklist-heading { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 7px; font-size: 13px; }
.detail-checklist { display: grid; gap: 7px; }
.checklist-edit-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 34px; align-items: center; gap: 6px; }
.checklist-edit-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
.remove-button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--red); font-size: 20px; cursor: pointer; }
.checklist-empty { margin: 0; color: var(--muted); font-size: 11px; }
.ai-action-button { width: 100%; min-height: 44px; margin: 12px 0; border: 1px solid #a9cfbc; border-radius: 8px; background: #eff8f3; color: var(--green); font-weight: 750; cursor: pointer; }
.decomposition-preview { min-width: 0; margin: 0 0 14px; padding: 12px; border: 1px solid #b9d7c8; border-radius: 8px; background: #f7fbf8; }
.decomposition-preview > strong { font-size: 12px; }
.decomposition-list { display: grid; min-width: 0; gap: 7px; margin: 10px 0; padding: 0; counter-reset: decomposition-step; color: #39473e; font-size: 12px; line-height: 1.4; list-style: none; }
.decomposition-list li { display: grid; min-width: 0; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 7px; padding: 8px; border: 1px solid #dbe8e0; border-radius: 6px; background: #fff; overflow-wrap: anywhere; white-space: normal; word-break: break-word; }
.decomposition-list li::before { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e0f1e8; color: var(--green); content: counter(decomposition-step); counter-increment: decomposition-step; font-size: 10px; font-weight: 800; line-height: 1; }
.decomposition-actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 7px; }
.decomposition-actions .primary-button, .decomposition-actions .secondary-button { width: 100%; }
.detail-section-heading { margin: 14px 0 7px; font-size: 13px; }
.detail-notes { display: grid; gap: 6px; }
.note-row { display: grid; gap: 3px; padding: 9px 10px; border-left: 3px solid #9cc9b4; background: #f7f9f7; }
.note-row p { margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.note-row time, .history-row time { color: var(--muted); font-size: 9px; }
.note-compose { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 7px; margin-top: 7px; }
.note-compose button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--green); color: white; font-size: 20px; cursor: pointer; }
.detail-empty { margin: 5px 0; color: var(--muted); font-size: 11px; }
.relationship-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.relationship-strip strong { width: 100%; font-size: 12px; }
.meeting-stage-nav { position: sticky; z-index: 2; top: -1px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 14px -2px 2px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-control); background: rgba(246, 248, 245, 0.97); }
.meeting-stage-button { min-width: 0; min-height: 38px; padding: 5px 3px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.15; cursor: pointer; }
.meeting-stage-button.is-active { background: var(--accent); color: #fff; box-shadow: none; }
.meeting-work-section { padding: 2px 0 13px; border-bottom: 1px solid var(--line); }
.meeting-work-section:last-child { border-bottom: 0; }
.meeting-cycle-intro { padding-top: 5px; }
.detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stage-hint { color: var(--muted); font-size: 10px; font-weight: 500; }
.status-chip { padding: 4px 7px; border-radius: 5px; background: #e5f2eb; color: var(--green); font-size: 9px; font-weight: 750; }
.continuity-summary { margin: 4px 0 10px; color: #39473e; font-size: 12px; line-height: 1.45; }
.continuity-block { margin-top: 11px; }
.continuity-block > strong { color: var(--green); font-size: 10px; text-transform: uppercase; }
.continuity-block .clean-list { margin-top: 6px; }
.continuity-block .is-muted { color: var(--muted); }
.meeting-agenda { display: grid; gap: 7px; }
.agenda-row { display: grid; min-width: 0; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px; border: 1px solid #dbe5df; border-radius: 7px; background: #fbfcfb; }
.agenda-row input[type="checkbox"] { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--green); }
.agenda-copy { display: grid; min-width: 0; gap: 3px; }
.agenda-text { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; line-height: 1.4; }
textarea.agenda-text { width: 100%; min-height: 42px; padding: 0; resize: vertical; border: 0; outline: 0; background: transparent; font: inherit; }
.agenda-source { color: var(--muted); font-size: 9px; }
.agenda-row:has(input:checked) .agenda-text { color: var(--muted); text-decoration: line-through; }
.agenda-compose, .meeting-note-compose { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; margin-top: 8px; }
.agenda-compose input, .meeting-note-compose input { min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface); color: var(--ink); }
.agenda-compose button, .meeting-note-compose button { min-width: 0; height: 42px; padding: 0; border: 0; border-radius: 7px; background: var(--green); color: #fff; font-size: 18px; font-weight: 750; cursor: pointer; }
.meeting-note-compose { grid-template-columns: minmax(0, 1fr) 84px; }
.meeting-note-compose button { padding: 0 8px; font-size: 11px; }
.meeting-note-kind { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 9px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.meeting-note-kind button { min-width: 0; min-height: 34px; padding: 4px 2px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; cursor: pointer; }
.meeting-note-kind button.is-active { background: var(--surface); color: var(--green); box-shadow: 0 1px 4px rgba(25, 45, 34, 0.1); }
.meeting-live-note-list { display: grid; gap: 6px; margin: 10px 0; }
.meeting-live-note { display: grid; min-width: 0; grid-template-columns: 88px minmax(0, 1fr) 30px; align-items: start; gap: 6px; padding: 8px; border-left: 3px solid #a8b4ad; background: #f8faf8; }
.meeting-live-note.is-decision { border-left-color: var(--green); }
.meeting-live-note.is-task { border-left-color: var(--blue); }
.meeting-live-note.is-question { border-left-color: #775494; }
.meeting-live-note.is-risk { border-left-color: var(--amber); }
.meeting-live-note p { min-width: 0; margin: 4px 0 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.4; }
.meeting-live-note-kind { width: 88px; min-width: 0; height: 30px; padding: 0 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 9px; }
.meeting-live-note .remove-button { width: 30px; height: 30px; }
.decision-journal { display: grid; gap: 0; }
.decision-row { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.decision-row:last-child { border-bottom: 0; }
.decision-row time, .decision-row small { color: var(--muted); font-size: 9px; }
.decision-row strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.decision-row p { margin: 0; color: #465249; font-size: 11px; line-height: 1.4; }
.pulse-head { display: grid; gap: 5px; padding: 12px; border-left: 4px solid var(--green); background: #f4f8f5; }
.pulse-head.is-attention { border-left-color: var(--red); background: #fff6f5; }
.pulse-head.is-quiet { border-left-color: var(--muted); }
.pulse-head span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pulse-head strong { overflow-wrap: anywhere; font-size: 15px; }
.pulse-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.pulse-metrics .metric { min-width: 0; padding: 8px 3px; }
.pulse-metrics .metric strong { font-size: 15px; }
.pulse-metrics .metric span { overflow-wrap: anywhere; font-size: 8px; }
.pulse-section { padding: 12px 0; border-top: 1px solid var(--line); }
.pulse-section h3 { margin: 0 0 8px; color: var(--green); font-size: 10px; text-transform: uppercase; }
.pulse-list { display: grid; gap: 6px; }
.pulse-list p { margin: 0; padding-left: 11px; overflow-wrap: anywhere; color: #35423a; font-size: 11px; line-height: 1.45; }
.pulse-list p::before { margin-left: -11px; color: var(--green); content: "•"; }
.pulse-list .is-muted { color: var(--muted); }
.pulse-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; min-height: 38px; padding: 7px 0 7px 11px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: #35423a; text-align: left; cursor: pointer; }
.pulse-list-row span:first-child { overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; }
.pulse-list-chevron { color: var(--green); font-size: 18px; }
.execution-task-list { display: grid; gap: 2px; margin-top: 7px; }
.execution-task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; min-height: 38px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.execution-task-row span:first-child { overflow-wrap: anywhere; }
.execution-task-row span:last-child { color: var(--green); font-size: 18px; }
.task-origin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; margin-top: 10px; padding: 9px; border-left: 3px solid var(--green); background: #eef6f1; }
.task-origin strong { grid-column: 1 / -1; font-size: 10px; text-transform: uppercase; }
.task-origin span { overflow-wrap: anywhere; color: #405047; font-size: 11px; }
.task-origin .text-button { min-height: 32px; }
.pulse-warning { margin: 8px 0 0; color: var(--red); font-size: 10px; line-height: 1.4; }
.calendar-date-label { margin: 10px 0; color: var(--muted); font-size: 11px; font-weight: 650; }
.meeting-next-cycle { min-height: 280px; }
.history-details { margin-top: 12px; }
.history-details summary { min-height: 36px; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.detail-history { display: grid; gap: 5px; }
.history-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 11px; }
.detail-actions { display: grid; grid-template-columns: 0.8fr 0.8fr 1.4fr; gap: 7px; margin-top: 18px; }
.detail-actions .primary-button, .detail-actions .secondary-button { width: 100%; min-width: 0; padding: 7px; font-size: 12px; }

body.is-focus-mode, .app-shell.is-focus-mode { background: #071b17; }
.app-shell.is-focus-mode { max-width: none; padding: 0; }
.app-shell.is-focus-mode .topbar, .app-shell.is-focus-mode .bottom-nav { display: none; }
.app-shell.is-focus-mode .content { min-height: 100vh; padding: 0; }
.focus-screen { position: relative; display: flex; min-height: 100vh; padding: calc(42px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); align-items: center; flex-direction: column; color: white; background: radial-gradient(circle at 50% 42%, #0c3129 0, #071b17 58%, #04100e 100%); }
.focus-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border: 1px solid #41635a; border-radius: 50%; background: transparent; color: white; font-size: 24px; cursor: pointer; }
.focus-project { margin: 0 0 8px; color: #91b7aa; font-size: 11px; text-transform: uppercase; }
.focus-screen > h1 { max-width: 480px; margin: 0; overflow-wrap: anywhere; text-align: center; font-size: 21px; line-height: 1.3; }
.focus-ring { display: grid; width: 220px; height: 220px; margin: 34px 0 24px; place-content: center; border: 12px solid #17483d; border-top-color: #29ba7f; border-right-color: #29ba7f; border-radius: 50%; text-align: center; box-shadow: 0 0 50px rgba(41, 186, 127, 0.13); }
.focus-ring strong { font-variant-numeric: tabular-nums; font-size: 34px; }
.focus-ring span { margin-top: 6px; color: #91b7aa; font-size: 11px; }
.focus-checklist { display: grid; width: min(100%, 480px); gap: 9px; margin-bottom: 24px; }
.focus-check-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; color: #d8e7e1; font-size: 12px; }
.focus-check-item input { width: 20px; height: 20px; accent-color: #29ba7f; }
.focus-note-form { display: grid; grid-template-columns: minmax(0, 1fr) 44px; width: min(100%, 480px); gap: 7px; margin: 0 0 16px; }
.focus-note-form input { min-width: 0; height: 44px; padding: 0 11px; border: 1px solid #41635a; border-radius: 8px; outline: 0; background: #0b2922; color: white; }
.focus-note-form input::placeholder { color: #91b7aa; }
.focus-note-button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: #159763; color: white; font-size: 20px; cursor: pointer; }
.focus-bottom-actions { display: grid; grid-template-columns: 0.8fr 0.9fr 1.3fr; width: min(100%, 480px); gap: 8px; margin-top: auto; }
.focus-primary, .focus-secondary { min-height: 48px; border-radius: 8px; color: white; font-weight: 750; cursor: pointer; }
.focus-primary { border: 0; background: #159763; }
.focus-secondary { border: 1px solid #41635a; background: transparent; }

@media (min-width: 720px) {
  .content { padding-right: 24px; padding-left: 24px; }
  .task-list, .project-list, .knowledge-list, .meeting-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .topbar { padding-right: 14px; padding-left: 14px; }
  .content { padding-right: 12px; padding-left: 12px; }
  .brief-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .focus-time { font-size: 30px; }
  .recommendation-footer .compact-button { flex: 1 1 130px; }
  .nav-item { font-size: 9px; }
  .nav-item span:first-child { font-size: 18px; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
  .detail-actions .primary-button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
