/* ── Brand gradient tokens ───────────────────────────────────────── */
:root {
  --grad:   linear-gradient(90deg,  #c0392b, #FAA71D);
  --grad-v: linear-gradient(180deg, #c0392b, #FAA71D);
}

/* ── Base ─────────────────────────────────────────────────────────── */
html { font-size: var(--base-font-size, 16px); }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #080808; color: #f0f0f0; min-height: 100vh; }

/* ── Header & Hamburger Nav ──────────────────────────────────────── */
header { background: #1a1a1a; padding: 12px 20px; border-bottom: none; position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; }
header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.header-logo { height: 56px; width: auto; flex-shrink: 0; display: block; }
.header-title { flex: 1; min-width: 0; }
.header-title h1 { font-size: 1rem; color: #fff; }
.header-title p { font-size: 0.72rem; color: #999; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-wrap { position: relative; flex-shrink: 0; }
.hamburger { background: none; border: none; cursor: pointer; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #bbb; border-radius: 2px; transition: background 0.2s; }
.hamburger:hover span { background: #fff; }
.nav-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; min-width: 210px; display: none; z-index: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.6); overflow: hidden; }
.nav-dropdown.open { display: block; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #FAA71D; text-decoration: none; font-size: 0.85rem; border-bottom: 1px solid #1e1e1e; transition: background 0.15s, color 0.15s; }
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: #222; color: #fff; }
.nav-dropdown a.current { color: #FAA71D; }
.nav-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.nav-divider { height: 1px; background: #2a2a2a; margin: 4px 0; }
.nav-dropdown .nav-logout { color: #888; font-size: 0.8rem; }
.nav-dropdown .nav-logout:hover { color: #c0392b; background: #1f0808; }

/* ── Sync + Timer buttons (icon only in header) ─────────────────── */
.btn-sync-icon { background: none; border: 1px solid #333; color: #aaa; font-size: 1rem; padding: 5px 9px; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
.btn-sync-icon:hover { border-color: #FAA71D; color: #FAA71D; }
.btn-timer { background: none; border: 1px solid #333; color: #aaa; font-size: 1.1rem; padding: 5px 9px; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
.btn-timer:hover { border-color: #FAA71D; color: #FAA71D; }

/* ── Rest Timer popup ────────────────────────────────────────────── */
.timer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 900; display: none; align-items: center; justify-content: center; }
.timer-overlay.open { display: flex; }
.timer-popup { position: relative; overflow: hidden; background: #272727; border: 1px solid #3a3a3a; border-top: none; border-radius: 14px; padding: 24px 20px; width: min(360px, 92vw); text-align: center; }
.timer-popup::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.timer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.timer-title { font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.timer-close-btn { background: none; border: none; color: #555; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }
.timer-close-btn:hover { color: #fff; }
.timer-display { font-size: 4.5rem; font-weight: 700; color: #f0f0f0; font-variant-numeric: tabular-nums; letter-spacing: -3px; line-height: 1; margin-bottom: 8px; transition: color 0.3s; }
.timer-display.prep  { color: #FAA71D; }
.timer-display.go    { color: #6aaa6a; }
.timer-display.done  { color: #c0392b; }
.timer-state { font-size: 0.8rem; color: #888; min-height: 18px; margin-bottom: 24px; }
.timer-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.timer-preset-btn { background: #222; border: 1px solid #333; color: #f0f0f0; padding: 16px 8px; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.timer-preset-btn:hover, .timer-preset-btn:active { background: #FAA71D; border-color: #FAA71D; color: #fff; }
.timer-stop-btn { width: 100%; background: #c0392b; border: none; color: #fff; padding: 13px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 18px; }
.timer-stop-btn:hover { background: #a93226; }

/* ── Settings units toggle ───────────────────────────────────────── */
.units-toggle { display: flex; border: 1px solid #333; border-radius: 6px; overflow: hidden; }
.units-btn { flex: 1; background: #111; border: none; color: #888; padding: 10px 16px; font-size: 0.85rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.units-btn.active { background: #FAA71D; color: #fff; font-weight: 600; }
.units-btn:hover:not(.active) { background: #1e1e1e; color: #ccc; }
.sync-status { font-size: 0.68rem; color: #888; }
.sync-status.ok { color: #6aaa6a; }
.sync-status.err { color: #c0392b; }

/* ── Login page ──────────────────────────────────────────────────── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-wrap { width: 100%; max-width: 380px; }
.login-logo { height: 80px; width: auto; display: block; margin: 0 auto 24px; }
.login-title { font-size: 1.3rem; color: #fff; text-align: center; margin-bottom: 24px; }
.login-error { background: #2a0a0a; border: 1px solid #5a1010; color: #e07070; border-radius: 6px; padding: 10px 14px; font-size: 0.82rem; margin-bottom: 16px; }
.login-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.login-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: #888; }
.login-input { background: #1a1a1a; border: 1px solid #333; color: #f0f0f0; padding: 11px 14px; border-radius: 6px; font-size: 0.95rem; width: 100%; }
.login-input:focus { outline: none; border-color: #c0392b; }
.login-btn { background: #FAA71D; border: none; color: #fff; padding: 13px; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; margin-top: 6px; }
.login-btn:hover { background: #d4900f; }
.login-forgot { display: block; text-align: center; color: #888; font-size: 0.82rem; text-decoration: none; }
.login-forgot:hover { color: #FAA71D; }

/* ── Settings page ───────────────────────────────────────────────── */
.settings-body { padding: 20px; max-width: 600px; margin: 0 auto; }
.settings-section { position: relative; overflow: hidden; background: #272727; border: 1px solid #3a3a3a; border-top: none; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.settings-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.settings-section h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 16px; }
.settings-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.settings-row:last-child { margin-bottom: 0; }
.settings-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: #888; }
.settings-input { background: #111; border: 1px solid #2a2a2a; color: #f0f0f0; padding: 10px 12px; border-radius: 5px; font-size: 0.9rem; width: 100%; }
.settings-input:focus { outline: none; border-color: #c0392b; }
.settings-input-row { display: flex; gap: 10px; }
.settings-input-row .settings-input { flex: 1; }
.settings-input-row .settings-unit { display: flex; align-items: center; font-size: 0.8rem; color: #888; padding: 0 4px; }
.font-size-row { display: flex; align-items: center; gap: 14px; }
.font-size-btn { background: #222; border: 1px solid #333; color: #ccc; width: 36px; height: 36px; border-radius: 5px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.font-size-btn:hover { border-color: #FAA71D; color: #FAA71D; }
.font-size-display { font-size: 0.9rem; color: #f0f0f0; min-width: 36px; text-align: center; }
.settings-save { background: #FAA71D; border: none; color: #fff; padding: 12px 28px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.settings-save:hover { background: #d4900f; }
.settings-saved { font-size: 0.78rem; color: #6aaa6a; margin-left: 10px; display: none; }
.settings-link { display: inline-flex; align-items: center; gap: 6px; color: #FAA71D; text-decoration: none; font-size: 0.85rem; }
.settings-link:hover { text-decoration: underline; }
.settings-logout { background: none; border: 1px solid #5a1010; color: #c0392b; padding: 10px 20px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; }
.settings-logout:hover { background: #1f0808; }

/* ── Help page ───────────────────────────────────────────────────── */
.help-body { padding: 24px 20px; max-width: 700px; margin: 0 auto; }
.help-body h2 { font-size: 1rem; color: #fff; margin: 24px 0 10px; }
.help-body h2:first-child { margin-top: 0; }
.help-body p { font-size: 0.85rem; color: #bbb; line-height: 1.6; margin-bottom: 10px; }
.help-body ul { padding-left: 18px; }
.help-body li { font-size: 0.85rem; color: #bbb; line-height: 1.7; }
.help-body .help-card { position: relative; overflow: hidden; background: #1c1c1c; border: 1px solid #2a2a2a; border-top: none; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.help-body .help-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.help-body .help-card h3 { font-size: 0.88rem; color: #f0f0f0; margin-bottom: 6px; }
.help-back { display: inline-flex; align-items: center; gap: 6px; color: #888; text-decoration: none; font-size: 0.82rem; margin-bottom: 20px; }
.help-back:hover { color: #ccc; }

/* ── Day tabs (index.html) ───────────────────────────────────────── */
.day-tabs { display: flex; background: #0d0d0d; border-bottom: 1px solid #1e1e1e; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.day-tab { position: relative; flex: 1; padding: 12px 8px; text-align: center; font-size: 0.8rem; color: #888; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-width: 80px; transition: color .2s; }
.day-tab.active { color: #fff; border-bottom-color: transparent; }
.day-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.day-tab .tab-day { font-weight: 700; font-size: 0.85rem; }
.day-tab .tab-type { font-size: 0.68rem; margin-top: 2px; }
.day-tab .tab-date { font-size: 0.65rem; color: #c0392b; margin-top: 2px; }
.day-tab.active .tab-date { color: #FAA71D; }
.day-content { display: none; padding-bottom: 100px; }
.day-content.active { display: block; }
.day-header { position: relative; background: #1e1e1e; padding: 14px 20px; border-bottom: none; }
.day-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.day-header h2 { font-size: 1rem; color: #fff; }
.day-header p { font-size: 0.75rem; color: #ccc; margin-top: 3px; }
.muscles { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 20px; background: #161616; border-bottom: 1px solid #2a2a2a; }
.badge { font-size: 0.68rem; background: #222; color: #bbb; padding: 3px 8px; border-radius: 10px; }
.block-title { position: relative; padding: 10px 20px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #bbb; background: #0d0d0d; border-bottom: 1px solid #1a1a1a; border-top: none; margin-top: 8px; }
.block-title::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }

/* ── Exercise card (index.html) ──────────────────────────────────── */
.exercise-card { position: relative; overflow: hidden; background: #2c2c2c; border-top: 1px solid #3a3a3a; border-bottom: 2px solid #111; border-right: 1px solid #3a3a3a; border-left: none; padding: 14px 20px 14px 22px; margin-bottom: 3px; }
.exercise-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--grad-v); }
.ex-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ex-name { font-size: 0.9rem; font-weight: 600; color: #fff; flex: 1; }
.ex-meta { font-size: 0.72rem; color: #ccc; margin-top: 3px; }
.ex-notes { font-size: 0.75rem; color: #bbb; margin-bottom: 8px; font-style: italic; }
.ex-admin-notes { font-size: 0.72rem; color: #7ab0cc; margin-bottom: 8px; padding: 6px 10px; background: #0d1a22; border-left: 2px solid #2a6080; border-radius: 3px; }
.ex-num { font-size: 0.72rem; color: #c0392b; font-weight: 700; margin-right: 6px; min-width: 18px; display: inline-block; }
.muscle-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.mtag { font-size: 0.62rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.mtag-primary { background: #2a0a0a; color: #e0392b; border: 1px solid #5a1010; }
.mtag-secondary { background: #2a1a0a; color: #e8993a; border: 1px solid #5a3a10; }
.mtag-other { background: #1f1f1f; color: #999; border: 1px solid #333; }

/* ── Video row ───────────────────────────────────────────────────── */
.video-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.btn-play { background: #FAA71D; border: none; color: #fff; font-size: 0.72rem; padding: 5px 12px; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-play:hover { background: #d4900f; }
.btn-search { background: #1f1f1f; border: 1px solid #444; color: #ccc; font-size: 0.72rem; padding: 5px 10px; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-search:hover { border-color: #666; color: #fff; }
.btn-addvideo { background: none; border: 1px dashed #444; color: #aaa; font-size: 0.72rem; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.btn-addvideo:hover { border-color: #777; color: #ccc; }
.video-input-wrap { display: none; width: 100%; margin-top: 6px; }
.video-input-wrap.open { display: flex; gap: 6px; }
.video-input-wrap input { flex: 1; background: #111; border: 1px solid #333; color: #f0f0f0; padding: 6px 10px; border-radius: 5px; font-size: 0.78rem; }
.video-input-wrap button { background: #FAA71D; border: none; color: #fff; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 0.78rem; }

/* ── Set logging ─────────────────────────────────────────────────── */
.prev-session { background: #111; border-radius: 5px; padding: 8px 10px; margin-bottom: 10px; font-size: 0.72rem; color: #6aaa78; }
.prev-session strong { color: #8acc96; }
.tag-incomplete { display: inline-block; margin-left: 6px; background: #3a2200; color: #FAA71D; border: 1px solid #FAA71D44; border-radius: 4px; padding: 1px 6px; font-size: 0.68rem; font-weight: 600; }
.tag-push { display: inline-block; margin-left: 6px; background: #0d2a1a; color: #4caf50; border: 1px solid #4caf5044; border-radius: 4px; padding: 1px 6px; font-size: 0.68rem; font-weight: 600; }
.btn-del-set { background: none; border: none; color: #555; font-size: 1rem; padding: 0 4px; cursor: pointer; line-height: 1; }
.btn-del-set:hover { color: #e74c3c; }
.btn-progress { background: none; border: 1px solid #333; border-radius: 4px; color: #555; font-size: 0.85rem; padding: 2px 6px; cursor: pointer; margin-left: 4px; }
.btn-progress.flagged { border-color: #4caf50; color: #4caf50; background: #0d2a1a; }
.sets-log { margin-top: 2px; }
.set-row { display: grid; grid-template-columns: 32px 1fr 1fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.set-num { font-size: 0.75rem; color: #bbb; text-align: center; font-weight: 600; }
.set-input { background: #111; border: 1px solid #2a2a2a; color: #f0f0f0; padding: 7px 8px; border-radius: 5px; font-size: 0.85rem; text-align: center; width: 100%; -webkit-appearance: none; }
.set-input:focus { outline: none; border-color: #c0392b; }
.set-input::placeholder { color: #888; }
.set-label { font-size: 0.62rem; color: #888; text-align: center; margin-top: 2px; }
.set-col { display: flex; flex-direction: column; }
.btn-done-set { background: #1f2f1f; border: 1px solid #2a3a2a; color: #6a9a6a; width: 32px; height: 32px; border-radius: 5px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.btn-done-set.done { background: #1a3a1a; border-color: #2d5a2d; color: #5cb85c; }
.btn-add-set { background: none; border: 1px dashed #3a3a3a; color: #888; font-size: 0.75rem; padding: 7px; border-radius: 5px; cursor: pointer; width: 100%; margin-top: 4px; transition: all .2s; }
.btn-add-set:hover { border-color: #666; color: #bbb; }
.btn-remove-set { background: none; border: none; color: #888; font-size: 0.8rem; cursor: pointer; padding: 0 2px; }
.btn-remove-set:hover { color: #c0392b; }
.notes-input { width: 100%; background: #111; border: 1px solid #2a2a2a; color: #bbb; padding: 7px 8px; border-radius: 5px; font-size: 0.78rem; resize: vertical; min-height: 44px; font-family: inherit; margin-top: 6px; }
.notes-input:focus { outline: none; border-color: #c0392b; }
.notes-input::placeholder { color: #888; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Rename ──────────────────────────────────────────────────────── */
.btn-manage { background: none; border: none; color: #888; font-size: 0.85rem; cursor: pointer; padding: 4px 6px; line-height: 1; transition: color .15s; flex-shrink: 0; }
.btn-manage:hover { color: #aaa; }
.btn-manage-del:hover { color: #c0392b; }
.rename-wrap { display: none; margin-bottom: 8px; }
.rename-wrap.open { display: flex; gap: 6px; }
.rename-input { flex: 1; background: #111; border: 1px solid #333; color: #f0f0f0; padding: 6px 10px; border-radius: 5px; font-size: 0.82rem; }
.btn-rename-ok { background: #FAA71D; border: none; color: #fff; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 0.78rem; }

/* ── Export bar & modal ──────────────────────────────────────────── */
.export-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; border-top: none; padding: 12px 20px; display: none; z-index: 200; }
.export-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.export-bar.visible { display: block; }
.btn-export { width: 100%; background: #FAA71D; border: none; color: #fff; font-size: 1rem; padding: 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-export:hover { background: #d4900f; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { position: relative; overflow: hidden; background: #272727; border-radius: 12px; padding: 24px; max-width: 420px; width: 100%; border: 1px solid #3a3a3a; border-top: none; }
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.modal h2 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.modal p { font-size: 0.82rem; color: #888; margin-bottom: 16px; }
.modal-summary { background: #111; border-radius: 8px; padding: 12px; margin-bottom: 16px; font-size: 0.78rem; color: #bbb; max-height: 200px; overflow-y: auto; }
.modal-summary .ex-line { margin-bottom: 4px; }
.modal-summary .ex-line strong { color: #f0f0f0; }
.modal-btns { display: flex; gap: 10px; }
.btn-modal-export { flex: 1; background: #FAA71D; border: none; color: #fff; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.btn-modal-close { flex: 1; background: #222; border: 1px solid #333; color: #aaa; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 0.88rem; }
.session-date { font-size: 0.72rem; color: #888; text-align: right; padding: 8px 20px; }

/* ── Video lightbox (index.html) ─────────────────────────────────── */
.video-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 400; align-items: center; justify-content: center; padding: 16px; }
.video-modal-overlay.open { display: flex; }
.video-modal-inner { width: 100%; max-width: 820px; position: relative; }
.video-modal-close { position: absolute; top: -42px; right: 0; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 8px; line-height: 1; }
.video-aspect { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden; }
.video-aspect > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-modal-fallback { display: none; text-align: center; padding: 40px 20px; }
.video-modal-fallback p { color: #aaa; font-size: 0.88rem; margin-bottom: 16px; }
.video-modal-fallback a { background: #c0392b; color: #fff; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.day-placeholder { padding: 60px 20px; text-align: center; color: #888; font-size: 0.85rem; }
.day-placeholder p { margin-top: 8px; }

/* ── Admin — shared elements ─────────────────────────────────────── */
.save-status { font-size: 0.75rem; color: #888; }
.save-status.ok { color: #6aaa6a; }
.save-status.err { color: #c0392b; }
.btn-save-all { background: #FAA71D; border: none; color: #fff; font-size: 0.82rem; font-weight: 600; padding: 8px 20px; border-radius: 5px; cursor: pointer; }
.btn-save-all:hover { background: #d4900f; }
.btn-save-all:disabled { opacity: .5; cursor: default; }
.tabs { display: flex; background: #0d0d0d; border-bottom: 1px solid #1e1e1e; position: sticky; top: 57px; z-index: 19; }
.tab-btn { position: relative; flex: 1; padding: 12px; font-size: 0.82rem; font-weight: 600; text-align: center; cursor: pointer; color: #888; border: none; background: none; border-bottom: 2px solid transparent; }
.tab-btn.active { color: #f0f0f0; border-bottom-color: transparent; }
.tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.panel { padding: 20px; display: none; }
.panel.active { display: block; }

/* ── Admin — Exercise Library ────────────────────────────────────── */
.add-panel { position: relative; overflow: hidden; background: #111; border: 1px solid #2a2a2a; border-top: none; border-radius: 8px; margin-bottom: 20px; }
.add-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.add-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; }
.add-panel-header h2 { font-size: 0.9rem; color: #fff; }
.add-panel-toggle { font-size: 0.8rem; color: #666; }
.add-panel-body { padding: 16px; display: none; border-top: 1px solid #222; }
.add-panel-body.open { display: block; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.form-col { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px; }
.form-col label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.8px; color: #888; }
.form-col input, .form-col textarea { background: #1a1a1a; border: 1px solid #2a2a2a; color: #f0f0f0; padding: 8px 10px; border-radius: 5px; font-size: 0.82rem; width: 100%; }
.form-col input:focus, .form-col textarea:focus { outline: none; border-color: #c0392b; }
.form-col textarea { min-height: 60px; resize: vertical; font-family: inherit; }
.btn-primary { background: #FAA71D; color: #fff; border: none; padding: 9px 20px; border-radius: 5px; cursor: pointer; font-size: 0.82rem; font-weight: 600; }
.btn-primary:hover { background: #d4900f; }
.form-msg { font-size: 0.75rem; margin-top: 8px; }
.form-msg.ok { color: #5cb85c; }
.form-msg.err { color: #c0392b; }
.section-heading { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 10px; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; margin-bottom: 24px; }
.prog-card { position: relative; overflow: hidden; background: #272727; border: 1px solid #3a3a3a; border-left: none; border-radius: 7px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.prog-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--grad-v); }
.prog-card-name { font-size: 0.9rem; font-weight: 700; color: #fff; }
.prog-card-meta { font-size: 0.72rem; color: #888; }
.prog-card-days { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.prog-day-chip { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #1a1a1a; color: #888; border: 1px solid #2a2a2a; }
.day-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.day-pill { font-size: 0.72rem; padding: 4px 12px; border-radius: 12px; cursor: pointer; border: 1px solid #333; color: #888; background: #111; transition: all .15s; }
.day-pill:hover { border-color: #555; color: #ccc; }
.day-pill.active { background: #2a0a0a; border-color: #c0392b; color: #e0392b; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; position: sticky; top: 97px; background: #080808; padding: 12px 0; z-index: 10; border-bottom: 1px solid #222; align-items: flex-end; }
.search-bar input { flex: 1; min-width: 180px; background: #1a1a1a; border: 2px solid #333; color: #f0f0f0; padding: 9px 14px; border-radius: 6px; font-size: 0.88rem; }
.search-bar input:focus { outline: none; border-color: #c0392b; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px; color: #888; font-weight: 700; }
.filter-group select { background: #1a1a1a; border: 2px solid #333; color: #f0f0f0; padding: 8px 10px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; min-width: 140px; }
.filter-group select:focus { outline: none; border-color: #c0392b; }
.count { font-size: 0.75rem; color: #888; align-self: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-bottom: 40px; }
.card { background: #272727; border: 1px solid #3a3a3a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .15s; }
.card:hover { border-color: #555; }
.card.selected { border-color: #c0392b; outline: 2px solid #c0392b; }
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-name { font-size: 1rem; font-weight: 700; color: #fff; flex: 1; line-height: 1.25; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; flex-shrink: 0; margin-top: 2px; }
.day-badge { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #222; color: #aaa; border: 1px solid #333; }
.dyn-badge { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #1a2a1a; color: #5cb85c; border: 1px solid #2d5a2d; }
.static-badge { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #1a1a1a; color: #777; border: 1px solid #2a2a2a; }
.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; cursor: pointer; }
.thumb:hover { opacity: 0.85; }
.no-thumb { width: 100%; height: 100px; background: #111; border-bottom: 1px solid #222; display: flex; align-items: center; justify-content: center; color: #555; font-size: 0.72rem; }
.equip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.equip-tag { font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; background: #222; color: #aaa; border: 1px solid #333; }
.notes { font-size: 0.72rem; color: #888; background: #161616; border-left: 2px solid #333; padding: 5px 8px; border-radius: 3px; }
.prescription { font-size: 0.72rem; color: #bbb; font-style: italic; }
.level-beginner { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #0d220d; color: #6aaa6a; border: 1px solid #2d5a2d; }
.level-intermediate { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #221a0a; color: #c89a3a; border: 1px solid #5a3e10; }
.level-advanced { font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; background: #2a0a0a; color: #e0392b; border: 1px solid #5a1010; }
.video-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.video-overlay.open { display: flex; }
.video-inner { width: 100%; max-width: 860px; position: relative; }
.video-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.video-aspect { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden; }
.video-aspect iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Admin — Edit drawer ─────────────────────────────────────────── */
.edit-drawer { background: #111; border: 1px solid #333; border-radius: 8px; padding: 16px; margin-bottom: 16px; display: none; }
.edit-drawer.open { display: block; }
.edit-drawer h3 { font-size: 0.88rem; color: #fff; margin-bottom: 14px; }
.edit-drawer input[type=text], .edit-drawer textarea { width: 100%; background: #1a1a1a; border: 1px solid #2a2a2a; color: #f0f0f0; padding: 8px 10px; border-radius: 5px; font-size: 0.82rem; margin-bottom: 0; }
.edit-drawer input[type=text]:focus, .edit-drawer textarea:focus { outline: none; border-color: #c0392b; }
.edit-drawer label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.8px; color: #888; display: block; margin-bottom: 4px; margin-top: 10px; }
.edit-drawer label:first-child { margin-top: 0; }
.edit-drawer textarea { resize: vertical; min-height: 56px; font-family: inherit; }
.edit-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { border: none; border-radius: 5px; cursor: pointer; font-size: 0.8rem; font-weight: 600; padding: 7px 14px; }
.btn-red { background: #FAA71D; color: #fff; }
.btn-red:hover { background: #d4900f; }
.btn-grey { background: #222; border: 1px solid #333; color: #aaa; }
.btn-grey:hover { border-color: #555; color: #ddd; }
.btn-sm { padding: 4px 10px; font-size: 0.75rem; }
.cb-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cb-row input { width: auto; }
.cb-row label { font-size: 0.82rem; color: #ccc; margin: 0; text-transform: none; letter-spacing: 0; }
.cat-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cat-check { display: flex; align-items: center; gap: 5px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 5px; padding: 5px 10px; font-size: 0.78rem; color: #ccc; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: normal; }
.cat-check input { width: auto; margin: 0; cursor: pointer; }
.cat-check:has(input:checked) { border-color: #FAA71D; color: #FAA71D; background: #2a1a00; }
.form-toggle-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; margin-top: 6px; }
.form-toggle-wrap input[type=checkbox] { display: none; }
.form-toggle-track { width: 34px; height: 18px; background: #333; border-radius: 9px; position: relative; transition: background .2s; border: 1px solid #444; flex-shrink: 0; }
.form-toggle-wrap input:checked + .form-toggle-track { background: #1a4a1a; border-color: #2d7a2d; }
.form-toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: #666; border-radius: 50%; transition: all .2s; }
.form-toggle-wrap input:checked + .form-toggle-track::after { left: 18px; background: #5cb85c; }
.form-toggle-lbl { font-size: 0.78rem; color: #888; }

/* ── Admin — Programme builder ───────────────────────────────────── */
.prog-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.prog-toolbar select { flex: 1; min-width: 180px; background: #111; border: 1px solid #333; border-radius: 5px; color: #f0f0f0; padding: 8px 10px; font-size: 0.85rem; }
.prog-day { position: relative; overflow: hidden; background: #272727; border: 1px solid #3a3a3a; border-top: none; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.prog-day::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.prog-day-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.prog-day-hdr h3 { font-size: 0.88rem; color: #fff; flex: 1; }
.prog-ex-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.prog-ex-item { display: flex; align-items: center; gap: 8px; background: #1e1e1e; border: 1px solid #333; border-radius: 5px; padding: 7px 10px; }
.prog-ex-name { flex: 1; font-size: 0.82rem; }
.prog-ex-sub { font-size: 0.7rem; color: #888; }
.prog-ex-btns { display: flex; gap: 4px; flex-shrink: 0; }
.prog-ex-btns button { background: none; border: 1px solid #333; color: #888; border-radius: 4px; padding: 3px 8px; font-size: 0.72rem; cursor: pointer; }
.prog-ex-btns button:hover { border-color: #555; color: #ddd; }
.prog-ex-btns .del-btn:hover { border-color: #c0392b; color: #c0392b; }
.new-prog-form { background: #1a1a1a; border: 1px solid #2a4a6a; border-radius: 8px; padding: 16px; margin-bottom: 16px; display: none; }
.new-prog-form.open { display: block; }
.new-prog-form h3 { font-size: 0.85rem; color: #5a9aca; margin-bottom: 12px; }
.new-prog-form input { width: 100%; background: #111; border: 1px solid #333; border-radius: 5px; color: #f0f0f0; padding: 8px 10px; font-size: 0.85rem; }
.new-prog-form input:focus { outline: none; border-color: #c0392b; }
.new-prog-form label { font-size: 0.72rem; color: #888; display: block; margin-bottom: 4px; margin-top: 10px; }
.day-def-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.day-def-row { display: flex; gap: 8px; align-items: center; }
.day-def-row input { flex: 1; }
.day-def-row button { background: none; border: none; color: #888; cursor: pointer; font-size: 0.9rem; padding: 2px 6px; }
.day-def-row button:hover { color: #c0392b; }

/* ── Admin — Picker ──────────────────────────────────────────────── */
.picker-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 400; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; }
.picker-overlay.open { display: flex; }
.picker-box { position: relative; overflow: hidden; background: #1a1a1a; border: 1px solid #333; border-top: none; border-radius: 10px; width: 100%; max-width: 700px; margin: auto; display: flex; flex-direction: column; max-height: 88vh; }
.picker-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); z-index: 1; }
.picker-hdr { padding: 14px 16px; border-bottom: 1px solid #222; display: flex; align-items: center; gap: 10px; flex-direction: column; }
.picker-hdr h3 { flex: 1; font-size: 0.9rem; color: #fff; }
.picker-hdr input { flex: 1; background: #111; border: 1px solid #333; border-radius: 5px; color: #f0f0f0; padding: 7px 10px; font-size: 0.82rem; }
.picker-hdr input:focus { outline: none; border-color: #c0392b; }
.picker-body { display: flex; flex: 1; overflow: hidden; min-height: 0; }
.picker-list { width: 200px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid #1e1e1e; padding: 8px; }
.picker-item { padding: 8px 10px; border-radius: 5px; cursor: pointer; font-size: 0.82rem; border: 1px solid transparent; margin-bottom: 3px; }
.picker-item:hover { background: #222; }
.picker-item.active { background: #1f1010; border-color: #c0392b; }
.picker-item-sub { font-size: 0.7rem; color: #888; margin-top: 2px; }
.picker-detail { flex: 1; padding: 14px; overflow-y: auto; }
.picker-detail h4 { font-size: 0.9rem; color: #fff; margin-bottom: 6px; }
.picker-detail .meta { font-size: 0.78rem; color: #bbb; margin-bottom: 8px; }
.picker-detail .tag { display: inline-block; font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; margin: 2px; font-weight: 600; }
.tag-p { background: #2a0a0a; color: #e0392b; border: 1px solid #5a1010; }
.tag-s { background: #2a1a0a; color: #e8993a; border: 1px solid #5a3a10; }
.tag-e { background: #0d1a22; color: #7ab0cc; border: 1px solid #2a5070; }
.picker-footer { padding: 12px 16px; border-top: 1px solid #222; display: flex; gap: 10px; justify-content: flex-end; }

/* ── Video Inbox ─────────────────────────────────────────────────── */
.inbox-body { padding: 20px; }
.add-box { position: relative; overflow: hidden; background: #272727; border: 1px solid #3a3a3a; border-top: none; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.add-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.add-box h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #bbb; margin-bottom: 14px; }
.add-box textarea, .add-box input[type=text] { width: 100%; background: #111; border: 1px solid #333; border-radius: 5px; color: #f0f0f0; font-size: 0.9rem; padding: 10px 12px; font-family: inherit; resize: vertical; }
.add-box textarea { height: 80px; margin-bottom: 10px; }
.add-box input[type=text] { height: 40px; margin-bottom: 10px; }
.preview-thumb { margin: 8px 0 10px; }
.preview-thumb img { border-radius: 5px; max-width: 240px; display: block; }
.btn-save { background: #FAA71D; border: none; color: #fff; font-size: 0.9rem; font-weight: 600; padding: 10px 22px; border-radius: 5px; cursor: pointer; }
.btn-save:hover { background: #d4900f; }
.hint { font-size: 0.75rem; color: #888; margin-top: 6px; }
.backup-bar { position: relative; overflow: hidden; background: #272727; border: 1px solid #3a3a3a; border-top: none; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.backup-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.backup-bar span { font-size: 0.8rem; color: #888; flex: 1; min-width: 160px; }
.btn-backup { background: #FAA71D; border: 1px solid #FAA71D; color: #fff; font-size: 0.8rem; font-weight: 600; padding: 8px 16px; border-radius: 5px; cursor: pointer; }
.btn-backup:hover { background: #d4900f; border-color: #d4900f; }
.btn-import { background: transparent; border: 1px solid #444; color: #aaa; font-size: 0.8rem; padding: 8px 14px; border-radius: 5px; cursor: pointer; }
.btn-import:hover { border-color: #666; color: #ddd; }
.backup-msg { font-size: 0.75rem; padding: 5px 10px; border-radius: 4px; display: none; }
.backup-msg.ok { background: #1a3a1a; color: #5cb85c; display: inline-block; }
.backup-msg.dl { background: #1a2a3a; color: #5b9bd5; display: inline-block; }
.backup-msg.err { background: #3a1a1a; color: #e74c3c; display: inline-block; }
.inbox-count { font-size: 0.8rem; color: #888; margin-bottom: 14px; }
.inbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.inbox-card { position: relative; background: #272727; border: 1px solid #3a3a3a; border-top: none; border-radius: 8px; overflow: hidden; }
.inbox-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); z-index: 1; }
.thumb-wrap { position: relative; background: #111; cursor: pointer; }
.thumb-wrap img { width: 100%; display: block; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 2.5rem; opacity: 0.85; pointer-events: none; }
.inbox-card-body { padding: 12px 14px; }
.card-note { font-size: 0.8rem; color: #ccc; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.card-note:empty { display: none; }
.card-date { font-size: 0.7rem; color: #888; margin-bottom: 10px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-open { background: #2e2e2e; border: 1px solid #444; color: #f0f0f0; font-size: 0.78rem; padding: 6px 12px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-open:hover { border-color: #c0392b; color: #fff; }
.btn-done { background: transparent; border: 1px solid #555; color: #aaa; font-size: 0.78rem; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.btn-done:hover { border-color: #c0392b; color: #c0392b; }
.btn-lib { background: #FAA71D; border: 1px solid #d4900f; color: #fff; font-size: 0.78rem; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.btn-lib:hover { background: #d4900f; }
.no-videos { color: #888; font-size: 0.9rem; padding: 20px 0; }
.video-lib-input { background: #1a1a1a !important; border: 1px solid #2a2a2a !important; }
.video-lib-input:focus { border-color: #c0392b !important; }

/* ── Inbox modal player ──────────────────────────────────────────── */
.inbox-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100; align-items: center; justify-content: center; }
.inbox-modal.open { display: flex; }
.inbox-modal-inner { background: #1a1a1a; border-radius: 8px; padding: 20px; max-width: 640px; width: 90%; }
.inbox-modal-inner iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 5px; }
.btn-close { background: #333; border: none; color: #fff; padding: 8px 16px; border-radius: 4px; cursor: pointer; margin-top: 12px; font-size: 0.85rem; }
.btn-close:hover { background: #FAA71D; }

/* ── Exercise voting ─────────────────────────────────────────────── */
.vote-row { display: flex; align-items: center; gap: 6px; padding: 8px 0 0; border-top: 1px solid #1e1e1e; margin-top: 8px; }
.vote-btn { background: none; border: 1px solid #2a2a2a; color: #666; font-size: 0.75rem; padding: 4px 9px; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.vote-btn:hover { border-color: #444; color: #aaa; }
.vote-btn.voted-up { border-color: #2d5a2d; color: #6aaa6a; background: #0d1a0d; }
.vote-btn.voted-down { border-color: #5a1010; color: #c0392b; background: #1a0808; }
.vote-btn.flagged { border-color: #5a3a10; color: #c07830; background: #1a1008; }
.vote-count { font-size: 0.7rem; }
.vote-sep { flex: 1; }
.flag-btn { margin-left: auto; }

/* ── Home page overrides ─────────────────────────────────────────── */
.home-card { background: #272727 !important; border: 1px solid #3a3a3a !important; }
.home-card-primary { position: relative; overflow: hidden; border-left: none !important; background: #272727 !important; border: 1px solid #3a3a3a !important; }
.home-card-primary::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--grad-v); }
.your-prog-item { position: relative; overflow: hidden; border-left: none !important; background: #272727 !important; border: 1px solid #3a3a3a !important; }
.your-prog-item::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--grad-v); }

/* ── Media queries ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  header { padding: 10px 14px; gap: 8px; }
  .header-logo { height: 40px; }
  .header-title h1 { font-size: 0.88rem; }
  .modal { padding: 16px; }
  .modal-btns { flex-direction: column; }
  .export-bar { padding: 10px 14px; }
  .set-row { grid-template-columns: 26px 1fr 1fr auto; gap: 4px; }
  .day-tab { min-width: 52px; padding: 8px 4px; }
  .day-tab .tab-type { display: none; }
  .grid { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .picker-body { flex-direction: column; }
  .picker-list { width: 100%; border-right: none; border-bottom: 1px solid #1e1e1e; max-height: 200px; }
  .picker-box { max-height: 95vh; }
  .inbox-grid { grid-template-columns: 1fr; }
  .backup-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .settings-body { padding: 14px; }
}
@media (min-width: 1025px) {
  .day-content { max-width: 900px; margin: 0 auto; }
  .export-bar { max-width: 900px; margin: 0 auto; left: 50%; transform: translateX(-50%); border-radius: 8px 8px 0 0; }
  .panel { max-width: 1200px; margin: 0 auto; }
  .inbox-body { max-width: 1100px; margin: 0 auto; }
  .header-logo { height: 56px; }
}
