/* Scott’s Eye pass 2: page-level fixes */

/* Benchmark: one score card holds the table, the review bar and the folded scoring note */
.bm-board { background: var(--paper); border-radius: 16px; padding: 16px 20px; gap: 14px; }
.bm-board .bm-table { margin: 0; }
.bm-board .bm-progress { background: none; border: 0; padding: 0; border-radius: 0; }
.bm-board .bm-how > summary { font-weight: 600; color: var(--muted); min-height: 32px; }
.bm-board .bm-how p { margin: 0; }
@media (max-width: 700px) { .bm-board { padding: 14px; overflow-x: auto; } }
/* An empty list shows one Clear, in the empty box, not a second one on the count line */
.cv:has(.cv-items .ph-empty [data-cv-clear]) .cv-count [data-cv-clear] { display: none; }

/* Home: a quiet link under the three most recent projects */
.home-all { margin: 4px 0 0; }
.home-all a { color: var(--muted); font-weight: 600; }
.home-all a:hover { color: var(--ink); }
[data-cv="home"] .cv-count { display: none; }

/* Search: one search box. The sidebar box is it on a laptop; the page keeps its own on a phone, where the sidebar is hidden */
@media (min-width: 901px) { .sres #sf { display: none; } }
/* A find's page: the labelled body line */
.pfield.find-says { border-bottom: 0; padding: 8px 0; }
.pfield.find-says p { margin: 0; }

/* Copy table: one control row. Laptop: search · Table / Pages · Jump to… · Ask AI (purple) · ⋯ (Columns, Export).
   Phone: search · Ask AI · Options (pages, stages, columns, export), pinned on one line. */
.photos-ui .copy-page .ws-tools select[data-jump] + .kit-select,
.photos-ui .copy-page .ws-tools select[data-more] + .kit-select { display: inline-grid; }
.photos-ui .copy-page .ws-tools select[data-phone] + .kit-select { display: none; }
.copy-page .ws-tools select[data-ai] + .kit-select .ph-select-trigger { background: var(--purple); color: #fff; font-weight: 600; }
.copy-page .ws-tools select[data-ai] + .kit-select .ph-select-trigger svg { color: #fff; }
.copy-page .ws-tools select[data-more] + .kit-select .ph-select-trigger { width: 44px; min-width: 44px; padding: 0; justify-content: center; font-size: 1.25rem; letter-spacing: .05em; }
.copy-page .ws-tools select[data-more] + .kit-select .ph-select-trigger > :not(:first-child) { display: none; }
.photos-ui select[data-more] + .kit-select.menu-select .ph-select-option[aria-disabled="true"]:not(:first-child) { display: flex; min-height: 0; padding: 14px 12px 4px; background: none; cursor: default; font-size: .8125rem; font-weight: 650; text-transform: uppercase; color: var(--muted); }
.photos-ui select[data-more] + .kit-select.menu-select .ph-select-option[aria-disabled="true"] > :not(:first-child) { display: none; }
@media (max-width: 700px) {
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-jump] + .kit-select,
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-more] + .kit-select { display: none; }
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-ai] + .kit-select,
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-phone] + .kit-select { display: grid; flex: none; width: auto; }
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-ai] + .kit-select .ph-select-trigger { width: auto; }
}
@media (max-width: 700px) {
  .copy-page .cv-tools.ws-tools[data-tab="table"] { flex-wrap: wrap; row-gap: 8px; }
  .copy-page .cv-tools.ws-tools[data-tab="table"] .cv-search { flex: 1 1 100%; }
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-ai] + .kit-select,
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select[data-phone] + .kit-select { flex: 1 1 0; }
  .photos-ui .copy-page .cv-tools.ws-tools[data-tab="table"] > select + .kit-select .ph-select-trigger { width: 100%; justify-content: space-between; }
  .copy-page .pgroup { scroll-margin-top: calc(var(--topbar-h) + 120px); }
}

