/* style.css — the page's own layer over design.css (the approved visual design, loaded first).
   Here: (1) the page tokens for the conversation's components (a token whose name the design also uses is prefixed --h-, so the design's own tokens are never redefined),
   (2) the two layouts — the first screen (the design as drawn) and the conversation (thread + composer beside the live stage),
   (3) the components the conversation draws (messages, the Ringkasan rencana card, progress, READY, publish, files, forms), light theme,
   (4) the few places where a design class name meets a component of the same name inside the thread. System fonts only. */
:root {
  /* tokens the conversation's components use that the current design does not define */
  --night: #0B1530; --cyan-ink: #0E7490; --edge: rgba(29, 78, 216, .28); --glow: rgba(34, 211, 238, .18); --teal-soft: #E0F6FA; --amber-soft: #FFF4D6; --coral-soft: #FFEDE6;
  --ink-2: #475569; --ink-3: #64748B; --line-2: rgba(11, 21, 48, .14); --ground: #F6F8FC;
  --bg: #F5F8FA; --bg-2: #FFFFFF;
  --soft: #3F5262; --dim: #7A8B98;
  --h-line: rgba(8, 21, 31, .10); --h-line-2: rgba(8, 21, 31, .16);
  --h-glass: rgba(255, 255, 255, .92); --h-glass-2: rgba(8, 21, 31, .04); --h-glass-3: #FFFFFF;
  --h-blue: #0891B2; --h-blue-2: #0E7490; --h-blue-b: #0E7490; --h-blue-t: #E0F6FA; --h-blue-l: rgba(34, 211, 238, .42);
  --ok: #15803D; --ok-t: #E3F8EA; --warn: #9A5B00; --warn-t: #FFF4D6; --bad: #C2410C; --bad-t: #FFEDE6;
  --r: 20px; --h-glow: 0 0 24px rgba(34, 211, 238, .18); --shadow: 0 0 0 1px rgba(34, 211, 238, .30), 0 24px 48px -28px rgba(8, 40, 60, .30);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* the design names Geist first; the page loads no font from outside, so the system stack renders unless Geist is installed */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
html, body { margin: 0; overflow-x: hidden; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button { cursor: pointer; }
.app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 100vw; }
.main { flex: 1; min-width: 0; }

/* ---------- header: the design's nav + the page's controls ---------- */
.nav .wrap { position: relative; }
.brand { min-width: 0; color: var(--ink); }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-r { min-width: 0; }
.login { max-width: min(42vw, 260px); overflow: hidden; text-overflow: ellipsis; }
.link-btn { border: 0; background: none; color: var(--cyan-ink); font-size: 15px; padding: 4px 0; font-weight: 500; }
.auth-panel { position: absolute; right: clamp(16px, 4vw, 40px); top: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: var(--r); padding: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -20px rgba(8, 40, 60, .35); z-index: 40; text-align: left; }
.auth-panel .form { margin-top: 0; }

/* ---------- the first screen: the design as drawn (hero, command bar, examples, then the stage) ---------- */
.hero .wrap { position: relative; }
.wrap .stage-wrap { padding-inline: 0; max-width: none; }
.talk { text-align: left; }
.examples > span { font-size: 14px; color: var(--ink-3); align-self: center; margin-right: 4px; }
.ex span { white-space: nowrap; }
.limits { text-align: center; color: var(--ink-3); font-size: 13px; margin: 14px auto 0; }
.is-fresh .thread { display: none; }
.is-fresh .dock > .notice { max-width: 780px; margin: 24px auto 0; }
.cmd .pending, .cmd .link-row { padding-left: 18px; padding-right: 8px; }
.cmd textarea { max-height: 38vh; }
.send:disabled { opacity: .55; cursor: default; box-shadow: none; }
.pct { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--cyan-ink); }
.band-tight { padding-top: 0; }

