:root {
  color-scheme: dark;
  --canvas: #000;
  --surface: #141414;
  --raised: #202020;
  --text: #f3f3f3;
  --muted: #b5b5ad;
  --accent: #ffd803;
  --line: #34342f;
  --accent-soft: #242208;
  --danger: #ffadbc;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-size: 16px;
  font-synthesis: none;
}
html:lang(ja) { --display: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
html:lang(ja) h1, html:lang(ja) h2 { letter-spacing: 0; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: wait; }
button, input, textarea, select, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { border: 1px solid transparent; border-radius: 5px; padding: 12px 18px; background: var(--accent); color: #000; font-weight: 700; min-height: 44px; }
button:hover:not(:disabled) { background: #ffe64a; }
button.secondary { background: var(--raised); border-color: #45453d; color: var(--text); }
button.secondary:hover:not(:disabled) { background: #2d2d27; border-color: #777764; }
button.quiet { background: transparent; color: var(--muted); padding: 8px 10px; }
button.quiet:hover:not(:disabled) { color: var(--accent); background: #1d1d16; }
button.danger { background: #29151b; color: var(--danger); border-color: #58333c; }
button.danger:hover:not(:disabled) { background: #3a1e27; }
a { color: var(--accent); }
input, textarea, select { border: 1px solid #45453e; border-radius: 5px; background: #0a0a09; padding: 12px; color: var(--text); width: 100%; }
input::placeholder, textarea::placeholder { color: #93938a; opacity: 1; }
input[type="checkbox"] { accent-color: var(--accent); }
input[type="file"] { font-size: .83rem; overflow: hidden; }
input[type="file"]::file-selector-button { background: var(--raised); color: var(--text); border: 1px solid #545447; border-radius: 3px; padding: 7px; margin-right: 8px; }
textarea { resize: vertical; line-height: 1.6; }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
p { line-height: 1.65; max-width: 75ch; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.7vw, 4.8rem); letter-spacing: -.045em; line-height: 1.06; }
h2 { font-size: 1.7rem; line-height: 1.22; letter-spacing: -.035em; }
h3 { font-size: 1.08rem; letter-spacing: -.015em; }
small, .muted { color: var(--muted); }
small { font-size: .82rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
.brand { display: flex; align-items: center; }
.brand img { width: 82px; height: auto; }
.brand-lockup img { width: 250px; height: auto; }
.mode { font-size: .73rem; line-height: 1.45; background: #1b1b12; color: #d9d8bd; border: 1px solid #45442d; padding: 7px 10px; border-radius: 4px; display: inline-block; }
.welcome { min-height: 100svh; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 3vw; max-width: 1400px; margin: auto; padding: 48px 56px; }
.welcome-copy { max-width: 640px; }
.welcome .brand-lockup { margin-bottom: 62px; }
.welcome p { font-size: 1.05rem; color: var(--muted); max-width: 45ch; }
.welcome .mode { margin-top: 24px; }
.welcome-steps { margin: 26px 0; display: flex; gap: 18px; color: var(--muted); font-size: .83rem; }
.welcome-steps span { display: flex; align-items: center; gap: 8px; }
.welcome-steps b { border: 1px solid #635b22; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; color: var(--accent); font-weight: 500; }
.goal-form textarea { font-size: 1.08rem; min-height: 108px; background: var(--surface); }
.goal-form button { margin-top: 12px; padding: 16px 24px; }
.map-art { width: 100%; max-width: 530px; aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.map-art > svg { position: absolute; width: 100%; height: 100%; overflow: visible; }
.outer-orbit { stroke: #615523; stroke-width: .8; }
.inner-orbit { stroke: #34301b; stroke-width: .7; }
.orbit-arc { stroke: var(--accent); stroke-width: 1.5; }
.orbit-point { stroke: #b49b25; stroke-width: 1.1; fill: #0b0b06; }
.map-art .center { display: flex; flex-direction: column; align-items: center; gap: 24px; z-index: 1; }
.map-art .center img { width: 162px; height: auto; }
.map-art .center span { font-size: .8rem; color: #cecab0; }
.map-note { position: absolute; bottom: 0; font-size: .8rem; color: var(--muted); }
.shell { min-height: 100svh; display: grid; grid-template-columns: 214px 1fr; }
.sidebar { padding: 32px 16px; border-right: 1px solid #292923; display: flex; flex-direction: column; gap: 38px; background: #080807; position: sticky; top: 0; height: 100svh; }
.sidebar .brand { padding: 0 14px; }
.nav { display: grid; gap: 8px; }
.nav button { text-align: left; background: transparent; color: var(--muted); font-weight: 500; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; }
.nav button:hover:not(:disabled) { background: #1c1c16; color: var(--text); }
.nav button.active { color: var(--accent); border-left-color: var(--accent); background: #232107; }
.nav button span { display: inline-block; width: 28px; }
.sidebar .foot { margin-top: auto; padding: 12px; }
.sidebar .foot p { font-size: .8rem; margin-bottom: 16px; color: var(--muted); }
main { padding: 34px 40px 60px; min-width: 0; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid #292923; }
.topline p { margin: 0; font-size: .85rem; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 36px; max-width: 1320px; }
.goal-title { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.16; letter-spacing: -.045em; max-width: 25ch; margin: 14px 0 24px; overflow-wrap: anywhere; }
.goal-select { max-width: 390px; border-color: transparent; background: transparent; padding-left: 0; font-size: .87rem; color: var(--muted); }
.goal-select option { background: var(--surface); color: var(--text); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.plan-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.pill { border: 1px solid #4a4a3f; border-radius: 4px; padding: 5px 9px; font-size: .76rem; }
.pill.good { background: var(--accent-soft); color: var(--accent); border-color: #62571c; }
.route { background: var(--surface); border-radius: 8px; padding: 26px; margin: 16px 0; border: 1px solid #30302a; }
.route.chosen { border-color: #988119; box-shadow: inset 3px 0 0 var(--accent); }
.route-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.route h3 { font-size: 1.35rem; font-weight: 700; }
.route p { font-size: .94rem; color: var(--muted); margin-bottom: 18px; }
.route ol { padding-left: 24px; margin-bottom: 20px; }
.route li { padding: 7px 0 13px 8px; }
.route li::marker { color: var(--accent); font-weight: 600; }
.route li strong { font-size: .96rem; line-height: 1.45; }
.route li small { display: block; margin-top: 5px; }
.route details { font-size: .85rem; color: var(--muted); margin-top: 18px; border-top: 1px solid #33332d; padding-top: 14px; }
summary { cursor: pointer; line-height: 1.5; }
summary:hover { color: var(--text); }
.route details li { padding: 3px; }
.aside { padding-top: 16px; }
.aside-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.aside-block h3 { font-size: .94rem; }
.aside-block p, .aside-block li { font-size: .84rem; color: var(--muted); line-height: 1.65; }
.aside-block ul { padding-left: 18px; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.dot { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.dot:hover:not(:disabled) { background: #1b1b12; }
.life-dot { width: var(--dot-size, 8px); height: var(--dot-size, 8px); border: 1px solid #cfb429; border-radius: 50%; background: rgb(255 216 3 / var(--dot-fill, 0)); display: block; flex: none; }
.conversation { margin-top: 38px; }
.conversation h3 { font-size: 1.3rem; }
.conversation form { background: var(--surface); border: 1px solid #454538; border-radius: 8px; padding: 18px; }
.conversation textarea { background: transparent; border: 0; padding: 5px 0; min-height: 90px; }
.conversation-bottom { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.checks { display: grid; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: .82rem; color: var(--muted); }
.check input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.notice-inline { padding: 13px 16px; background: #1e1e16; color: #d4d2b9; border-left: 2px solid #918032; border-radius: 0 5px 5px 0; font-size: .83rem; line-height: 1.6; margin: 16px 0; }
.page { max-width: 1080px; }
.page-header { margin-bottom: 32px; }
.page-header p { color: var(--muted); max-width: 60ch; }
.life-map-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: center; gap: 40px; }
.life-map-header .life-ring-hint { font-size: .85rem; max-width: 46ch; }
.life-ring { width: 100%; max-width: 340px; margin: 0; justify-self: center; }
.life-ring-orbit { width: 100%; aspect-ratio: 1; position: relative; }
.life-ring-orbit > svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.life-ring-center { position: absolute; inset: 28%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; pointer-events: none; }
.life-ring-center img { width: 114px; height: auto; }
.life-ring-center span { font-size: .72rem; white-space: nowrap; color: var(--muted); }
.life-ring-node { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.life-ring-node:hover:not(:disabled) { background: transparent; }
.life-ring-node:hover .life-dot, .life-ring-node:focus-visible .life-dot { border-color: #fff7b3; }
.life-ring figcaption { text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.5; min-height: 2.9em; margin-top: 4px; }
.map-controls { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1fr); gap: 20px; }
.map-controls > div { min-width: 0; }
.map-explanation { margin: 14px 0 28px; }
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; align-items: stretch; }
.domain-row { background: #0d0d0b; min-width: 0; }
.domain-row > summary { display: flex; gap: 15px; align-items: flex-start; list-style: none; padding: 22px; min-height: 120px; }
.domain-row > summary::-webkit-details-marker { display: none; }
.domain-heading { flex: 1; min-width: 0; }
.domain-heading > strong { display: block; font-size: .95rem; margin-bottom: 6px; }
.domain-heading > span { display: block; font-size: .77rem; color: var(--muted); }
.domain-heading > .domain-relevance { margin-top: 6px; color: #d3c77d; }
.domain-chevron { color: var(--accent); font-size: 1.2rem; }
.domain-row[open] .domain-chevron { transform: rotate(45deg); }
.domain-content { padding: 0 22px 22px; }
.domain-content .toolbar { margin: 18px 0; }
.domain-content .toolbar button { font-size: .82rem; padding: 10px 12px; }
.domain-sources { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.domain-sources li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: start; }
.domain-sources li > div { flex: 1; min-width: min(180px, 100%); }
.domain-sources strong { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.domain-sources small { display: block; margin-top: 5px; }
.domain-content p.domain-empty { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.domain-marker { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.domain-row h3 { margin-bottom: 5px; font-size: .95rem; }
.domain-row p { font-size: .8rem; color: var(--muted); margin: 0 0 9px; }
.domain-row small { font-size: .75rem; }
.source-layout { display: grid; grid-template-columns: 1fr 330px; gap: 28px; }
.source { padding: 23px; background: var(--surface); border: 1px solid #33332d; border-radius: 6px; margin-bottom: 14px; }
.source h3 { word-break: break-word; margin-bottom: 10px; }
.source .toolbar { margin-bottom: 0; }
.upload-form { padding: 24px; background: var(--surface); border-top: 2px solid var(--accent); border-radius: 0 0 6px 6px; align-self: start; }
.field { margin-bottom: 20px; }
.upload-form select { min-height: 140px; }
.empty { padding: 42px 25px; border: 1px dashed #5c5942; border-radius: 6px; text-align: left; color: var(--muted); line-height: 1.65; }
.empty strong { display: block; color: var(--text); margin-bottom: 9px; }
.search-row { display: flex; gap: 10px; margin: 26px 0; }
.evidence { padding: 22px; border-left: 2px solid var(--accent); background: var(--surface); margin: 16px 0; }
.evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .9rem; line-height: 1.65; }
.evidence small { display: block; }
.back { margin-bottom: 18px; }
.revision-note { font-size: .85rem; color: var(--muted); padding: 12px 0; }
.loading { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 35px 0; }
.thinking-text { color: var(--muted); animation: thinking-pulse 2s ease-in-out infinite; }
@keyframes thinking-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.chat-message { padding: 18px 20px; background: var(--surface); border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; margin: 18px 0; }
.chat-message.from-user { background: var(--raised); border-color: var(--accent); }
.chat-message > strong { font-size: .8rem; color: var(--accent); }
.chat-message p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-pending { padding: 12px 0 24px; font-size: .92rem; }
.message-failure { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; color: var(--danger); font-size: .85rem; }
#notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: 15px 20px; border: 1px solid #83732b; border-radius: 6px; background: #27240e; color: var(--text); display: none; z-index: 5; font-size: .9rem; box-shadow: 0 8px 35px #0008; }
dialog { border: 1px solid #4f4b32; border-radius: 10px; width: min(640px, 95vw); padding: 18px; background: #080807; color: var(--text); }
dialog::backdrop { background: #000b; }
dialog iframe { width: 100%; height: min(660px, 75svh); border: 0; }
.close { float: right; background: var(--raised); color: var(--text); }
#note-dialog { max-height: 90svh; overflow: auto; padding: 26px; }
.note-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.note-heading h2 { margin-bottom: 8px; }
.note-heading p { color: var(--accent); }
#note-dialog .checks { margin-top: 20px; }
#note-dialog .toolbar { margin-bottom: 0; }
#note-dialog textarea { min-height: 180px; }
.settings-card { max-width: 660px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.settings-card p { font-size: .93rem; color: var(--muted); }
@media (max-width: 1150px) {
  main { padding: 28px; }
  .workspace { grid-template-columns: 1fr; }
  .aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .aside-block { padding-top: 0; }
  .source-layout { grid-template-columns: 1fr; }
  .upload-form { order: -1; }
  .welcome { padding: 38px; gap: 0; }
  .welcome h1 { font-size: clamp(2.7rem, 5vw, 4rem); }
  .welcome-steps { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 720px) {
  .welcome { grid-template-columns: 1fr; padding: 30px 24px; align-content: start; }
  .welcome .brand-lockup { margin-bottom: 40px; }
  .welcome .brand-lockup img { width: 220px; }
  .welcome .map-art { max-width: 320px; justify-self: center; margin: 24px 0 8px; }
  .welcome h1 { font-size: clamp(2.35rem, 9.5vw, 3.4rem); }
  .welcome p { font-size: 1rem; }
  .welcome-steps { gap: 12px; font-size: .77rem; }
  .shell { display: block; }
  .sidebar { position: sticky; z-index: 3; height: auto; flex-direction: row; align-items: center; padding: 12px 14px; gap: 10px; border-bottom: 1px solid var(--line); border-right: 0; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand img { width: 56px; }
  .nav { display: flex; margin-left: auto; gap: 0; }
  .nav button { font-size: .77rem; padding: 10px 8px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; }
  .nav button.active { border-bottom-color: var(--accent); }
  .nav button span { display: none; }
  .sidebar .foot { display: none; }
  main { padding: 24px 18px 44px; }
  .topline { margin-bottom: 24px; gap: 12px; padding-bottom: 20px; }
  .topline p { display: none; }
  .goal-title { font-size: 2rem; }
  .aside { display: block; }
  .domain-grid { grid-template-columns: 1fr; }
  .life-map-header { grid-template-columns: 1fr; gap: 4px; }
  .life-map-header .goal-title { margin-top: 0; }
  .life-ring { max-width: 320px; }
  .map-controls { grid-template-columns: 1fr; gap: 16px; }
  .domain-row > summary { padding: 20px; min-height: 110px; }
  .domain-content { padding: 0 20px 20px; }
  #note-dialog { padding: 20px; }
  .note-heading { gap: 12px; }
  .route { padding: 21px; }
  .route-head { display: block; }
  .route-head .pill { display: inline-block; margin-bottom: 14px; }
  .source-layout { gap: 22px; }
  .toolbar { gap: 8px; }
  .toolbar button { font-size: .85rem; }
  .topline button { font-size: .8rem; flex-shrink: 0; }
  .mode { font-size: .68rem; }
  .conversation-bottom button { width: 100%; }
  .upload-form { padding: 20px; }
}
@media (max-width: 360px) {
  .sidebar { padding: 10px; gap: 5px; }
  .sidebar .brand img { width: 45px; }
  .nav button { padding: 10px 6px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* One conversation workspace. The yellow path line is the only decorative accent. */
.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; }
.skip-link { position:absolute; z-index:100; top:8px; left:12px; padding:10px 14px; border:2px solid var(--accent); border-radius:6px; background:#11110e; color:#fff5bd; font-weight:700; transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.access-page { min-height:100svh; display:grid; grid-template-columns:minmax(200px,.75fr) minmax(320px,1fr); align-items:center; gap:clamp(30px,7vw,110px); width:min(1140px,100%); margin:auto; padding:clamp(28px,6vw,90px); }
.access-mark { align-self:start; padding-top:10px; }
.access-card { border-left:3px solid var(--accent); padding:12px 0 18px clamp(24px,4vw,52px); max-width:620px; }
.language-picker { position:relative; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; border-radius:50%; color:#a5a5a0; }
.language-picker svg { width:21px; height:21px; pointer-events:none; }
.language-picker:not(.is-disabled):hover { color:#f0f0eb; background:#1b1b19; }
.language-picker:focus-within { outline:2px solid #a5a5a0; outline-offset:2px; }
.language-picker.is-disabled { opacity:.45; }
.language-select { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.language-select:disabled { cursor:wait; }
.access-card .language-picker { display:flex; margin:0 0 20px auto; }
.access-card h1 { font-size:clamp(2.5rem,5vw,4.6rem); max-width:15ch; }
.access-card p { color:var(--muted); max-width:46ch; }
.access-card form { margin:28px 0 18px; }
.access-card input[type=password] { max-width:420px; margin-bottom:22px; }
.access-card form > button { display:block; margin-top:24px; min-width:185px; }
.access-card .access-profile-note { font-size:.88rem; line-height:1.5; }
.access-agreement { display:flex; align-items:flex-start; gap:13px; max-width:520px; font-weight:400; line-height:1.5; color:var(--muted); }
.access-agreement input { width:20px; height:20px; flex:none; margin:2px 0 0; }
.chat-app { height:100dvh; min-height:0; display:flex; flex-direction:column; background:#000; overflow:hidden; }
.chat-app-header { flex:none; border-bottom:1px solid #303029; background:#090908; }
.chat-header-top { min-height:76px; padding:14px clamp(18px,3vw,48px); display:flex; align-items:center; gap:28px; }
.chat-header-top .brand img { width:73px; }
.chat-header-label { color:var(--muted); font-size:.88rem; flex:1; }
.chat-header-top .language-picker { margin-left:auto; }
.workspace-nav { display:flex; align-items:center; gap:3px; flex:none; }
.workspace-nav button { min-height:36px; padding:7px 9px; background:transparent; color:#b7b7af; border-radius:6px; font-size:.79rem; font-weight:600; white-space:nowrap; }
.workspace-nav button:hover:not(:disabled),.workspace-nav button.active { color:var(--text); background:#22221d; }
.workspace-nav button.active { box-shadow:inset 0 -2px 0 var(--accent); }
.workspace-menu { display:none; position:relative; flex:none; }
.workspace-menu summary { display:grid; place-items:center; width:44px; height:44px; list-style:none; border-radius:7px; color:#b7b7af; cursor:pointer; touch-action:manipulation; }
.workspace-menu summary::-webkit-details-marker { display:none; }
.workspace-menu summary:hover,.workspace-menu[open] summary { background:#22221d; color:var(--text); }
.workspace-menu summary span { font-size:1.3rem; line-height:1; }
.workspace-menu nav { position:absolute; top:calc(100% + 8px); right:0; z-index:8; width:180px; display:grid; gap:3px; padding:8px; background:#181817; border:1px solid #424239; border-radius:10px; box-shadow:0 14px 35px #000b; }
.workspace-menu nav button { text-align:left; min-height:40px; padding:8px 10px; font-size:.85rem; font-weight:600; color:var(--text); background:transparent; }
.workspace-menu nav button:hover:not(:disabled) { background:#2a2a23; }
.context-dialog[open] { position:fixed; inset:0 0 0 auto; width:min(480px,100vw); max-width:none; height:100dvh; max-height:100dvh; margin:0; padding:0; display:flex; flex-direction:column; overflow:hidden; border:0; border-left:1px solid #48483e; border-radius:0; background:#10100f; box-shadow:-20px 0 70px #000a; }
.context-dialog::backdrop { background:#0009; }
.context-panel-head { flex:none; min-height:75px; padding:19px 23px 15px; display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid #34342e; }
.context-panel-head h2 { margin:0; font-size:1.3rem; }
.panel-close { width:44px; height:44px; min-height:44px; flex:none; padding:0; color:var(--text); background:#272725; border:1px solid #4a4a42; border-radius:50%; font-size:1.4rem; font-weight:400; line-height:1; }
.panel-close:hover:not(:disabled) { background:#3a3a34; }
.context-panel-body { flex:1; min-height:0; padding:22px 24px 32px; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#55544a transparent; }
.context-panel-body h3 { margin:25px 0 12px; font-size:.95rem; }
.panel-intro,.panel-footnote { color:var(--muted); font-size:.87rem; line-height:1.55; }
.panel-intro { margin-bottom:23px; }
.panel-footnote { margin:23px 0 18px; }
.profile-name { font-family:var(--display); font-size:1.7rem; margin-bottom:18px; }
.panel-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.panel-stats > div { min-height:86px; padding:13px 10px; background:#1c1c1a; border:1px solid #33332e; border-radius:8px; }
.panel-stats strong { display:block; margin-bottom:6px; color:var(--accent); font-size:1.25rem; }
.panel-stats span { display:block; color:var(--muted); font-size:.75rem; line-height:1.3; }
.panel-goals { margin:0; padding-left:20px; font-size:.88rem; line-height:1.5; }
.panel-goals li { padding:4px 0; overflow-wrap:anywhere; }
.panel-goals li::marker { color:var(--accent); }
.about-domains { display:grid; gap:1px; border-top:1px solid #33332e; }
.about-domains > div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #33332e; font-size:.79rem; }
.about-domains strong { color:var(--accent); }
.about-domains p { margin:14px 0; color:var(--muted); font-size:.83rem; }
.panel-life-ring { max-width:270px; margin:0 auto 10px; }
.panel-life-ring .life-ring-center { inset:30%; }
.panel-life-ring .life-ring-center img { width:84px; }
.panel-domain-list { display:grid; gap:7px; margin-top:16px; }
.panel-domain { border:1px solid #3a3a32; border-radius:8px; background:#191917; }
.panel-domain > summary { list-style:none; display:flex; align-items:center; gap:12px; padding:13px 12px; cursor:pointer; }
.panel-domain > summary::-webkit-details-marker { display:none; }
.panel-domain > summary .life-dot { flex:none; margin:0 6px; }
.panel-domain > summary span:not(.life-dot) { min-width:0; }
.panel-domain strong { display:block; font-size:.84rem; line-height:1.3; }
.panel-domain small { display:block; margin-top:4px; font-size:.72rem; }
.panel-domain-detail { padding:0 13px 14px; }
.panel-domain-detail p { margin:0 0 11px; font-size:.8rem; color:var(--muted); }
.panel-domain-actions { display:flex; flex-wrap:wrap; gap:7px; }
.panel-domain-actions button { min-height:36px; padding:7px 10px; font-size:.75rem; }
.panel-note-backdrop { position:absolute; inset:75px 0 0; z-index:2; display:grid; align-items:start; padding:18px; background:#000c; overflow-y:auto; }
.panel-note { padding:20px; background:#20201c; border:1px solid #6c5f2c; border-radius:11px; box-shadow:0 15px 45px #000a; }
.panel-note h3 { margin:0 0 3px; }
.panel-note p { color:var(--muted); font-size:.84rem; }
.panel-note textarea { margin-bottom:8px; min-height:140px; }
.panel-note small { display:block; }
.panel-note-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:19px; }
.panel-note-actions button { min-height:38px; padding:8px 11px; font-size:.8rem; }
.panel-source-list { display:grid; gap:11px; margin-bottom:18px; }
.panel-source { padding:16px; border:1px solid #3a3a32; background:#1a1a18; border-radius:9px; }
.panel-source h3 { margin:0 0 7px; font-size:.93rem; overflow-wrap:anywhere; }
.panel-source p { margin:0 0 8px; color:var(--muted); font-size:.77rem; }
.panel-source small { display:block; margin:4px 0; }
.panel-source button { margin-top:8px; font-size:.77rem; }
.panel-empty { padding:28px 16px; border:1px dashed #4a4a3d; border-radius:10px; color:var(--muted); }
.panel-empty strong { color:var(--text); }
.panel-empty p { margin:8px 0 0; font-size:.84rem; }
.panel-loading { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.86rem; }
.settings-language { display:flex; gap:7px; flex-wrap:wrap; }
.settings-language button { min-height:37px; padding:7px 12px; background:#242421; border:1px solid #414138; color:var(--text); font-size:.79rem; }
.settings-language button:hover:not(:disabled) { background:#303029; border-color:#77775f; }
.settings-language button.selected { border-color:var(--accent); color:var(--accent); }
.settings-status { margin-top:29px; border-top:1px solid #34342d; }
.settings-status > div { display:flex; justify-content:space-between; gap:12px; padding:15px 0; border-bottom:1px solid #34342d; font-size:.84rem; }
.settings-status strong { color:var(--accent); }
.signout-button { margin-left:0; font-size:.8rem; flex:none; }
.goal-rail { display:flex; align-items:stretch; gap:8px; padding:0 clamp(18px,3vw,48px) 13px; overflow-x:auto; scrollbar-color:#5e5321 transparent; }
.goal-chip, .general-chat-chip, .add-goal-chip { flex:none; border-radius:8px; min-height:60px; padding:10px 14px; background:#181817; color:var(--text); text-align:left; font-weight:500; }
.general-chat-chip { display:flex; align-items:center; gap:11px; width:clamp(160px,17vw,215px); border:1px solid #4e4a32; }
.general-chat-chip:hover:not(:disabled) { background:#27271f; }
.general-chat-chip.active { border-color:var(--accent); background:#27230b; box-shadow:inset 3px 0 0 var(--accent); }
.general-chat-chip strong, .general-chat-chip small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.general-chat-chip strong { font-size:.9rem; }
.general-chat-chip small { margin-top:3px; color:#aaa99c; font-size:.72rem; }
.general-chat-chip.active small { color:#f3dc69; }
.general-chat-icon { display:grid; place-items:center; width:29px; height:29px; flex:none; border:1px solid #746823; border-radius:50%; color:var(--accent); font-size:1.1rem; }
.goal-chip { width:clamp(168px,19vw,245px); border:1px solid #3b3b32; }
.goal-chip:hover:not(:disabled), .add-goal-chip:hover:not(:disabled) { background:#27271f; }
.goal-chip.active { border-color:var(--accent); background:#27230b; box-shadow:inset 3px 0 0 var(--accent); }
.goal-chip-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9rem; }
.goal-chip small { display:block; margin-top:3px; font-size:.78rem; }
.goal-chip.active small { color:#f3dc69; }
.goal-chip-updating small { display:flex; align-items:center; gap:7px; color:#f3dc69; }
.goal-chip-updating small::before { content:""; width:8px; height:8px; flex:none; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px #ffd80324; animation:thinking-pulse 1.25s ease-in-out infinite; }
.goal-chip-due:not(.active) { border-color:#c69f23; background:#28240f; }
.goal-chip-due small { color:#ffe16e; }
.add-goal-chip { border:1px dashed #69623f; color:var(--accent); width:125px; text-align:center; }
.chat-main { flex:1; min-height:0; display:flex; flex-direction:column; padding:0; width:100%; max-width:none; }
.chat-feed { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#45443a transparent; }
.chat-feed-inner { width:min(850px,100%); margin:auto; padding:36px 24px 50px; }
.load-older { display:block; margin:0 auto 20px; font-size:.8rem; }
.ixo-greeting { display:flex; align-items:flex-start; gap:17px; margin-bottom:28px; }
.ixo-avatar { flex:none; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; font-size:.84rem; font-weight:800; color:#000; background:var(--accent); }
.ixo-greeting p { padding-top:7px; margin:0; max-width:66ch; color:#e7e7e2; font-size:1.03rem; }
.path-bubble { margin:0 0 30px 61px; padding:22px 25px 18px; border:1px solid #6e6222; border-radius:13px; background:#17160d; overflow-wrap:anywhere; }
.path-bubble-head { display:flex; gap:15px; align-items:flex-start; }
.path-bubble-head > div { min-width:0; }
.path-sigil { display:grid; place-items:center; width:31px; height:31px; flex:none; color:var(--accent); font-size:1.5rem; }
.path-bubble h2 { font-size:1.36rem; font-family:var(--display); margin:2px 0 0; }
.path-bubble small { font-size:.74rem; color:#d4c675; }
.path-bubble p { color:#d1d1c5; font-size:.91rem; margin:15px 0 0; line-height:1.55; }
.path-inline-progress { position:relative; display:flex; align-items:center; gap:10px; min-height:43px; margin-top:17px; padding:10px 13px 13px; overflow:hidden; border:1px solid #766824; border-radius:7px; background:#28230c; color:#f2df6f; font-size:.79rem; font-weight:650; }
.path-inline-progress > span:nth-child(2) { position:relative; z-index:1; }
.path-inline-track { position:absolute; bottom:0; left:0; right:0; height:3px; background:#544b20; overflow:hidden; }
.path-inline-track::after { content:""; display:block; width:32%; height:100%; background:var(--accent); animation:path-sweep 1.65s ease-in-out infinite alternate; }
.path-steps { margin:18px 0 0; padding:16px 18px; border-left:2px solid var(--accent); background:#23210e; }
.path-steps strong { font-size:.86rem; }
.path-point-count { display:block; margin-top:4px; color:#c9c49e; font-size:.78rem; }
.path-steps ol { margin:9px 0 0; padding-left:22px; color:#e8e6d8; font-size:.86rem; }
.path-steps li { margin-top:5px; }
.path-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:19px; }
.path-actions > button { min-height:38px; padding:8px 14px; font-size:.83rem; }
.path-actions > button span { margin-left:7px; opacity:.68; }
.path-actions details { flex:1; min-width:170px; color:var(--muted); font-size:.83rem; }
.path-actions details[open] { flex-basis:100%; }
.update-path-link { display:block; margin-top:12px; font-size:.78rem; }
.path-options { display:grid; gap:8px; margin-top:13px; }
.path-option { display:flex; align-items:center; gap:14px; justify-content:space-between; padding:13px 14px; border-radius:7px; background:#24231b; }
.path-option.chosen { border:1px solid #9a8526; }
.path-option strong { color:var(--text); font-size:.85rem; }
.path-option p { margin:4px 0 0; font-size:.78rem; }
.path-option button { min-height:36px; padding:7px 11px; font-size:.78rem; flex:none; }
.system-bubble { display:flex; align-items:flex-start; gap:13px; margin:0 0 22px 61px; padding:14px 16px; background:#1b1b18; border-radius:9px; color:var(--muted); font-size:.88rem; }
.system-bubble strong { color:var(--text); }
.system-bubble p { margin:3px 0 0; line-height:1.5; font-size:.85rem; }
.path-run-bubble { margin:22px 0 25px 61px; padding:20px 22px 17px; max-width:690px; border:1px solid #766824; border-radius:11px; background:#211f13; box-shadow:inset 3px 0 0 var(--accent); }
.path-run-heading { display:flex; align-items:center; gap:13px; }
.path-run-heading strong { color:#f6e36f; font-size:.9rem; }
.path-run-heading p { margin:4px 0 0; color:#f1f0e7; font-size:.91rem; line-height:1.4; }
.path-run-spinner { display:inline-block; width:19px; height:19px; flex:none; border:2px solid #716521; border-top-color:var(--accent); border-radius:50%; animation:path-spin .9s linear infinite; }
.path-run-track { height:4px; margin:19px 0 12px; overflow:hidden; border-radius:99px; background:#51491f; }
.path-run-track > span { display:block; width:34%; height:100%; border-radius:inherit; background:var(--accent); box-shadow:0 0 12px #ffd80390; animation:path-sweep 1.65s ease-in-out infinite alternate; }
.path-run-stages { display:flex; align-items:flex-start; justify-content:space-between; gap:4px; list-style:none; margin:0; padding:0; }
.path-run-stages li { position:relative; flex:1; display:flex; justify-content:center; min-width:0; color:#a9a080; }
.path-run-stage-dot { display:block; width:7px; height:7px; border-radius:50%; border:1px solid #827a55; background:#322e1b; }
.path-run-stages li.done .path-run-stage-dot { background:#aa983c; border-color:#aa983c; }
.path-run-stages li.current .path-run-stage-dot { background:var(--accent); border-color:var(--accent); box-shadow:0 0 0 4px #ffd80329; }
.path-run-stages li > span:last-child { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.path-run-estimate { margin:13px 0 0; color:#c2bda8; font-size:.77rem; line-height:1.45; }
.path-run-failed > span:first-child { flex:none; display:grid; place-items:center; width:21px; height:21px; color:#000; background:#e4b44e; border-radius:50%; font-weight:800; }
.path-activity-strip { display:flex; align-items:center; gap:9px; min-height:31px; margin:0 0 10px; color:#e2d26d; font-size:.78rem; line-height:1.35; }
.path-activity-strip strong { color:#fff2a1; }
.path-activity-strip .path-run-spinner { width:14px; height:14px; border-width:2px; }
.voice-path-status { clear:both; display:flex; align-items:center; gap:10px; min-height:37px; margin:0 0 12px; padding:8px 11px; border:1px solid #766824; border-radius:7px; background:#28230c; color:#f2df6f; font-size:.79rem; line-height:1.4; }
.voice-path-status[hidden] { display:none; }
.voice-path-status strong { color:#fff2a1; }
.voice-path-status .path-run-spinner { width:15px; height:15px; }
@keyframes path-spin { to { transform:rotate(360deg); } }
@keyframes path-sweep { from { transform:translateX(-100%); } to { transform:translateX(310%); } }
.path-result { margin:22px 0 28px 61px; max-width:690px; padding:21px 23px; border:1px solid #a18b2d; border-radius:12px; background:#25220f; box-shadow:inset 3px 0 0 var(--accent); overflow-wrap:anywhere; }
.path-result-head { display:flex; align-items:flex-start; gap:11px; color:#ffe762; }
.path-result-head > div { min-width:0; }
.path-result-head h2 { margin:0; font-family:var(--display); font-size:1.2rem; line-height:1.3; }
.path-result-head small { color:#e5d788; font-size:.74rem; }
.path-result > p { margin:12px 0 0; color:#e1dfce; font-size:.88rem; line-height:1.55; }
.path-result-route { margin:16px 0 0; padding:12px 15px; border-left:2px solid var(--accent); background:#302c14; }
.path-result-route strong { color:#f5ebbc; font-size:.85rem; }
.path-result-route > p { margin:5px 0 0; color:#d7d0ad; font-size:.81rem; line-height:1.45; }
.path-result-steps { margin:8px 0 0; padding-left:19px; color:#e8e4cf; font-size:.84rem; line-height:1.5; }
.path-result-steps li + li { margin-top:4px; }
.path-result-steps li strong { color:#eee7c7; font-weight:650; }
.path-result-steps li span { display:block; color:#c7c0a2; font-size:.78rem; }
.path-result-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:17px; }
.path-result-actions button { min-height:37px; padding:7px 11px; font-size:.79rem; }
.pulse-dot { width:9px; height:9px; margin-top:7px; border-radius:50%; flex:none; background:var(--accent); box-shadow:0 0 0 4px #ffd80325; animation:thinking-pulse 1.5s ease-in-out infinite; }
.chat-line { display:flex; margin:15px 0; }
.chat-line.mine { justify-content:flex-end; }
.chat-line-body { max-width:min(690px,85%); padding:14px 18px; background:#1b1b1b; border-radius:13px; }
.chat-line.mine .chat-line-body { background:#35300f; }
.chat-line-body strong { display:block; color:var(--accent); font-size:.75rem; margin-bottom:6px; }
.chat-line.mine .chat-line-body strong { color:#f6e78a; }
.chat-line-body p { margin:0; max-width:70ch; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; font-size:.94rem; }
.chat-reminder { margin:18px 0 18px 61px; padding:15px 18px; border-left:2px solid var(--accent); border-radius:0 12px 12px 0; background:#26230f; }
.chat-reminder-label { display:block; margin-bottom:6px; color:var(--accent); font-size:.75rem; font-weight:700; }
.chat-reminder p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
.general-path-status { display:flex; align-items:center; gap:10px; margin:14px 0 18px 61px; padding:10px 13px; border:1px solid #5b4d15; border-radius:10px; color:#f0d878; font-size:.82rem; }
.general-path-status .path-run-spinner { width:16px; height:16px; flex:none; }
.chat-pending { margin-left:61px; display:flex; align-items:center; gap:11px; }
.guided-prompt { margin:28px 0 0 61px; padding:18px 21px; border-left:3px solid var(--accent); background:#24210d; border-radius:0 9px 9px 0; }
.guided-prompt small { color:#e9d963; font-size:.76rem; }
.guided-prompt p { margin:7px 0 10px; color:#f5f3e9; font-size:1.05rem; }
.guided-prompt button { min-height:34px; padding:4px 8px; font-size:.78rem; }
.composer-wrap { flex:none; border-top:1px solid #33332b; background:#0d0d0c; padding:14px 20px max(17px,env(safe-area-inset-bottom)); }
.composer-inner { width:min(800px,100%); margin:auto; }
.chat-composer { display:flex; align-items:flex-end; gap:10px; border:1px solid #5f5a37; border-radius:13px; background:#191918; padding:10px; }
.chat-composer:focus-within { border-color:var(--accent); }
.chat-composer textarea { border:0; background:transparent; min-height:43px; max-height:140px; padding:7px 8px; resize:vertical; line-height:1.4; outline:none; }
.composer-actions { display:flex; align-items:center; gap:6px; flex:none; }
.icon-action { width:44px; height:44px; min-height:44px; padding:0; border-radius:8px; color:#e7d459; background:transparent; font-size:1.25rem; }
.icon-action:hover:not(:disabled) { background:#333018; }
.voice-mic { display:grid; place-items:center; border-radius:50%; transition:background .2s ease,color .2s ease,box-shadow .2s ease; }
.voice-mic.is-live { background:var(--accent); color:#151307; box-shadow:0 0 0 3px #ffd80333; }
.voice-mic.is-live:hover:not(:disabled) { background:#ffe64a; }
.voice-inline-status { display:flex; align-items:center; gap:9px; min-height:35px; margin:0 0 9px; color:#e8df9b; font-size:.82rem; line-height:1.35; }
.voice-inline-status.is-error { color:#ffb9c2; }
.voice-inline-status button { min-height:30px; margin-left:auto; padding:4px 8px; font-size:.78rem; color:inherit; white-space:nowrap; }
.voice-inline-pulse { flex:none; width:9px; height:9px; border-radius:50%; background:#cab34a; }
.voice-inline-pulse.is-listening { background:var(--accent); box-shadow:0 0 0 0 #ffd80366; animation:voice-pulse 1.7s ease-out infinite; }
@keyframes voice-pulse { 55% { box-shadow:0 0 0 7px #ffd80300; } 100% { box-shadow:0 0 0 0 #ffd80300; } }
#voice-dialog.voice-transport[open] { position:fixed; inset:auto auto 0 0; width:1px; height:1px; min-width:0; min-height:0; max-width:1px; max-height:1px; overflow:hidden; opacity:0; padding:0; margin:0; border:0; box-shadow:none; pointer-events:none; }
#voice-dialog.voice-transport::backdrop { display:none; }
#voice-dialog.voice-transport iframe { width:1px; height:1px; border:0; }
@media (prefers-reduced-motion:reduce) { .voice-inline-pulse.is-listening { animation:none; box-shadow:none; } }
.send-action { width:44px; height:44px; min-height:44px; padding:0; border-radius:8px; font-size:1.3rem; }
#goal-create .send-action { width:auto; padding:0 14px; font-size:.83rem; white-space:nowrap; }
.composer-hint { margin:8px 4px 0; color:#9d9d96; font-size:.73rem; line-height:1.3; }
.composer-status { color:var(--accent); font-size:.78rem; margin-bottom:8px; }
.attachment-form { padding:14px; background:#1b1b18; border:1px solid #5c5530; border-radius:9px; margin-bottom:10px; }
.attachment-form label { font-size:.82rem; }
.attachment-form select { margin-bottom:12px; }
.attachment-actions { display:flex; gap:8px; }
.legacy-consent { margin:24px 0 0 61px; padding:25px; max-width:590px; background:#1b1a11; border:1px solid #6f6427; border-radius:10px; }
.legacy-consent h1 { font-size:1.6rem; }
.legacy-consent p { color:var(--muted); font-size:.9rem; }
.legacy-consent button { margin-top:18px; }
@media (max-width:900px) {
  .workspace-nav { display:none; }
  .workspace-menu { display:block; margin-left:auto; }
  .chat-header-top .language-picker { margin-left:0; }
}
@media (max-width:700px) {
  .access-page { grid-template-columns:1fr; align-content:center; gap:38px; padding:28px 24px; }
  .access-card { padding-left:22px; }
  .access-mark img { width:180px; }
  .chat-header-top { min-height:61px; padding:10px 16px; gap:10px; }
  .chat-header-top .brand img { width:58px; }
  .chat-header-label { display:none; }
  .context-dialog[open] { width:100vw; border-left:0; }
  .context-panel-head { min-height:64px; padding:13px 17px; }
  .context-panel-body { padding:18px 17px 28px; }
  .panel-note-backdrop { inset:64px 0 0; }
  .signout-button { padding:7px 5px; }
  .goal-rail { padding:0 13px 10px; }
  .goal-chip { width:175px; min-height:55px; }
  .general-chat-chip { width:166px; min-height:55px; }
  .chat-feed-inner { padding:23px 16px 35px; }
  .ixo-greeting { gap:10px; }
  .ixo-avatar { width:36px; height:36px; font-size:.73rem; }
  .ixo-greeting p { padding-top:4px; font-size:.95rem; }
  .path-bubble,.guided-prompt,.system-bubble,.chat-pending,.legacy-consent,.path-run-bubble,.path-result,.chat-reminder,.general-path-status { margin-left:0; }
  .path-bubble { padding:17px; }
  .path-run-bubble,.path-result { padding:17px; }
  .path-option { display:block; }
  .path-option button { margin-top:9px; }
  .chat-line-body { max-width:90%; }
  .composer-wrap { padding:10px 12px max(12px,env(safe-area-inset-bottom)); }
  .chat-composer { gap:3px; }
  .icon-action { width:44px; }
  .composer-hint { display:none; }
}

/* A single route map for every goal. The ruler stays proportional to the full horizon. */
.timeline-dialog[open] {
  position:fixed;
  inset:0;
  display:block;
  width:min(1280px,calc(100vw - 36px));
  max-width:none;
  height:min(880px,calc(100dvh - 36px));
  max-height:none;
  margin:auto;
  padding:0;
  overflow:hidden;
  border:1px solid #68602e;
  border-radius:14px;
  background:#0c0c0a;
  box-shadow:0 24px 90px #000e;
}
.timeline-dialog::backdrop { background:#000c; }
.timeline-shell { display:flex; flex-direction:column; width:100%; height:100%; min-height:0; }
.timeline-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:28px;
  flex:none;
  padding:27px clamp(22px,4vw,48px) 24px;
  border-bottom:1px solid #39372a;
  background:#11110e;
}
.timeline-head > div { min-width:0; }
.timeline-head small,
.timeline-agenda-head small { display:block; color:#d4c362; font-size:.69rem; font-weight:700; letter-spacing:.08em; }
.timeline-head h2 { margin:8px 0 7px; font-size:clamp(1.65rem,3vw,2.4rem); line-height:1.14; }
.timeline-head p { max-width:70ch; margin:0; color:#bebeb3; font-size:.87rem; line-height:1.5; }
.timeline-close {
  display:grid;
  place-items:center;
  flex:none;
  width:38px;
  height:38px;
  min-height:38px;
  padding:0;
  border:1px solid #55544a;
  border-radius:50%;
  background:#252520;
  color:var(--text);
  font-size:1.4rem;
  font-weight:400;
  line-height:1;
}
.timeline-close:hover:not(:disabled) { background:#38372e; }
.timeline-body {
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-color:#665d32 transparent;
  padding:clamp(20px,3vw,36px) clamp(18px,4vw,48px) 34px;
}
.timeline-status {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  margin:0 0 20px;
  color:#d6d0a3;
  font-size:.82rem;
  line-height:1.4;
}
.timeline-status:empty { display:none; }
.timeline-status[aria-busy="true"]::before,
.timeline-loading::before {
  content:"";
  display:inline-block;
  flex:none;
  width:15px;
  height:15px;
  border:2px solid #7c6f32;
  border-top-color:var(--accent);
  border-radius:50%;
  animation:path-spin .9s linear infinite;
}
.timeline-overview { margin:0 0 38px; }
.timeline-axis,
.timeline-lane { display:grid; grid-template-columns:minmax(190px,250px) minmax(0,1fr); gap:16px; }
.timeline-axis { align-items:end; padding-bottom:12px; border-bottom:1px solid #56523a; }
.timeline-axis-label { color:#a9a99b; font-size:.7rem; font-weight:700; letter-spacing:.06em; }
.timeline-axis-track { position:relative; height:26px; min-width:0; }
.timeline-axis-track::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:#777052;
}
.timeline-tick {
  position:absolute;
  bottom:3px;
  left:var(--x);
  display:block;
  transform:translateX(-50%);
  color:#a9a99f;
  font-size:.72rem;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.timeline-tick:first-child { transform:none; }
.timeline-tick:last-child { transform:translateX(-100%); }
.timeline-tick::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:-4px;
  width:1px;
  height:7px;
  background:#aaa17b;
}
.timeline-lane { align-items:center; min-height:101px; border-bottom:1px solid #2e2e27; }
.timeline-lane:hover { background:#14140f; }
.timeline-goal-label { min-width:0; padding:16px 0; }
.timeline-goal-label strong {
  display:block;
  overflow:hidden;
  color:var(--text);
  font-size:.88rem;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.timeline-goal-label > span { display:block; margin-top:5px; color:#bdbdb2; font-size:.74rem; line-height:1.3; }
.timeline-route-status { display:block; margin-top:2px; color:#99998d; font-size:.67rem; line-height:1.2; }
.timeline-lane.has-conflict .timeline-goal-label > span { color:#ffb17a; font-weight:700; }
.timeline-lane.cluster-open { position:relative; z-index:6; }
.timeline-date-input {
  width:140px;
  min-height:29px;
  margin-top:7px;
  padding:3px 7px;
  border:1px solid #55513a;
  border-radius:4px;
  background:#1a1a16;
  color:#e9dfab;
  font-size:.72rem;
  font-variant-numeric:tabular-nums;
}
.timeline-date-input:hover { border-color:#b8a340; }
.timeline-date-input::-webkit-calendar-picker-indicator { filter:invert(.85) sepia(.5) saturate(2); cursor:pointer; }
.timeline-accept-date { display:block; width:max-content; min-height:25px; margin-top:4px; padding:2px 0; border:0; background:transparent; color:#e8d35d; font-size:.7rem; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.timeline-accept-date:hover:not(:disabled) { background:transparent; color:#fff18e; }
.timeline-track { position:relative; min-width:0; height:83px; }
.timeline-track::before {
  content:"";
  position:absolute;
  top:32px;
  left:0;
  right:0;
  height:1px;
  background:#424138;
}
.timeline-bar {
  position:absolute;
  top:30px;
  left:0;
  width:var(--end);
  max-width:100%;
  height:4px;
  border-radius:4px;
  background:var(--goal-color,var(--accent));
  opacity:.8;
}
.timeline-step {
  position:absolute;
  z-index:3;
  top:3px;
  left:var(--x);
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  min-height:23px;
  padding:0;
  transform:translateX(-50%);
  border:1px solid var(--goal-color,var(--accent));
  border-radius:50%;
  background:#14140f;
  color:var(--goal-color,var(--accent));
  box-shadow:0 0 0 3px #090907;
  font-size:.65rem;
  line-height:1;
}
.timeline-step:hover:not(:disabled),.timeline-step:focus-visible { transform:translateX(-50%) scale(1.14); background:#2b2819; }
.timeline-step.is-late { border-color:#ff986d; color:#ffb17a; }
.timeline-step-cluster { background:#25210e; font-weight:750; }
.timeline-cluster-popover { position:absolute; z-index:7; top:41px; left:clamp(138px,var(--x),calc(100% - 138px)); width:min(276px,calc(100vw - 48px)); padding:6px; transform:translateX(-50%); border:1px solid #857638; border-radius:8px; background:#202019; box-shadow:0 10px 28px #000c; }
.timeline-cluster-popover button { display:block; width:100%; min-height:38px; padding:7px 8px; border:0; border-radius:4px; background:transparent; color:#f0eee2; text-align:left; font-size:.75rem; font-weight:550; line-height:1.35; }
.timeline-cluster-popover button:hover:not(:disabled) { background:#34301a; color:#fff; }
.timeline-cluster-popover small { display:block; margin-bottom:2px; color:#d7bf62; font-size:.64rem; }
.timeline-range {
  position:absolute;
  z-index:2;
  top:17px;
  left:0;
  width:100%;
  height:34px;
  min-height:34px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  appearance:none;
  -webkit-appearance:none;
  cursor:ew-resize;
  touch-action:pan-y;
}
.timeline-range::-webkit-slider-runnable-track { height:3px; background:transparent; }
.timeline-range::-moz-range-track { height:3px; background:transparent; }
.timeline-range::-webkit-slider-thumb {
  width:22px;
  height:22px;
  margin-top:-10px;
  border:4px solid #0c0c0a;
  border-radius:50%;
  background:var(--goal-color,var(--accent));
  box-shadow:0 0 0 2px var(--goal-color,var(--accent));
  appearance:none;
  -webkit-appearance:none;
}
.timeline-range::-moz-range-thumb {
  width:15px;
  height:15px;
  border:4px solid #0c0c0a;
  border-radius:50%;
  background:var(--goal-color,var(--accent));
  box-shadow:0 0 0 2px var(--goal-color,var(--accent));
}
.timeline-range:hover::-webkit-slider-thumb,
.timeline-range:focus-visible::-webkit-slider-thumb { box-shadow:0 0 0 3px var(--goal-color,var(--accent)),0 0 0 8px #ffd80324; }
.timeline-range:hover::-moz-range-thumb,
.timeline-range:focus-visible::-moz-range-thumb { box-shadow:0 0 0 3px var(--goal-color,var(--accent)),0 0 0 8px #ffd80324; }
.timeline-end-label {
  position:absolute;
  top:57px;
  left:clamp(36px,var(--x),calc(100% - 36px));
  transform:translateX(-50%);
  max-width:95px;
  overflow:hidden;
  color:var(--goal-color,var(--accent));
  font-size:.72rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  text-overflow:ellipsis;
  white-space:nowrap;
  pointer-events:none;
}
.timeline-agenda { padding-top:23px; border-top:1px solid #504c30; }
.timeline-agenda-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:17px; }
.timeline-agenda-head h3 { margin:4px 0 0; font-family:var(--display); font-size:1.22rem; }
.timeline-week-nav { display:flex; align-items:center; gap:7px; }
.timeline-week-nav button {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  border:1px solid #4b4938;
  background:#20201a;
  color:#e6e5db;
  font-size:1.15rem;
}
.timeline-week-nav button:hover:not(:disabled) { background:#323022; }
.timeline-week-nav input[type="date"] {
  width:145px;
  min-height:34px;
  padding:5px 7px;
  border-color:#4b4938;
  background:#20201a;
  font-size:.75rem;
  font-variant-numeric:tabular-nums;
}
.timeline-week-strip {
  display:flex;
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-color:#776932 transparent;
  border-top:1px solid #484735;
  border-bottom:1px solid #484735;
}
.timeline-week {
  display:block;
  flex:0 0 clamp(160px,18vw,215px);
  min-height:157px;
  padding:16px 14px;
  border:0;
  border-right:1px solid #38382e;
  border-radius:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  font-weight:400;
}
.timeline-week:hover:not(:disabled) { background:#232219; }
.timeline-week.active,.timeline-week[aria-current="date"] { background:#29250f; box-shadow:inset 0 3px 0 var(--accent); }
.timeline-week small { display:block; color:#b9b9aa; font-size:.69rem; }
.timeline-week strong { display:block; margin-top:5px; color:#efeee7; font-size:.88rem; font-variant-numeric:tabular-nums; }
.timeline-week > span { display:block; margin-top:7px; color:#dfcf64; font-size:.72rem; }
.timeline-week ul { margin:11px 0 0; padding-left:15px; color:#cfcec0; font-size:.71rem; line-height:1.35; }
.timeline-week li + li { margin-top:5px; }
.timeline-week li::marker { color:#c3ad38; }
.timeline-week-detail { min-height:95px; padding:18px 0 0; }
.timeline-week-detail h4 { margin:0 0 12px; font-size:.93rem; }
.timeline-week-detail p { margin:0; color:#bcbcaf; font-size:.85rem; }
.timeline-week-detail ol,.timeline-week-detail ul { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.timeline-week-detail li { display:grid; grid-template-columns:8px minmax(0,1fr); align-items:start; gap:12px; padding:10px 0; border-bottom:1px solid #2d2d27; font-size:.87rem; line-height:1.45; }
.timeline-week-detail li::before { content:""; width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--goal-color,var(--accent)); }
.timeline-week-detail li strong { display:block; color:#f1f0e7; font-weight:650; }
.timeline-week-detail li small { color:#aeae9f; }
.timeline-footnote { max-width:90ch; margin:26px 0 0; color:#a9a99e; font-size:.76rem; line-height:1.5; }
.timeline-empty,.timeline-loading { padding:45px 20px; border:1px dashed #625d3d; color:#c3c1ac; text-align:center; font-size:.89rem; }
.timeline-empty strong { display:block; margin-bottom:7px; color:var(--text); font-size:1rem; }
.timeline-loading { display:flex; align-items:center; justify-content:center; gap:12px; }
@media (max-width:720px) {
  .timeline-dialog[open] { width:100vw; height:100dvh; border:0; border-radius:0; }
  .timeline-head { padding:19px 18px 17px; }
  .timeline-head h2 { font-size:1.52rem; }
  .timeline-head p { font-size:.78rem; }
  .timeline-body { padding:21px 16px max(28px,env(safe-area-inset-bottom)); }
  .timeline-axis,.timeline-lane { display:block; }
  .timeline-axis-label { display:block; margin-bottom:11px; }
  .timeline-axis-track { margin:0 11px; }
  .timeline-tick:not(:first-child):not(:last-child) { display:none; }
  .timeline-lane { min-height:120px; padding:13px 0 4px; }
  .timeline-goal-label { padding:0; }
  .timeline-goal-label strong { white-space:normal; }
  .timeline-goal-label > span { display:inline; }
  .timeline-date-input { display:inline-block; margin:0 0 0 7px; }
  .timeline-track { height:67px; margin:5px 11px 0; }
  .timeline-track::before { top:24px; }
  .timeline-bar { top:22px; }
  .timeline-step { top:-7px; }
  .timeline-range { top:9px; }
  .timeline-end-label { top:44px; }
  .timeline-overview { margin-bottom:28px; }
  .timeline-agenda-head { align-items:flex-start; }
  .timeline-agenda-head h3 { font-size:1.05rem; }
  .timeline-week-nav input[type="date"] { width:123px; font-size:.68rem; }
  .timeline-week { flex-basis:168px; min-height:145px; }
}
@media (max-width:420px) {
  .timeline-head small,.timeline-agenda-head small { font-size:.62rem; }
  .timeline-week-nav { gap:4px; }
  .timeline-week-nav button { width:29px; height:29px; min-height:29px; }
  .timeline-week-nav input[type="date"] { width:110px; min-height:29px; }
}

/* Keep controls easy to reach without increasing their visual emphasis. */
:is(.workspace-nav button,.workspace-menu nav button,.panel-domain-actions button,.panel-note-actions button,.settings-language button,.path-actions > button,.path-option button,.path-result-actions button,.guided-prompt button,.voice-inline-status button,.timeline-date-input,.timeline-accept-date,.timeline-cluster-popover button,.timeline-week-nav button,.timeline-week-nav input[type="date"]) { min-height:44px; }
.timeline-close,.timeline-week-nav button { width:44px; height:44px; min-height:44px; }
@media (max-width:420px) {
  .timeline-agenda-head { flex-wrap:wrap; }
  .timeline-week-nav { margin-left:auto; }
  .timeline-week-nav button { width:44px; height:44px; min-height:44px; }
}
