:root{font-family:Segoe UI,Arial,sans-serif;color:#e9f2fa;background:#081725;color-scheme:dark;--muted:#aac0d1;--line:#274258;--accent:#46c4e5}*{box-sizing:border-box}body{margin:0;max-width:1600px;margin:auto;padding:28px 36px}header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding-bottom:24px}.brand{display:flex;align-items:center;gap:16px}.brand svg{color:var(--accent)}h1{font-size:28px;margin:0 0 8px}h1 span{font-weight:300;color:var(--accent)}small{color:#95cde3;font-size:12px;letter-spacing:1px}h2{font-size:32px;margin:16px 0}h3{font-size:21px;margin:12px 0}p{color:var(--muted);line-height:1.6}button,input,select{font:inherit;border:1px solid var(--line);border-radius:8px;background:#142b3d;color:inherit;padding:12px 16px}button{cursor:pointer}button:hover{background:#21445b}button:disabled{opacity:.4;cursor:default}button.primary{background:#15647a;border-color:#368ca0}button.active{border-color:var(--accent);color:var(--accent)}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}nav{display:flex;gap:12px;margin:22px 0;align-items:center;flex-wrap:wrap}#accountBadge{margin-left:auto;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.languages{display:flex;gap:8px}.languages button{font-size:13px;padding:9px}#message{min-height:32px;color:#a8d8e7;line-height:1.5;white-space:pre-wrap;margin:16px 0}#message.error{color:#ffb1ac}.intro{max-width:800px}.intro p{font-size:18px}.setup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:30px 0}.step,fieldset{background:#102637;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.step-no{display:inline-block;color:var(--accent);font-size:22px;font-weight:600;border-bottom:2px solid #368ca0;padding-bottom:8px}.step input:not([type=checkbox]),.step select{width:100%;margin:10px 0}.step button{margin:8px 0;max-width:100%}.step p{font-size:14px}label{display:block;color:var(--muted);margin:14px 0 8px}.check{display:flex;align-items:flex-start;gap:10px}.check input{width:auto;margin-top:3px}details{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}summary{cursor:pointer;color:#b8d8e8;line-height:1.5}.device-note{font-size:13px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{color:var(--accent)}.table-scroll{overflow:auto;max-height:420px}.toolbar{display:flex;gap:12px;margin-bottom:18px}.toolbar input{flex:1;min-width:0}#results{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;max-height:180px;overflow:auto}.announce-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.identity{border-top:3px solid var(--accent);background:linear-gradient(100deg,#16405a,#112a3b);border-radius:10px;padding:26px 30px;min-height:190px}.identity h2{font-size:clamp(36px,4vw,64px);margin:16px 0;overflow-wrap:anywhere}.identity p{font-size:24px;color:#e9f2fa;margin:0;overflow-wrap:anywhere}.note{margin:20px 0;background:#102a3d;border:1px solid #31536c;border-top:3px solid #378ac0;border-radius:12px;padding:26px 30px;min-height:260px}.note p{font-size:30px;color:#e9f2fa;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0;max-height:260px;overflow:auto}.controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.controls span{margin-right:auto;color:var(--muted)}aside{background:#102535;border-radius:12px;padding:18px}aside button{display:block;text-align:left;width:100%;margin-top:12px}aside button:first-of-type{border-left:3px solid var(--accent)}aside strong{display:block;font-size:23px;margin:9px 0;overflow-wrap:anywhere}aside span{font-size:12px;color:var(--muted)}fieldset{margin:24px 0}#fieldChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#fieldChoices label,#manualFields label{padding:12px;border:1px solid var(--line);border-radius:8px;margin:0;overflow-wrap:anywhere}#fieldChoices input{margin-right:10px}#manualFields{display:grid;gap:12px;margin:18px 0}#manualFields p{white-space:pre-wrap;margin:10px 0;color:#e9f2fa}#manualForm>input,#candidate{width:100%}#updateBanner{padding:14px;border:1px solid #418455;border-radius:8px;background:#173627}#updateBanner button{margin-left:14px}footer{margin-top:44px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}a{color:#80cfe6}dialog{border:1px solid var(--line);border-radius:12px;max-width:560px;padding:28px;background:#132a3a;color:inherit}dialog::backdrop{background:#000b}[hidden]{display:none!important}@media(max-width:1050px){.setup-grid{grid-template-columns:1fr}.step{padding:22px}.announce-grid{grid-template-columns:minmax(0,1fr) 220px}header{flex-wrap:wrap}}@media(max-width:700px){body{padding:18px}h1{font-size:23px}.brand svg{width:38px}.languages{flex-wrap:wrap}.languages button{font-size:12px}h2{font-size:27px}#accountBadge{width:100%;margin-left:0}.toolbar{flex-wrap:wrap}.toolbar input{width:100%;flex-basis:100%}.announce-grid{grid-template-columns:1fr}.identity,.note{padding:20px}.identity p{font-size:20px}.note p{font-size:24px}#fieldChoices{grid-template-columns:1fr}footer{flex-wrap:wrap}}

.identity.raw-response h2{font-size:22px;font-weight:400;line-height:1.5;white-space:pre-wrap;margin:16px 0}.identity.raw-response p{font-size:20px;line-height:1.5;white-space:pre-wrap}.announce-grid.response-reader{grid-template-columns:minmax(0,1fr)}

#reasonSummary{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.reason-count{padding:.35rem .6rem;border:1px solid #456078;border-radius:.4rem;font-size:.85rem}#matchingView>select,#manualTarget{max-width:100%;margin-bottom:1rem}#exceptionRows td{overflow-wrap:anywhere}#exceptionRows td:last-child{min-width:8rem}#manualEvent{font-weight:600}
#matchingView .table-scroll table{min-width:600px}#matchingView th:first-child,#matchingView td:first-child{min-width:130px}#matchingView th:nth-child(2),#matchingView td:nth-child(2){min-width:100px}

.footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.link-button{border:0;background:transparent;color:#80cfe6;text-decoration:underline;padding:8px 0;min-height:44px}.link-button:hover{background:transparent;color:#b5e7f5}#aboutDialog{width:min(660px,calc(100% - 32px));max-width:660px;max-height:calc(100dvh - 32px);overflow:auto}#aboutDialog h2{font-size:25px;margin-top:0}#aboutDialog h3{font-size:18px;margin-top:24px}#aboutDialog p{font-size:16px;line-height:1.55}#aboutDialog .about-contact{line-height:1.9}#aboutDialog .about-contact strong{font-size:21px}#aboutDialog form{margin-top:22px;text-align:right}

.about-dialog-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.about-dialog-heading h2{min-width:0}.about-dialog-heading button{flex:none;padding:8px 12px;min-height:44px}

/* Bounded previous/current/next identity browser. */
#results{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr) 44px;gap:10px;max-height:none;overflow:visible;align-items:stretch;margin:14px 0 18px}
#results[hidden]{display:none}#results .browse-card{min-width:0;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:6px;height:116px;padding:12px;overflow:hidden}
#results .browse-card strong,#results .browse-card span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.35}
#results .browse-card strong{font-size:18px}#results .browse-card span{font-size:14px;color:var(--muted,#a8c3d2)}#results .browse-card.selected{border:2px solid #43c6e6;background:#173e52}#results .browse-arrow{font-size:24px;padding:4px;min-width:0}
@media(max-width:700px){#results{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px}#results .browse-empty,#results .browse-card:not(.selected){display:none}}

body.announcing #message:not(.error),body.announcing footer{display:none}body.announcing nav{margin:12px 0}body.announcing header{padding-bottom:12px}body.announcing{padding-top:16px;padding-bottom:16px}.announcing .identity{min-height:0;padding:14px 22px}.announcing .identity h2,.announcing .identity.raw-response h2{margin:8px 0;font-size:22px;line-height:1.35}.announcing .identity p,.announcing .identity.raw-response p{font-size:18px;line-height:1.4}.announcing .note{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:0;margin:14px 0;min-height:0;border:0;background:transparent}.info-card{min-width:0;border:1px solid #31536c;border-top:3px solid #378ac0;background:#102a3d;border-radius:10px;padding:18px 22px}.note .info-card p{font-size:25px;line-height:1.4;max-height:300px;margin:12px 0 0;overflow:auto}.note .info-card small{display:block;line-height:1.5}@media(min-width:1000px){.announcing .note{grid-template-columns:repeat(2,minmax(0,1fr))}.announcing .note:has(.info-card:only-child){grid-template-columns:minmax(0,1fr)}}

.note.measuring .info-card p,.note.all-notes .info-card p{max-height:none;overflow:visible}.note:not(.measuring):not(.all-notes) .info-card p{max-height:var(--note-text-height,300px)}.note.measuring{visibility:hidden}.note.all-notes .info-card{align-self:start}

/* Muted, field-stable surfaces. Text labels remain the primary identifier. */
.announcing .identity{background:#17434a;border:1px solid #487880;border-top:3px solid #7bb9b5}.announcing .identity small{color:#c4e8e3}
.info-card{background:var(--card-surface,#243747);border-color:var(--card-border,#526c82);border-top-color:var(--card-accent,#9ab2c6)}
.note-tone-0{--card-surface:#323b51;--card-border:#626f91;--card-accent:#a9b9dd}
.note-tone-1{--card-surface:#3c3630;--card-border:#7e6c58;--card-accent:#d2b799}
.note-tone-2{--card-surface:#403247;--card-border:#82648e;--card-accent:#c5a3d4}
.note-tone-3{--card-surface:#283f36;--card-border:#577c68;--card-accent:#a5cbb1}
.note-tone-4{--card-surface:#2b3d50;--card-border:#5b7899;--card-accent:#abc6e3}
.note-tone-5{--card-surface:#43383b;--card-border:#886c75;--card-accent:#d4afb9}
.note-tone-6{--card-surface:#3b402c;--card-border:#78825b;--card-accent:#c2cba3}
.note .info-card small{color:#e0e8ef}.note .info-card p{color:#f1f5fa}

/* Warm light identity surfaces distinguish the selected person from notes. */
.announcing .identity,#results .browse-card.selected{background:#f1eee5;color:#202d35;border-color:#b4c4bf;border-top-color:#8bb3a9}
.announcing .identity h2,.announcing .identity p{color:#202d35}.announcing .identity small,#results .browse-card.selected span{color:#425751}
#results .browse-card.selected:hover{background:#e7e4da}

/* Focused start-list announcing; preparation remains in an explicit menu. */

#searchStatus{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 14px;padding:10px 14px;background:#343a2c;border:1px solid #828b5b;border-radius:8px;font-size:14px}#searchStatus span{flex:1;min-width:160px}#returnToOrder{border-color:#bbc49b}#raceContext{font-size:14px;color:var(--muted);margin:4px 0 14px;overflow-wrap:anywhere}
.race-mode #identity{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:22px;align-items:center}.race-number{font-size:clamp(36px,5vw,64px);line-height:1.1;color:#202d35}.race-mode #identity .race-names h2{font-size:clamp(25px,2.5vw,36px);font-weight:650;margin:4px 0}.race-mode #identity .race-names p{font-size:clamp(24px,2.5vw,34px);font-weight:500;margin:4px 0}.race-mode #identity>small{grid-column:2}.race-mode #next{font-size:20px;font-weight:650;border:2px solid #8fd8df;background:#246271;min-height:56px;padding:12px 24px}.race-mode #next:disabled{opacity:.45}.race-mode .controls{position:sticky;bottom:8px;background:#081725f5;padding:10px 0;z-index:4}.race-mode #nextNote,.race-mode #pause{font-size:14px;padding:10px}.race-mode .no-notes{font-size:18px;color:var(--muted);background:#102333;border:1px solid #315064;padding:14px 20px}.race-mode aside [aria-current=true]{background:#f1eee5;border-color:#b4c4bf;color:#202d35}.race-mode aside [aria-current=true] small,.race-mode aside [aria-current=true] span{color:#425751}.notes-state{display:block;margin-top:6px;font-size:11px}#runningOrder strong{font-size:21px}
@media(max-width:700px){#competitionToolsItems{right:auto;left:0;min-width:220px}.race-mode #identity{column-gap:14px}.race-mode #next{font-size:18px;padding:10px 16px}.race-mode .controls{bottom:0}.race-mode #position{font-size:13px}}

nav{position:relative}#competitionTools{margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:8px}#competitionToolsItems{display:flex;position:static;padding:0;min-width:0;background:none;border:0;box-shadow:none;gap:12px}#competitionToolsItems button{margin:0;width:auto}.race-mode #competitionToolsItems{position:absolute;right:0;top:100%;display:flex;flex-direction:column;z-index:20;padding:10px;background:#132a3a;border:1px solid var(--line);border-radius:8px;min-width:250px;box-shadow:0 8px 24px #0008}.race-mode #competitionToolsItems button{width:100%;text-align:left}@media(max-width:700px){#competitionToolsItems{flex-wrap:wrap}.race-mode #competitionToolsItems{right:0;left:auto}}

@media(max-width:700px){.race-mode .controls{position:static}}

#groupNavigation{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 14px}#groupNavigation label{margin:0;font-size:13px}#groupNavigation small{font-size:11px;letter-spacing:0}#startGroup{max-width:100%;font-size:14px;padding:8px 12px}.race-mode #nextGroup{font-size:18px;font-weight:650;min-height:56px;border:2px solid #8fd8df;background:#246271}#groupNavigation select:disabled{opacity:.8}@media(max-width:700px){#groupNavigation{gap:8px}#groupNavigation small{width:100%}.race-mode #nextGroup{max-width:100%;font-size:16px}}

.shared-handler-intro{grid-column:1 / -1;border-top:1px solid #b4c4bf;margin-top:12px;padding-top:10px}.announcing .identity .shared-handler-intro p{font-size:16px;font-weight:400;line-height:1.4;margin:6px 0;white-space:pre-wrap}

/* Permanent source details stay separate from rotating response cards. */
.start-details{grid-column:2;margin:10px 0 2px;display:grid;gap:8px;min-width:0}.start-details>div{min-width:0}.start-details dt{color:#425751;font-size:12px;line-height:1.4}.start-details dd{color:#202d35;font-size:20px;line-height:1.4;margin:2px 0 0;overflow-wrap:anywhere}@media(max-width:700px){.start-details{grid-column:1 / -1;margin-top:12px}.start-details dd{font-size:18px}}

/* Scaled Full HD laptops: spend the height on the current team and notes. */
@media(min-width:1000px) and (max-height:900px){
 body.announcing{padding:10px 24px}
 .announcing header{padding-bottom:8px;gap:16px}
 .announcing .brand{gap:10px}.announcing .brand svg{width:32px;height:32px}
 .announcing h1{font-size:21px;margin:0 0 2px}.announcing header small{font-size:10px;letter-spacing:.5px}
 .announcing .languages button{padding:6px 9px}
 body.announcing nav{margin:8px 0;gap:8px}
 .announcing nav button,.announcing #competitionTools{padding:7px 12px}
 .announcing .toolbar{gap:8px;margin-bottom:8px}
 .announcing .toolbar input,.announcing .toolbar select,.announcing .toolbar button{padding:8px 12px}
 .announcing #raceContext{font-size:12px;margin:3px 0 6px}
 .announcing #groupNavigation{gap:8px;margin-bottom:8px}
 .announcing #startGroup{padding:5px 10px}
 .announcing #results{margin:8px 0;gap:8px}.announcing #results .browse-card{height:72px;padding:8px;gap:2px}
 .announcing .announce-grid{gap:16px}
 .race-mode #identity{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:2px 16px;padding:10px 16px}
 .race-mode #identity .race-number{grid-column:1;grid-row:1 / 3;font-size:40px}
 .race-mode #identity .race-names{grid-column:2;grid-row:1}
 .race-mode #identity .race-names h2{font-size:26px;margin:2px 0}
 .race-mode #identity .race-names p{font-size:24px;margin:2px 0}
 .race-mode #identity>small{grid-column:2;grid-row:2;font-size:11px;letter-spacing:.5px}
 .race-mode .start-details{grid-column:3;grid-row:1 / 3;margin:0;gap:5px}
 .race-mode .start-details dd{font-size:18px;line-height:1.3}
 .race-mode .shared-handler-intro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 16px;margin-top:6px;padding-top:5px}
 .race-mode .shared-handler-intro>small{grid-column:1 / -1;font-size:10px;letter-spacing:.5px}
 .race-mode .identity .shared-handler-intro p{font-size:15px;line-height:1.3;margin:1px 0}
 .announcing .note{margin:10px 0;gap:10px}
 .announcing .info-card{padding:12px 16px}
 .announcing .note .info-card p{font-size:24px;margin-top:7px}
 .race-mode .controls{padding:6px 0;gap:8px}
 .race-mode #next,.race-mode #nextGroup{min-height:44px;padding:8px 18px;font-size:18px}
 .race-mode #prev,.race-mode #nextNote,.race-mode #pause{padding:8px 12px}
 .race-mode aside{padding:12px;align-self:start;max-height:calc(100dvh - 220px);overflow:auto}
 .race-mode aside button{margin-top:7px;padding:8px 10px}.race-mode #runningOrder strong{font-size:18px;margin:4px 0}
}

/* One shared title/navigation row, with real flag artwork on Windows too. */
header{flex-wrap:wrap;gap:12px}
header .brand{flex:none}
header nav{flex:1;min-width:0;margin:0;gap:8px}
header .languages{flex:none;gap:5px}
header .languages button{display:grid;place-items:center;width:36px;height:36px;padding:4px;font-size:0}
header .languages svg{display:block;border-radius:2px;overflow:hidden}
header .languages button.active{outline:1px solid var(--accent);outline-offset:1px}
@media(min-width:1200px){
 header,.announcing header{flex-wrap:nowrap;gap:14px;padding-bottom:10px}
 header .brand{gap:8px}header .brand>svg{width:30px;height:30px}
 header h1,.announcing header h1{font-size:20px;margin:0 0 2px;white-space:nowrap}
 header .brand small{font-size:10px;letter-spacing:.3px}
 header nav,body.announcing header nav{margin:0;gap:7px;flex-wrap:nowrap}
 header nav button,header #competitionTools,.announcing header nav button,.announcing header #competitionTools{padding:8px 10px;font-size:13px;white-space:nowrap}
 header #accountBadge{min-width:0;font-size:11px;max-width:260px}
 header #competitionToolsItems{gap:7px}
}
@media(max-width:1199px){
 header .brand{order:1}header .languages{order:2;margin-left:auto}
 header nav{order:3;flex-basis:100%}
}

/* Keep the person and their club together, and both dog names together. */
.race-mode #identity{grid-template-columns:auto minmax(0,1fr);align-items:center}
.race-mode #identity .race-number{grid-column:1;grid-row:1}
.race-mode #identity .race-names{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;min-width:0}
.race-mode .handler-identity,.race-mode .dog-identity{min-width:0}
.race-mode #identity .start-details{display:block;margin:8px 0 0}
.race-mode #identity .start-details dd{font-size:20px;line-height:1.35}
.race-mode #identity .race-source-marker{display:block;margin-top:6px}
@media(min-width:1000px) and (max-height:900px){
 .race-mode #identity .race-names{gap:10px 24px}
 .race-mode #identity .start-details{margin-top:5px}
 .race-mode #identity .start-details dd{font-size:18px}
}
@media(max-width:700px){
 .race-mode #identity{align-items:start}
 .race-mode #identity .race-names{grid-template-columns:minmax(0,1fr);gap:16px}
 .race-mode #identity .start-details dd{font-size:18px}
}

.usage-guide ol{list-style:none;padding:0;display:grid;gap:16px}.usage-guide li{min-width:0}.usage-guide li p{margin:5px 0 0}.usage-guide{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}

/* Competition palette. Gold is reserved for the event brand. */
:root {
  color-scheme: light;
  color: #18263a;
  background: #edf1f5;
  --muted: #4b5d72;
  --line: #cbd5e2;
  --accent: #2457a6;
}
body { background: #edf1f5; }
header { border-bottom-color: var(--line); }
.brand .event-logo { width: 74px; height: 62px; object-fit: contain; flex: none; background: #000; border-radius: 8px; padding: 2px; }
.brand small { color: #80531c; letter-spacing: 1px; }
small, a, .link-button, summary { color: #244f8c; }
button, input, select { background: #fff; border-color: #a7b7ca; color: #18263a; }
button:hover { background: #e7eff9; }
button.active { background: #dbe8fa; color: #173e77; border-color: #4a70a8; }
button.primary, .race-mode #next, .race-mode #nextGroup { background: #2457a6; border-color: #2457a6; color: #fff; }
button.primary:hover, .race-mode #next:hover, .race-mode #nextGroup:hover { background: #1a4486; }
:where(button, input, select, a):focus-visible { outline: 2px solid #275dab; outline-offset: 2px; }
input::placeholder, p, #accountBadge { color: var(--muted); }
.step, fieldset, aside, dialog, .race-mode #competitionToolsItems { background: #fff; border-color: var(--line); }
#message, .step-no { color: #244f8c; }
#message.error { color: #8b2420; }
#results .browse-card { background: #fff; border-color: #b2c0d1; }
#results .browse-card.selected, #results .browse-card.selected:hover,
.race-mode aside [aria-current=true] { background: #e5efff; border-color: #6b90c5; color: #172d4e; }
#results .browse-card.selected span, .race-mode aside [aria-current=true] small,
.race-mode aside [aria-current=true] span { color: #365379; }
.note, .identity { background: #fff; border-color: var(--line); }
.announcing .identity { background: #e5efff; border-color: #aabfdd; border-top-color: #4274b7; }
.announcing .identity h2, .announcing .identity p, .race-number, .start-details dd,
.note .info-card p, #manualFields p { color: #172d4e; }
.announcing .identity small, .start-details dt { color: #365379; }
.shared-handler-intro { border-color: #b0c3df; }
.info-card {
  background: #fff;
  border-color: var(--line);
  border-left: 5px solid var(--note-accent, #3d68a6);
}
.note-category {
  margin: 0;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--note-tint, #e5eefc);
  color: var(--note-ink, #244778);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.note-tone-0 { --note-accent: #3d68a6; --note-tint: #e5eefc; --note-ink: #244778; }
.note-tone-1 { --note-accent: #a34c25; --note-tint: #f9e8dd; --note-ink: #703618; }
.note-tone-2 { --note-accent: #6f4b99; --note-tint: #eee4fa; --note-ink: #542e7b; }
.note-tone-3 { --note-accent: #994265; --note-tint: #f9e4ee; --note-ink: #752d4d; }
.note-tone-4 { --note-accent: #31724f; --note-tint: #e1f2e7; --note-ink: #25573c; }
.note-tone-5 { --note-accent: #26727d; --note-tint: #dbf1f3; --note-ink: #17535d; }
.note-tone-6 { --note-accent: #806518; --note-tint: #f8edcb; --note-ink: #604b11; }
.race-mode .no-notes { background: #f6f8fb; border-color: var(--line); color: var(--muted); }
.race-mode .controls { background: #edf1f5f5; }
#searchStatus, #updateBanner { background: #e0ebfa; border-color: #a0b6d3; color: #223d60; }
#returnToOrder { border-color: #a0b6d3; }
.link-button:hover { color: #173e77; }
footer { border-color: var(--line); }
@media (max-width: 700px) { .brand .event-logo { width: 60px; height: 52px; } }

.appearance-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 16px; }
.appearance-picker label { margin: 0; font-weight: 650; }
.appearance-picker select { padding: 8px 12px; }

/* Event gold stays separate from the live card and the note categories. */
:root[data-appearance="gold"] {
  background: #f5eee0;
  --muted: #625344;
  --line: #d3c3a4;
  --accent: #805415;
}
[data-appearance="gold"] body { background: #f5eee0; }
[data-appearance="gold"] .step,
[data-appearance="gold"] aside,
[data-appearance="gold"] .race-mode #competitionToolsItems { background: #fffdf8; }
[data-appearance="gold"] :is(button, input, select) { border-color: #b9a17c; }
[data-appearance="gold"] button:hover { background: #f3e6cd; }
[data-appearance="gold"] button.active { background: #f5e4bf; color: #53350d; border-color: #967035; }
[data-appearance="gold"] :is(button.primary, .race-mode #next, .race-mode #nextGroup) {
  background: #765018; border-color: #765018; color: #fff;
}
[data-appearance="gold"] :is(button.primary, .race-mode #next, .race-mode #nextGroup):hover { background: #604013; }
[data-appearance="gold"] .announcing .identity,
[data-appearance="gold"] #results .browse-card.selected,
[data-appearance="gold"] .race-mode aside [aria-current=true] {
  background: #fae9bf; border-color: #c5a66b; border-top-color: #946b30;
}
[data-appearance="gold"] .announcing .identity :is(h2, p, .race-number, dd) { color: #392b17; }
[data-appearance="gold"] .announcing .identity :is(small, dt) { color: #654b2b; }
[data-appearance="gold"] .shared-handler-intro { border-color: #c5a66b; }
[data-appearance="gold"] .race-mode .controls { background: #f5eee0f5; }

/* Working Dog logo watermark (package build): small, faint, behind content, never clickable. */
.wd-watermark { position: fixed; right: 18px; bottom: 14px; width: 130px; height: auto; opacity: .18; pointer-events: none; user-select: none; z-index: -1; filter: brightness(0); }
@media print { .wd-watermark { display: none; } }

/* Link to the new announcer view (2026-11-29). */
.new-announcer { display: inline-block; padding: .45rem .8rem; border-radius: .5rem; background: #1d3f7a; color: #fff; font-weight: 700; text-decoration: none; margin-right: .4rem; }
.new-announcer:hover { background: #2f6fde; }

/* Protokoll dialog (Hub problem log) */
.log-dialog { max-width: 860px; width: calc(100vw - 48px); }
.log-folder { font-size: 13px; overflow-wrap: anywhere; }
.log-list { list-style: none; margin: 12px 0; padding: 0; max-height: 50vh; overflow: auto; font-size: 14px; }
.log-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.log-list li[data-level="error"] { border-left: 4px solid #c0392b; }
.log-list li[data-level="warn"] { border-left: 4px solid #d8a23a; }
.log-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log-actions { display: flex; gap: 10px; flex-wrap: wrap; }
