:root, [data-theme="light"] {
  --bg: #f6f4f1; --panel: #ffffff; --ink: #1d1a17; --muted: #615a52; --line: #e0d9d1; --soft: #efeae4;
  --accent: #0f6e78; --accent-ink: #ffffff; --accent-soft: #dcf0f1; --bad: #a8201a; --ok: #1f6b3a; --warn-bg: #fff1d6;
  --mod: #b49be6; --vig: #6b3fc0; --lit: #d6cdc2; --goal: #1f6b3a; --shadow: 0 1px 2px rgba(40,25,10,.05), 0 6px 18px rgba(40,25,10,.05);
}
[data-theme="dark"] {
  --bg: #14110f; --panel: #1d1916; --ink: #efe8e1; --muted: #b3a89c; --line: #352e28; --soft: #27221e;
  --accent: #6fd3dc; --accent-ink: #062a2e; --accent-soft: #163a3e; --bad: #ff9c94; --ok: #8fd6a6; --warn-bg: #33280f;
  --mod: #7a64b0; --vig: #b69cff; --lit: #4a423b; --goal: #8fd6a6; --shadow: 0 1px 2px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
a { color: var(--accent); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .bad { color: var(--bad); } .strong { font-weight: 600; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo { color: var(--accent); flex: none; }
.brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.backlink { text-decoration: none; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.credits { font-size: .86rem; color: var(--muted); }
.topup { font-size: .86rem; }

button { font: inherit; cursor: pointer; border-radius: 10px; min-height: 40px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 8px 20px; font-weight: 600; }
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.primary.wide { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font-size: 1.05rem; min-height: 48px; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; }
.ghost:hover:not(:disabled) { background: var(--soft); }
.ghost.sq { width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ghost.strong { font-weight: 600; border-color: var(--accent); color: var(--accent); }
.quiet { background: none; border: none; color: var(--accent); padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { background: none; border: none; color: var(--accent); padding: 4px 0; min-height: 40px; text-align: left; font-weight: 600; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.hero { padding: 22px 0 8px; max-width: 760px; }
h1 { font-size: clamp(1.55rem, 4.6vw, 2.25rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.lede { margin: 0 0 10px; color: var(--muted); font-size: 1.04rem; }
.perks { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.perks li { font-size: .82rem; background: var(--accent-soft); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
textarea, select, input[type=text], input[type=number] { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
input[type=text], input[type=number], select { min-height: 40px; padding: 6px 10px; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.start { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; position: relative; border-style: dashed; border-width: 2px; }
.start.dragging { border-color: var(--accent); background: var(--accent-soft); }
.start > label.field { color: var(--ink); font-weight: 600; margin: 0; font-size: 1rem; }
.msgarea { display: block; width: 100%; font-size: .95rem; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.startrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.startrow .primary { min-width: 170px; min-height: 46px; }
.startrow .ghost { min-height: 46px; }
.startsub { margin: 0; }
.drophint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: var(--accent); background: var(--accent-soft); border-radius: 12px; pointer-events: none; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.chipbtn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; min-height: 40px; }
.chipbtn:hover, .chipbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.msg.bad { background: var(--warn-bg); color: var(--ink); border-left: 3px solid var(--bad); }

.work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-top: 16px; align-items: start; scroll-margin-top: 64px; }
.viewer { padding: 14px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sourceline { margin: 0 0 4px; overflow-wrap: anywhere; }
.headline { margin: 0 0 12px; line-height: 1.45; font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.count { color: var(--muted); font-weight: 500; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); margin: 0 0 8px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.tile { background: var(--soft); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tile b { display: block; font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: .8rem; color: var(--muted); }
.tile.good b { color: var(--ok); } .tile.low b { color: var(--bad); }

/* week chart */
.chartwrap { margin: 0 0 6px; }
.weekchart { display: block; width: 100%; height: auto; }
.weekchart .lbl { font-size: 10px; fill: var(--muted); font-family: system-ui, -apple-system, sans-serif; }
.weekchart .val { font-size: 10px; fill: var(--ink); font-family: system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.weekchart .bm { fill: var(--mod); } .weekchart .bv { fill: var(--vig); } .weekchart .bl { fill: var(--lit); }
.weekchart .gl { stroke: var(--goal); stroke-width: 1.2; stroke-dasharray: 4 3; }
.weekchart .gl2 { stroke: var(--goal); stroke-width: 1; stroke-dasharray: 1 3; }
.weekchart .gt { font-size: 10px; fill: var(--goal); font-family: system-ui, -apple-system, sans-serif; }
.weekchart .sd { fill: var(--ink); }
.weekchart .base { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin: 0 0 12px; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend .km { background: var(--mod); } .legend .kv { background: var(--vig); } .legend .ks { background: var(--ink); border-radius: 50%; width: 7px; height: 7px; }
.legend .kg { background: none; border-top: 2px dashed var(--goal); height: 0; width: 14px; border-radius: 0; vertical-align: 3px; }

.exportbox { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exp-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-grid .ghost { flex: 1 1 auto; }
#exportMsg { margin: 0; } #exportMsg:empty { display: none; }

/* report sections */
.block { margin: 0; }
.warnlist { list-style: none; margin: 4px 0 0; padding: 0; }
.warnlist li { background: var(--warn-bg); border-left: 3px solid var(--bad); padding: 8px 10px; border-radius: 6px; margin: 6px 0; font-size: .92rem; }
.okline { margin: 4px 0; color: var(--ok); font-size: .92rem; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; }
.facts li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.facts li:last-child { border-bottom: none; }
.facts .k { color: var(--muted); }
.facts .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; }
.bars li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(40px, 1fr) 3.4em; gap: 8px; align-items: center; font-size: .88rem; }
.bars .bl2 { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .bt { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.bars .bf { display: block; height: 100%; background: var(--mod); border-radius: 5px; }
.bars .bf.v { background: var(--vig); } .bars .bf.l { background: var(--lit); }
.bars .bn { text-align: right; font-variant-numeric: tabular-nums; }
.dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 6px 0 0; }
.dows div { text-align: center; font-size: .78rem; color: var(--muted); }
.dows b { display: block; margin: 0 auto 3px; width: 100%; max-width: 60px; white-space: nowrap; font-size: .78rem !important; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-size: .85rem; padding: 6px 0; font-variant-numeric: tabular-nums; }
.dows b.top { background: var(--accent); color: var(--accent-ink); }
.miles { list-style: none; margin: 6px 0 0; padding: 0; font-size: .9rem; }
.miles li { padding: 4px 0 4px 22px; position: relative; }
.miles li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tablewrap { overflow-x: auto; margin: 6px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.stable { border-collapse: collapse; width: 100%; font-size: .84rem; }
.stable th, .stable td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.stable td.num, .stable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stable td.wrap { white-space: normal; min-width: 9em; overflow-wrap: anywhere; }
.stable tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .76rem; }
.tag.light { background: var(--soft); } .tag.moderate { background: var(--accent-soft); } .tag.vigorous { background: var(--vig); color: var(--accent-ink); }
.tag.met, .tag.extra { background: rgba(31,107,58,.14); color: var(--ok); } .tag.under { background: var(--warn-bg); color: var(--bad); }
.group { border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; margin: 8px 0; background: var(--bg); }
.group summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.group > *:last-child { margin-bottom: 10px; }
.rows { list-style: none; margin: 4px 0 0; padding: 0; font-size: .88rem; }
.rows li { padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 10px; overflow-wrap: anywhere; }
.rows li:last-child { border-bottom: none; }
.rows .ln { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; min-width: 0; overflow-wrap: anywhere; }
.rows .why { color: var(--muted); font-size: .84rem; }
.notmed { margin: 14px 0 0; padding: 8px 10px; background: var(--soft); border-radius: 8px; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; color: var(--accent); padding: 8px 0; min-height: 40px; font-weight: 600; }
.optgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.optgrid label.field { margin: 0 0 6px; }
.optgrid input, .optgrid select { width: 100%; }

/* AI */
.ai { padding: 12px 14px; }
.ai summary { cursor: pointer; font-weight: 600; padding: 4px 0; min-height: 40px; }
.sum-t { font-weight: 600; }
.badge { font-size: .74rem; font-weight: 500; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.hint { font-size: .88rem; color: var(--muted); margin: 8px 0; }
.hint.strong { color: var(--ink); }
.hint.bad { color: var(--bad); }
.hint:empty { display: none; }
.warn-soft { background: var(--warn-bg); color: var(--ink); padding: 8px 10px; border-radius: 8px; }
.ai label.field input { width: 100%; }
.ai-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.progress { margin-top: 10px; padding: 10px; background: var(--soft); border-radius: 10px; }
.progresshead { display: flex; justify-content: space-between; }
.steps { margin: 6px 0 0; padding-left: 20px; font-size: .9rem; color: var(--muted); }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--ok); }
.report { margin-top: 10px; font-size: .9rem; }
.report p { margin: 6px 0; }
.report h3 { font-size: .95rem; margin: 14px 0 4px; }
.report .flags { background: var(--warn-bg); border-radius: 8px; padding: 6px 10px 6px 26px; margin: 4px 0 8px; }
.report .flags li { color: var(--bad); }
.sugs { list-style: none; margin: 4px 0 0; padding: 0; }
.sugs li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sugs li:last-child { border-bottom: none; }
.sugs .cat { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sugs .basis { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.plan { list-style: none; margin: 4px 0 0; padding: 0; }
.plan li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.plan li.rest { color: var(--muted); }
.plan .d { font-weight: 700; }

.history { margin-top: 16px; padding: 14px; }
.historylist { list-style: none; padding: 0; margin: 8px 0 0; }
.historylist li { padding: 2px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }

.about { margin-top: 32px; max-width: 760px; }
.about h2 { font-size: 1.2rem; margin: 22px 0 8px; }
.howlist { padding-left: 20px; } .howlist li { margin: 6px 0; }
.faq dt { font-weight: 600; margin-top: 12px; } .faq dd { margin: 4px 0 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 18px 16px 30px; text-align: center; color: var(--muted); font-size: .88rem; }
.foot p { margin: 4px 0; }

/* docs pages */
.doc { max-width: 900px; padding-top: 18px; }
.doc h1 { font-size: 1.8rem; } .doc h2 { margin-top: 28px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: .84rem; line-height: 1.45; margin: 0; }
.codegroup { margin: 10px 0 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tab { background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 4px 10px; min-height: 34px; font-size: .84rem; }
.tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.statebox { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); }
.statebox p { margin: 4px 0; }
.tokenrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tokenbox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); width: 100%; }
.mini { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 6px 12px; border-radius: 10px; }

/* drop zone */
.dropzone { text-align: center; justify-items: center; padding: 22px 14px; }
.droptitle { margin: 0; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.dropzone .startrow { justify-content: center; }
.periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.toplist { margin: 4px 0 0; padding-left: 1.7em; font-size: .92rem; }
.toplist li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.toplist li:last-child { border-bottom: none; }
.toplist li { display: list-item; }
.toplist li > .tt { display: inline-flex; flex-direction: column; min-width: 0; max-width: calc(100% - 7.5em); vertical-align: top; overflow-wrap: anywhere; }
.toplist li > .tn { float: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; text-align: right; max-width: 7.5em; }
.toplist .sub { color: var(--muted); font-size: .84rem; }
.toplist.pl li.off b { color: var(--bad); }
.hourchart { display: block; width: 100%; height: auto; margin: 4px 0 8px; }
.hourchart .lbl { font-size: 11px; fill: var(--muted); font-family: system-ui, -apple-system, sans-serif; }
.hourchart .bm { fill: var(--mod); } .hourchart .bv { fill: var(--vig); }
.themechips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chipbtn.small { font-size: .84rem; }
#historyShow { margin-top: 10px; }

@media (max-width: 880px) {
  .work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .topbar { padding: 8px 12px; }
  .hero { padding-top: 14px; }
  .lede { font-size: .98rem; }
  .msgarea { min-height: 84px; }
  .startrow .primary { flex: 1 1 auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .optgrid { grid-template-columns: minmax(0, 1fr); }
  .bars li { grid-template-columns: minmax(0, 7em) minmax(30px, 1fr) 3em; }
}

/* duplicate-photo-finder */
.readbar { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 10px 0 0; }
.readbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.optrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 12px; }
.optrow .field.inline { display: inline-flex; flex-direction: row; grid-template-columns: none; align-items: center; gap: 8px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.thumb { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); overflow: hidden; min-height: 40px; }
.thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.thumb .cap { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px 8px; font-size: .8rem; min-width: 0; }
.thumb .cap b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .cap .sub { color: var(--muted); font-size: .74rem; }
.thumb .tag { position: absolute; top: 6px; left: 6px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.thumb .tag.ok { background: var(--accent); color: var(--accent-ink); }
.thumb .tag.off { background: rgba(20, 17, 15, .72); color: #ffffff; }
.thumb.keeper { border-color: var(--accent); }
.thumb.aside img { opacity: .55; filter: grayscale(.5); }
button.thumb:hover { border-color: var(--accent); }
button.thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.thumb.static { cursor: default; }
.ghead { margin: 0 0 4px; }
.album { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
@media (max-width: 480px) { .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .optrow { gap: 4px 12px; } }


.warnbox { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); border-left: 3px solid var(--bad); font-size: .92rem; }
.warnbox p { margin: 2px 0; }
.dropzone { position: relative; }

.optgrid.one { grid-template-columns: minmax(0, 1fr); }
.importhint { margin: 0; }
.rows .ln { overflow-wrap: anywhere; }
.report details > summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }
.rows .ln { font-family: inherit; font-size: .9rem; }

/* ---- highlight reel */
.work { grid-template-columns: minmax(0, 1fr) 400px; }
.stage { position: relative; background: #000; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; align-items: center; margin: 0 0 10px; min-height: 160px; }
.reelcanvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; }
.playbtn { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.66); color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 6px 14px; font-weight: 600; }
.playbtn.on { background: rgba(168,32,26,.85); }
.playtime { position: absolute; right: 10px; bottom: 12px; margin: 0; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; }
.recbox { margin: 8px 0 0; }
.recbar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.recbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s linear; }
.moments { padding: 14px; }
.srcvideo { display: block; width: 100%; max-height: 260px; background: #000; border-radius: 10px; margin: 8px 0 6px; }
.loudness { display: block; width: 100%; height: 56px; border-radius: 8px; cursor: pointer; touch-action: manipulation; }
.markrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0; }
.marklist { list-style: none; margin: 6px 0 0; padding: 0; }
.mark { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mark .timebtn { font-variant-numeric: tabular-nums; min-width: 64px; }
.mark input { min-width: 0; width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.mark .why { grid-column: 2; color: var(--muted); font-size: .8rem; }
.mark .quiet { grid-column: 3; grid-row: 1; }
.marklist .okline { color: var(--muted); padding: 6px 0; }
.shots { padding-left: 20px; margin: 6px 0 10px; font-size: .92rem; }
.shots li { margin: 4px 0; overflow-wrap: anywhere; }
.field input[type=text] { width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
@media (max-width: 880px) { .work { grid-template-columns: minmax(0, 1fr); } }
