/* Home, voice first (to the approved mock, laser-office-home 2026-11-22): Hope's whole portrait, uncropped, with an amber glow
   ONLY while she speaks; her words under her; huge buttons that change with the moment; today's emails; her notes; doors. */
.hh { position: relative; display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 3.2vw, 42px); border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  background: radial-gradient(620px 400px at 18% 40%, rgba(246, 184, 94, .16), transparent 70%), linear-gradient(160deg, var(--panel), var(--panel-2)); }
.hh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/admin/img/welcome.webp') right center / cover no-repeat; opacity: .06; }
[data-theme="dark"] .hh { background: radial-gradient(620px 400px at 18% 40%, rgba(246, 184, 94, .16), transparent 70%), linear-gradient(160deg, #12243a, #0b1829); }
[data-theme="dark"] .hh::after { opacity: .1; }
.hh-who { display: grid; justify-items: center; text-align: center; gap: 6px; }
.hh-ring { position: relative; width: min(330px, 70vw); aspect-ratio: 1; border-radius: 30px; padding: 6px; background: linear-gradient(145deg, #ffd08f, #f6b85e 45%, #b8730a); box-shadow: 0 24px 60px rgba(7, 16, 29, .3); transition: box-shadow .35s; }
.hh-ring img { width: 100%; height: 100%; border-radius: 25px; object-fit: contain; background: #0b1f45; }
.hh-ring::before { content: ""; position: absolute; inset: -28px; border-radius: 48px; z-index: -1; background: radial-gradient(closest-side, rgba(246, 184, 94, .6), rgba(246, 184, 94, .18) 60%, transparent); opacity: 0; transition: opacity .35s; }
.hh-ring.speaking { box-shadow: 0 0 0 6px rgba(246, 184, 94, .3), 0 0 70px 18px rgba(246, 184, 94, .55), 0 24px 60px rgba(7, 16, 29, .3); animation: hhHalo 1.8s ease-in-out infinite; }
.hh-ring.speaking::before { opacity: 1; }
@keyframes hhHalo { 0%, 100% { box-shadow: 0 0 0 5px rgba(246, 184, 94, .25), 0 0 46px 12px rgba(246, 184, 94, .42), 0 24px 60px rgba(7, 16, 29, .3); } 50% { box-shadow: 0 0 0 10px rgba(246, 184, 94, .32), 0 0 90px 28px rgba(246, 184, 94, .66), 0 24px 60px rgba(7, 16, 29, .3); } }
.hh-who figcaption { display: grid; gap: 2px; margin-top: 12px; }
.hh-who figcaption b { font: 800 34px/1.05 var(--display); }
.hh-who figcaption span { color: var(--ink-2); font-weight: 600; }
.hh-caption { margin-top: 8px; max-width: 34ch; font: italic 600 19px/1.45 var(--body); color: var(--gold); min-height: 2.9em; }
.hh-talk { display: grid; gap: 14px; align-content: center; min-width: 0; }
.hh-title { font: 800 clamp(42px, 5.6vw, 76px)/.98 var(--display); letter-spacing: -.02em; }
.hh-lede { color: var(--ink-2); font-size: 19px; max-width: 46ch; }
.hh-lede b { color: var(--ink); }
.hh-controls { display: grid; gap: 14px; }

/* the huge buttons: an icon, a plain label, and the key that does the same */
.hb { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; padding: 0 22px; border-radius: 22px; border: 2px solid var(--line-2); background: var(--panel); color: var(--ink); font: 800 20px/1.1 var(--display); cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, background .2s; }
.hb .ico { width: 28px; height: 28px; stroke-width: 2; color: var(--gold); }
.hb:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--btn); }
.hb:disabled { opacity: .45; cursor: default; }
.hb.primary { min-height: 96px; font-size: clamp(24px, 2.6vw, 30px); background: linear-gradient(145deg, #ffcf86, #f6b85e 55%, #e9a23f); border-color: transparent; color: #1a1204; box-shadow: 0 16px 34px rgba(246, 184, 94, .38); }
.hb.primary .ico { color: #1a1204; width: 34px; height: 34px; }
.hb:has(> kbd) { padding-top: 6px; padding-bottom: 26px; } /* the key label keeps its own strip under the words (it covered "Read" at 1400) */
.hb kbd { position: absolute; bottom: 7px; right: 9px; font: 800 11px/1 var(--body); padding: 3px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .5; }
.hh-grid3 .hb.primary, .hh-grid2 .hb.primary, .hh-first .hb.primary { font-size: clamp(22px, 2.1vw, 27px); }
.hb > span { padding: 0 6px; }
.hh-first { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); gap: 14px; }
.hh-tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 96px; border-radius: 22px; border: 2px solid var(--line-2); background: var(--panel); color: var(--ink); font: 800 17px/1.1 var(--display); cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.hh-tile .ico { width: 30px; height: 30px; color: var(--gold); }
.hh-tile:hover { transform: translateY(-2px); border-color: var(--btn); }
.hh-grid1 { display: grid; }
.hh-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.hh-grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.hh-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hh-sub, .hh-wait { color: var(--ink-2); font-size: 17px; display: flex; align-items: center; gap: 10px; }
.hh-stop { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--line-2); background: transparent; color: var(--ink); font: 800 18px/1 var(--body); cursor: pointer; }
.hh-stop .ico { width: 20px; height: 20px; fill: currentColor; }
.hh-start { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 26px 20px; border-radius: 26px; border: 0; cursor: pointer; background: linear-gradient(145deg, #ffcf86, #f6b85e 55%, #e9a23f); color: #1a1204; box-shadow: 0 20px 44px rgba(246, 184, 94, .4); }
.hh-start .ico { width: 48px; height: 48px; stroke-width: 2; }
.hh-start span { font: 800 clamp(28px, 3vw, 36px)/1.1 var(--display); }
.hh-start small { font: 600 17px/1.3 var(--body); }
.hh-ears { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hh-listen { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 17px; }
.hh-listen .ico { color: var(--gold); }
.hh-listen b { color: var(--ink); }
.hh-heard { flex-basis: 100%; color: var(--ink-3); font-size: 16px; }
.hh-price { font-size: 15.5px; }
.hh-type { display: grid; gap: 8px; font-size: 16px; }
.hh-draft { padding: 16px 18px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--btn) 45%, transparent); background: var(--gold-soft); font-size: 18px; white-space: pre-wrap; }

/* today's emails + her notes */
.hh-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.hh-list, .hh-notes { padding: 20px 22px; display: grid; gap: 12px; }
.hh-card-t { display: flex; align-items: center; gap: 10px; font: 800 24px/1.15 var(--display); }
.hh-card-t .ico { color: var(--gold); width: 26px; height: 26px; }
.hh-mails { display: grid; gap: 6px; counter-reset: none; }
.hh-mail { display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 8px 12px; border-radius: 16px; border: 1px solid transparent; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.hh-mail:hover { background: var(--bg-2); }
.hh-mail.here { border-color: var(--btn); background: var(--gold-soft); }
.hh-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #1a1204; font: 800 17px/1 var(--body); }
.hh-mail-t { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4px 16px; align-items: baseline; min-width: 0; }
.hh-mail-t b { font: 700 18px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-mail-t span { color: var(--ink-2); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-mail-hear { color: var(--gold); opacity: .7; }
.hh-notes h3 { font: 800 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 6px 0 6px; }
.hh-notes ul { display: grid; gap: 6px; }
.hh-notes li { position: relative; padding-left: 18px; font-size: 16.5px; }
.hh-notes li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--btn); }
.hh-mem { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--btn) 40%, transparent); color: var(--ink); text-decoration: none; font-weight: 600; }
.hh-mem span { flex: 1; } .hh-mem b { color: var(--gold); } .hh-mem .ico { color: var(--gold); }

/* today at a glance + doors (Amelia's, in his colours) */
.hm-glance { display: grid; gap: 14px; }
.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-stat { display: grid; gap: 4px; padding: 20px 20px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.hm-stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--L), var(--A), var(--S), var(--E), var(--R)); opacity: .5; }
.hm-stat.hot::after { opacity: 1; }
a.hm-stat:hover { transform: translateY(-3px); border-color: var(--btn); }
.hm-stat b { font: 800 clamp(34px, 4vw, 46px)/1 var(--display); color: var(--gold); }
.hm-stat span { color: var(--ink-2); font-weight: 600; }
.hm-stat em { font: 700 15px/1.2 var(--body); color: var(--gold); display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.hm-stat em .ico { width: 16px; height: 16px; }
.hm-stat.price em { color: var(--ink-3); }
.hm-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.hm-door { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; background: #07101d; box-shadow: var(--shadow); isolation: isolate; }
.hm-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hm-door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 16, 29, 0) 30%, rgba(7, 16, 29, .88) 75%, rgba(7, 16, 29, .96)); }
.hm-door:hover img { transform: scale(1.06); }
.hm-door-t { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 4px; }
.hm-door-t b { font: 800 22px/1.1 var(--display); }
.hm-door-t span { font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.hm-door-go { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 16, 29, .55); border: 1px solid rgba(255, 208, 143, .55); color: #ffd08f; }
.hm-door-go .ico { width: 18px; height: 18px; }

@media (max-width: 1180px) { .hm-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hh-row { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  /* On a phone: Hope, her words, then the one huge button, all on the first screen. */
  .hh { grid-template-columns: 1fr; justify-items: stretch; padding: 16px 14px 20px; gap: 0; border-radius: 26px; text-align: center; }
  .hh-who, .hh-talk { display: contents; }
  .hh-talk .eyebrow { order: 0; margin-bottom: 4px; }
  .hh-title { order: 1; font-size: clamp(32px, 9.4vw, 42px); margin-bottom: 12px; }
  .hh-ring { order: 2; width: min(200px, 54vw); justify-self: center; }
  .hh-who figcaption { order: 3; margin-top: 8px; }
  .hh-who figcaption b { font-size: 26px; }
  .hh-caption { order: 4; justify-self: center; font-size: 17.5px; min-height: 0; margin-top: 4px; }
  #hhStart { order: 5; margin-top: 12px; }
  .hh-controls { order: 6; margin-top: 12px; }
  #hhDict { order: 7; margin-top: 10px; text-align: left; }
  .hh-ears { order: 8; margin-top: 12px; justify-content: center; }
  .hh-lede { order: 9; margin-top: 12px; font-size: 16px; }
  .hh-first { grid-template-columns: 1fr 1fr; }
  .hh-first .hb.primary { grid-column: 1 / -1; }
  .hh-tile { min-height: 72px; }
  .hh-grid3 { grid-template-columns: 1fr 1fr; }
  .hh-grid3 .hb.primary { grid-column: 1 / -1; }
  .hh-grid4 { grid-template-columns: 1fr 1fr; }
  .hb { min-height: 68px; font-size: 18px; }
  .hb.primary { min-height: 84px; font-size: 24px; }
  .hh-stop { justify-self: center; }
  .hh-mail-t { grid-template-columns: 1fr; }
  .hm-doors { grid-template-columns: 1fr; gap: 12px; }
  .hm-door { aspect-ratio: 16 / 9; }
  .hm-stat { padding: 16px 14px 14px; }
  .hm-stat b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .hh-ring.speaking { animation: none; } }
