:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: light;
  --surface: #f8f7f3; --surface-raised: #ffffff; --surface-soft: #f0efe9;
  --text: #26303a; --muted: #69737a; --quiet: #98a0a5; --line: #d9dcd9;
  --accent: #62758e; --none: #a8afb2; --low: #7a94a2; --medium: #766f99; --high: #9b6c77;
  --fill-none: rgba(136, 148, 154, .02); --fill-low: rgba(122, 148, 162, .06); --fill-medium: rgba(118, 111, 153, .09); --fill-high: rgba(155, 108, 119, .13);
  --shadow: 0 -12px 45px rgba(25, 34, 42, .11); --radius: 8px; --sheet-radius: 26px;
  --fast: 180ms; --normal: 300ms; --spatial: 400ms;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 36px;
  --stroke-quiet: 1px; --stroke-structure: 1.75px;
  --type-body: 15px; --type-meta: 13px; --type-micro: 11px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #161c23; --surface-raised: #222a32; --surface-soft: #2b343c;
  --text: #ecf0ef; --muted: #afb9ba; --quiet: #859297; --line: #435058;
  --accent: #9aaec7; --none: #77858d; --low: #91b2c2; --medium: #a59bc9; --high: #d29aa7;
  --fill-none: rgba(160, 170, 175, .02); --fill-low: rgba(145, 178, 194, .07); --fill-medium: rgba(165, 155, 201, .09); --fill-high: rgba(210, 154, 167, .13);
  --shadow: 0 -12px 45px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; width: 100%; }