/* the stage: the example journey on the first screen, the person's own journey afterwards */
.stage:not(.real) .ov[data-real] { display: none; }
.stage.real .ov:not([data-real]) { display: none; }
.stage.real .tab { cursor: default; }
.stage .rs-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.stage .rs-chat { max-width: 400px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.stage .rs-chat b { display: block; font-size: 13px; color: var(--cyan-ink); margin-bottom: 2px; }
.stage .rs-chat .typing { margin-top: 6px; }
.stage .rs-modes, .hud-modes { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stage .rs-plan .r .v { overflow-wrap: anywhere; }
.stage .rs-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stage .rs-links .btn-line { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.stage .build li.skipped { text-decoration: line-through; opacity: .6; }
.stage .rs-build, .stage .rs-live { width: min(400px, calc(100% - 48px)); }

/* ---------- the conversation: the thread and the composer beside the live stage ---------- */
.app:not(.is-fresh) .hero-copy, .app:not(.is-fresh) .examples, .app:not(.is-fresh) .limits, .app:not(.is-fresh) .landing, .app:not(.is-fresh) .links, .app:not(.is-fresh) .cmd-note { display: none; }
.app:not(.is-fresh) .hero { padding-top: 20px; overflow: visible; }
.app:not(.is-fresh) .stage-wrap { margin: 0; }
.app:not(.is-fresh) .cmd { margin: 0; max-width: none; }
.app:not(.is-fresh) .send-t { display: none; }
.app:not(.is-fresh) .send { padding: 0 14px; }
.app:not(.is-fresh) .dock { position: sticky; bottom: 0; z-index: 4; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 78%, rgba(245, 248, 250, 0)); }
.app:not(.is-fresh) .talk { display: flex; flex-direction: column; min-width: 0; }
.thread { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 24px; min-width: 0; }
@media (min-width: 1100px) {
  .app:not(.is-fresh) .work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .82fr); gap: 28px; align-items: start; }
  .app:not(.is-fresh) .talk { min-height: calc(100dvh - 110px); }
  .app:not(.is-fresh) .thread { flex: 1; }
  .app:not(.is-fresh) .stage-wrap { position: sticky; top: 88px; }
  .app:not(.is-fresh) .stage { height: clamp(520px, calc(100dvh - 112px), 760px); }
}
@media (max-width: 1099.98px) {
  .app:not(.is-fresh) .work { display: flex; flex-direction: column; gap: 16px; }
  .app:not(.is-fresh) .stage-wrap { order: -1; }
  .app:not(.is-fresh) .stage { height: 340px; border-radius: 24px; }
  /* the build card on a short stage: the step that runs now and the bar */
  .stage.real .rs-build li:not(.now) { display: none; }
  .stage.real .rs-chat, .stage.real .rs-plan, .stage.real .rs-build, .stage.real .rs-live { top: 64px; left: 16px; right: 16px; width: auto; max-width: none; padding: 14px 16px; }
  .stage.real .rs-plan .r { padding: 6px 0; }
  .stage.real .rs-plan #rsKpiRow, .stage.real .rs-plan .rs-note { display: none; }
  .stage.real .tabs { bottom: 12px; }
}
/* ---------- the conversation's components (light) ---------- */
/* ---------- the thread ---------- */
.thread { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 28px; min-width: 0; }
:is(.thread, .auth-panel, .plan-row) .msg { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
:is(.thread, .auth-panel, .plan-row) .msg.user { align-self: flex-end; background: linear-gradient(180deg, rgba(59, 120, 255, .28), rgba(36, 96, 255, .2)); border: 1px solid var(--h-blue-l); color: var(--ink); padding: 12px 16px; border-radius: 18px 18px 6px 18px; max-width: 82%; box-shadow: 0 8px 28px rgba(0, 0, 0, .3), 0 0 24px rgba(8, 145, 178, .12); }
:is(.thread, .auth-panel, .plan-row) .msg.jot { align-self: stretch; padding: 14px 18px 16px; border: 1px solid var(--h-line); border-radius: 18px 18px 18px 6px; background: var(--h-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 34px rgba(0, 0, 0, .3); }
:is(.thread, .auth-panel, .plan-row) .msg.jot::before { content: "JOT"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--h-blue-b); margin-bottom: 6px; }
:is(.thread, .auth-panel, .plan-row) .msg.jot .h { display: block; font-weight: 650; margin-top: 10px; }
:is(.thread, .auth-panel, .plan-row) .msg.jot .h:first-child { margin-top: 0; }
:is(.thread, .auth-panel, .plan-row) .msg .files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
:is(.thread, .auth-panel, .plan-row) .typing { color: var(--soft); font-size: 14px; padding: 2px 6px; }
:is(.thread, .auth-panel, .plan-row) .typing::after { content: "…"; animation: dots 1.2s steps(3, end) infinite; }
@keyframes dots { 0% { opacity: .2 } 50% { opacity: 1 } 100% { opacity: .2 } }

/* ---------- cards: one glass surface for the plan, the folder, the profile, progress, READY, publish ---------- */
.card { border: 1px solid var(--h-line); border-radius: var(--r); padding: 20px 22px; background: var(--h-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow), inset 0 1px 0 rgba(8, 21, 31, .04); min-width: 0; overflow-wrap: anywhere; }
.card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.card .sub { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.card .group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--h-blue-b); font-weight: 700; margin: 18px 0 8px; }
.card.plan { border-color: rgba(8, 145, 178, .36); box-shadow: var(--shadow), 0 0 40px rgba(8, 145, 178, .14); }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points .body { flex: 1; min-width: 0; }
.points .label { color: var(--soft); font-size: 13px; }
.points .tag { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 999px; background: rgba(8, 21, 31, .06); border: 1px solid var(--h-line); color: var(--soft); margin-top: 3px; }
.points .tag.yours { background: var(--ok-t); color: var(--ok); border-color: rgba(21, 128, 61, .3); }
.points .tag.agreed { background: var(--h-blue-t); color: var(--h-blue-b); border-color: rgba(8, 145, 178, .35); }
.points .rm { border: 0; background: none; color: var(--dim); font-size: 18px; line-height: 1; padding: 2px 7px; border-radius: 8px; flex: none; }
.points .rm:hover { background: rgba(8, 21, 31, .07); color: var(--bad); }
.plain { margin: 0; padding-left: 18px; }
.plain li { margin: 2px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions.flush { margin-top: 0; }
:is(.thread, .auth-panel, .plan-row) .btn { border: 1px solid var(--h-line-2); background: var(--h-glass-2); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 600; transition: border-color .15s, background .15s, filter .15s; }
:is(.thread, .auth-panel, .plan-row) .btn:hover { border-color: rgba(8, 21, 31, .5); background: rgba(8, 21, 31, .06); }
:is(.thread, .auth-panel, .plan-row) .btn.primary { background: linear-gradient(180deg, var(--h-blue-2), var(--h-blue)); border-color: transparent; color: var(--ink); box-shadow: 0 0 22px rgba(8, 145, 178, .45), inset 0 1px 0 rgba(255, 255, 255, .18); }
:is(.thread, .auth-panel, .plan-row) .btn.primary:hover { filter: brightness(1.08); }
:is(.thread, .auth-panel, .plan-row) .btn.big { padding: 13px 36px; font-size: 17px; }
:is(.thread, .auth-panel, .plan-row) .btn:disabled { opacity: .5; cursor: default; filter: none; }
:is(.thread, .auth-panel, .plan-row) a.btn { text-decoration: none; display: inline-block; color: inherit; }
:is(.thread, .auth-panel, .plan-row) a.btn.primary { color: #fff; } /* a face link: light label on the dark pill */
a.out { color: var(--h-blue-b); font-weight: 600; }
.ok-line { color: var(--ok); font-weight: 600; }
.warn-line { color: var(--warn); }
.bad-line { color: var(--bad); }
:is(.thread, .auth-panel, .plan-row) .note { color: var(--soft); font-size: 14px; margin: 10px 0 0; }
:is(.thread, .auth-panel, .plan-row) .note.none { margin: 0; }
:is(.thread, .auth-panel, .plan-row) .badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; background: var(--warn-t); color: var(--warn); border: 1px solid rgba(154, 91, 0, .35); margin-bottom: 10px; }

/* progress: ✓ done, ● current, ○ pending */
:is(.thread, .auth-panel, .plan-row) .steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
:is(.thread, .auth-panel, .plan-row) .steps li { display: flex; align-items: center; gap: 12px; color: var(--soft); }
:is(.thread, .auth-panel, .plan-row) .steps li::before { content: "○"; width: 1.1em; text-align: center; color: rgba(140, 160, 220, .45); font-size: 15px; line-height: 1; flex: none; }
:is(.thread, .auth-panel, .plan-row) .steps li.done { color: var(--ink); } :is(.thread, .auth-panel, .plan-row) .steps li.done::before { content: "✓"; color: var(--ok); font-weight: 700; }
:is(.thread, .auth-panel, .plan-row) .steps li.active { color: var(--ink); font-weight: 600; } :is(.thread, .auth-panel, .plan-row) .steps li.active::before { content: "●"; color: var(--h-blue-b); text-shadow: 0 0 10px var(--h-blue-b); animation: blink 1.2s ease-in-out infinite; }
:is(.thread, .auth-panel, .plan-row) .steps li.skipped { text-decoration: line-through; opacity: .55; }
@keyframes blink { 50% { opacity: .35 } }
:is(.thread, .auth-panel, .plan-row) .bar { height: 6px; border-radius: 999px; background: rgba(8, 21, 31, .08); overflow: hidden; margin-top: 12px; }
:is(.thread, .auth-panel, .plan-row) .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--h-blue), #7fb0ff); width: 0; transition: width .6s; }
.progress-line { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 14px; margin: 16px 0 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(8, 21, 31, .25); border-top-color: var(--h-blue-b); animation: turn .9s linear infinite; flex: none; }
@keyframes turn { to { transform: rotate(360deg); } }
.plan.locked { opacity: .72; }
.plan.locked .rm, .plan.locked .actions { display: none !important; }
.sent-line { color: var(--soft); }

