.wca-section{display:flex;flex-direction:column;gap:10px;min-height:0;padding:16px 18px;border:1px solid var(--line);border-radius:11px;background:var(--panel);overflow:hidden}
.wca-heading{display:flex;align-items:center;gap:18px;flex-shrink:0}.wca-heading .eyebrow{font-size:8px;margin-bottom:6px}.wca-heading h2{font-size:21px;font-weight:600}.wca-method{font-size:10px;color:#8894a4;margin-left:auto}.wca-heading .primary{font-size:11px;padding:9px 13px;white-space:nowrap}
.wca-bests{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;flex-shrink:0}.wca-bests>div{border:1px solid #384353;border-radius:8px;background:linear-gradient(115deg,#23344b33,#131b2733);padding:10px 14px;min-width:0}.wca-bests>div:nth-child(2){border-color:#5c6d85;background:#283a5344}.wca-bests span{display:block;font-size:10px;color:#a1abba}.wca-bests strong{display:block;font:31px/1.15 Consolas,monospace;color:#b7cff1;margin:6px 0}.wca-bests small{display:block;font-size:9px;color:#7f8c9f;white-space:nowrap}
.wca-view-tabs{display:flex;align-items:center;gap:8px;flex-shrink:0;border-bottom:1px solid var(--line);padding-bottom:7px}.wca-view-tabs>button{font-size:11px;padding:7px 15px}.wca-view-tabs>button[aria-selected=true]{color:var(--accent);background:#2b3b5155;border:1px solid #4c5e78}.wca-view-tabs>button>span{font:9px Consolas,monospace;margin-left:5px;color:#9aa8bc}.wca-inspection-option{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:10px;color:#9ba6b5;white-space:nowrap}.wca-inspection-option input{accent-color:var(--accent);width:13px;height:13px;margin:0}#wcaStorageWarning{margin:0;font-size:10px;flex-shrink:0}
.wca-session-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;flex:1;min-height:0}
.wca-scramble-panel,.wca-clock-panel{border:1px solid #343e4c;border-radius:9px;background:#10161f66;min-width:0;min-height:0;padding:13px;display:flex;flex-direction:column;gap:10px}
.wca-panel-heading,.wca-clock-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0;font-size:10px;color:#aab5c5}.wca-panel-heading>span:last-child{color:var(--accent);font-size:9px;white-space:nowrap}
.wca-scrambles{list-style:none;padding:0;margin:0;flex:1;min-height:0;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:7px}
.wca-scramble-row{display:grid;grid-template-columns:21px minmax(0,1fr) 61px;align-items:center;gap:10px;padding:9px 10px;border:1px solid #303a47;border-radius:6px;background:#1b243033;min-height:0}.wca-scramble-row.current{border-color:#8bb0e399;background:#2a3b5255}.wca-scramble-number{font:12px Consolas,monospace;color:#8f9eb4;align-self:start;padding-top:2px}.wca-scramble-row.current .wca-scramble-number{color:var(--accent)}.wca-scramble-row code{font:13px/1.7 Consolas,monospace;color:#d2dae4;overflow-wrap:anywhere;word-spacing:2px}.wca-row-result{text-align:right;min-width:0}.wca-row-result strong{display:block;font:18px Consolas,monospace;color:#c1d0e6}.wca-row-result small{display:block;font-size:8px;margin-top:4px;color:#7e8b9e;white-space:nowrap}.wca-scramble-row.dropped .wca-row-result strong{color:#8692a3}.wca-scramble-row.dropped .wca-row-result strong:before{content:'('}.wca-scramble-row.dropped .wca-row-result strong:after{content:')'}.wca-scramble-row.dropped .wca-row-result small{color:#c4ba8b}
.wca-origin{margin:0;font-size:9px;color:#788699;line-height:1.6;flex-shrink:0}.wca-origin a{color:#9cb0cb;white-space:nowrap;text-decoration:none}
.wca-clock-panel{gap:9px}.wca-clock-top #wcaPhase{font-size:9px;border:1px solid #445265;border-radius:4px;padding:4px 7px;color:#a8bad3}.wca-clock-center{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}#wcaTimer{font:clamp(44px,6.3vw,82px)/1.1 Consolas,monospace;color:#dce6f4;font-variant-numeric:tabular-nums;letter-spacing:-2px}#wcaTimerHint{font-size:10px;color:#8794a7;margin:0;text-align:center;line-height:1.6}#wcaAction{min-width:190px;font-size:13px;padding:12px 20px}#wcaCancel{padding:6px 12px;font-size:10px}.wca-key-hint{font-size:9px;color:#738298;text-align:center;line-height:1.6}.wca-key-hint kbd{display:inline-block;margin-left:0;padding:2px 4px;font-size:8px}
.wca-section[data-phase=inspection] #wcaTimer{color:#f1d488}.wca-section[data-phase=solving] #wcaTimer{color:var(--accent)}.wca-section[data-phase=solving] #wcaAction{background:#e6ae88;border-color:#e6ae88;color:#3a281e}.wca-section[data-phase=complete] .wca-clock-panel{border-color:#7590b5}
.wca-penalty-panel{display:flex;align-items:center;gap:8px;flex-shrink:0;border-top:1px solid #333e4d;padding-top:8px}.wca-penalty-panel label{font-size:9px;color:#8f9bac;white-space:nowrap}.wca-penalty-panel select{height:28px;min-height:28px;font-size:10px;padding:5px 18px 5px 7px;max-width:130px;flex:1}#wcaAutomaticPenalty{margin-left:auto;font-size:8px;color:#8c99ab;white-space:nowrap}.wca-interruption{font-size:9px;color:#edbf92;margin:0;line-height:1.5;flex-shrink:0}
.wca-round-result{border-top:1px solid #3b4757;padding-top:10px;flex-shrink:0}.wca-round-result>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.wca-round-result>div>span{font-size:11px;color:#a4b2c6}.wca-round-result strong{font:27px Consolas,monospace;color:var(--accent)}.wca-round-result p{font-size:9px;color:#919dad;line-height:1.6;margin:6px 0}.wca-round-result small{font-size:8px;color:#717f92}
.wca-history-view{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}.wca-history-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}.wca-history-tools>span{margin-right:auto}.wca-history-tools button{font-size:10px;padding:6px 10px}
#wcaHistoryList{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--page-columns,1),minmax(0,1fr));grid-template-rows:repeat(var(--page-rows,1),minmax(0,1fr));gap:12px}.wca-record-card{padding:12px 14px;border:1px solid #384250;border-radius:8px;background:#141c2755;display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-width:0;min-height:0}.wca-record-top{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#919dae}.wca-record-top>span{font-size:9px;color:#aebfd8}.wca-record-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wca-record-result>span:first-child{font-size:10px;color:#94a0b2}.wca-record-result>strong{font:25px Consolas,monospace;color:#c4d5ed}.wca-record-scores{font:11px/1.8 Consolas,monospace;color:#8896aa;overflow-wrap:anywhere}.wca-record-actions{display:flex;justify-content:end;gap:8px}.wca-record-actions button{border:1px solid #435267;font-size:10px;padding:5px 9px;color:#afc1db}
.wca-record-dialog[open]{display:flex;flex-direction:column;width:790px;height:min(680px,calc(100dvh - 24px));overflow:hidden}#wcaRecordMeta{font-size:10px;margin:10px 0}#wcaRecordAttempts{flex:1;min-height:0;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}.wca-detail-attempt{min-height:0;padding:9px 11px;border:1px solid #364150;border-radius:6px;background:#131c2844;display:flex;flex-direction:column;justify-content:center;gap:5px}.wca-detail-attempt-top{display:flex;align-items:center;gap:12px;font-size:10px;color:#9eaabb}.wca-detail-attempt-top strong{font:20px Consolas,monospace;color:#c2d1e7}.wca-detail-attempt-top select{margin-left:auto;min-height:26px;height:26px;font-size:10px;padding:4px 18px 4px 7px}.wca-detail-attempt code{font:12px/1.6 Consolas,monospace;color:#c2cbd8;overflow-wrap:anywhere}.wca-detail-attempt small{font-size:8px;color:#7f8ea3}.wca-detail-average{font:20px Consolas,monospace;color:var(--accent);margin:12px 0 7px;flex-shrink:0}.wca-detail-note{font-size:9px;color:#8995a6;line-height:1.6;margin:0;flex-shrink:0}
@media(max-width:1000px){.header{gap:20px}.header nav{gap:17px}.wca-section{padding:13px}.wca-heading h2{font-size:19px}.wca-heading .eyebrow{font-size:7px}.wca-bests>div{padding:8px 12px}.wca-bests strong{font-size:28px}.wca-scramble-row{grid-template-columns:17px minmax(0,1fr) 49px;gap:7px;padding:8px}.wca-scramble-row code{font-size:12px;word-spacing:1px}.wca-row-result strong{font-size:16px}.wca-session-grid{gap:10px}.wca-scramble-panel,.wca-clock-panel{padding:11px}.wca-penalty-panel{gap:6px}.wca-penalty-panel label{font-size:8px}#wcaAutomaticPenalty{font-size:7px}}
@media(max-width:740px){.header nav{gap:12px;font-size:10px}.wca-section{padding:12px;gap:9px}.wca-method{display:none}.wca-heading .primary{margin-left:auto;font-size:10px;padding:8px 10px}.wca-heading .eyebrow{display:none}.wca-heading h2{font-size:18px}.wca-bests{gap:8px}.wca-bests>div{padding:8px 10px}.wca-bests span{font-size:9px}.wca-bests strong{font-size:27px}.wca-bests small{font-size:8px}.wca-view-tabs>button{font-size:10px;padding:6px 11px}.wca-inspection-option{font-size:9px}.wca-session-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.wca-scramble-panel,.wca-clock-panel{padding:10px;gap:8px}.wca-panel-heading,.wca-clock-top{font-size:9px}.wca-panel-heading>span:last-child{font-size:8px}.wca-scrambles{gap:6px}.wca-scramble-row{grid-template-columns:14px minmax(0,1fr) 43px;gap:6px;padding:7px}.wca-scramble-row code{font-size:11px;line-height:1.7}.wca-row-result strong{font-size:14px}.wca-row-result small{font-size:7px}.wca-origin{font-size:8px}.wca-clock-center{gap:9px}#wcaTimer{font-size:53px}#wcaTimerHint{font-size:9px}#wcaAction{font-size:11px;min-width:160px;padding:11px 14px}.wca-key-hint{font-size:8px}.wca-key-hint kbd{font-size:7px}.wca-clock-top #wcaPhase{font-size:8px;padding:3px 5px}.wca-penalty-panel{flex-wrap:wrap;gap:5px}.wca-penalty-panel label{font-size:8px}.wca-penalty-panel select{font-size:9px}.wca-penalty-panel #wcaAutomaticPenalty{font-size:7px}.wca-round-result{padding-top:8px}.wca-round-result>div>span{font-size:10px}.wca-round-result strong{font-size:24px}.wca-round-result p{font-size:8px}.wca-round-result small{font-size:7px}}
@media(max-width:520px){.header nav{gap:7px;font-size:9px}.header nav>button{gap:3px}.header{gap:8px}.header #historyCount,.header #favoriteCount{font-size:7px;padding:1px 2px}.wca-section{padding:10px;gap:8px}.wca-heading h2{font-size:17px}.wca-heading .primary{font-size:9px;padding:7px 9px}.wca-bests{gap:6px}.wca-bests>div{padding:7px 8px}.wca-bests span{font-size:8px}.wca-bests strong{font-size:23px;margin:5px 0}.wca-bests small{font-size:7px;white-space:normal;line-height:1.5}.wca-view-tabs{gap:5px;padding-bottom:6px}.wca-view-tabs>button{font-size:10px;padding:5px 8px}.wca-inspection-option{font-size:8px;gap:4px}.wca-inspection-option input{width:11px;height:11px}.wca-session-grid{grid-template-columns:1fr;grid-template-rows:minmax(206px,.9fr) minmax(255px,1.1fr);gap:8px}.wca-scramble-panel,.wca-clock-panel{padding:9px;gap:7px}.wca-panel-heading{font-size:9px}.wca-scrambles{gap:5px}.wca-scramble-row{grid-template-columns:14px minmax(0,1fr) 48px;padding:5px 7px;gap:7px}.wca-scramble-row code{font-size:11px;line-height:1.55}.wca-row-result strong{font-size:15px}.wca-row-result small{font-size:7px;margin-top:2px}.wca-origin{font-size:7px;line-height:1.5}.wca-scramble-number{font-size:10px}.wca-clock-panel{gap:7px}.wca-clock-top{font-size:9px}.wca-clock-center{gap:7px}#wcaTimer{font-size:47px}#wcaTimerHint{font-size:9px}#wcaAction{font-size:11px;min-width:190px;padding:9px 13px}.wca-key-hint{font-size:7px}.wca-key-hint kbd{font-size:7px;padding:1px 3px}.wca-penalty-panel{flex-wrap:nowrap;padding-top:6px}.wca-penalty-panel select{max-width:125px;height:25px;min-height:25px}.wca-round-result{padding-top:7px}.wca-round-result>div>span{font-size:9px}.wca-round-result strong{font-size:24px}.wca-round-result p{font-size:8px;margin:4px 0}.wca-round-result small{font-size:7px}.wca-history-tools{gap:5px}.wca-history-tools>span{font-size:8px}.wca-history-tools button{font-size:9px;padding:5px 7px}.wca-record-card{padding:10px;gap:8px}.wca-record-top{font-size:9px}.wca-record-result>strong{font-size:23px}.wca-record-scores{font-size:10px;flex-basis:100%}.wca-record-actions button{font-size:9px}.wca-record-dialog[open]{padding:13px;height:min(710px,calc(100dvh - 18px))}.wca-record-dialog .dialog-heading h2{font-size:18px}.wca-record-dialog .eyebrow{font-size:7px}#wcaRecordMeta{font-size:8px;margin:8px 0}.wca-detail-attempt{padding:7px 8px;gap:4px}.wca-detail-attempt-top{font-size:9px;gap:9px}.wca-detail-attempt-top strong{font-size:18px}.wca-detail-attempt-top select{font-size:9px;min-height:24px;height:24px}.wca-detail-attempt code{font-size:11px;line-height:1.5}.wca-detail-attempt small{font-size:7px}.wca-detail-average{font-size:19px;margin:9px 0 6px}.wca-detail-note{font-size:8px}}
@media(max-height:650px){.wca-section{gap:7px;padding:11px}.wca-heading .eyebrow{display:none}.wca-heading h2{font-size:17px}.wca-heading .primary{font-size:10px;padding:7px 10px}.wca-bests>div{padding:6px 10px}.wca-bests strong{font-size:24px;margin:4px 0}.wca-bests small{font-size:7px}.wca-view-tabs{padding-bottom:5px}.wca-view-tabs>button{padding-top:5px;padding-bottom:5px}.wca-scramble-panel,.wca-clock-panel{padding:9px;gap:7px}.wca-scrambles{gap:5px}.wca-scramble-row{padding:5px 7px}.wca-scramble-row code{font-size:11px;line-height:1.5}.wca-origin{font-size:7px}#wcaTimer{font-size:47px}.wca-clock-center{gap:7px}#wcaAction{font-size:11px;padding:9px 12px}#wcaTimerHint{font-size:8px}.wca-key-hint{font-size:7px}.wca-round-result{padding-top:7px}.wca-round-result strong{font-size:23px}.wca-round-result p{margin:4px 0;font-size:8px}.wca-record-dialog[open]{height:calc(100dvh - 18px)}.wca-detail-attempt{padding:7px 9px;gap:4px}.wca-detail-attempt code{font-size:11px}.wca-detail-average{margin:8px 0 6px}}
@media(max-width:520px) and (max-height:740px){.wca-heading h2{font-size:16px}.wca-section{padding:8px;gap:6px}.wca-bests>div{padding:5px 7px}.wca-bests strong{font-size:21px;margin:3px 0}.wca-bests small{display:none}.wca-session-grid{grid-template-rows:minmax(165px,.85fr) minmax(196px,1.15fr);gap:6px}.wca-scramble-panel,.wca-clock-panel{padding:7px;gap:5px}.wca-origin{display:none}.wca-scramble-row{padding:3px 5px}.wca-scramble-row code{font-size:10px;line-height:1.45}.wca-row-result strong{font-size:13px}.wca-row-result small{font-size:6px}.wca-panel-heading{font-size:8px}.wca-clock-center{gap:5px}#wcaTimer{font-size:37px}#wcaAction{padding:7px 12px;font-size:10px}#wcaTimerHint{font-size:8px}.wca-key-hint{display:none}.wca-clock-top{font-size:8px}.wca-round-result{padding-top:5px}.wca-round-result strong{font-size:22px}.wca-round-result p{font-size:7px;margin:3px 0}.wca-round-result small{font-size:6px}.wca-penalty-panel{padding-top:5px;gap:4px}.wca-penalty-panel select{min-height:22px;height:22px;font-size:8px}.wca-penalty-panel label{font-size:7px}.wca-penalty-panel #wcaAutomaticPenalty{font-size:6px}.wca-interruption{font-size:7px}}

.wca-clock-top #wcaCancel{font-size:9px;padding:4px 7px;white-space:nowrap}.wca-section[data-phase=complete] #wcaAction,.wca-section[data-phase=complete] .wca-key-hint{display:none}

#wcaRecordSaveState{margin-top:4px;font-size:8px}#wcaRecordSaveState.save-warning{color:#edbb8a}

.wca-history-tools{flex-wrap:wrap}.wca-history-tools #wcaTrashToggle[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.wca-history-selection{padding-top:7px}.wca-record-top input{width:13px;height:13px;margin:0;accent-color:var(--accent);flex-shrink:0}.wca-record-top time{margin-right:auto}.wca-record-card.selected{border-color:#819ec6;background:#283a5444}.wca-record-actions .danger-button{border-color:#755247}.wca-history-tools #wcaHistorySummary{flex:1;min-width:130px}#wcaUndo{margin:0}
@media(max-width:520px){.wca-history-tools #wcaHistorySummary{flex-basis:100%;min-width:0}.wca-history-tools #wcaTrashToggle{margin-right:auto}.wca-history-selection{font-size:9px}.wca-record-top input{width:12px;height:12px}.wca-record-actions{gap:6px}.wca-record-actions button{font-size:9px;padding:5px 7px}.wca-history-tools button{font-size:9px}.wca-history-selection>label{font-size:9px}}
