.ht-app {
  --ht-us:#1859b5;
  --ht-us-soft:#edf4ff;
  --ht-them:#9c4935;
  --ht-them-soft:#fff4f0;
  --ht-green:#176d50;
  --ht-border:#d9e3ec;
  max-width:1120px;
  padding-block:32px 16px;
  font-size:.9375rem;
  line-height:1.5;
}

.ht-app [hidden] { display:none!important; }
.ht-app h1 { font-size:clamp(2rem,4vw,3rem); }
.ht-app h2,.ht-app h3 { font-family:var(--body); letter-spacing:-.025em; font-weight:650; }
.ht-app h2 { font-size:1.2rem; line-height:1.35; }
.ht-app h3 { font-size:1.025rem; line-height:1.35; }
.ht-app button,.ht-app input,.ht-app select,.ht-app textarea { font:inherit; }
.ht-app button { touch-action:manipulation; }
.ht-app [data-team-label]:not(option) { overflow-wrap:anywhere; }
.ht-app button[data-team-label] { min-width:0; white-space:normal; }
.ht-quick-result { margin-top:14px; padding:12px; border:1px solid #c2d1de; border-radius:7px; background:#f5f8fb; }
.ht-quick-result p { font-size:.8125rem; font-weight:650; margin-bottom:8px; overflow-wrap:anywhere; }
.ht-app button:disabled { opacity:.42; cursor:default; }
.ht-app button:focus-visible,.ht-app input:focus-visible,.ht-app select:focus-visible,.ht-app textarea:focus-visible { outline:3px solid #5d9af3; outline-offset:3px; }
.ht-muted { color:var(--muted); font-size:.875rem; line-height:1.6; }
.ht-page-header { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:24px; }
.ht-page-header .eyebrow { margin-bottom:7px; }
.ht-page-header h1 { margin-bottom:6px; }
.ht-save-status { color:var(--muted); font-size:.75rem; flex-shrink:0; display:inline-flex; align-items:center; gap:7px; }
.ht-save-status:before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--ht-green); }
.ht-notice { border:1px solid #bacde7; border-radius:8px; padding:12px 16px; background:#f0f6ff; color:#1b4e92; margin-bottom:18px; font-size:.875rem; }
.ht-panel { background:white; border:1px solid var(--ht-border); border-radius:10px; padding:22px; }
.ht-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:17px; }
.ht-section-heading>div { min-width:0; }
.ht-kicker { color:var(--muted); font-size:.675rem; font-weight:650; letter-spacing:.095em; text-transform:uppercase; margin-bottom:5px; }
.ht-section-heading .ht-muted { margin-top:7px; }
.ht-badge { display:inline-flex; align-items:center; white-space:nowrap; padding:4px 9px; border:1px solid var(--ht-border); border-radius:30px; background:#f5f8fb; color:var(--muted); font-size:.6875rem; font-weight:550; }
.ht-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.ht-button { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:46px; padding:10px 16px; border:1px solid #c6d4e1; border-radius:6px; background:white; color:var(--ink); font-size:.8125rem; font-weight:650; line-height:1.35; }
.ht-button:hover:enabled { border-color:#98b3cd; background:#f4f8fc; }
.ht-button-primary { background:var(--ht-us); color:white; border-color:var(--ht-us); }
.ht-button-primary:hover:enabled { background:#124991; border-color:#124991; }
.ht-button-quiet { background:transparent; }
.ht-button-danger { color:#a32d31; border-color:#e2c8c8; }
.ht-button-danger:hover:enabled { background:#fff2f2; border-color:#b75a5d; }
.ht-recovery { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; margin-bottom:22px; background:#f6f9fc; }
.ht-recovery>div { min-width:0; max-width:100%; }
.ht-recovery p { margin-top:5px; }
#ht-recovery-info,#ht-summary-heading { overflow-wrap:anywhere; }
.ht-tabs { display:flex; gap:5px; padding:4px; border:1px solid var(--ht-border); background:#f3f6fa; border-radius:8px; margin-bottom:22px; overflow-x:auto; }
.ht-tabs button { flex:1; white-space:nowrap; min-height:43px; padding:9px 14px; border:1px solid transparent; border-radius:5px; background:transparent; color:var(--muted); font-size:.8125rem; font-weight:600; }
.ht-tabs button[aria-current="page"],.ht-tabs button[aria-selected="true"],.ht-tabs button.is-active { background:white; color:var(--ink); border-color:#d9e2ec; box-shadow:0 1px 3px #142c4009; }
.ht-tabs button:hover { color:var(--ink); }

.ht-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.ht-field-grid>label { min-width:0; }
.ht-app label { display:block; color:var(--ink); font-size:.8125rem; font-weight:600; }
.ht-app input:not([type="checkbox"]),.ht-app select,.ht-app textarea { display:block; width:100%; min-width:0; max-width:100%; min-height:46px; padding:10px 12px; border:1px solid #c2d1de; border-radius:5px; background:white; color:var(--ink); margin-top:7px; font-size:1rem; line-height:1.4; }
.ht-app input[type="date"] { -webkit-appearance:none; appearance:none; }
.ht-app input:disabled,.ht-app select:disabled { background:#f3f6f9; color:var(--muted); }
.ht-app textarea { resize:vertical; }
.ht-optional { color:var(--muted); font-weight:400; font-size:.75rem; margin-left:3px; }
.ht-field-hint { display:block; font-size:.725rem; color:var(--muted); font-weight:400; line-height:1.5; margin-top:6px; }
.ht-app fieldset { min-width:0; }
.ht-period-settings { margin:25px 0 0; padding:20px 0 0; border:0; border-top:1px solid var(--ht-border); }
.ht-period-settings legend { float:left; width:100%; margin-bottom:7px; font-size:.875rem; font-weight:650; }
.ht-period-settings>.ht-muted { clear:both; }
.ht-period-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:16px; }
.ht-period-row { min-width:0; padding:12px; border:1px solid var(--ht-border); border-radius:6px; background:#fafcfe; }
.ht-period-row small { color:var(--muted); font-size:.7rem; display:block; margin-top:5px; }
.ht-period-row input { font-family:var(--mono)!important; font-variant-numeric:tabular-nums; }
.ht-form-footer { margin-top:25px; padding-top:20px; border-top:1px solid var(--ht-border); display:flex; justify-content:space-between; align-items:center; gap:24px; }
.ht-form-footer p { max-width:570px; }
.ht-form-footer>.ht-button { flex-shrink:0; }

.ht-scoreboard { color:white; padding:21px 26px 18px; border-radius:12px; background:#142c40; border:1px solid #142c40; }
.ht-scoreboard-top { display:flex; align-items:center; justify-content:center; gap:11px; font-size:.8125rem; font-weight:600; color:#c8d8e6; }
.ht-strength { display:inline-flex; justify-content:center; min-width:36px; padding:3px 8px; border:1px solid #698095; border-radius:4px; color:#eef5fa; font-size:.7rem; font-weight:750; }
.ht-scoreboard-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,1.7fr) minmax(0,1fr); gap:15px; align-items:center; text-align:center; margin-top:15px; }
.ht-team-score { min-width:0; display:flex; align-items:center; flex-direction:column; gap:3px; }
.ht-team-name { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; max-width:100%; overflow:hidden; white-space:normal; font-size:.9rem; font-weight:600; line-height:1.35; }
.ht-team-score strong { font-family:var(--mono); font-weight:600; font-size:3.6rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.ht-clock-block { min-width:0; display:flex; flex-direction:column; align-items:center; }
.ht-clock { font-family:var(--mono); font-size:clamp(3.4rem,8vw,5.5rem); font-weight:650; line-height:1.03; letter-spacing:-.065em; font-variant-numeric:tabular-nums; }
.ht-live-status { display:inline-flex; align-items:center; font-size:.72rem; font-weight:650; line-height:1.5; letter-spacing:.035em; margin-top:10px; color:#d5e5f1; }
.ht-actual-start { margin-top:17px; text-align:center; font-size:.6875rem; color:#9db2c4; }
.ht-actual-start span { color:#cfdfeb; margin-left:5px; }
.ht-period-actions { display:flex; justify-content:center; gap:8px; padding-top:15px; margin-top:14px; border-top:1px solid #ffffff20; }
.ht-period-actions .ht-button { min-height:40px; font-size:.75rem; padding:8px 14px; }
.ht-button-scoreboard { border-color:#e3eef8; background:#e3eef8; color:#142c40; }
.ht-button-scoreboard:hover:enabled { border-color:white; background:white; }
.ht-button-scoreboard-quiet { border-color:#627e96; color:#e4edf5; background:transparent; }
.ht-button-scoreboard-quiet:hover:enabled { border-color:#a5bbce; background:#ffffff10; }
.ht-live-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.87fr); gap:28px; margin-top:22px; align-items:start; }
.ht-capture-column { min-width:0; display:grid; gap:16px; }
.ht-player-control { background:#f1f6fb; border:1px solid var(--ht-border); border-radius:10px; padding:12px; }
.ht-onice-toggle { display:block; width:100%; min-height:61px; padding:12px; color:#3b5570; background:white; border:1px solid #b5c8d9; border-radius:6px; font-size:1.05rem!important; font-weight:750; }
.ht-onice-toggle[aria-pressed="true"] { background:#e9f6ef; border-color:#69a88b; color:var(--ht-green); }
.ht-onice-toggle[aria-pressed="true"]:before { content:"●"; margin-right:10px; font-size:.7rem; vertical-align:2px; }
.ht-player-times { display:flex; justify-content:space-around; align-items:center; gap:12px; padding:12px 0 0; font-size:.72rem; color:var(--muted); }
.ht-player-times strong { font-family:var(--mono); color:var(--ink); font-size:.9rem; font-weight:650; margin-left:6px; font-variant-numeric:tabular-nums; }
.ht-penalties:empty { display:none; }
.ht-penalties { display:grid; gap:8px; }
.ht-penalty { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid #e7d1a8; background:#fffaf0; color:#72551d; border-radius:6px; font-size:.8125rem; }
.ht-penalty strong { font-family:var(--mono); font-variant-numeric:tabular-nums; font-size:1.05rem; }
.ht-penalty-detail { min-width:0; font-size:.7rem; color:#876b39; margin-top:3px; overflow-wrap:anywhere; }
.ht-penalty-detail strong,.ht-penalty-detail span { display:block; }
.ht-penalty button { min-height:35px; padding:6px 9px; border:1px solid #dfca9f; background:white; border-radius:4px; font-size:.7rem; color:#72551d; }
.ht-faceoff-panel { border-color:#a9c1e2; background:#f6faff; }
.ht-faceoff-panel>.ht-muted { margin-top:-6px; }
.ht-resume-play { width:100%; min-height:61px; margin-top:17px; background:var(--ht-green); border-color:var(--ht-green); color:white; font-size:1.05rem!important; }
.ht-resume-play:hover:enabled { background:#10513b; border-color:#10513b; }
.ht-restart-options,.ht-penalty-entry { margin-top:21px; padding-top:18px; border-top:1px solid #d5e1ee; }
.ht-restart-options>h3,.ht-penalty-entry>h3 { font-size:.875rem; }
.ht-faceoff-fields { gap:13px; margin-top:16px; }
.ht-faceoff-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:17px; }
.ht-faceoff-actions button { min-height:67px; font-size:1.05rem!important; }
.ht-faceoff-actions .ht-faceoff-unknown { grid-column:1/-1; min-height:50px; border-color:#b8cbdc; background:white; color:#365570; }
.ht-faceoff-actions .ht-faceoff-unknown:hover:enabled { border-color:#8eaac3; background:#edf4fa; }
.ht-penalty-entry-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:13px; }
.ht-penalty-entry-actions button { min-height:56px; font-size:.875rem!important; }
.ht-penalty-us { border-color:#b6cdeb; background:var(--ht-us-soft); color:var(--ht-us); }
.ht-penalty-us:hover:enabled { background:#dfebfd; border-color:#78a2d8; }
.ht-penalty-them { border-color:#e9c9bd; background:var(--ht-them-soft); color:var(--ht-them); }
.ht-penalty-them:hover:enabled { background:#fbe8e0; border-color:#cc9785; }
.ht-us-action { background:var(--ht-us); border-color:var(--ht-us); color:white; }
.ht-us-action:hover:enabled { background:#124991; border-color:#124991; }
.ht-them-action { background:var(--ht-them); border-color:var(--ht-them); color:white; }
.ht-them-action:hover:enabled { background:#803723; border-color:#803723; }
.ht-fast-panel { padding:18px; }
.ht-fast-panel .ht-section-heading { margin-bottom:10px; }
.ht-undo { min-height:36px; font-size:.75rem!important; padding:6px 12px; }
.ht-fast-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ht-action-column { min-width:0; display:grid; gap:9px; }
.ht-action-column h3 { text-align:center; font-size:.8125rem; line-height:1.5; letter-spacing:0; padding:4px 0; }
.ht-us-column h3 { color:var(--ht-us); }
.ht-them-column h3 { color:var(--ht-them); }
.ht-event-button { display:flex; align-items:center; justify-content:center; gap:10px; min-height:65px; padding:12px; border:1px solid; border-radius:6px; font-size:1.05rem!important; font-weight:700; }
.ht-us-column .ht-event-button { border-color:#b6cdeb; background:var(--ht-us-soft); color:var(--ht-us); }
.ht-them-column .ht-event-button { border-color:#e9c9bd; background:var(--ht-them-soft); color:var(--ht-them); }
.ht-us-column .ht-event-button:hover:enabled { background:#dfebfd; border-color:#78a2d8; }
.ht-them-column .ht-event-button:hover:enabled { background:#fbe8e0; border-color:#cc9785; }
.ht-event-symbol { font-size:1.4rem; font-weight:400; line-height:1; width:23px; text-align:center; }
.ht-us-column .ht-goal-button { background:var(--ht-us); color:white; border-color:var(--ht-us); }
.ht-them-column .ht-goal-button { background:var(--ht-them); color:white; border-color:var(--ht-them); }
.ht-us-column .ht-goal-button:hover:enabled { background:#124991; border-color:#124991; }
.ht-them-column .ht-goal-button:hover:enabled { background:#803723; border-color:#803723; }
.ht-action-hint { font-size:.7rem; color:var(--muted); margin-top:13px; line-height:1.6; }
.ht-stoppage-panel { padding:18px; }
.ht-stoppage-panel .ht-section-heading>.ht-muted { font-size:.7rem; margin:0; }
.ht-stoppage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.ht-stoppage-grid button { min-height:56px; border:1px solid #c8d3dd; border-radius:5px; background:#f7f9fc; color:#334c63; padding:9px 7px; font-size:.8125rem; font-weight:650; }
.ht-stoppage-grid button:hover:enabled { background:#eaf0f6; border-color:#9eb1c2; }

.ht-feed-column { min-width:0; }
.ht-feed-column>.ht-section-heading { margin-bottom:12px; }
.ht-feed-controls { display:grid; grid-template-columns:1.4fr 1fr; gap:9px; margin-bottom:15px; }
.ht-feed-controls select { margin:0; min-height:40px; padding:8px 10px; font-size:.8125rem; }
.ht-event-feed { display:grid; gap:12px; }
.ht-card { position:relative; border:1px solid var(--ht-border); border-radius:8px; background:white; padding:16px; box-shadow:0 2px 6px #142c4004; }
.ht-card[data-team="us"] { border-left:3px solid var(--ht-us); }
.ht-card[data-team="them"] { border-left:3px solid var(--ht-them); }
.ht-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.ht-card-title { font-size:.875rem; font-weight:750; line-height:1.5; overflow-wrap:anywhere; }
.ht-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px 9px; font-size:.7rem; color:var(--muted); margin-top:5px; }
.ht-card-meta time { font-family:var(--mono); font-variant-numeric:tabular-nums; color:var(--ink); font-weight:550; }
.ht-card-details { color:#4c6276; font-size:.8rem; margin-top:11px; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.ht-card-details:empty { display:none; }
.ht-card-edit { flex-shrink:0; border:1px solid #cbd8e4; background:#f8fafc; color:#365570; border-radius:4px; min-height:35px; padding:6px 11px; font-size:.7rem!important; font-weight:650; }
.ht-card-edit:hover { background:#eef4fa; border-color:#9ab2c8; }
.ht-incomplete { background:#fff8e9; border-color:#ead7ac; color:#856014; }
.ht-card .ht-badge { font-size:.625rem; padding:2px 6px; }
.ht-result-options { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.ht-result-options button { min-height:36px; padding:7px 9px; border:1px solid #cbd8e4; border-radius:4px; background:#f4f8fc; color:#365570; font-size:.7rem; font-weight:600; }
.ht-result-options button:hover { background:#e8f0fa; border-color:#98b4d1; }
.ht-error { color:#9e2c32; background:#fff4f4; border-color:#dfbabc; }
.ht-empty { padding:36px 21px; border:1px dashed #bdccda; border-radius:8px; background:#f8fafc; color:var(--muted); font-size:.8125rem; line-height:1.7; text-align:center; }
.ht-sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.ht-summary-tabs { max-width:360px; }
.ht-stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ht-stat { padding:16px; border:1px solid var(--ht-border); border-radius:7px; background:#f9fbfe; }
.ht-stat-label { display:block; font-size:.725rem; color:var(--muted); line-height:1.5; overflow-wrap:anywhere; }
.ht-stat-value { display:block; font-family:var(--mono); color:var(--ink); font-size:1.65rem; font-weight:600; line-height:1.4; margin-top:5px; font-variant-numeric:tabular-nums; }
.ht-stat-group { padding:20px; border:1px solid var(--ht-border); border-radius:9px; background:white; margin-top:18px; }
.ht-stat-group>h3,.ht-stat-group>h2 { margin-bottom:15px; }
.ht-stat-group .ht-stat { background:#f8fafd; }
.ht-table-wrap { overflow:auto; border:1px solid var(--ht-border); border-radius:7px; margin-top:15px; }
.ht-app table { width:100%; border-collapse:collapse; font-size:.8125rem; text-align:left; }
.ht-app th { background:#f3f7fb; font-size:.725rem; font-weight:650; color:#4b6175; white-space:nowrap; }
.ht-app td,.ht-app th { padding:10px 13px; border-bottom:1px solid var(--ht-border); }
.ht-app tbody tr:last-child td { border-bottom:0; }
.ht-app td:not(:first-child) { font-variant-numeric:tabular-nums; }
.ht-app details { margin-top:20px; border:1px solid var(--ht-border); border-radius:8px; background:#fafcfe; padding:17px 20px; }
.ht-app summary { cursor:pointer; font-weight:650; font-size:.875rem; }
.ht-app details[open]>summary { margin-bottom:17px; }
.ht-advanced .ht-stats-grid { margin-top:14px; }
.ht-summary-note { margin-top:22px; color:var(--muted); font-size:.75rem; line-height:1.7; }

.ht-file-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.ht-file-card { display:flex; flex-direction:column; align-items:flex-start; padding:21px; }
.ht-file-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid #cbdceb; border-radius:7px; background:#f0f6fc; color:#416e94; font-family:var(--mono); font-size:.8125rem; font-weight:650; margin-bottom:16px; }
.ht-file-card p { color:var(--muted); font-size:.8125rem; line-height:1.7; margin:10px 0 20px; }
.ht-file-card>.ht-actions,.ht-file-card>.ht-button { margin-top:auto; }
.ht-file-card .ht-button { padding:9px 12px; font-size:.75rem; }
.ht-import-panel { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-top:21px; }
.ht-import-panel .ht-muted { margin-top:7px; }
.ht-import-label { max-width:320px; width:100%; }
.ht-app input[type="file"] { padding:8px; font-size:.75rem; }
.ht-app input[type="file"]::file-selector-button { border:0; border-radius:3px; background:#edf3f9; color:var(--ink); padding:7px 10px; margin-right:8px; font:inherit; cursor:pointer; }

.ht-editor { width:min(620px,calc(100% - 32px)); max-height:calc(100dvh - 40px); border:1px solid #bccdda; border-radius:12px; padding:0; color:var(--ink); box-shadow:0 16px 70px #08223a45; overflow:auto; }
.ht-editor::backdrop { background:#0c2038a6; backdrop-filter:blur(2px); }
.ht-editor form { padding:25px; }
.ht-editor-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:17px; gap:12px; }
.ht-editor-heading h2 { font-size:1.4rem; }
.ht-close { width:40px; height:40px; border:1px solid var(--ht-border); border-radius:50%; background:#f7fafc; color:#557087; font-size:1.65rem!important; line-height:1; }
.ht-recorded-info { margin-bottom:21px; padding:11px 12px; background:#f3f7fb; border-radius:5px; color:var(--muted); font-size:.7rem; line-height:1.6; overflow-wrap:anywhere; }
.ht-editor .ht-field-grid { gap:15px 17px; }
.ht-checkbox { display:flex!important; align-items:center; gap:9px; margin-top:17px; font-size:.8125rem; min-height:30px; }
.ht-checkbox input { width:19px; height:19px; accent-color:var(--ht-us); margin:0; flex-shrink:0; }
.ht-editor-fields { margin:22px 0; padding:17px; border:1px solid var(--ht-border); border-radius:7px; background:#fafcfe; }
.ht-editor-fields legend { padding:0 6px; font-size:.75rem; color:var(--muted); font-weight:600; }
.ht-field-wide { grid-column:1/-1; }
.ht-notes-label { margin-top:20px; }
.ht-editor-error { margin-top:15px; border:1px solid #dfbabc; border-radius:5px; padding:10px 12px; background:#fff3f3; color:#a02d31; font-size:.8125rem; }
.ht-editor-footer { display:flex; justify-content:space-between; gap:12px; margin-top:25px; padding-top:20px; border-top:1px solid var(--ht-border); }

@media (max-width:900px) {
  .ht-app { width:calc(100% - 48px); }
  .ht-live-layout { gap:20px; grid-template-columns:minmax(0,1fr) minmax(0,.85fr); }
  .ht-file-grid { grid-template-columns:1fr; gap:14px; }
  .ht-file-card { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:5px 16px; align-items:center; }
  .ht-file-card .ht-file-icon { grid-row:1/3; margin:0; }
  .ht-file-card h3 { grid-column:2; }
  .ht-file-card p { grid-column:2; margin:0; }
  .ht-file-card>.ht-actions,.ht-file-card>.ht-button { grid-column:3; grid-row:1/3; margin:0; }
}

@media (max-width:720px) {
  .ht-app { width:calc(100% - 32px); padding-top:24px; }
  .ht-page-header { align-items:flex-start; gap:14px; }
  .ht-page-header .ht-muted { font-size:.8rem; max-width:240px; }
  .ht-save-status { font-size:.625rem; margin-top:11px; }
  .ht-live-layout { grid-template-columns:1fr; gap:27px; margin-top:15px; }
  .ht-scoreboard { padding:18px 17px 16px; }
  .ht-scoreboard-main { grid-template-columns:minmax(0,1fr) minmax(160px,1.7fr) minmax(0,1fr); gap:6px; }
  .ht-clock { font-size:4.4rem; }
  .ht-team-score strong { font-size:2.8rem; }
  .ht-team-name { font-size:.725rem; }
  .ht-live-status { font-size:.65rem; }
  .ht-tabs button { font-size:.725rem; padding-inline:11px; min-height:42px; }
  .ht-panel { padding:19px; }
  .ht-period-inputs { gap:10px; }
  .ht-period-row { padding:10px; }
  .ht-form-footer { gap:16px; flex-direction:column; align-items:flex-start; }
  .ht-form-footer>.ht-button { width:100%; }
  .ht-event-button { min-height:66px; }
  .ht-stoppage-grid button { min-height:58px; }
  .ht-feed-controls { grid-template-columns:1.45fr 1fr; }
  .ht-stats-grid { gap:9px; }
  .ht-stat { padding:13px; }
  .ht-stat-value { font-size:1.45rem; }
  .ht-stat-group { padding:16px; }
  .ht-file-card { display:flex; gap:0; align-items:flex-start; }
  .ht-file-card .ht-file-icon { margin-bottom:14px; }
  .ht-file-card p { margin:10px 0 18px; }
  .ht-file-card>.ht-actions,.ht-file-card>.ht-button { margin:0; }
  .ht-editor form { padding:21px; }
}

@media (max-width:430px) {
  .ht-page-header { flex-wrap:wrap; gap:8px; }
  .ht-save-status { margin:0; }
  .ht-page-header .ht-muted { max-width:none; }
  .ht-page-header h1 { font-size:2.2rem; }
  .ht-field-grid { gap:16px 12px; }
  .ht-scoreboard-main { grid-template-columns:minmax(0,1fr) minmax(147px,1.7fr) minmax(0,1fr); }
  .ht-clock { font-size:3.9rem; }
  .ht-team-score strong { font-size:2.4rem; }
  .ht-team-name { font-size:.65rem; }
  .ht-period-actions { gap:6px; }
  .ht-period-actions .ht-button { font-size:.675rem; padding-inline:10px; }
  .ht-actual-start { font-size:.6rem; }
  .ht-section-heading .ht-badge { font-size:.6rem; }
  .ht-period-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ht-app label { font-size:.75rem; }
  .ht-field-hint { font-size:.675rem; }
  .ht-player-times { justify-content:space-between; padding-inline:3px; font-size:.65rem; }
  .ht-player-times strong { font-size:.8rem; }
  .ht-stoppage-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ht-stoppage-panel .ht-section-heading>.ht-muted { font-size:.625rem; }
  .ht-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; padding:3px; overflow:visible; }
  .ht-tabs button { font-size:.675rem; padding-inline:9px; }
  .ht-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ht-editor { width:calc(100% - 18px); max-height:calc(100dvh - 20px); border-radius:9px; }
  .ht-editor form { padding:17px; }
  .ht-editor-fields { padding:13px; }
  .ht-editor .ht-field-grid { gap:15px 12px; }
  .ht-editor-footer .ht-button { padding-inline:12px; }
}

@media print {
  .ht-page-header .ht-save-status,.ht-tabs,.ht-capture-column,.ht-feed-controls,.ht-card-edit,.ht-files-view,.ht-editor,.ht-notice,.ht-recovery { display:none!important; }
  .ht-app { width:100%; max-width:none; padding:0; }
  .ht-scoreboard { background:white; color:#142c40; border-color:#aaa; }
  .ht-scoreboard * { color:#142c40!important; }
  .ht-period-actions { display:none; }
  .ht-live-layout { display:block; }
  .ht-card,.ht-stat-group { break-inside:avoid; }
}
