/* Team home: galleries and selects with the seven progress dots (moved here from 226 Ops, Oct 30).
   226 brand: square modules, pill buttons. */
.home h1 { margin: 18px 0 0; }

/* the seven dots: filled = done, ring = not yet (colors from the 226 palette, decided Oct 29) */
.dots { display: inline-flex; gap: 7px; align-items: center; flex: none; }
.dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--c); background: transparent; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(29,33,32,.08); }
.dot.on { background: var(--c); }
.dot svg { width: 10px; height: 10px; display: none; }
button.dot { padding: 0; cursor: pointer; }
button.dot:hover, button.dot:focus-visible { box-shadow: 0 0 0 1px rgba(29,33,32,.08), 0 0 0 4px rgba(229,186,33,.35); outline: none; }
.dot.on svg { display: block; }
.dot[data-k=uploaded] { --c: #8E918F; }
.dot[data-k=sent] { --c: var(--french-blue); }
.dot[data-k=submitted] { --c: var(--gold); }
.dot[data-k=reviewed] { --c: var(--copper); }
.dot[data-k=retouched] { --c: var(--hunter); }
.dot[data-k=retouchedSent] { --c: var(--french-blue); }
.dot[data-k=closed] { --c: var(--emerald); }

/* videos (Oct 30): their own two steps, a smaller second row under the photo dots, only for galleries with videos */
.prog { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vdots { gap: 6px; }
.vdots .dot, .vlegend .dot { width: 11px; height: 11px; border-width: 1.5px; }
.dot[data-k=videoNotes] { --c: var(--gold); }
.dot[data-k=videoSent] { --c: var(--french-blue); }
.vnext { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.vnext.todo { color: var(--text); }
.legend .vlegend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12.5px; padding-top: 8px; border-top: 1px solid var(--line); }
.vlegend > span { display: inline-flex; align-items: center; gap: 6px; }
.vlegend .eyebrow { font-size: 10px; }
.fchips .vf { margin-left: 10px; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1 1 260px; max-width: 420px; }
.seg { display: inline-flex; gap: 6px; margin-left: auto; }
/* Card size slider (cards view only): sets --card-min, the narrowest a card may be. */
.csize { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); }
.csize[hidden] { display: none; }
.csize:not([hidden]) + .seg { margin-left: 0; }
.csize input[type=range] { width: 140px; accent-color: var(--emerald); cursor: pointer; }
.home .btn[aria-pressed=true] { background: var(--emerald); border-color: var(--emerald); color: var(--sand); }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.fchips .n { color: var(--muted); font-size: 12px; }
.fchips [aria-pressed=true] .n { color: #C9D6D0; }

/* list: square rows */
.list { background: var(--surface); border: 1px solid var(--line); }
.list-head, .row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px 210px 170px; gap: 16px; align-items: center; padding: 12px 16px; }
.list-head { color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--bg); }
.name { display: flex; flex-direction: column; min-width: 0; }
.name .t { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name .t a { color: inherit; text-decoration: none; }
.name .t a:hover { text-decoration: underline; }
.sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel { font-size: 14px; color: var(--muted); }
.sel b { color: var(--text); font-weight: 700; }
.sel.over b { color: var(--copper); }
.next { font-size: 14px; }
.next.closed { color: var(--muted); }
.acts { text-align: right; }
.draft.reopened { color: var(--hunter); border-color: var(--hunter); }
.draft { font-family: var(--font-eyebrow); font-size: 9.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: var(--copper); border: 1px solid var(--copper); padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

/* Open + More */
.gacts { display: inline-flex; gap: 6px; align-items: center; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more .menu { min-width: 210px; }

/* cards: square modules */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card-min, 270px), 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; container-type: inline-size; }
/* The gallery's cover, 3:2, square corners. The three-dot menu opens down from the top right. */
.card .cover { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--sand); border-bottom: 1px solid var(--line); }
.card .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Only portraits in the gallery: the 3:2 card shows a landscape crop, kept high so faces stay in. */
.card .cover img.crop { object-position: 50% 25%; }
/* Eye (open) in the middle, three dots (more) top right: shown on hover or focus, or after one tap on touch screens. */
.card .eye, .card .dots { opacity: 0; pointer-events: none; transition: opacity .15s; }
.card:hover .eye, .card:hover .dots, .card:focus-within .eye, .card:focus-within .dots, .card.touched .eye, .card.touched .dots, .card .dots[open] { opacity: 1; pointer-events: auto; }
.card .eye { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; }
.card .dots { position: absolute; top: 8px; right: 8px; z-index: 2; }
.card .dots summary { list-style: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.card .dots summary::-webkit-details-marker { display: none; }
.card .body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 a.ttl { color: inherit; text-decoration: none; }
.card h2 a.ttl:hover { text-decoration: underline; }
.card h2 { font-family: var(--font-heading); font-weight: 400; font-size: 21px; line-height: 1.2; margin: 0; }
.card .next { margin: 0; }
.card .next .lbl { color: var(--muted); }
/* Small cards: tighter text so more fit without crowding. */
@container (max-width: 230px) {
  .card .body { padding: 12px 12px 12px; gap: 8px; }
  .card h2 { font-size: 17px; }
  .card .next { font-size: 13px; }
}

.empty { background: var(--surface); border: 1px solid var(--line); padding: 28px 24px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; font-size: 13px; color: var(--muted); align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .hint { flex-basis: 100%; margin: 0; }
/* Cards view: the last row of cards needs more air above the legend than the list does. */
#body:has(> .cards) + .legend { margin-top: 48px; }
.tip { position: fixed; z-index: 80; background: var(--ink); color: var(--sand); padding: 8px 11px; font-size: 13px; pointer-events: none; box-shadow: var(--shadow); max-width: 260px; }
.tip b { display: block; font-weight: 700; }
.tip .t2 { color: #C9D6D0; }

/* phone: each row becomes a small stacked block */
@media (max-width: 760px) {
  .seg { margin-left: 0; }
  .csize, .csize[hidden] { display: none; } /* one or two cards across on a phone; nothing to scale */
  .list-head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "dots dots" "sel acts" "next acts"; gap: 6px 12px; }
  .row .name { grid-area: name; }
  .row .prog { grid-area: dots; margin: 4px 0; }
  .row .sel { grid-area: sel; }
  .row .next { grid-area: next; }
  .row .acts { grid-area: acts; align-self: center; }
  .name .t { white-space: normal; }
}