/* READY: the numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 6px; }
:is(.thread, .auth-panel, .plan-row) .stat { background: var(--h-blue-t); border: 1px solid rgba(8, 145, 178, .26); border-radius: 14px; padding: 12px 14px; }
:is(.thread, .auth-panel, .plan-row) .stat b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
:is(.thread, .auth-panel, .plan-row) .stat span { color: var(--soft); font-size: 13px; }

/* forms: login / register / publish */
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.form label { font-size: 13px; color: var(--soft); display: flex; flex-direction: column; gap: 5px; }
.form input { border: 1px solid var(--h-line-2); background: var(--h-glass-3); color: var(--ink); border-radius: 12px; padding: 11px 13px; width: 100%; min-width: 0; }
.form input:focus { outline: 2px solid rgba(111, 157, 255, .9); outline-offset: 0; border-color: transparent; }
textarea:focus { outline: none; }
:is(.thread, .auth-panel, .plan-row) .seg { display: inline-flex; border: 1px solid var(--h-line-2); border-radius: 999px; overflow: hidden; align-self: flex-start; background: var(--h-glass-3); padding: 3px; gap: 2px; }
:is(.thread, .auth-panel, .plan-row) .seg button { border: 0; background: none; padding: 6px 16px; font-size: 14px; border-radius: 999px; color: var(--soft); font-weight: 600; }
:is(.thread, .auth-panel, .plan-row) .seg button.on { background: var(--h-blue); color: var(--ink); box-shadow: 0 0 14px rgba(8, 145, 178, .45); }

