/* The first page's three tiles (owner, 2026-11-11; what is inside each since 2026-11-12; views/home.html): three
   equal tiles side by side, one under the other in a narrow window, centred in the space under the header and
   about 600 px tall on a normal screen. White cards on the page's grey, as Transcribe's. */
.hc-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 8px 0 16px; }
.hc-welcome { text-align: center; }
.hc-welcome h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; color: var(--body-text); }
.hc-welcome p { margin: 0; font-size: 15px; color: var(--muted); }
/* Four tiles since 8.0.17 (Arash, 2026-11-15: Analyses after Matters): four across, two by two in a middling
   window, one under the other in a narrow one. */
.home-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-choice { display: flex; flex-direction: column; gap: 18px; min-height: clamp(420px, 62vh, 600px);
  padding: 26px 24px 20px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; color: var(--body-text);
  box-shadow: 0 1px 3px rgba(15,27,45,0.06); transition: border-color 0.15s, box-shadow 0.15s; }
.home-choice:hover, .home-choice:focus-within { border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
  box-shadow: 0 4px 16px rgba(15,27,45,0.10); }
/* The first day's first step carries the gold edge (owner, 2026-11-12). */
.hc-step-first { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 4px 16px rgba(15,27,45,0.08); }
.home-choice.hc-drop-over { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

/* The owner's own icons, one even gold, almost flat (2026-11-12), about 76 px with no square behind them, as
   gold on gold loses the shape; the name and the line beside each. One file each in static/icons/. */
.home-choice-head { display: flex; align-items: center; gap: 16px; }
.home-choice-icon { flex: 0 0 76px; width: 76px; height: 76px; display: block; object-fit: contain; }
.hc-step { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-ink); }
.home-choice-name { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; }
.home-choice-name a { color: var(--body-text); }
.home-choice-name a:hover { color: var(--accent-ink); text-decoration: none; }
.home-choice-line { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* What is inside: fills the middle; the link at the bottom sits on the tile's floor. */
.hc-inside { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.hc-empty { justify-content: center; align-items: center; text-align: center; }
.hc-quiet { margin: 0; font-size: 14px; color: var(--muted); }
.hc-quieter { font-size: 14px; opacity: 0.8; }
.hc-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); }
.hc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px;
  font-weight: 500; color: var(--accent-ink); }
.hc-foot-text { margin-bottom: 0; color: var(--muted); font-weight: 400; }

/* Transcribe: the recording working now, then the counts. */
/* Grey, the bar navy (Arash, 2026-11-28: the cream box "too yellow"; navy is "one of our signature colors"). */
.hc-run { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px;
  background: var(--chip); border: 1px solid var(--border); }
.hc-run-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-bar { width: 100%; height: 8px; border: none; border-radius: 4px; overflow: hidden; appearance: none;
  background: color-mix(in srgb, var(--muted) 18%, transparent); }
.hc-bar::-webkit-progress-bar { background: color-mix(in srgb, var(--muted) 18%, transparent); border-radius: 4px; }
.hc-bar::-webkit-progress-value { background: var(--play-bg); border-radius: 4px; transition: width 0.4s; }
.hc-bar::-moz-progress-bar { background: var(--play-bg); border-radius: 4px; }
.hc-run-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.hc-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.hc-count { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; color: var(--body-text); }
.hc-count:hover { text-decoration: none; border-color: var(--border-control); }
.hc-count span { font-size: 13.5px; color: var(--muted); }
.hc-count strong { margin-top: 2px; font-size: 26px; font-weight: 600; }
/* A press anywhere on a tile opens its page, as the top bar does (Arash, 2026-11-12); its own links and boxes
   keep their own action. static/home-tiles.js. */
.home-choice.hc-click { cursor: pointer; }
.home-choice.hc-click :is(input, textarea, select, form, .hc-recent) { cursor: auto; }
.hc-drop { flex: 1; justify-content: center; align-items: center; text-align: center; cursor: pointer;
  border: 2px dashed var(--border-strong); border-radius: 12px; padding: 20px;
  background: var(--chip); }
.hc-drop:hover, .hc-drop:focus-within { border-color: var(--border-control); }
.hc-drop-big { font-size: 16px; font-weight: 600; color: var(--body-text); }
.hc-drop-small { font-size: 14px; color: var(--accent-ink); text-decoration: underline; }
.hc-sending { margin: 0; font-size: 14px; color: var(--muted); }
.hc-sending.hc-sending-error { color: var(--danger, #b42318); }

/* Matters: the latest three, the gold note. */
.hc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 14.5px; }
.hc-list li:last-child { border-bottom: none; }
.hc-list a { font-weight: 500; color: var(--body-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-list a:hover { color: var(--accent-ink); }
.hc-list span { flex-shrink: 0; font-size: 14px; color: var(--muted); }
/* The transcripts not filed: the dark navy note, as elsewhere (Arash, 2026-11-12: not the yellow with a gold bar). */
.hc-note { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #fff;
  background: var(--navy); border: 1px solid rgba(212,160,23,0.35); }
.hc-note:hover { text-decoration: none; color: #fff; border-color: var(--gold); }
.hc-new { width: 100%; }
.hc-new summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.hc-new summary::-webkit-details-marker { display: none; }
.hc-new form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.hc-new label { font-size: 14px; color: var(--muted); }

/* Search hearings: a real search box, and the last searches as chips that run them again. */
.hc-recent { display: flex; flex-direction: column; gap: 8px; }
.hc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Grey, as the Transcribe box (Arash, 2026-11-28). */
.hc-chip { max-width: 100%; padding: 5px 12px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 14px; color: var(--body-text); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; background: var(--chip); }
.hc-chip:hover { text-decoration: none; border-color: var(--border-control); }
.hc-clear { display: inline; margin: 0; }
.hc-clear .btn-link { border: none; background: none; padding: 2px 4px; font-size: 13.5px; color: var(--muted);
  text-decoration: underline; cursor: pointer; }
.hc-find { flex-direction: row; align-items: flex-start; flex: 0 0 auto; }
.hc-find input { flex: 1; min-width: 0; }
.hc-search .hc-inside.hc-find + .hc-foot { margin-top: auto; }

/* Analyses: the latest three, each with its state's dot, and its matter. */
.hc-an-list li { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0; }
.hc-an-list a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hc-an-list a .dot { flex: none; }
.hc-an-list li > span { padding-left: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1240px) {
  .home-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-choice { min-height: clamp(300px, 38vh, 420px); }
}
@media (max-width: 760px) {
  .home-choices { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-choice { min-height: 0; padding: 22px 20px 18px; }
  .hc-wrap { justify-content: flex-start; }
}
.hc-find .btn { width: auto; flex: none; }   /* under 640 px every button is full width: not this one (8.0.20) */
