@font-face { font-family:Fightr Condensed;src:url('./fonts/BarlowCondensed-Bold.ttf') format('truetype');font-weight:700 800;font-display:swap; }
@font-face { font-family:Fightr Condensed;src:url('./fonts/BarlowCondensed-Regular.ttf') format('truetype');font-weight:400 600;font-display:swap; }
@font-face { font-family:Fightr Display;src:url('./fonts/BarlowCondensed-BlackItalic.ttf') format('truetype');font-weight:900;font-style:italic;font-display:swap; }
@font-face { font-family:Fightr Brush;src:url('./fonts/Knewave-Regular.ttf') format('truetype');font-weight:400;font-display:swap; }
/* Explicit opt-in. Existing hosts keep their shipped design until integrated. */
html[data-fightr-style="ink"] { --fightr-font:"Arial Narrow","Roboto Condensed",Arial,sans-serif;--fightr-heading:"Arial Narrow",Impact,Arial,sans-serif;--chalk:#f5eedf;--steel:#d2c9b8;--surface:rgba(17,27,32,.96);--surface-raised:#263237;--line:#687574;--fightr-input:#152126;--fightr-on-red:#fff3df;--fightr-scene-veil:rgba(5,12,16,.38);--fightr-scene-quiet:rgba(4,8,11,.93);--fightr-page:#10191d;color-scheme:dark;color:var(--chalk);background:var(--fightr-page);font-family:var(--fightr-font); }
html[data-fightr-theme="light"] { --chalk:#24241f;--steel:#51534a;--surface:rgba(247,237,215,.97);--surface-raised:#eee2c9;--line:#78786b;--fightr-input:#f8efdc;--fightr-scene-veil:rgba(222,214,192,.18);--fightr-scene-quiet:rgba(246,235,213,.94);--fightr-page:#e9dfcb;color-scheme:light; }
html[data-fightr-style="ink"] body { background:transparent;color:var(--chalk);font-family:var(--fightr-font); }
html[data-fightr-style="ink"] { --fightr-font:"Fightr Condensed",Arial,sans-serif;--fightr-heading:"Fightr Display","Arial Narrow",Arial,sans-serif; }
html[data-fightr-style="ink"] .app-shell { position:relative;z-index:1;max-width:860px;padding-inline:20px; }
html[data-fightr-style="ink"] .app-shell > main { margin-bottom:24px; }
html[data-fightr-style="ink"] .fightr-scene-shell { position:relative;z-index:1;width:100%;max-width:860px;margin-inline:auto;padding:0 20px 24px; }
html[data-fightr-style="ink"] .fightr-scene-shell > main { margin-top:0; }
html[data-fightr-style="ink"] .fightr-scene-shell .fightr-scene-heading { text-align:center; }
html[data-fightr-style="ink"] .fightr-app-navigation { background:var(--surface);margin:0 -6px 12px;padding-inline:0;border-color:var(--line);backdrop-filter:blur(5px); }
html[data-fightr-style="ink"] .fightr-tabs button { color:var(--chalk);font-weight:750; }
html[data-fightr-style="ink"] .fightr-tabs button[aria-current="page"] { color:var(--fightr-on-red);background:var(--fight-red);border-radius:8px;box-shadow:none; }
html[data-fightr-style="ink"] .fightr-scene-heading { min-height:clamp(170px,27vh,280px);padding:6px 4px 30px;display:flex;align-items:start;justify-content:center; }
html[data-fightr-style="ink"] .fightr-scene-heading h1 { margin:12px 0;font:400 clamp(1.65rem,6.7vw,2.7rem)/1.3 "Fightr Brush",Impact,sans-serif;letter-spacing:-.035em;color:#fff0d7;text-shadow:0 2px 2px #000;transform:rotate(-1.5deg); }
/* Every card surface opts into one contract; no app-class allowlist. */
html[data-fightr-style="ink"] .fightr-surface { position:relative;isolation:isolate;color:var(--chalk);background:transparent!important;border:0!important;box-shadow:none;border-radius:0!important;padding:var(--fightr-surface-padding,18px); }
html[data-fightr-style="ink"] .fightr-surface::before,
html[data-fightr-style="ink"] .fightr-surface::after { content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background:var(--line);border-radius:12px;mask-image:url('./ink-panel.svg'),url('./ink-panel-bottom.svg'),url('./ink-panel-left.svg'),url('./ink-panel-right.svg'),linear-gradient(#fff,#fff);mask-size:48px 6px,48px 6px,6px 48px,6px 48px,calc(100% - 10px) calc(100% - 10px);mask-position:top,bottom,left,right,center;mask-repeat:repeat-x,repeat-x,repeat-y,repeat-y,no-repeat;mask-composite:add; }
html[data-fightr-style="ink"] .fightr-surface::after { inset:1.5px;z-index:-1;background:var(--surface); }
html[data-fightr-style="ink"] dialog.fightr-surface { position:fixed; }
html[data-fightr-style="ink"] .fightr-surface > label { display:block; }
html[data-fightr-style="ink"] .fightr-surface > label > :where(input,select) { margin-top:8px; }
html[data-fightr-style="ink"] .fightr-card { margin-block:18px;padding:18px; }
html[data-fightr-style="ink"] .fightr-card-title { font:800 1.2rem/1.3 var(--fightr-font);color:var(--chalk); }
html[data-fightr-style="ink"] :where(p,label,.setting-copy p,.warning-help,.setup-summary,.recording-help,.recording-usage,.settings-intro,.settings-category-description,.exercise-summary span,.exercise-description,.chart-detail) { color:var(--steel); }
html[data-fightr-style="ink"] :where(h1,h2,h3,strong,.setting-copy h3,.setting-row,.recording-setup label) { color:var(--chalk); }
html[data-fightr-style="ink"] :where(input,select,textarea,.time-trigger,.number-stepper,.timer-control,.restore-packages) { color:var(--chalk)!important;background-color:var(--fightr-input)!important;border-color:var(--line)!important; }
html[data-fightr-style="ink"] :where(button:not(.fightr-primary-button):not(.fightr-offer-strip):not(.timer-primary),.file-button) { color:var(--chalk); }
html[data-fightr-style="ink"] .settings-category { background:var(--fightr-input);border-color:var(--line);color:var(--chalk); }
html[data-fightr-style="ink"] .settings-category :where(p,span,small),
html[data-fightr-style="ink"] .settings-category-description { color:var(--steel); }
html[data-fightr-style="ink"] :where(.setting-icon,.time-trigger span,.number-stepper button,.settings-category-number,.settings-category-arrow) { color:var(--fight-red-light)!important;border-color:var(--line); }
html[data-fightr-style="ink"] .fightr-primary-button { position:relative;isolation:isolate;background:transparent!important;border-radius:0!important;color:var(--fightr-on-red)!important;font:italic 900 1.5rem/1.1 var(--fightr-heading);min-height:62px; }
html[data-fightr-style="ink"] .fightr-primary-button::before { content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--fight-red);mask:url('./ink-action.svg') center/100% 100% no-repeat; }
html[data-fightr-style="ink"] .fightr-primary-button:hover::before { background:var(--fight-red-light); }
html[data-fightr-style="ink"] .fightr-primary-label { position:relative;z-index:1;display:inline-block; }
html[data-fightr-style="ink"] .fightr-framed-app { padding-top:calc(49px + env(safe-area-inset-top,0px)); }
html[data-fightr-style="ink"] .fightr-app-navigation.fightr-nav-full { position:fixed;inset:0 0 auto;width:100%;margin:0;border-radius:0; }
html[data-fightr-style="ink"] .fightr-nav-full .fightr-tabs button { flex:1 0 auto; }
html[data-fightr-style="ink"] .fightr-nav-full .fightr-tabs-settings { flex:0 0 48px!important;margin-left:0; }
html[data-fightr-style="ink"] .fightr-settings-back { margin:0 0 12px; }
@media(orientation:landscape) and (max-height:600px) { html[data-fightr-style="ink"] .fightr-scene-heading { min-height:190px; } html[data-fightr-style="ink"] .fightr-scene-heading h1 { font-size:2rem; } }
html[data-fightr-style="ink"] .fightr-recording-card .recording-setup { color:var(--chalk);background:transparent;border:0; }
html[data-fightr-style="ink"] :where(.fightr-app-dock,.native-app-dialog,.fightr-recording-dialog,.recording-dialog,dialog,.pwa-banner,.pwa-anchor-privacy,#pwa-update) { color:var(--chalk);background:var(--surface)!important;border-color:var(--line); }
html[data-fightr-style="ink"] :where(.fightr-offer-strip,.fightr-native-highlight) { background:var(--surface-raised)!important;color:var(--chalk); }
html[data-fightr-style="ink"] :where(.fightr-foreground-hint,.fightr-legal) { background:var(--surface);padding:12px;border-radius:10px;color:var(--chalk); }
html[data-fightr-style="ink"] .training-total { padding:16px;margin-top:0; }
html[data-fightr-style="ink"] .training-total strong { color:var(--chalk); }
html[data-fightr-style="ink"] :where(.training-total>span,.pwa-banner>small,.pwa-anchor-privacy button,.affiliate-disclosure) { color:var(--steel)!important; }
html[data-fightr-style="ink"] .equipment-recommendation :where(a,button) { color:var(--chalk)!important;background:var(--surface)!important;border-color:var(--line); }
html[data-fightr-style="ink"] .equipment-recommendation small { color:var(--steel); }
html[data-fightr-style="ink"] .recording-export a { color:var(--chalk); }
html[data-fightr-style="ink"] .pwa-banner .text-action { color:var(--steel)!important; }
html[data-fightr-style="ink"] :where(:is(.app-shell,.fightr-scene-shell) button:not(.fightr-primary-button):not(.timer-primary):not(.fightr-offer-strip):not([aria-current="page"])) { background:var(--fightr-input);border-color:var(--line); }
html[data-fightr-style="ink"] :is(.app-shell,.fightr-scene-shell) button:not(.fightr-primary-button):not(.timer-primary):not(.fightr-offer-strip):not([aria-current="page"]):hover { background:var(--surface-raised); }
html[data-fightr-style="ink"] .chart-axis { fill:var(--steel); }
html[data-fightr-style="ink"] .chart-grid { stroke:var(--line); }
html[data-fightr-theme="light"] :where(.notice.error,.danger) { color:#ae211b!important; }
html[data-fightr-style="ink"] .timer-card { color:var(--chalk);background:transparent!important; }
html[data-fightr-style="ink"] .timer-card::before { background:radial-gradient(ellipse at center,transparent 35%,color-mix(in srgb,var(--phase-vignette) 36%,transparent) 100%);box-shadow:inset 0 0 0 3px var(--phase-vignette),inset 0 0 85px 5px color-mix(in srgb,var(--phase-vignette) 62%,transparent); }
html[data-fightr-style="ink"] .timer-card.is-solid-phase::before { background:var(--phase-vignette);box-shadow:none; }
html[data-fightr-style="ink"] .timer-card :where(.phase-chip,.timer-position,.countdown,.exercise-display,.exercise-status,.exercise-caption) { color:var(--chalk); }
html[data-fightr-style="ink"] .timer-card.is-solid-phase :where(.countdown,.phase-chip,.timer-position,.exercise-display,.exercise-status,.exercise-caption) { color:#fff6e5; }
html[data-fightr-style="ink"] .phase-chip { background:var(--surface);border-color:var(--line); }
html[data-fightr-style="ink"] .timer-primary { background:var(--phase-accent,#e94439)!important;color:#111!important; }
html[data-fightr-style="ink"] .countdown { font-family:"Fightr Condensed",Arial,sans-serif;font-variant-numeric:tabular-nums; }
html[data-fightr-style="ink"] .fightr-theme-picker { border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:18px; }
html[data-fightr-style="ink"] .fightr-theme-picker label { display:block;margin-bottom:8px;font-weight:800;color:var(--chalk); }
html[data-fightr-style="ink"] .fightr-theme-picker select { width:100%;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:9px; }
html[data-fightr-style="ink"] .fightr-theme-picker p { font-size:.85rem;margin:8px 0 0; }
html[data-fightr-style="ink"] :where(.time-picker,.picker-display) { color:var(--chalk);background:var(--fightr-input);border-color:var(--line); }
html[data-fightr-style="ink"] .common-times span { color:var(--steel); }
html[data-fightr-style="ink"] .fightr-legal { width:fit-content;margin-inline:auto;padding:6px 12px;border-radius:5px; }
@media(max-width:400px) { html[data-fightr-style="ink"] :is(.app-shell,.fightr-scene-shell) { padding-inline:12px; } html[data-fightr-style="ink"] .fightr-card { padding:14px; } }

html[data-fightr-style="ink"] .fightr-training-setup { width:100%;max-width:100%;margin-inline:auto; }
html[data-fightr-style="ink"] .package-picker { margin-block:16px; }
html[data-fightr-style="ink"] select { appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--chalk) 50%),linear-gradient(135deg,var(--chalk) 50%,transparent 50%);background-size:5px 5px;background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-repeat:no-repeat;padding-right:34px!important; }

/* Ragged decoration belongs outside the controls; edge tiles keep pixel scale. */
html[data-fightr-style="ink"] .fightr-app-navigation { border-bottom:0; }
html[data-fightr-style="ink"] .fightr-app-navigation::after { content:"";position:absolute;inset:auto 0 -5px;height:6px;pointer-events:none;background:var(--surface);mask:url('./ink-panel-bottom.svg') top/48px 6px repeat-x; }
html[data-fightr-style="ink"] .fightr-app-dock { border-top:0; }
html[data-fightr-style="ink"] .fightr-app-dock::before { content:"";position:absolute;inset:-5px 0 auto;height:6px;pointer-events:none;background:var(--surface-raised);mask:url('./ink-panel.svg') bottom/48px 6px repeat-x; }
html[data-fightr-style="ink"] .file-button { color:var(--chalk);background:var(--fightr-input)!important;border-color:var(--line); }
html[data-fightr-style="ink"] button.primary { color:var(--fightr-on-red)!important;background:var(--fight-red)!important; }
html[data-fightr-style="ink"] button.primary:hover { background:var(--fight-red-light)!important; }