.notice { background: var(--warn-t); color: var(--warn); border: 1px solid rgba(154, 91, 0, .35); border-radius: 12px; padding: 9px 13px; font-size: 14px; margin-bottom: 10px; backdrop-filter: blur(10px); }
.notice.bad { background: var(--bad-t); color: var(--bad); border-color: rgba(194, 65, 12, .4); }
.plan-row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.plan-btn { font-size: 14px; padding: 8px 16px; color: var(--ink); border-color: rgba(8, 145, 178, .45); background: rgba(36, 96, 255, .18); box-shadow: 0 0 18px rgba(8, 145, 178, .18); }
.plan-btn:hover { background: rgba(36, 96, 255, .3); }
.plan-btn .short { display: none; }
.pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 10px; }
.chip-file { display: inline-flex; align-items: center; gap: 6px; background: rgba(8, 21, 31, .06); border: 1px solid var(--h-line); border-radius: 10px; padding: 4px 6px 4px 10px; font-size: 13px; max-width: 100%; color: var(--ink); }
.chip-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.chip-file em { font-style: normal; color: var(--soft); font-size: 12px; white-space: nowrap; }
.chip-file button { border: 0; background: none; color: var(--soft); font-size: 16px; padding: 0 4px; }
.plan-summary p { margin: 2px 0 6px; }
.plan-summary .sum-kpis li .detail { color: var(--soft); font-size: 12px; }
.plan-summary li.more { color: var(--soft); font-size: 12px; }
.card.plan details.full { margin-top: 10px; }
.chip-file button.fp-link { font-size: 12px; text-decoration: underline; padding: 0 2px; cursor: pointer; }
.chip-file.busy em { color: var(--h-blue-b); }
.chip-file.warn { background: var(--warn-t); border-color: rgba(154, 91, 0, .3); }
.chip-file.warn em, .points .tag.warn { color: var(--warn); }
.link-row { display: flex; gap: 6px; padding: 2px 4px 10px; }
.link-row input { flex: 1; min-width: 0; border: 1px solid var(--h-line-2); background: var(--h-glass-3); color: var(--ink); border-radius: 10px; padding: 8px 11px; }
.link-row input:focus { outline: 2px solid rgba(111, 157, 255, .9); outline-offset: 0; }
.mini { border: 1px solid transparent; background: var(--h-blue); color: var(--ink); border-radius: 10px; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.mini.ghost { background: var(--h-glass-2); color: var(--soft); border-color: var(--h-line-2); }
.limits { text-align: center; color: var(--dim); font-size: 13px; margin: 22px auto 0; }
/* 0270 — the reply came from the backup assistant (mode cadangan) */
.chip-mode { display: inline-block; margin-top: 6px; background: var(--h-glass-2); color: var(--soft); border: 1px solid var(--h-line-2); border-radius: 10px; padding: 2px 8px; font-size: 12px; }

/* ---------- the file profile and the structure proposal under the chips (0266) ---------- */
.file-profile { flex-basis: 100%; background: rgba(8, 21, 31, .045); border: 1px solid var(--h-line); border-radius: 12px; padding: 10px 13px; font-size: 13px; max-width: 100%; overflow: hidden; }
.file-profile .fp-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.file-profile em { font-style: normal; color: var(--soft); font-size: 12px; }
.file-profile .fp-note { color: var(--soft); margin: 2px 0; }
.file-profile .fp-sheet { margin-top: 6px; }
.file-profile .fp-sheet-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.file-profile .fp-cols { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0; }
.file-profile .fp-col em { margin-left: 3px; }
.file-profile .fp-scroll { overflow-x: auto; max-width: 100%; }
.file-profile .fp-table { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.file-profile .fp-table th, .file-profile .fp-table td { padding: 3px 10px 3px 0; text-align: left; border-bottom: 1px solid rgba(8, 21, 31, .08); }
.file-profile .fp-table th { color: var(--soft); font-weight: 600; }
.file-profile.proposal { background: var(--h-blue-t); border-color: rgba(8, 145, 178, .3); }
.file-profile .fp-part { margin: 4px 0; }
.file-profile .fp-part .label { color: var(--soft); }
.file-profile .fp-tree, .file-profile .fp-gaps { list-style: none; margin: 2px 0 0; padding: 0; }
.file-profile .fp-gaps li { color: var(--warn); }

/* ---------- 0265: the folder card + the structure proposal card ---------- */
.drive .files-list { list-style: none; margin: 0; padding: 0; }
.drive .files-list li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 14px; border-bottom: 1px solid rgba(8, 21, 31, .05); }
.drive .files-list li:last-child { border-bottom: 0; }
.drive .files-list .meta { color: var(--soft); font-size: 12px; white-space: nowrap; margin-left: auto; }
.drive .access { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-left: 10px; background: var(--ok-t); color: var(--ok); border: 1px solid rgba(21, 128, 61, .35); vertical-align: middle; }
.drive .access.bad { background: var(--warn-t); color: var(--warn); border-color: rgba(154, 91, 0, .35); }
.drive .fix { white-space: pre-wrap; margin: 8px 0 0; }
.drive .kind { margin: 6px 0; font-size: 14px; }
.drive .kind .cols { color: var(--soft); }

/* ---------- 0267: the plan as structure ---------- */
.plan .points li { align-items: baseline; }
.plan .points .label { color: var(--soft); font-size: 14px; }
.plan .points .tag { margin-left: 8px; }
.points .detail { color: var(--soft); font-size: 13px; margin-top: 2px; }
.points.tree ul.points { margin: 6px 0 0 14px; padding-left: 12px; border-left: 2px solid rgba(8, 145, 178, .3); }
.points li.lens-head > .body > ul.points { margin-top: 6px; }
.plan details.words { margin-top: 16px; }
.plan details.words summary { cursor: pointer; color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.plan details.words ul { margin-top: 8px; }

/* ---------- the proposal infographic: a light document inside a dark frame ---------- */
.card.ill { padding: 16px; }
.ill-holder { border: 1px solid var(--h-line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.ill-svg { display: block; width: 100%; height: auto; }
.ill-tools { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ill-tools .label { color: var(--soft); font-size: 13px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #0b1020; box-shadow: 0 0 0 1px var(--h-line-2); padding: 0; }
.sw.on { box-shadow: 0 0 0 2px #fff; }
.sw-blue { background: #1a66ff; } .sw-red { background: #c62828; } .sw-green { background: #1b8a4b; } .sw-teal { background: #0f8a8a; } .sw-orange { background: #d9730d; } .sw-purple { background: #6b3fd4; }
@media (min-width: 1000px) { .card.ill { width: min(1180px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); } }
/* 0300 — the build critic's trail */
.critic { margin-top: 12px; border-top: 1px solid rgba(127,127,127,.25); padding-top: 8px; }
.critic-trail { font-weight: 600; margin: 4px 0; }
.critic-score { font-weight: 800; font-size: 1.05em; margin: 4px 0 8px; }
.critic-gate > summary { cursor: pointer; font-weight: 600; padding: 2px 0; }
.critic-gate .plain, .critic-gate .note { margin: 4px 0 4px 14px; }

/* 0321 — badges: Aktual (the person's data) · Model JOT (proposed / inferred) · Demo (synthetic values) */
.points .tag.truth { margin-left: 6px; }
.points .tag.truth.aktual { background: var(--ok-t); color: var(--ok); border-color: rgba(21, 128, 61, .3); }
.points .tag.truth.model { background: var(--h-blue-t); color: var(--h-blue-b); border-color: rgba(8, 145, 178, .35); }
.points .tag.truth.demo { background: var(--warn-t); color: var(--warn); border-color: rgba(154, 91, 0, .3); }
.points ul.attrs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--soft); }

/* 0323 — READY_WITH_ISSUES: amber, not the green READY; a gate below 85 highlighted */
:is(.thread, .auth-panel, .plan-row) .badge.attention { background: var(--warn-t); color: var(--warn); border: 1px solid rgba(154, 91, 0, .35); }
.attention-title { color: var(--warn); }
.attention-list li { color: var(--warn); }
.critic-gate.low > summary { color: var(--warn); font-weight: 600; }

/* ---------- 0338: the dashboard steering card ---------- */
.card.steer { border-color: rgba(8, 145, 178, .3); }
.ladder { margin: 0 0 12px; }
.ladder-head { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.ladder-track { position: relative; height: 8px; border-radius: 999px; background: rgba(8, 21, 31, .07); border: 1px solid var(--h-line); }
.ladder-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--h-blue), var(--h-blue-b)); box-shadow: 0 0 12px rgba(8, 145, 178, .45); }
.ladder-mark { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--h-line-2); }
.ladder-mark.on { background: var(--ok); }
.ladder-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.card.steer .lands { color: var(--h-blue-b); font-size: 13.5px; margin: 2px 0 10px; }
.card.steer .src { font-size: 12.5px; margin: 0 0 4px; }
.opts .opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; width: 100%; }
.opts .opt:hover { border-color: var(--h-line-2); background: rgba(8, 21, 31, .03); }
.opts .opt input { margin-top: 5px; accent-color: var(--h-blue-b); flex: none; }
.opts .key { color: var(--h-blue-b); font-weight: 700; }
.opts .olabel { color: var(--ink); font-weight: 550; }
.opts .detail { display: block; color: var(--soft); font-size: 13px; margin-top: 2px; }
.opts .tag { margin-left: 4px; }
.tag.warn { background: var(--warn-t); color: var(--warn); border-color: rgba(154, 91, 0, .3); }
.steer-add { width: 100%; box-sizing: border-box; margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--h-line-2); background: var(--h-glass-3); color: var(--ink); font: inherit; font-size: 14.5px; }
.item-form { margin: 8px 0; padding: 10px 12px; border: 1px dashed var(--h-line-2); border-radius: 12px; }
.item-form summary { cursor: pointer; color: var(--soft); font-size: 14px; }
.item-form .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.item-form input, .item-form select { flex: 1 1 110px; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--h-line-2); background: var(--h-glass-3); color: var(--ink); font: inherit; font-size: 13.5px; }
.decided li { font-size: 13.5px; color: var(--soft); }
.decided strong { color: var(--ink); font-weight: 600; }
ul.spine { list-style: none; margin: 4px 0 4px 14px; padding: 0 0 0 10px; border-left: 1px solid var(--h-line-2); }
ul.spine li { margin: 4px 0; font-size: 13.5px; }
ul.spine .node { color: var(--ink); font-weight: 550; }
ul.spine .node.r-root { color: var(--h-blue-b); }
ul.spine .node.r-place { color: var(--ok); }
ul.spine .tag { font-size: 11px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--h-line); color: var(--dim); }
@media (max-width: 560px) { .opts .opt { padding: 6px 4px; } .item-form input, .item-form select { flex-basis: 45%; } }
/* 0338 — the stage receipt on the build card */
.receipt-list li { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.receipt-list .mark { display: inline-block; width: 1.2em; text-align: center; }
.receipt-list .rc-ran .mark { color: var(--ok); }
.receipt-list .rc-warn { color: var(--warn); }
.receipt-list .io { color: var(--dim); }

/* 0338f — the plan panel is separate from the conversation; the dock never covers the thread (solid, and the thread keeps room for it) */
.card.steer.collapsed { padding: 10px 14px; display: flex; justify-content: flex-start; background: transparent; box-shadow: none; border-style: dashed; }
.steer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.plan-row { justify-content: flex-start; }
.thread { padding-bottom: 40px; }

/* 0338g — the proposals on the plan panel */
.props li { margin: 6px 0; } .props .opt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prop-label { flex: 1 1 200px; min-width: 0; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--h-line-2); background: var(--h-glass-3); color: var(--ink); font: inherit; font-size: 14px; }
.prop-label.off { opacity: .5; text-decoration: line-through; }
.props .detail { flex-basis: 100%; color: var(--soft); font-size: 12.5px; }

