@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@500;600;700;800;900&display=swap');
/* Matchday signal: angular type, red accents, and readable personal themes. */
:root{
 --display:'Tektur','Barlow Condensed',sans-serif;
 --bg:oklch(16% .008 15);--surface:oklch(21% .008 15);--surface-raised:oklch(26% .01 15);
 --field:oklch(17% .007 15);--line:oklch(37% .012 15);--text:oklch(96% .004 15);--muted:oklch(76% .012 15);
 --red:oklch(55% .224 19);--accent-text:oklch(79% .145 19);--accent-wash:oklch(29% .065 19);
 --success:oklch(82% .08 155);--focus:oklch(83% .12 19);--card-base:oklch(18% .008 15);--inverse:oklch(98% .003 19);
 color-scheme:dark;
}
:root[data-theme=light]{
 --bg:oklch(96% .006 15);--surface:oklch(99% .003 15);--surface-raised:oklch(93% .009 15);
 --field:oklch(97% .004 15);--line:oklch(79% .012 15);--text:oklch(23% .016 15);--muted:oklch(46% .018 15);
 --red:oklch(49% .205 19);--accent-text:oklch(46% .195 19);--accent-wash:oklch(92% .035 19);
 --success:oklch(39% .09 155);--focus:oklch(46% .195 19);--card-base:oklch(98% .004 15);
 color-scheme:light;
}
body{background:var(--bg);color:var(--text)}
.site-header{border-bottom-color:var(--line);height:88px;gap:44px}.brand{font-size:17px;letter-spacing:.4px}.brand b{font-size:12px;letter-spacing:3px}.crest{font-size:17px}.crest span{font-size:8px}.header-tab{font-size:12px;letter-spacing:.7px}.header-right{gap:16px}
.theme-switch{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:3px;background:var(--surface)}
.theme-switch button{display:flex;align-items:center;gap:6px;min-height:38px;padding:7px 10px;font-size:12px;color:var(--muted)}
.theme-switch button[aria-pressed=true]{background:var(--surface-raised);color:var(--text);font-weight:800;box-shadow:inset 0 -2px var(--red)}
.page-heading{align-items:flex-end;padding:8px 0 8px;position:relative}.page-heading:after{content:'';position:absolute;right:0;top:10px;width:96px;height:8px;background:repeating-linear-gradient(120deg,var(--red) 0 2px,transparent 2px 8px);opacity:.7}
h1{font-family:var(--display);font-size:3rem;line-height:1.05;letter-spacing:-1.4px;font-weight:800}h1>span{color:var(--accent-text)}.page-heading .eyebrow{font-size:.65rem;letter-spacing:2px;margin-bottom:14px}.heading-description{font-size:.8rem;max-width:48ch;line-height:1.7;margin-top:14px}.heading-actions{padding-bottom:3px}.heading-actions .button{font-size:.75rem}
.button,.icon-button,.format-control,.formation-control select,.panel,.bench-person-card,dialog{border-radius:2px}.button{min-height:44px;letter-spacing:.15px}.button.primary,.add-button{background:var(--red);color:var(--inverse)}.button.primary:hover,.add-button:hover{background:color-mix(in oklch,var(--red),var(--text) 12%)}
.button.secondary,.icon-button,.board-option,.picker-player,.position-filter,.position-option>span,.formation-control select{background:var(--surface-raised);border-color:var(--line);color:var(--text)}
.button.secondary:hover,.icon-button:hover,.board-option:hover,.picker-player:hover,.bench-edit:hover{background:var(--accent-wash);border-color:var(--red);color:var(--text)}
.share-button{color:var(--accent-text);border-color:var(--red)}.share-button:hover{background:var(--accent-wash)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--focus)}
.team-bar{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;gap:24px;padding:20px 0;margin:16px 0 26px;align-items:center}
.workspace-modes{display:flex;border:1px solid var(--line);background:var(--surface);padding:4px;gap:4px}
.workspace-modes button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 13px;font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}
.workspace-modes button[aria-pressed=true]{background:var(--red);color:var(--inverse)}.mode-symbol{font-size:17px}.team-mode{font-size:10px;letter-spacing:.8px;margin-right:12px}.team-mode:before{border-radius:0;transform:rotate(45deg);width:5px;height:5px}.team-bar p{font-size:12px;line-height:1.7;max-width:65ch;margin-top:8px}.save-explanation{min-width:0}.save-status{font-size:11px;color:var(--muted)}.save-status:before{color:var(--success)}.save-status[data-status=offline]:before,.save-status[data-status=error]:before,.save-status[data-status=conflict]:before,.save-status[data-status=denied]:before{color:var(--accent-text)}.team-bar-actions{justify-content:flex-end;gap:8px}.team-bar-actions .button{font-size:12px}.team-bar .team-mode{display:inline-flex}.publish-summary{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}.publish-summary strong{font:600 18px/1.4 var(--display)}.publish-summary p{font-size:12px;color:var(--muted);margin:8px 0 0}
.panel-top h2{font-size:1.35rem;line-height:1.4;letter-spacing:-.2px}.panel-top p{font-size:11px}.count{background:var(--surface-raised);color:var(--muted);border-radius:2px}.squad-tabs button{font-size:12px}.squad-search input,.form-field input,.form-field select,.share-link-field input{background:var(--field);border-color:var(--line);color:var(--text)}.form-field label{color:var(--text)}
.player-card{background:var(--card-base);border-color:var(--line);border-radius:2px}.card-art{height:150px}.card-number{font-size:100px;letter-spacing:-8px;top:28px;transform:rotate(-7deg);color:oklch(18% .02 19)}.card-monogram{font-size:42px;letter-spacing:-2px;transform:rotate(-7deg);inset:auto 0 16px;color:var(--inverse)}.card-art:after{background:linear-gradient(0deg,var(--card-base),transparent 36%)}.card-name{min-height:66px;padding-top:4px}.card-name strong{font-size:15px;line-height:1.3;font-weight:700;letter-spacing:-.3px}.card-name small{font-size:10px;color:var(--muted);letter-spacing:.6px}.card-bottom{background:var(--surface-raised);color:var(--muted);border-color:var(--line)}.card-edit{color:var(--text)}.card-edit:hover{color:var(--accent-text)}.card-status.on{color:var(--success)}.card-status.absent{color:var(--muted)}.card-positions small,.position-help,.position-count,.player-positions>p,.position-group-label,.dialog-description,.form-note,.saved-item p,.help-steps,.lineup-log{color:var(--muted)}
.card-positions>span,.bench-role-badges>span,.bench-chip>.bench-number{background:var(--accent-wash);border-color:var(--line);color:var(--accent-text)}
.position-filter.active,.position-option input:checked+span{background:var(--accent-wash);border-color:var(--red);color:var(--accent-text)}.position-filter.active .position-count,.position-option b,.position-options input:checked+span b{color:var(--accent-text)}.position-option input:focus-visible+span{outline-color:var(--focus)}
.board-title h2{font-size:1.4rem;line-height:1.35;letter-spacing:-.5px}.board-title .eyebrow{color:var(--muted);font-size:9px}.board-title{gap:12px}.lineup-count{color:var(--success);background:var(--surface-raised);border-color:var(--line);white-space:nowrap}.formation-control label{color:var(--muted)}.format-control button{color:var(--muted)}.format-control button.active{color:var(--inverse);background:var(--red)}
.slot-player .slot-number{font-size:27px}.slot-player .slot-monogram{font-size:36px}.pitch-hint,.pitch-hint button,.hint-icon{color:var(--muted)}.slot-name,.position-label{color:oklch(94% .02 155)}.bench h2{font-size:1.2rem;line-height:1.4}.bench-person-card{background:var(--surface-raised)}.bench-person-card .bench-chip.selected{background:var(--accent-wash)}.bench-chip>.bench-person{color:var(--text)}.bench-chip>.bench-number{font-size:14px}.bench-player-name{font-size:12px}.bench-role-badges>span{font-size:10px}.text-button,.danger-button,.form-error,.guest-tag,.saved-formation,.share-match{color:var(--accent-text)}.bench-chip .guest-tag{color:var(--accent-text)}
dialog{background:var(--surface);border-color:var(--line);width:min(600px,calc(100vw - 28px))}dialog h2{font-size:1.6rem;line-height:1.25;letter-spacing:-.6px}.picker-number{color:var(--accent-text);font-size:21px}.photo-preview{color:var(--inverse);font-size:22px}.saved-formation{font-size:19px}.sync-alert{background:var(--accent-wash);border-color:var(--red)}.sync-alert span{color:var(--text)}.page-footer button{color:var(--text)}.page-footer button:hover{color:var(--accent-text)}.selected-message{color:var(--accent-text)!important}
[data-theme=light] .pitch{background:repeating-linear-gradient(0deg,oklch(35% .066 158) 0%,oklch(35% .066 158) 12.5%,oklch(38% .066 158) 12.5%,oklch(38% .066 158) 25%)}
@media(min-width:1450px){.card-art{height:166px}.card-number{font-size:118px}.card-monogram{font-size:48px}}
@media(max-width:1200px){.team-bar{grid-template-columns:auto 1fr;gap:16px}.team-bar-actions{grid-column:2}.save-explanation{grid-column:2;grid-row:1}.workspace-modes{grid-row:1/3;flex-direction:column}.page-heading:after{display:none}.card-art{height:132px}.card-number{font-size:87px}.card-monogram{font-size:36px}.card-name strong{font-size:13px}.card-name{min-height:62px}.board-title h2{font-size:1.2rem}}
@media(max-width:900px){.page-heading{align-items:flex-end}.heading-actions{max-width:240px}.card-art{height:116px}.card-number{font-size:74px}.card-monogram{font-size:32px}.card-name strong{font-size:12px}.board-title{align-items:flex-start;flex-wrap:wrap}.lineup-count{margin-left:0}}
@media(max-width:760px){
 .site-header{height:auto;min-height:80px;padding:14px 16px;gap:12px;flex-wrap:wrap}.header-tab{display:none}.header-right{gap:8px}.brand{font-size:13px;gap:8px}.brand b{font-size:9px;letter-spacing:2.5px}.crest{width:30px;height:38px;font-size:14px}.theme-switch button{padding:6px 8px;font-size:11px;min-height:34px;gap:4px}.site-header .icon-button{min-width:34px;min-height:40px}
 main{padding:26px 16px 0}.page-heading{align-items:flex-start;gap:24px}.page-heading .eyebrow{font-size:9px}h1{font-size:2.4rem;line-height:1.08;letter-spacing:-1.1px}.heading-description{font-size:12px;max-width:34ch}.heading-actions{max-width:none;width:100%;gap:6px}.heading-actions .button{font-size:11px;padding:9px 7px;white-space:normal}.heading-actions .share-button{flex:1}
 .team-bar{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:18px 0;margin:4px 0 20px}.workspace-modes{flex-direction:row;width:100%}.workspace-modes button{flex:1;font-size:13px;min-height:46px}.save-explanation{width:100%}.team-bar p{font-size:12px;max-width:none;margin-top:7px}.team-bar .team-mode{font-size:10px}.save-status{font-size:11px}.team-bar-actions{justify-content:flex-start;width:100%}.team-bar .button{min-height:44px;max-width:none;font-size:12px;padding:10px 13px}.team-bar-actions .button{flex:1}.team-bar .button[hidden]{display:none}
 .board-title{flex-wrap:nowrap;gap:10px}.board-title h2{font-size:1.1rem}.board-title .eyebrow{font-size:8px}.lineup-count{font-size:10px;margin-top:2px}.slot-player .slot-number{font-size:23px}.slot-player .slot-monogram{font-size:30px}.pitch[data-format='11'] .slot-number{font-size:20px}.pitch-hint{font-size:11px}.bench h2{font-size:1.05rem}.panel-top h2{font-size:1.35rem}.card-art{height:155px}.card-number{font-size:108px}.card-monogram{font-size:44px}.card-name strong{font-size:15px}.card-name{min-height:66px}.card-name small{font-size:10px}.roster{gap:14px 10px}.card-bottom{font-size:10px}.card-edit{font-size:11px}.position-option>span{font-size:12px}.position-option b{font-size:12px}.position-options{grid-template-columns:1fr}.bench-unset-help,.bench-group-note{font-size:12px}.bench-group-heading h3{font-size:13px}.publish-summary strong{font-size:16px}dialog h2{font-size:1.4rem}
}
@media(max-width:380px){.theme-switch button span{display:none}.theme-switch button{font-size:16px;min-width:34px}.site-header{gap:8px}h1{font-size:2.1rem}.board-title{flex-wrap:wrap}.card-art{height:133px}.card-number{font-size:90px}.card-monogram{font-size:38px}.card-name strong{font-size:13px}.heading-actions .button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Full names have one consistent typographic treatment, in reading order. */
.player-card{display:flex;flex-direction:column}.card-art{flex-shrink:0}.card-name strong{text-wrap:balance;line-height:1.35}.card-positions{margin-top:auto}

/* One shared board: no save-destination switch. */
.team-bar{grid-template-columns:minmax(0,1fr) auto}.team-bar .save-explanation{grid-column:1;grid-row:1}.team-bar .team-bar-actions{grid-column:2;grid-row:1}
@media(max-width:700px){.team-bar{display:flex}.team-bar .team-bar-actions{flex-wrap:wrap}.team-bar-actions .button{flex:1 1 auto}}

/* Matchday clarity: actions sit with the task, extra controls unfold on demand. */
.page-heading{align-items:center;gap:24px;padding-bottom:0}.page-heading:after{display:none}.page-heading h1{font-size:2rem;line-height:1.2;letter-spacing:-.6px;text-transform:none}.heading-description{margin-top:8px;font-size:14px}.heading-actions{max-width:none;flex-wrap:nowrap}.heading-actions .button{min-width:100px;font-size:14px;min-height:44px}
.team-bar{padding:16px 0;margin:12px 0 24px;gap:16px}.team-bar p{font-size:13px;margin-top:6px}.team-bar-actions:has(>button:not([hidden])){display:flex}.team-bar-actions:not(:has(>button:not([hidden]))){display:none}.team-bar .save-status{font-size:12px}.team-bar .team-mode{font-size:10px}.team-bar:has(.team-bar-actions:not(:has(>button:not([hidden])))){grid-template-columns:1fr}
.preview-note{background:var(--accent-wash);border:1px solid var(--line);padding:16px;font-size:14px;line-height:1.6;margin:0 0 20px}
.panel-top{gap:12px}.panel-top .add-button{width:auto;height:auto;min-height:44px;padding:10px 14px;font-size:13px;font-weight:700;white-space:nowrap}.panel-top p{font-size:12px}
.board-toolbar{align-items:flex-end;gap:16px;flex-wrap:wrap;padding-bottom:12px}.match-setting{display:flex;flex-direction:column;gap:8px}.control-label,.formation-control label{font-size:11px;font-weight:700;line-height:1.4;color:var(--muted);display:block;text-transform:none;letter-spacing:.2px}.formation-control{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-left:0}.formation-control select{min-height:44px;min-width:100px;font-size:14px}.format-control button{min-height:42px;font-size:13px;padding:9px 12px}.board-tools{margin-left:auto;display:flex;gap:8px}.board-tools .button{min-height:44px;font-size:12px;padding:10px 12px}.formation-explanation{margin:0;padding:0 24px 16px;font-size:12px;line-height:1.7;color:var(--muted);border-bottom:1px solid var(--line)}
.card-select{display:flex;flex-direction:column;align-items:stretch;flex:1;width:100%;padding:0;text-align:left;color:inherit;border-radius:0;cursor:pointer}.card-select:disabled{cursor:default;opacity:1}.card-art{display:block;width:100%;flex-shrink:0}.card-name{display:block;min-height:0;padding:12px 12px 8px}.card-name strong{font-size:14px;line-height:1.4}.card-select .card-positions{min-height:28px;margin-top:auto}.card-action-label{display:block;padding:10px 12px 12px;font-size:11px;line-height:1.5;color:var(--muted)}.card-select:hover:not(:disabled) .card-action-label{color:var(--accent-text)}.card-bottom{gap:4px;padding:6px 10px;min-height:48px}.card-status{font-size:11px;line-height:1.5}.card-edit{min-width:44px;min-height:44px;font-size:12px}.card-select:focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
.bench-person-card .bench-edit{width:auto;min-width:48px;font-size:12px;font-weight:700;min-height:44px}.bench-action{font-size:10px;color:var(--muted);display:block;margin-top:3px}.bench-person{padding:2px 0}.bench-person-card{align-items:stretch}.bench-players .bench-chip{min-height:64px}.bench-number{flex-shrink:0}.bench-role-badges{margin-top:6px}
.picker-search{margin:16px 0}.picker-search label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}.picker-search input{width:100%;min-height:44px;padding:12px;background:var(--field);border:1px solid var(--line);color:var(--text);font-size:14px}.picker-group h3{font:600 12px/1.5 var(--body);color:var(--muted);margin:18px 0 8px}.picker-group:first-child h3{margin-top:0}.picker-player{min-height:64px;width:100%;text-align:left;gap:12px}.picker-player strong{font:600 14px/1.5 var(--body)}.picker-player small{line-height:1.6;margin-top:3px}.picker-list{max-height:45vh}.placement-list{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow:auto;padding:2px}.placement-option{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;min-height:64px;background:var(--field);border:1px solid var(--line);color:var(--text)}.placement-option:hover:not(:disabled){border-color:var(--red);background:var(--accent-wash)}.placement-option strong{font-size:14px;line-height:1.4}.placement-option small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px}.position-code{min-width:38px;color:var(--accent-text);font:600 16px/1.4 var(--display)}.fit-label{margin-left:auto;font-size:10px;color:var(--success)}.placement-option:disabled{opacity:.65;cursor:default}
.player-basics{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px}.player-basics .form-field{margin:0}.current-assignment{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;border-block:1px solid var(--line);padding:12px 0;margin:20px 0;font-size:13px}.current-assignment>span{color:var(--muted)}.current-assignment small{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.6}.player-positions{margin:20px 0 12px}.player-positions>p{font-size:13px;line-height:1.6}.position-options.compact-positions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compact-positions .position-option>span{min-height:52px;align-items:center;padding:10px;font-size:12px;line-height:1.4}.compact-positions .position-option b{min-width:22px;font-size:11px}.player-flags{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0}.player-flags .form-check{margin:0;min-height:44px;font-size:13px}.profile-extras{border-top:1px solid var(--line);margin-top:16px}.profile-extras summary,.backup-tools summary,.lineup-more summary{cursor:pointer;font-weight:600;min-height:44px;padding:12px 0;font-size:13px;line-height:1.5}.profile-extras .photo-input{margin:12px 0}.profile-extras .danger-button{min-height:44px}.form-actions{position:sticky;bottom:-28px;background:var(--surface);border-top:1px solid var(--line);padding:16px 0 4px;z-index:2}.form-actions .button{min-height:44px;flex:1}.dialog-description{font-size:14px;line-height:1.7}.form-note{font-size:12px;line-height:1.7}
.lineup-create{margin:0 0 20px;width:100%;min-height:48px}.saved-list{border-top:1px solid var(--line)}.saved-item{gap:16px}.saved-item strong{font-size:15px;line-height:1.5}.saved-item-actions{align-items:flex-start;flex-wrap:wrap;gap:8px}.saved-item-actions>button{min-height:44px}.lineup-more{margin-left:auto}.lineup-more summary{font-size:12px;padding:12px 4px}.lineup-more[open]{flex-basis:100%;display:block;margin-left:0}.lineup-more button{min-height:44px;margin-right:12px}.share-choice{padding:0 0 24px}.share-choice+ .share-choice{padding:24px 0 0;border-top:1px solid var(--line)}.share-choice h3{font:600 18px/1.4 var(--display);margin:0 0 8px}.share-choice p{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 16px}.share-choice>.button{min-height:44px;margin:0 8px 8px 0}.share-link-field{margin:0}.share-link-field label{font-size:12px}.share-link-field input{font-size:12px}.share-link-field .button{min-height:44px;white-space:nowrap}
.backup-tools{text-align:left;max-width:360px}.backup-tools p{font-size:12px;line-height:1.7;color:var(--muted)}.backup-tools button{min-height:44px;padding:8px 12px 8px 0;display:inline-block;font-size:12px}.backup-tools #footer-storage{display:block;color:var(--muted);font-size:11px;margin-top:8px}.backup-tools summary{font-size:12px;padding:0;min-height:44px;display:list-item;line-height:44px}
@media(max-width:900px){.board-tools{margin-left:0}.board-toolbar{gap:12px}.formation-explanation{padding-inline:20px}.page-heading h1{font-size:1.75rem}}
@media(max-width:760px){.page-heading{flex-direction:row;align-items:flex-start;flex-wrap:wrap;gap:16px}.page-heading h1{font-size:1.6rem}.heading-description{font-size:12px;margin-top:6px}.heading-actions{width:auto;gap:8px}.heading-actions .button{min-width:100px;font-size:13px;padding:10px 16px}.team-bar{gap:12px;margin:12px 0 20px;padding:14px 0}.team-bar p{font-size:12px}.board-toolbar{padding:16px;column-gap:12px;row-gap:16px}.format-control button{padding:9px 10px}.formation-control label{display:block!important}.formation-control select{min-width:90px}.board-tools{margin-left:auto;flex:1 1 auto;justify-content:flex-end}.board-tools .button{font-size:12px;min-width:60px}.formation-explanation{padding:0 16px 14px;font-size:11px}.panel-top .add-button{font-size:12px;padding:10px}.card-name strong{font-size:14px}.card-action-label{font-size:11px}.card-art{height:135px}.card-number{font-size:90px}.card-monogram{font-size:38px}.card-name{min-height:0}.card-bottom{font-size:11px}.card-edit{font-size:12px}.card-status{font-size:11px}.player-basics{grid-template-columns:minmax(0,1fr) 90px;gap:12px}.player-basics label{font-size:12px}.form-field input{padding:12px;min-height:44px}.compact-positions .position-option>span{font-size:11px;padding:8px;min-height:58px}.position-options.compact-positions{gap:8px}.player-positions .position-option b{font-size:10px;min-width:20px}.form-actions{bottom:-24px}.placement-option{padding:10px;gap:8px}.placement-option strong{font-size:13px}.fit-label{font-size:9px}.saved-item{grid-template-columns:1fr;display:block}.saved-formation{font-size:14px;margin-bottom:8px}.saved-item-actions{gap:8px}.share-choice>.button{width:100%;margin-right:0}.share-choice p{font-size:13px}.share-link-field>div{display:flex;flex-wrap:wrap;gap:8px}.share-link-field input{min-width:0;flex:1 1 200px}.share-link-field .button{flex:0 0 auto}.page-footer{align-items:flex-start}.backup-tools{width:100%}.pitch-hint{align-items:flex-start;gap:10px}.pitch-hint button{min-height:44px;white-space:normal}}

.form-actions{bottom:0;padding:12px 0;background:var(--surface)}
/* Keep URL inputs one line when the copy action wraps on a narrow screen. */
.share-link-field input{height:44px;min-height:44px}
@media(max-width:760px){.share-link-field>div{flex-direction:row;align-items:stretch}.share-link-field input{flex:1 1 200px}.share-link-field .button{flex:0 0 auto}}