/* Project rows: "Take out of this project" lives in a ⋯ at the end of the row. Laptop: it fades in on hover (its space is always kept); touch: always there */
.proj-row-more > summary { opacity: 0; transition: opacity .15s ease; }
.cv-row:hover .proj-row-more > summary, .cv-card:hover .proj-row-more > summary, .proj-row-more[open] > summary, .proj-row-more > summary:focus-visible { opacity: 1; }
@media (hover: none), (max-width: 900px) { .proj-row-more > summary { opacity: 1; } }
.proj-row-more .more-pop { min-width: 220px; }
.cv-row:has(.proj-row-more) { flex-wrap: nowrap; align-items: flex-start; }
.cv-row:has(.proj-row-more) .cv-row-main { flex: 1 1 auto; min-width: 0; }
.cv-row:has(.proj-row-more) .cv-row-side { flex: none; }
/* One menu style: every ⋯ menu reads in dark text, like the status menu */
.photos-ui .more-pop .linkbtn:not(.danger), .more-pop button.linkbtn:not(.danger) { color: var(--ink); }

/* "In projects" line: with no project it is just the "Add to a project" link (no "Not in a project") */
.in-projects[data-empty] > svg, .in-projects[data-empty] > .ip-list { display: none; }

/* A story idea's one point, a plain line right under the title */
.idea-point { margin: 10px 0 0; font-size: 1.125rem; line-height: 1.45; color: var(--ink); max-width: 62ch; text-wrap: pretty; }

/* Assignment feedback: one line, the status dropdown and "Send feedback" both 44 tall and centred on each other */
.fb-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.fb-row > .kit-select, .fb-row > select { margin: 0; }
.fb-row .ph-select-trigger, .fb-row > .ph-button { min-height: 44px; height: 44px; margin: 0; }

/* Content: a quiet key for the dots, under the search row */
.content-page .ready-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -4px 0 8px; }
.content-page .ready-key > span { display: inline-flex; align-items: baseline; gap: 6px; }
.content-page .theme-n { white-space: nowrap; }
@media (max-width: 700px) {
  /* A piece on a phone reads: title, description, then its status */
  .content-page .ccard > .chead { order: 0; }
  .content-page .ccard > .sub { order: 1; grid-row: auto; }
  .content-page .ccard > .cmeta { order: 2; grid-row: auto; }
  .content-page .ccard > .cproj, .content-page .ccard > .nb { order: 3; }
}

/* Topics (laptop): the table fills its card */
@media (min-width: 701px) { .view table.grid.feeds { display: table; width: 100%; } }
/* Topics: the timeline is one card, one row per year, with a soft bar for how many finds */
.tl-card { padding: 4px 0; display: grid; }
.tl-year { border-bottom: 1px solid var(--line); }
.tl-year:last-child { border-bottom: 0; }
.tl-year > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 12px 52px minmax(0, 1fr) 90px; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; }
.tl-year > summary::-webkit-details-marker { display: none; }
.tl-year > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; }
.tl-year[open] > summary::before { transform: rotate(45deg); }
.tl-year > summary:hover { background: var(--cream); }
.tl-bar { height: 10px; border-radius: 99px; background: var(--control-surface); overflow: hidden; }
.tl-bar > span { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--purple) 55%, transparent); }
.tl-n { color: var(--muted); font-size: .875rem; text-align: right; white-space: nowrap; }
.tl-year .rows { margin: 0 16px 12px; }
@media (max-width: 700px) { .tl-year > summary { grid-template-columns: 12px 44px minmax(0, 1fr) 72px; gap: 8px; padding: 0 12px; } }

/* The report: one bar per AI tool under the first score table, in the desk's tile colours */
.score-bars { display: grid; gap: 10px; margin: 16px 0 24px; padding: 16px 20px; background: var(--paper); border-radius: 16px; }
.sb-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 36px; align-items: center; gap: 12px; }
.sb-name { font-weight: 600; font-size: .9375rem; }
.sb-track { height: 22px; border-radius: 8px; background: var(--control-surface); overflow: hidden; }
.sb-fill { display: block; height: 100%; border-radius: 8px; }
.sb-fill.green { background: #b9d4a3; } .sb-fill.blue { background: #a9cbe0; } .sb-fill.butter { background: #f0d675; } .sb-fill.lilac { background: #cbb9ef; } .sb-fill.peach { background: #ffbf9c; }
.sb-n { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .score-bars { padding: 14px; } .sb-row { grid-template-columns: 104px minmax(0, 1fr) 30px; gap: 8px; } .sb-name { font-size: .875rem; } }
@media (min-width: 701px) { .doc-body table.grid { display: table; width: 100%; } }