/* ---------- where a design class meets a component of the same name inside the conversation ---------- */
.thread .msg { opacity: 1; transform: none; transition: none; font-size: 16px; line-height: 1.55; }
.thread .msg.user { background: var(--night); color: #EAF6FA; border: 0; box-shadow: 0 0 0 1px rgba(34, 211, 238, .25); }
.thread .msg.jot { background: #fff; box-shadow: 0 0 0 1px var(--h-line), 0 18px 36px -28px rgba(8, 40, 60, .35); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.thread .msg.jot::before { color: var(--cyan-ink); letter-spacing: .04em; font-size: 13px; font-weight: 600; }
.thread .typing { display: block; padding: 2px 6px; color: var(--soft); font-size: 14px; }
.thread .card { background: #fff; border: 0; box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.thread .card.plan { position: static; right: auto; top: auto; width: auto; padding: 20px 22px; box-shadow: 0 0 0 1px var(--edge), 0 0 24px var(--glow), 0 24px 48px -28px rgba(8, 40, 60, .30); }
.thread .card h3 { color: var(--ink); }
.thread .card .group { color: var(--cyan-ink); letter-spacing: .02em; text-transform: none; font-size: 13px; font-weight: 600; }
.thread .why, .thread .node { position: static; left: auto; top: auto; bottom: auto; width: auto; padding: 0; transform: none; box-shadow: none; background: none; display: inline; white-space: normal; }
.thread .mark { width: 1.2em; height: auto; border-radius: 0; background: none; box-shadow: none; display: inline-block; }
.thread .btn, .auth-panel .btn { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); font-weight: 600; }
.thread .btn.primary, .auth-panel .btn.primary { background: var(--night); color: #fff; box-shadow: 0 0 0 1px rgba(34, 211, 238, .45), 0 6px 18px -6px rgba(8, 145, 178, .6); }
.thread .btn.primary:hover { box-shadow: 0 0 0 1px var(--neon), 0 8px 26px -6px rgba(34, 211, 238, .7); filter: none; }
.thread .btn.big { min-height: 48px; padding: 0 30px; font-size: 16px; }
.thread a.btn { display: inline-flex; align-items: center; }
.plan-btn { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--edge); border: 0; }
.plan-btn:hover { background: var(--teal-soft); }
.notice { background: var(--amber-soft); color: var(--amber); border: 0; box-shadow: 0 0 0 1px rgba(154, 91, 0, .25); backdrop-filter: none; }
.notice.bad { background: var(--coral-soft); color: var(--coral); box-shadow: 0 0 0 1px rgba(194, 65, 12, .3); }
.form input, .link-row input, .steer-add, .prop-label, .item-form input, .item-form select { background: #fff; color: var(--ink); }
:is(.thread, .auth-panel, .plan-row) .seg button.on { background: var(--night); color: #fff; box-shadow: none; }
:is(.thread, .auth-panel, .plan-row) .stat b { color: var(--ink); }
.ladder-head, .opts .olabel, ul.spine .node { color: var(--ink); }
.sw { border-color: #fff; } .sw.on { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .steps li.active::before, .typing::after { animation: none; }
  .spin { animation-duration: 1.6s; }
}

/* ---------- small screens (last, so they win) ---------- */
@media (max-width: 600px) {
  .nav .wrap { gap: 8px; min-height: 60px; }
  .brand small { display: none; }
  .nav-r { gap: 6px; }
  .nav-r .btn { padding: 0 12px; font-size: 14px; }
  .lang button { min-width: 38px; }
  .cmd-in { padding: 6px 4px 6px 12px; }
  .cmd textarea { font-size: 16px; }
  .send { padding: 0 14px; }
  .tool { font-size: 13px; padding: 0 8px; }
  .app:not(.is-fresh) .stage { height: 300px; }
  .app:not(.is-fresh) #newChat { display: none; }
  .msg.user { max-width: 92%; } .card { padding: 16px; border-radius: 16px; } .msg.jot { padding: 12px 14px 14px; }
  .plan-btn .long { display: none; } .plan-btn .short { display: inline; }
}
@media (max-width: 380px) { .lang button { min-width: 34px; padding: 0 6px; } .nav-r .btn { padding: 0 10px; } }


/* ---------- JOT 3.0 final design: the conversation inside the hero's left column ---------- */
.c-pub { background: #E6F6EE; color: #047857; }
.is-fresh .thread { display: none; }
.cmd .pending, .cmd .link-row { padding: 6px 10px 0; }
.cmd .link-row { display: flex; gap: 6px; align-items: center; }
.cmd .link-row[hidden] { display: none; }
.cmd .link-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; }
.cmd .mini { border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 700; background: var(--night); color: #fff; }
.cmd .mini.ghost { background: #fff; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
#send:disabled { opacity: .55; cursor: default; }
.limits { color: var(--ink-3); font-size: 13px; margin: 10px 0 0; }
.auth-panel { right: 16px; }
.app:not(.is-fresh) .copyc > .eyebrow, .app:not(.is-fresh) .copyc > h1, .app:not(.is-fresh) .copyc > .lead, .app:not(.is-fresh) #examples, .app:not(.is-fresh) .copyc > .note, .app:not(.is-fresh) .limits,
.app:not(.is-fresh) main > section:not(.hero), .app:not(.is-fresh) footer, .app:not(.is-fresh) .mesh { display: none; }
.app:not(.is-fresh) .hero { overflow: visible; padding: 16px 0 0; }
.app:not(.is-fresh) .copyc { display: flex; flex-direction: column; min-height: calc(100dvh - 96px); min-width: 0; }
.app:not(.is-fresh) .thread { flex: 1; }
.app:not(.is-fresh) #cmd { position: sticky; bottom: 12px; z-index: 6; max-width: none; margin-top: 12px; }
.app:not(.is-fresh) #cmd textarea { min-height: 56px; }
.app:not(.is-fresh) .notice, .app:not(.is-fresh) .plan-row { margin-top: 10px; }
@media (min-width: 1100px) { .app:not(.is-fresh) .comp { position: sticky; top: 92px; } }
@media (max-width: 1099px) { .app:not(.is-fresh) .comp { display: none; } }

/* build progress: every step readable (≥ 4.5:1 on the white card), the pending mark too */
.thread .steps li { color: #3F5262; }
.thread .steps li::before { color: #64748B; }
.thread .steps li.done, .thread .steps li.active { color: #0B1530; }
/* "Sumber web" — a connected public source: PUBLIK (never Aktual) */
.points .tag.truth.publik, .tag.truth.publik { background: var(--h-blue-t); color: var(--h-blue-b); border-color: rgba(8, 145, 178, .35); }

/* the composer never covers the thread's end: its measured height + 24 px (app.js keeps --composer-room current) */
.app:not(.is-fresh) #thread { padding-bottom: var(--composer-room, 24px); }

/* the nav steps aside on a scroll down (narrow screens, app.js) and comes back on a scroll up / at the top */
.nav { transition: transform .25s ease; }
.nav.nav-hidden { transform: translateY(-110%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
/* sign-in reachable on a phone in the light visual too (the design hid it below 700 px) */
@media (max-width: 760px) { .nav #loginBtn.si:not([hidden]) { display: inline-flex; padding: 0 12px; } }