body { background: var(--surface); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: default; }
.app-shell { max-width: 960px; height: 100dvh; margin: auto; display: flex; flex-direction: column; overflow: hidden; position: relative; background: var(--surface); }
.page-header { padding: calc(18px + env(safe-area-inset-top)) var(--space-5) 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.header-title h1 { margin: 0; font-size: clamp(28px, 7vw, 32px); line-height: 1.08; font-weight: 650; letter-spacing: -.045em; }
.header-title p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.icon-button { border: 0; border-radius: 12px; background: transparent; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.icon-button svg, .nav-item svg, .scale-button svg { width: 24px; height: 24px; flex: none; }
.icon-button:hover, .date-step button:hover, .scale-toolbar > button:not(.scale-button):hover { background: var(--surface-soft); }
.back-button { margin-left: -8px; }
.back-button + .header-title { flex: 1; }
#main-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bottom-nav { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); min-height: calc(69px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface-raised); }
.nav-item { position: relative; border: 0; background: transparent; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; letter-spacing: .07em; font-weight: 550; min-height: 64px; }
.nav-item svg { width: 23px; height: 23px; stroke-width: 1.55px; }
.nav-item.active { color: var(--accent); font-weight: 750; }
.nav-item.active svg { stroke-width: 1.8px; }
.date-step, .scale-toolbar { display: flex; align-items: center; gap: 9px; padding: 7px 24px 12px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.date-step button, .scale-toolbar > button:not(.scale-button) { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface-raised); border-radius: 50%; display: grid; place-items: center; }
.date-step button svg, .scale-toolbar > button:not(.scale-button) svg { width: 18px; height: 18px; }
.date-step span { flex: 1; text-align: center; }
.day-context { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.unscheduled { padding: 0 24px 13px; border-bottom: 1px solid var(--line); }
.pile-row { display: flex; align-items: center; gap: 15px; }
.pile-symbol { width: 56px; height: 46px; flex: none; border: 0; background: transparent; position: relative; }
.pile-symbol span { display: block; position: absolute; width: 35px; height: 18px; border: 1.5px solid var(--accent); border-radius: 5px; background: var(--surface); left: 9px; }
.pile-symbol span:nth-child(1) { top: 8px; transform: rotate(-8deg); }.pile-symbol span:nth-child(2) { top: 12px; transform: rotate(6deg); }.pile-symbol span:nth-child(3) { top: 17px; }
.pile-list { display: flex; overflow-x: auto; gap: 8px; padding: 10px 0 2px; }.pile-list[hidden] { display: none; }.pile-list button, .preview-list button { border: 0; background: none; padding: 0; text-align: left; }
.empty-action { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-align: left; }
.empty-outline { width: 32px; height: 21px; flex: none; border: 1.5px dashed var(--quiet); border-radius: 7px; position: relative; }.empty-outline:after { content: ''; position: absolute; width: 9px; height: 1px; background: var(--quiet); top: 9px; left: 10px; }
.timeline-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }
.timeline { position: relative; margin: 0 24px; min-width: 0; }
.hour-row { position: absolute; width: 100%; display: flex; align-items: center; gap: 12px; pointer-events: none; color: var(--quiet); font-size: 11px; }.hour-row.past { opacity: .42; }.hour-row time { width: 45px; flex: none; }.hour-row span { border-top: 1px solid var(--line); flex: 1; }
.daypart { position: absolute; left: 58px; right: 0; border-top: 1.5px solid var(--quiet); pointer-events: none; }.daypart span { position: absolute; right: 0; top: -10px; display: flex; align-items: center; gap: 5px; padding-left: 5px; background: var(--surface); color: var(--muted); font-size: 9px; letter-spacing: .07em; }.daypart i { font-size: 14px; font-style: normal; line-height: 1; }
.now-line { position: absolute; left: 50px; right: 0; z-index: 2; border-top: 1.5px solid var(--high); pointer-events: none; }.now-line i { width: 7px; height: 7px; position: absolute; left: -3px; top: -4px; border-radius: 50%; background: var(--high); }.now-line span { position: absolute; right: 0; top: -15px; font-size: 9px; color: var(--high); }
.timeline-create-layer { position: absolute; inset: 0 0 0 58px; border: 0; background: transparent; width: calc(100% - 58px); }
.timed-lanes { position: absolute; inset: 0 5px 0 66px; pointer-events: none; }
.timed-action { position: absolute; z-index: 3; border: 0; background: transparent; padding: 0 2px; text-align: left; overflow: hidden; pointer-events: auto; }
.inline-action-form { position: absolute; z-index: 5; left: 66px; right: 5px; min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 5px 7px; background: var(--surface-raised); border: 2px solid var(--accent); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(0,0,0,.1); }
.inline-action-form span { font-size: 11px; color: var(--muted); }.inline-action-form input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); outline: 0; }.inline-action-form button { border: 0; background: transparent; min-width: 32px; min-height: 35px; color: var(--accent); display: grid; place-items: center; }.inline-action-form button svg { width: 19px; height: 19px; }
.shape { position: relative; display: flex; align-items: center; min-width: 0; width: 100%; height: 100%; padding: var(--space-2) var(--space-3); border: var(--stroke-structure) solid var(--none); border-radius: var(--radius); background: var(--fill-none); color: var(--text); }
.shape-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }.shape.scale-week { height: 40px; padding: 5px 8px; }.shape.scale-week .shape-title { font-size: 12px; }.shape.scale-detail { height: 39px; width: 50px; flex: none; }
.shape.scale-month { width: 23px; height: 10px; padding: 0; flex: none; border-width: 1.3px; border-radius: 3px; }
.shape.source-focus { border-radius: 17px; box-shadow: inset 0 -3px 0 rgba(120, 140, 160, .1); }.shape.source-sprint { border-radius: 6px 14px 14px 6px; border-right-width: 3px; }.shape.scale-month.source-sprint { border-right-width: 2px; }.shape.source-routine { border-radius: 18px 5px 5px 18px; border-left-width: 4px; padding-left: 18px; }.shape.source-routine:before { content: ''; position: absolute; left: -7px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%); border: 2px solid currentColor; border-radius: 50%; background: var(--surface); }
.shape.scale-month.source-routine { border-left-width: 2px; padding: 0; }.shape.scale-month.source-routine:before { width: 5px; height: 5px; left: -5px; border-width: 1px; }
.shape.urgency-low { border-color: var(--low); background: var(--fill-low); }.shape.urgency-medium { border-color: var(--medium); background: var(--fill-medium); }.shape.urgency-high { border-color: var(--high); background: var(--fill-high); }
.shape.status-running { border-width: 2px; }.shape.status-running:after { content: ''; position: absolute; top: -4px; right: 7px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; background: var(--surface-raised); }.shape.status-paused { opacity: .68; border-style: dashed; }.shape.status-completed { opacity: .42; background: transparent; }.shape.status-completed:after { content: ''; position: absolute; right: 7px; bottom: 6px; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }.shape.status-cancelled { opacity: .28; background: transparent; }
.shape.owner-paused { border-style: dashed; }
.owner-paused-label { flex: none; margin-left: auto; padding-left: 5px; color: var(--muted); font-size: 8px; letter-spacing: .07em; white-space: nowrap; }
.shape.scale-detail .owner-paused-label { display: none; }
.week-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }.week-grid { display: grid; grid-template-columns: repeat(7, minmax(clamp(136px, 38vw, 180px), 1fr)); gap: 8px; padding: 4px 24px 20px; min-height: 100%; }
.week-column { display: flex; flex-direction: column; min-height: 100%; border-left: 1px solid var(--line); }.week-column.week-today { border-left-color: var(--accent); }
.week-past .week-date { color: var(--quiet); }
.week-date { border: 0; background: transparent; display: flex; gap: 7px; align-items: baseline; text-align: left; padding: 4px 9px 13px; min-height: 51px; }.week-date span { font-size: 10px; color: var(--muted); letter-spacing: .1em; }.week-date strong { font-size: 20px; font-weight: 550; }.week-today .week-date strong { color: var(--accent); }
.week-axis { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 12px 10px; }.week-action { border: 0; padding: 0; background: transparent; text-align: left; width: 100%; min-height: 44px; }.week-axis .empty-action { padding-left: 0; }
.scale-toolbar .toolbar-spacer { flex: 1; }.return-week { font-size: 11px !important; width: auto !important; border: 0 !important; background: transparent !important; padding: 0 6px; }.scale-button { margin-left: auto; display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-left: 18px; padding-right: 18px; }.month-weekdays { color: var(--muted); font-size: 11px; text-align: center; padding-top: 8px; padding-bottom: 8px; }.month-grid { flex: 1; min-height: 0; grid-auto-rows: 1fr; overflow: auto; }
.month-cell { border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; min-height: 73px; padding: 6px 4px; display: flex; flex-direction: column; gap: 8px; position: relative; }.month-cell.outside { opacity: .32; }.month-cell.month-today .month-number { color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; }.month-number { width: 27px; height: 27px; display: grid; place-items: center; font-size: 12px; }.month-shapes { display: flex; gap: 2px; flex-wrap: wrap; }.overflow-dot, .deadline-marker { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }.deadline-marker { position: absolute; right: 6px; top: 7px; background: var(--high); }
.placeholder { margin: auto; text-align: center; color: var(--muted); padding: 24px; }.placeholder h2 { color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -.025em; }.placeholder p { font-size: 13px; }.placeholder-shape { width: 70px; height: 70px; display: block; margin: 0 auto 14px; border: 2px solid var(--accent); border-radius: 16px; }.placeholder-shape.later { border-right-style: dashed; border-radius: 28px 6px 6px 28px; }
#overlay-root:empty { display: none; }.scrim { position: fixed; inset: 0; background: rgba(12, 20, 29, .38); z-index: 9; }.bottom-sheet { position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 960px); max-height: min(82dvh, 850px); min-height: 38dvh; overflow: auto; border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; background: var(--surface-raised); box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom); }.bottom-sheet.full { max-height: 94dvh; height: 91dvh; }.sheet-handle { display: grid; place-items: center; width: 100%; min-height: 35px; border: 0; background: transparent; }.sheet-handle span { width: 34px; height: 4px; border-radius: 3px; background: var(--line); }.sheet-content { padding: 5px 24px 28px; }.sheet-content h2 { margin: 8px 0 18px; font-size: 22px; font-weight: 600; }.sheet-content h3 { margin: 24px 0 10px; font-size: 14px; }.detail-head { display: flex; align-items: center; gap: 15px; }.detail-head h2 { margin-bottom: 8px; }.sheet-meta { color: var(--muted); font-size: 13px; }.criteria { border-left: 2px solid var(--line); padding-left: 12px; color: var(--muted); font-size: 14px; }.sheet-form { display: flex; flex-direction: column; gap: 17px; }.sheet-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); text-transform: capitalize; }.sheet-form input, .sheet-form textarea, .sheet-form select, .inline-form input { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); min-height: 43px; padding: 10px 12px; font-size: 15px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.primary-button { min-height: 44px; border: 0; border-radius: 8px; background: var(--accent); color: var(--surface); font-weight: 600; }.action-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }.action-controls button, .inline-form button { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); min-height: 44px; padding: 8px 15px; }.action-controls .danger { color: var(--high); }.checklist { display: flex; flex-direction: column; gap: 3px; }.check-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }.check-row label { display: flex; align-items: center; gap: 10px; min-height: 44px; flex: 1; }.check-row input { width: 17px; height: 17px; accent-color: var(--accent); }.check-row button { border: 0; background: transparent; width: 44px; height: 44px; font-size: 19px; }.inline-form { display: flex; gap: 8px; margin-top: 10px; }.text-button { display: block; border: 0; background: transparent; color: var(--accent); min-height: 44px; padding: 5px 0; }.preview-list { display: flex; flex-direction: column; gap: 10px; margin: 17px 0; }.preview-list button { min-height: 44px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 700px) { .page-header { padding-left: 36px; padding-right: 36px; }.timeline { margin: 0 36px; }.month-cell { min-height: 95px; padding: 10px; }.month-grid, .month-weekdays { padding-left: 28px; padding-right: 28px; }.week-grid { grid-template-columns: repeat(7, minmax(125px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.sheet-handle, .inline-action-form button { min-height: 44px; }
.inline-action-form button { min-width: 44px; }
.sheet-form input, .sheet-form select, .sheet-form textarea, .inline-form input { min-height: 44px; }
#error-toast:not([hidden]) { position: absolute; z-index: 12; left: var(--space-5); right: var(--space-5); bottom: calc(84px + env(safe-area-inset-bottom)); padding: var(--space-3) var(--space-4); border: 1px solid var(--high); border-radius: var(--radius); background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow); font-size: var(--type-meta); }
.running-bar { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; height: 44px; padding: 0 20px; border: 0; border-top: 1px solid var(--line); background: var(--surface-raised); text-align: left; }.running-bar .shape { width: 32px; height: 22px; padding: 0; flex: none; }.running-mark { width: 9px; height: 9px; flex: none; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--surface-soft); }.running-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.running-bar time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.execution-view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; padding: calc(12px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); }.execution-head { display: flex; align-items: center; justify-content: space-between; }.execution-head .icon-button { font-size: 29px; }.execution-state { color: var(--muted); font-size: 11px; letter-spacing: .14em; }.execution-content { width: min(100%, 560px); margin: auto; padding: 26px 0 60px; }.execution-content > .shape { width: 62px; height: 47px; }.execution-content h1 { margin: 18px 0 20px; font-size: clamp(26px, 6vw, 38px); font-weight: 600; line-height: 1.18; }.execution-checklist { margin: 26px 0; }.execution-time-label { margin: 46px 0 5px; color: var(--muted); font-size: 11px; letter-spacing: .14em; }.execution-time { display: block; font-variant-numeric: tabular-nums; font-size: clamp(38px, 10vw, 60px); letter-spacing: -.04em; }.execution-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }.execution-controls button { min-height: 48px; padding: 8px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }.execution-controls .primary-button { border: 0; background: var(--accent); }
.finish-arrange { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; }.arrange-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(112px, 35%) minmax(0, 1fr); }.arrange-panel { min-height: 0; overflow-y: auto; padding: 12px 7px 20px 12px; border-right: 1px solid var(--line); }.arrange-item { width: 100%; min-height: 48px; display: block; margin-bottom: 9px; border: 0; background: transparent; padding: 0; text-align: left; touch-action: none; }.arrange-item .shape { min-height: 44px; }.arrange-empty { color: var(--quiet); font-size: 12px; }.arrange-layout .timeline { margin: 0 10px 0 5px; }.arrange-layout .timeline-scroll { min-width: 0; }
.timed-action { touch-action: manipulation; }.timed-action.schedule-selected .resize-handle, .timed-action:hover .resize-handle, .timed-action:focus-visible .resize-handle { opacity: 1; }.resize-handle { position: absolute; z-index: 4; left: 50%; bottom: 0; width: 56px; height: 20px; transform: translateX(-50%); opacity: 0; touch-action: none; }.resize-handle:after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 5px; border-bottom: 2px solid var(--accent); }.timed-action.drag-origin, .week-action.drag-origin, .arrange-item.drag-origin { z-index: 6; filter: drop-shadow(0 5px 7px rgba(15, 24, 32, .18)); }.week-drop-target { background: var(--surface-soft); outline: 1px solid var(--accent); outline-offset: -1px; }.drag-feedback { position: fixed; z-index: 20; pointer-events: none; padding: 5px 8px; border-radius: 6px; background: var(--text); color: var(--surface); font-size: 12px; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); }
.more-menu { margin-top: 22px; border-top: 1px solid var(--line); }.more-menu summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: 13px; }.more-menu button { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; text-align: left; }.more-menu .danger { color: var(--high); }
.action-controls .primary-button { border: 0; background: var(--accent); color: var(--surface); }
.sheet-running-bar { position: sticky; top: 0; z-index: 2; background: var(--surface-raised); }
.sheet-running-bar .running-bar { border-top: 0; border-bottom: 1px solid var(--line); }
.shape.just-completed { animation: completion-settle 260ms ease-out both; }
.shape.just-completed:after { animation: completion-node 260ms ease-out both; }
@keyframes completion-settle { 0% { transform: scale(1); opacity: .85; } 55% { transform: scale(.96); opacity: .62; } 100% { transform: scale(1); opacity: .42; } }
@keyframes completion-node { 0%, 40% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }
.header-spacer { width: 44px; flex: none; }
.projects-viewport { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.projects-viewport::-webkit-scrollbar { display: none; }
.projects-track { display: flex; gap: 16px; width: max-content; height: 100%; padding: 0 24px 20px; }
.projects-space { flex: none; width: calc(min(100vw, 960px) - 76px); height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-align: start; overscroll-behavior-y: contain; padding: 6px 0 28px; }
.space-heading { position: relative; min-height: 94px; padding: 8px 4px 16px 56px; border-bottom: 1px solid var(--line); }
.space-heading .space-index { position: absolute; left: 3px; top: 12px; font-size: 11px; color: var(--quiet); letter-spacing: .13em; }
.space-heading h2 { margin: 0; font-size: 26px; font-weight: 550; letter-spacing: -.045em; }
.space-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.space-list { display: flex; flex-direction: column; gap: 13px; padding: 22px 4px 28px; }
.project-card, .project-slot { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 88px; text-align: left; background: transparent; color: var(--text); padding: 13px 16px; }
.project-card-copy { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.project-card-copy strong { font-size: 16px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.project-card-copy small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.focus-card { border: 1.5px solid var(--accent); border-radius: 25px 8px 25px 25px; background: var(--fill-low); }
.focus-emblem { display: block; position: relative; flex: none; width: 42px; height: 42px; border: 2px solid var(--accent); border-radius: 50%; }
.focus-emblem:after { content: ''; position: absolute; width: 12px; height: 12px; right: -8px; top: 13px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.focus-emblem i { position: absolute; width: 14px; height: 2px; right: -16px; top: 19px; background: var(--accent); }
.focus-emblem.large { width: 54px; height: 54px; }
.focus-emblem.large:after { top: 19px; }
.focus-emblem.large i { top: 25px; }
.sprint-card { border: 1.5px solid var(--accent); border-right-width: 3px; border-radius: 12px; background: var(--fill-medium); }
.sprint-emblem { width: 43px; height: 36px; flex: none; display: grid; place-items: center; color: var(--accent); }
.sprint-emblem svg { width: 35px; height: 35px; }
.sprint-emblem svg circle { fill: currentColor; stroke: none; }
.sprint-emblem.large { width: 54px; height: 45px; }
.sprint-emblem.large svg { width: 45px; height: 45px; }
.sprint-emblem.empty { color: var(--quiet); }
.sprint-emblem.empty svg circle { fill: none; stroke: currentColor; }
.project-slot { border: 1.5px dashed var(--quiet); color: var(--muted); font-size: 13px; }
.focus-slot { border-radius: 25px 8px 25px 25px; }
.sprint-slot { border-radius: 12px; border-right-width: 2px; }
.slot-focus-node { width: 42px; height: 42px; flex: none; border: 1.5px dashed var(--quiet); border-radius: 50%; }
.project-secondary { padding: 5px 4px 22px; border-top: 1px solid var(--line); }
.project-secondary h3 { color: var(--muted); font-size: 11px; letter-spacing: .12em; font-weight: 500; text-transform: uppercase; }
.project-secondary button { width: 100%; min-height: 44px; padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.project-secondary button span { color: var(--muted); font-size: 12px; }
.project-history-peek > summary, .project-history > summary, .project-lifecycle > summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 12px; cursor: pointer; }
.project-detail { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 25px calc(70px + env(safe-area-inset-bottom)); }
.project-detail-top { position: relative; min-height: 168px; padding: 10px 0 30px; border-bottom: 1px solid var(--line); }
.project-detail-top .large { margin-bottom: 17px; }
.section-caption { display: block; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.project-detail-top h1 { margin: 9px 0 7px; font-size: clamp(27px, 7vw, 38px); font-weight: 570; letter-spacing: -.045em; }
.project-detail-top small, .focus-milestone small { color: var(--muted); font-size: 12px; }
.project-criteria { max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.focus-milestone { position: relative; padding: 33px 0 30px 54px; border-bottom: 1px solid var(--line); }
.focus-milestone:before { content: ''; position: absolute; top: 0; bottom: 0; left: 17px; border-left: 1px solid var(--line); }
.milestone-node { position: absolute; top: 40px; left: 7px; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.focus-milestone h2 { margin: 9px 0; font-size: 21px; font-weight: 570; }
.focus-milestone p { max-width: 550px; margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.project-section { padding: 26px 0 29px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0 0 15px; font-size: 17px; font-weight: 550; }
.empty-project-structure { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 13px; padding: 9px 10px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.empty-project-structure span { display: block; width: 22px; height: 22px; flex: none; border: 1.5px dashed var(--quiet); border-radius: 50%; }
.empty-project-structure.empty-stage span, .empty-project-structure.empty-project-action span { border-radius: 3px; clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%); }
.empty-project-structure.empty-cycle span { border-radius: 0; transform: rotate(45deg) scale(.75); }
.routine-line { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.routine-line.quiet { opacity: .6; }
.routine-line > button:first-child { width: 100%; min-height: 48px; padding: 5px 2px; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; }
.routine-node { width: 16px; height: 16px; flex: none; border: 2px solid var(--accent); border-radius: 50%; }
.routine-dots { margin-left: auto; white-space: nowrap; color: var(--accent); font-size: 11px; letter-spacing: 2px; }
.routine-use { flex: none; min-height: 44px; border: 0; background: transparent; color: var(--accent); font-size: 11px; }
.routine-sessions { display: flex; flex-direction: column; gap: 7px; margin: 15px 0; }
.routine-sessions button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.routine-sessions .shape { width: 82px; flex: none; }
.sheet-secondary-actions { display: flex; gap: 12px; margin-top: 18px; }
.sheet-secondary-actions button { min-height: 44px; border: 0; background: transparent; color: var(--muted); }
.sheet-note-label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; }
.sheet-note-label textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; min-height: 74px; padding: 10px; background: var(--surface); color: var(--text); }
.cycle-path { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 60px; }
.cycle-start { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.cycle-track { height: 1px; flex: 1; min-width: 80px; position: relative; background: var(--accent); }
.cycle-today { position: absolute; left: 48%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); border: 1px solid var(--accent); }
.checkpoint-node { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--accent); }
.checkpoint-node svg { width: 29px; height: 29px; }
.checkpoint-node.due svg { stroke-width: 1.9px; }
.cycle-path small { flex: 0 0 100%; color: var(--muted); font-size: 11px; }
.quiet-fact { color: var(--quiet); font-size: 13px; }
.project-action-row { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.project-action-row .shape { width: 57%; max-width: 280px; }
.project-action-row > span:last-child { color: var(--muted); font-size: 11px; white-space: nowrap; }
.history-items { padding-bottom: 15px; }
.history-items p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.project-lifecycle { margin-top: 24px; border-top: 1px solid var(--line); }
.project-lifecycle button { display: block; width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--muted); }
.sprint-deadline { display: block; margin-top: 7px; color: var(--accent) !important; }
.stage-path { list-style: none; margin: 0 0 15px 9px; padding: 0; border-left: 1px solid var(--line); }
.stage-node { position: relative; padding: 0 0 12px 24px; }
.stage-node:before { content: ''; position: absolute; width: 9px; height: 9px; left: -5px; top: 19px; border: 1.5px solid var(--accent); background: var(--surface); transform: rotate(45deg); }
.stage-node.status-completed:before { background: var(--accent); }
.stage-node.status-skipped { opacity: .57; }
.stage-heading { width: 100%; min-height: 50px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 0; border: 0; background: transparent; text-align: left; }
.stage-heading strong { font-size: 15px; font-weight: 570; }
.stage-heading small { color: var(--muted); font-size: 11px; margin-left: auto; }
.stage-glyph { width: 16px; height: 16px; border: 1.5px solid var(--accent); clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%); }
.stage-branch { padding: 5px 0 10px 12px; border-left: 1px solid var(--line); }
.stage-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.stage-tools button { min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.month-markers { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; gap: 4px; }
.month-markers .deadline-marker { position: static; width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); }
.project-date-marker { display: block; width: 8px; height: 8px; flex: none; }
.marker-focus-target { border: 1px solid var(--accent); border-radius: 50%; }
.marker-milestone-target { border: 1px solid var(--quiet); border-radius: 50%; transform: scale(.72); }
.marker-checkpoint { border: 1.5px solid var(--accent); transform: rotate(45deg); }
.marker-sprint-deadline { background: var(--high); transform: rotate(45deg) scale(.72); }
@media (min-width: 700px) { .projects-viewport { overflow-x: hidden; }.projects-track { width: 100%; padding: 0 34px 20px; }.projects-space { width: calc((100% - 16px) / 2); }.project-detail { padding-left: 40px; padding-right: 40px; } }
.fatal-error { max-width: 420px; margin: 15vh auto; padding: var(--space-5); color: var(--text); }.fatal-error h1 { font-size: 24px; }.fatal-error p { color: var(--muted); }.fatal-error button { min-width: 90px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.page-header { gap: 4px; padding-left: 14px; padding-right: 14px; }
.header-title { min-width: 0; }
.header-title h1 { font-size: clamp(23px, 7vw, 32px); white-space: nowrap; }
.header-title p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-spacer { flex: 1; min-width: 0; }
.capture-button { color: var(--accent); }
.capture-button svg { width: 27px; height: 27px; }
.capture-button:active svg { transform: translate(1px, -1px); transition: transform var(--normal) ease; }
.pending-button { color: var(--accent); }
.pending-button svg { width: 26px; height: 26px; }
@keyframes pending-form { from { opacity: .3; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.later-surface { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 24px 110px; }
.later-list { display: flex; flex-direction: column; }
.later-row, .empty-later { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 14px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.later-row span:last-child { overflow-wrap: anywhere; }
.later-node { width: 22px; height: 22px; flex: none; border: 1.5px solid var(--accent); border-radius: 50%; background: var(--surface-raised); }
.later-node.open { border-style: dashed; background: transparent; }
.empty-later { color: var(--muted); border-bottom: 0; }
.inline-later-form { display: flex; align-items: center; gap: 8px; padding: 8px 2px; }
.inline-later-form input { min-width: 0; flex: 1; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); color: var(--text); }
.inline-later-form button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; }
.capture-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.capture-list { max-height: 55dvh; overflow-y: auto; }
.capture-row { width: 100%; min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.capture-row span, .capture-original { white-space: pre-wrap; overflow-wrap: anywhere; }
.capture-row time { color: var(--muted); font-size: 11px; }
.capture-original { font-size: 17px; line-height: 1.55; }
.conversion-actions, .settings-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.conversion-actions button, .settings-actions button, .file-control { min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.settings-section { margin-top: 25px; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 8px 0; font-size: 16px; font-weight: 600; }
.file-control { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.file-control input { max-width: 190px; font-size: 11px; }
.pending-pages { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pending-pages button { min-width: 44px; min-height: 44px; border: 0; background: transparent; display: grid; place-items: center; }.pending-pages button svg { width: 18px; height: 18px; }
.pending-pages span { display: flex; gap: 6px; }
.pending-pages i { display: block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent); }
.pending-pages i.current { background: var(--accent); }
.pending-routines { margin: 10px 0 18px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.pending-reference { display: inline-flex; width: 50px; height: 39px; vertical-align: middle; }
.pending-resolved { position: fixed; z-index: 8; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-raised); color: var(--muted); box-shadow: var(--shadow); font-size: 12px; pointer-events: none; animation: pending-resolved-fade 650ms ease-out both; }
@keyframes pending-resolved-fade { 0% { opacity: 0; transform: translate(-50%, 3px); } 20%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.statistics-list { margin: 18px 0; }
.statistics-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.statistics-list dt { color: var(--muted); }.statistics-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.onboarding-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(15, 24, 32, .48); display: grid; place-items: center; padding: 20px; }
.onboarding-panel { width: min(100%, 430px); padding: 27px; border-radius: 22px; background: var(--surface-raised); box-shadow: var(--shadow); }
.onboarding-panel h2 { font-size: 25px; margin: 14px 0; }.onboarding-panel p { color: var(--muted); line-height: 1.55; }
.context-hint { position: fixed; z-index: 45; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100vw - 28px)); display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow); font-size: 12px; line-height: 1.45; color: var(--text); }
.context-hint span { flex: 1; }.context-hint button { border: 0; background: transparent; color: var(--muted); min-width: 32px; min-height: 32px; display: grid; place-items: center; cursor: pointer; }.context-hint button svg, .check-row button svg { width: 17px; height: 17px; }
@media (max-width: 360px) { .page-header { padding-left: 8px; padding-right: 8px; gap: 2px; }.header-title h1 { font-size: 23px; }.page-header .icon-button { min-width: 40px; } }
@media (prefers-reduced-motion: reduce) { .shape.just-completed, .shape.just-completed:after, .pending-resolved { animation: none; }.capture-button:active svg, .nav-item svg { transform: none; transition: none; } }
