/* Shared application chrome and the TV task menu. */
.topbar { min-height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; color: var(--ink); font-size: 21px; font-weight: 400; line-height: 1.5; }
.brand span { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.tv-home { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; min-height:calc(100vh - var(--tv-bar,14vh)); margin:0 auto; padding:32px 0; text-align:center; }
/* Client reference: two matching modules, centered in one row. */
.home-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:80%; max-width:960px; gap:24px; }
.home-module { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; min-height:clamp(180px,28vh,290px); padding:28px 20px; gap:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); font-size:30px; line-height:1.4; text-align:center; box-shadow:none; transition:background-color .12s,border-color .12s; }
.home-module-icon { display:block; width:64px; height:64px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; color:var(--accent); }
.home-module:not(:disabled):hover { border-color:var(--accent); background:var(--raised); }
.home-module:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.home-module:not(:disabled):active { background:var(--input); }
.home-module:disabled { border-color:var(--line); }
.tv-instruction { margin:28px 0 0; color:var(--muted); font-size:16px; line-height:1.6; }
@media (min-width:1600px) { .home-menu { max-width:1240px; gap:32px; } .home-module { font-size:38px; } .home-module-icon { width:80px; height:80px; } .tv-instruction { font-size:20px; } }
@media (max-width:800px) { .topbar { padding:0 20px; } .brand { font-size:19px; } .home-menu { width:94%; gap:16px; } .home-module { font-size:26px; gap:16px; } }
@media (max-width:580px) { .topbar { padding:0 16px; gap:12px; } .brand { font-size:17px; } .brand span { display:none; } .home-menu { gap:12px; } .home-module { min-height:160px; padding:20px 10px; font-size:22px; } .home-module-icon { width:48px; height:48px; } .tv-instruction { font-size:14px; } }
@media (max-height:560px) { .tv-home { padding:20px 0; } .home-module { min-height:156px; padding:20px; gap:12px; } .tv-instruction { margin-top:20px; } }
