@import url("../screening/screening.css");

/* Layout: thread on the left, the working step on the right */
.o-grid { display: grid; gap: 16px; grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.o-steps li { padding: 0; background: none; border: 0; }
.o-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.o-steps button span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); font-size: 12px; }
.o-steps button:hover { border-color: var(--ink); color: var(--ink); }
.o-steps li.is-current button { color: var(--ink); border-color: var(--ink); background: var(--white); }
.o-steps li.is-done button span { background: var(--blue); color: #fff; }

/* The thread */
.thread { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.t-item { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.t-item.is-new { border-color: var(--ink); background: var(--white); }
.t-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.t-topic { font-weight: 700; font-size: 14.5px; }
.t-blurb { color: var(--muted); font-size: 13px; line-height: 1.4; }
.chip-positive { background: var(--mint); color: var(--mint-ink); }
.chip-concern { background: var(--butter); color: var(--butter-ink); }
.chip-development { background: #dfe8fb; color: #1b3f94; }
.chip-routine { background: var(--paper); color: var(--muted); }

.metric { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.metric h4 { font-size: 13.5px; margin-bottom: 8px; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.bar-track { position: relative; height: 10px; border-radius: 999px; background: var(--paper); }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--blue); }
.bar-target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.metric .hint { margin-top: 8px; }

/* Step panels */
.o-main h3 { margin-bottom: 4px; }
.lines { list-style: none; display: grid; gap: 8px; margin: 14px 0; }
.line { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
.line.is-out { color: var(--muted); }
.line.is-out .line-text { text-decoration: line-through; text-decoration-color: var(--field); }
.line-top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.line-text { flex: 1 1 260px; }
.line-as { font-size: 13.5px; color: var(--mint-ink); background: var(--mint); padding: 8px 12px; border-radius: 10px; }
.fix { margin-top: 4px; padding: 14px; border-radius: 12px; background: var(--butter); color: var(--butter-ink); display: grid; gap: 10px; }
.fix p { font-size: 14.5px; font-weight: 600; }
.fix-options { display: grid; gap: 8px; }
.fix-opt { text-align: left; padding: 10px 14px; border-radius: 10px; background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 14.5px; min-height: 44px; }
.fix-opt:hover { border-color: var(--ink); }
.fix-hint { font-size: 14px; font-weight: 500; }
.tally { font-size: 14px; color: var(--muted); }
.callout { padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: 15px; display: grid; gap: 10px; justify-items: start; }
.callout.good { background: var(--mint); color: var(--mint-ink); }

/* The structured entry */
.entry { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.entry-head { padding: 14px 16px; background: var(--paper); display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.entry-head strong { color: var(--ink); font-size: 16px; }
.entry section { padding: 14px 16px; border-top: 1px solid var(--line); }
.entry h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 8px; }
.entry ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.entry li { padding-left: 16px; position: relative; }
.entry li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.pending { color: var(--butter-ink); background: var(--butter); padding: 10px 12px; border-radius: 10px; margin-left: -16px; padding-left: 16px; }
.pending::before { display: none; }
.snap { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.snap p.theme { grid-column: 1 / -1; font-family: "Instrument", Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--blue-text); }
.owner { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--paper); margin-right: 6px; }
.due { color: var(--muted); font-size: 13px; }

/* Preparing the next meeting */
.prep { list-style: none; display: grid; gap: 12px; margin-top: 14px; counter-reset: prep; }
.prep > li { counter-increment: prep; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.prep > li::before { content: counter(prep); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; }
.prep h4 { font-size: 15px; margin-bottom: 6px; }
.prep ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 28px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check label { cursor: pointer; }
.tag-carry { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--butter); color: var(--butter-ink); margin-left: 6px; white-space: nowrap; }
.none { color: var(--muted); font-style: italic; font-size: 14px; }
.skipped { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* Trend */
.trend { display: grid; gap: 12px; margin-top: 14px; }
.trend-block { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.trend-block h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 6px; }
.trend-block ul { list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.rule-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

.flow-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) { .o-grid { grid-template-columns: minmax(0, 1fr); } .flow-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .snap { grid-template-columns: 1fr; } .flow-4 { grid-template-columns: 1fr; } .prep > li { grid-template-columns: 1fr; } .prep > li::before { margin-bottom: 4px; } }
