:root{--ink:#173b32;--text:#25342f;--muted:#748079;--line:#e2e7e1;--bg:#f4f6f3;--soft:#eaf0e9;--green:#1b5745;--warning:#886329;--danger:#b64338;--radius:18px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}button,input,select{font:inherit}button,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #86b7a5;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.3;letter-spacing:-.5px;color:var(--ink)}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:16px}.workspace{max-width:1160px;margin:0 auto;padding:34px 34px calc(126px + env(safe-area-inset-bottom))}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:22px}.identity{display:flex;align-items:center;gap:13px}.brand-mark{width:47px;height:47px;flex:none;border-radius:15px;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:25px;font-family:Georgia,"Microsoft YaHei",serif}.heading-row{display:flex;align-items:center;gap:10px}.beta{font-size:10px;letter-spacing:1px;color:var(--green);border:1px solid #cdd8cd;border-radius:5px;padding:2px 5px;white-space:nowrap}.subtitle{font-size:12px;color:var(--muted);margin-top:4px}.connection{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;flex-wrap:wrap}.status-dot{display:inline-block;width:7px;height:7px;background:#a6b1a8;border-radius:50%}.status-dot.online{background:#4a8b68;box-shadow:0 0 0 4px #e4ece3}.status-dot.offline{background:#c09147}.connection-divider{margin:0 4px;color:#cbd2ca}.source-panel{padding:19px 22px;border-radius:var(--radius);background:#e6eee5;border:1px solid #d9e4d8;margin-bottom:18px}.source-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.segmented{display:flex;padding:4px;background:#e9eee8;border-radius:11px;gap:3px}.segmented button{border:0;background:transparent;border-radius:8px;min-height:40px;color:#6c7970;padding:8px 18px;white-space:nowrap;font-size:13px;font-weight:550}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #1635250b}.source-switch{background:#dce6db;display:inline-flex}.source-switch button.active{background:var(--ink);color:#fff}.source-panel p{color:#526c59;font-size:12px;margin-top:12px}.source-badge{font-size:11px;color:var(--green);display:flex;align-items:center;white-space:nowrap;gap:6px}.source-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.source-panel.live{background:#edf1f7;border-color:#dde4ed}.source-panel.live p,.source-panel.live .source-badge{color:#4e647e}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.controls{padding:21px 22px}.date-top{display:flex;align-items:center;gap:20px;margin-bottom:17px}.section-label{font-size:12px;color:#627369;font-weight:600}.date-switch{padding:3px}.date-switch button{min-height:34px;padding:6px 13px;font-size:12px}.date-inputs{display:flex;gap:12px;align-items:flex-end}.date-inputs label{flex:1;min-width:0}.date-arrow{height:44px;display:flex;align-items:center;color:#99a299}.date-inputs input{width:100%;min-width:0}.date-inputs label,.filter-row label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:500;color:#748079}input:not([type=checkbox]),select{height:44px;min-width:0;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:9px;padding:0 11px;font-size:13px}input[type=datetime-local]{font-size:12px}input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;width:19px;height:19px;margin:0;border:1.5px solid #c4cec5;border-radius:5px;background:#fff;flex:none;cursor:pointer}input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}input[type=checkbox]:checked:after{content:"";width:8px;height:4px;border:2px solid white;border-top:0;border-right:0;transform:rotate(-45deg) translateY(-1px)}input[type=checkbox]:indeterminate{background:var(--green);border-color:var(--green)}input[type=checkbox]:indeterminate:after{content:"";width:8px;height:2px;background:#fff}.button{min-height:44px;border-radius:10px;border:1px solid transparent;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:600;transition:background .15s,transform .15s;white-space:nowrap}.button:active:not(:disabled){transform:translateY(1px)}.primary{background:var(--green);color:#fff}.primary:hover:not(:disabled){background:#144635}.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.secondary:hover:not(:disabled){background:var(--bg)}.refresh{gap:7px;min-width:114px}.refresh>span{font-size:21px;line-height:1}.filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid #eef1eb;margin-top:20px;padding-top:17px}.filter-row select{width:100%}.record-section{margin-top:27px}.records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 1px 16px}.records-toolbar h2{display:flex;align-items:center;gap:9px}.count{display:inline-grid;place-items:center;min-width:26px;height:23px;padding:0 7px;background:#e4eae1;color:#65816b;border-radius:7px;font-size:12px}.records-toolbar p{margin-top:4px;font-size:12px;color:var(--muted)}.select-all{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;color:#65766c;cursor:pointer;white-space:nowrap}.table-heading{display:grid;grid-template-columns:minmax(240px,1fr) 148px 140px 90px;gap:20px;padding:0 22px 10px 59px;font-size:10px;letter-spacing:.5px;color:#7b877e}.record-list{display:flex;flex-direction:column;gap:9px}.record-card{position:relative;display:grid;grid-template-columns:18px minmax(205px,1fr) 148px 140px 90px;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px 22px 19px 17px;transition:border-color .15s,background .15s}.record-card.selected{border-color:#a0bda8;background:#fcfefb}.record-card.changed{box-shadow:inset 3px 0 #82a18b}.record-check{align-self:stretch;display:flex;align-items:center;min-width:24px;cursor:pointer}.record-main{min-width:0}.record-meta{font-size:10px;color:#7d8b80;display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:6px}.project-tag{color:#4d735d;background:#edf3eb;border-radius:4px;padding:1px 5px}.teams{font-size:14px;font-weight:650;color:#263e31;line-height:1.5;word-break:break-word}.versus{color:#98a198;font-size:10px;font-weight:400;margin:0 7px}.recommendation{font-size:11px;color:#8a948b;margin-top:5px;word-break:break-word}.recommendation-label{color:#97a395;margin-right:5px}.score-editor{display:flex;align-items:center;gap:8px}.score-editor label{min-width:0;flex:1}.score-editor input{width:57px;height:42px;padding:0 5px;text-align:center;font-size:18px;font-variant-numeric:tabular-nums;background:#fbfcf9;border-color:#e1e7dd;-moz-appearance:textfield}.score-editor input::-webkit-inner-spin-button,.score-editor input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.score-colon{font-size:17px;color:#9aa499;line-height:1}.mobile-input-label{display:none}.result-editor{width:100%;min-width:0}.result-editor select{width:100%;background:#fbfcf9;font-size:12px;padding-left:10px}.record-state{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.tag{display:inline-flex;align-items:center;border-radius:5px;padding:3px 6px;background:#f0f3ec;color:#798570;font-size:10px;white-space:nowrap}.tag.consumed{background:#f4eddf;color:#98712d}.tag.unknown{background:#edf0f2;color:#7b838b}.tag.changed{background:#eaf1e6;color:#5d7e46}.tag.error{white-space:normal;background:#faeae6;color:var(--danger)}.save-message{font-size:10px;color:#6a8a62}.record-state .field-error{font-size:10px;word-break:break-word}.empty-state,.loading{text-align:center;padding:46px 20px;color:var(--muted)}.empty-icon{font-size:35px;color:#a3b59f;margin-bottom:10px}.empty-state h3{color:#536a58;font-size:15px}.empty-state p{font-size:12px;margin-top:8px}.loading p{font-size:13px}.spinner{display:inline-block;border:2px solid #dce6d7;border-top-color:#496c4e;border-radius:50%;height:24px;width:24px;animation:spin .8s linear infinite;margin-bottom:9px}@keyframes spin{to{transform:rotate(360deg)}}.page-footer{text-align:center;font-size:10px;letter-spacing:.5px;color:#9aa697;margin-top:24px}.action-bar{position:fixed;left:0;right:0;bottom:0;z-index:10;padding:13px 34px calc(13px + env(safe-area-inset-bottom));border-top:1px solid #e2e7df;background:#ffffffef;backdrop-filter:blur(18px)}.action-inner{max-width:1092px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:auto}.selection-summary{display:flex;flex-direction:column;gap:3px;min-width:0}.selection-summary strong{font-size:13px;color:#36513c}.selection-summary span{font-size:11px;color:#8a9687}.action-inner .primary{min-width:160px;min-height:46px}.notice{margin:0 0 18px;padding:13px 16px;border:1px solid #ecdcb9;background:#fbf5e8;color:#886329;border-radius:12px;font-size:12px;white-space:pre-line;overflow-wrap:anywhere}.notice.error{border-color:#efd8d0;background:#fbefeb;color:#a65340}.notice.success{border-color:#d5e4cd;background:#edf5e8;color:#526e40}.sheet{border:1px solid var(--line);border-radius:22px;max-width:620px;width:calc(100% - 32px);max-height:85dvh;padding:25px;color:var(--text);box-shadow:0 24px 90px #1735222b;overflow:auto}.sheet::backdrop{background:#16372375;backdrop-filter:blur(4px)}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8b9988;margin-bottom:6px}.sheet h2{font-size:23px;color:var(--ink)}.icon-button{width:44px;height:44px;flex:none;background:#f2f5ed;border:0;border-radius:50%;font-size:26px;line-height:1;color:#6b7f62}.sheet-description{font-size:12px;line-height:1.7;color:#7c8975;margin-top:13px}.preview-list{display:flex;flex-direction:column;gap:11px;margin-top:18px}.preview-item{border:1px solid var(--line);border-radius:12px;padding:15px}.preview-title{font-size:13px;font-weight:650}.preview-meta{font-size:10px;color:var(--muted);margin-top:4px}.preview-change{display:grid;grid-template-columns:65px 1fr 20px 1fr;gap:8px;align-items:center;font-size:12px;margin-top:10px}.preview-change .before{color:#899383}.preview-change .after{color:var(--green);font-weight:600}.preview-change .arrow{color:#a3ad9c}.preview-change .field-name{font-size:10px;color:var(--muted)}.sheet-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-25px;padding-top:18px;padding-bottom:4px;background:#fff;margin-top:6px}.sheet-actions .button{flex:1}.field-error{font-size:12px;line-height:1.6;color:var(--danger);min-height:0;margin-top:10px}.field-error:empty{display:none}.toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;background:#213c2cec;color:#fff;padding:12px 19px;border-radius:12px;font-size:12px;box-shadow:0 4px 30px #21352220;max-width:calc(100% - 30px);text-align:center}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:25px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:24px;width:100%;max-width:420px;padding:35px;box-shadow:0 20px 60px #31452208}.auth-card .brand-mark{margin-bottom:27px}.auth-card h1{font-size:24px}.muted{color:var(--muted);font-size:13px;margin-top:12px}.auth-card label{display:block;margin:30px 0 8px;color:#5b6e52;font-size:12px}.auth-card input{width:100%;height:48px}.auth-card .primary{width:100%;margin-top:20px;justify-content:space-between;height:48px}.auth-note{font-size:10px;color:#95a08e;line-height:1.8;margin-top:19px}.record-list.busy{opacity:.55;pointer-events:none}.record-card.invalid{border-color:#d39177}.text-sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
@media(min-width:1000px){.score-editor{gap:10px}.score-editor input{width:60px}}@media(max-width:850px){.workspace{padding:24px 22px calc(125px + env(safe-area-inset-bottom))}.page-header{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:22px}.connection{margin-left:60px}.table-heading{display:none}.record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.record-card{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:18px}.record-check{position:absolute;right:14px;top:10px;min-width:34px;min-height:40px;justify-content:center}.record-main{grid-column:1 / -1;padding-right:28px}.teams{font-size:15px}.record-meta{padding-right:0;margin-bottom:9px;gap:5px;font-size:10px}.record-state{grid-column:1/-1;flex-direction:row;align-items:center;border-top:1px solid #eef1e9;padding-top:11px;flex-wrap:wrap;gap:7px}.mobile-input-label{display:block;font-size:10px;color:#909b88;margin-bottom:6px;font-weight:400}.score-editor{gap:6px;align-items:flex-end}.score-editor input{width:100%;height:44px;font-size:18px}.score-colon{height:44px;display:flex;align-items:center}.result-editor select{height:44px}.recommendation{font-size:11px;margin-top:9px;line-height:1.6}.date-inputs{gap:8px}.date-inputs input{padding:0 7px;font-size:12px}.filter-row{grid-template-columns:repeat(3,minmax(0,1fr))}.action-bar{padding-left:22px;padding-right:22px}.records-toolbar p{font-size:11px}.records-toolbar h2{font-size:18px}.select-all{font-size:11px}}
@media(max-width:580px){.workspace{padding:22px 15px calc(123px + env(safe-area-inset-bottom))}.page-header{gap:13px}.brand-mark{width:42px;height:42px;border-radius:13px;font-size:23px}.identity{gap:11px}h1{font-size:22px}.subtitle{font-size:11px}.connection{margin-left:53px;font-size:10px;gap:6px}.connection-divider{margin:0 1px}.source-panel{padding:14px 15px;margin-bottom:13px;border-radius:15px}.source-panel p{font-size:11px;line-height:1.7;margin-top:10px}.source-switch button{min-height:37px;font-size:12px;padding:6px 13px}.source-badge{font-size:10px}.controls{padding:17px 15px;border-radius:15px}.date-top{justify-content:space-between;gap:8px;margin-bottom:12px}.section-label{font-size:10px;white-space:nowrap}.date-switch button{font-size:11px;padding:6px 10px;min-height:34px}.date-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}.date-arrow{display:none}.date-inputs label{font-size:10px}.date-inputs input{font-size:11px;padding:0 5px;max-width:100%}.refresh{grid-column:1/-1;margin-top:2px;min-height:41px;font-size:12px;background:#f5f8f1}.filter-row{gap:8px;margin-top:16px;padding-top:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.filter-row label{font-size:10px}.filter-row select{font-size:11px;padding-left:8px;padding-right:5px;height:42px}.filter-row>label:last-child{grid-column:1/-1}.record-section{margin-top:24px}.records-toolbar{margin-bottom:12px;align-items:flex-start}.records-toolbar h2{font-size:17px}.records-toolbar p{font-size:10px;margin-top:6px}.select-all{font-size:10px;gap:6px;min-height:26px;margin-top:2px}.select-all input{width:17px;height:17px}.record-list{grid-template-columns:1fr;gap:11px}.record-card{padding:16px 16px 13px;border-radius:15px;gap:12px;grid-template-columns:1fr 1fr}.record-main{padding-right:29px}.teams{font-size:16px}.record-meta{font-size:10px;gap:7px;margin-bottom:7px}.score-editor{gap:8px}.score-editor label{max-width:68px}.record-state{padding-top:10px}.result-editor select{font-size:13px}.record-card .tag{font-size:10px}.action-bar{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.action-inner .primary{min-width:131px;padding:11px 15px;font-size:12px}.selection-summary strong{font-size:12px}.selection-summary span{font-size:10px}.sheet{width:100%;max-width:none;margin:auto 0 0;border-radius:22px 22px 0 0;padding:23px 18px calc(20px + env(safe-area-inset-bottom));max-height:88dvh;border-bottom:0}.sheet-actions{bottom:calc(-20px - env(safe-area-inset-bottom));padding-bottom:calc(3px + env(safe-area-inset-bottom))}.sheet h2{font-size:21px}.preview-change{grid-template-columns:50px 1fr 15px 1fr;gap:6px}.page-footer{font-size:9px}.auth-card{padding:28px}.auth-card h1{font-size:22px}}
.mode-tabs{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;gap:10px;margin-bottom:18px}.mode-tabs button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:13px;padding:12px 15px;background:#fff;color:var(--ink);min-width:0;min-height:100px;text-align:left}.mode-tabs button strong{font-size:15px}.mode-tabs button span{font-size:11px;color:var(--muted)}.mode-tabs button.active{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 5px 14px #1b574523}.mode-tabs button.active span{color:#dfede6}.mode-tabs button[data-mode="directions"]{min-height:100px;padding:18px 22px}.mode-tabs button[data-mode="directions"] strong{font-size:22px}.mode-tabs button[data-mode="directions"] span{font-size:12px}.recommendation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.recommendation-toolbar p{color:var(--muted);font-size:12px;line-height:1.7}.recommendation-editor{padding:24px;margin-top:20px}.recommendation-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.recommendation-form-help{margin:12px 0 20px;color:var(--muted);font-size:12px;line-height:1.7}.recommendation-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.recommendation-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#63775d}.recommendation-fields input,.recommendation-fields select{width:100%;min-height:48px;font-size:15px}.recommendation-content-field{grid-column:1/-1}.recommendation-fields input[readonly]{background:#f2f4ef;color:#6b7964}.field-hint{font-size:11px;color:#96722d}.recommendation-form-actions{display:flex;justify-content:flex-end;margin-top:20px}.recommendation-form-actions .button{min-width:180px}.recommendation-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:20px}.recommendation-card .recommendation-text{font-size:18px;font-weight:700;color:var(--green);margin:9px 0}.recommendation-card .recommendation-details{font-size:12px;color:var(--muted);margin-top:6px}.recommendation-card .button{align-self:center;min-width:100px}.mode-recommendations .filter-row{grid-template-columns:minmax(0,1fr)}.mode-recommendations .action-bar{display:none}.recommendation-preview-fields{display:flex;flex-direction:column;gap:10px;margin-top:14px}.recommendation-preview-field{display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px;font-size:13px;overflow-wrap:anywhere}.recommendation-preview-field span{color:var(--muted)}
@media(max-width:600px){.mode-tabs{gap:6px;margin-bottom:14px}.mode-tabs button{padding:10px 6px;align-items:center;text-align:center;min-height:100px}.mode-tabs button strong{font-size:12px;white-space:nowrap}.mode-tabs button span{font-size:10px;line-height:1.5;overflow-wrap:anywhere}.mode-tabs button[data-mode="directions"]{min-height:100px;padding:15px 10px}.mode-tabs button[data-mode="directions"] strong{font-size:20px}.mode-tabs button[data-mode="directions"] span{font-size:11px}.recommendation-editor{padding:17px 15px}.recommendation-editor-heading{align-items:flex-start}.recommendation-editor-heading h2{font-size:19px}.recommendation-editor-heading .button{font-size:11px;padding:8px 10px}.recommendation-fields{grid-template-columns:1fr;gap:13px}.recommendation-fields input,.recommendation-fields select{font-size:16px}.recommendation-content-field{grid-column:auto}.recommendation-form-actions .button{width:100%}.recommendation-toolbar{flex-direction:column;align-items:stretch;gap:10px}.recommendation-toolbar .button{width:100%;font-size:15px}.recommendation-card{padding:17px;grid-template-columns:1fr;gap:10px}.recommendation-card .button{width:100%}}
.mode-tabs button.is-reading{padding-top:7px;padding-bottom:7px;gap:3px}.mode-tabs button .mode-read-status{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;min-width:0;margin-top:2px;color:inherit;line-height:1.2}.mode-tabs button .mode-read-spinner{display:inline-block;flex:none;width:10px;height:10px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}.mode-tabs button .mode-read-time{min-width:0;font-size:10px;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.mode-tabs button.active.is-reading{opacity:1}.mode-tabs button.active .mode-read-status,.mode-tabs button.active .mode-read-status span{color:#fff}.loading-progress{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-bottom:10px}.loading-progress .spinner{margin-bottom:0;flex:none}.loading-progress strong{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}@media(max-width:600px){.mode-tabs button .mode-read-status{gap:3px}.mode-tabs button .mode-read-spinner{width:8px;height:8px}.mode-tabs button .mode-read-time{font-size:9px}}
.expert-picker{display:flex;align-items:center;gap:22px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #e3eadf}.expert-picker label{display:flex;align-items:center;gap:15px;flex-shrink:0;color:var(--ink);font-size:14px;font-weight:700}.expert-picker select{width:200px;min-height:48px;background:#eff6e9;border-color:#a8c3a0;font-size:16px;font-weight:700;color:#285236}.expert-picker p{font-size:12px;color:var(--muted);line-height:1.6}@media(max-width:600px){.expert-picker{display:block;padding-bottom:13px;margin-bottom:13px}.expert-picker label{justify-content:space-between;gap:16px;font-size:13px}.expert-picker select{flex:1;min-width:0;max-width:230px}.expert-picker p{margin-top:7px;font-size:11px}}
.direction-editor{display:block;margin-top:10px;min-width:0}
.direction-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:6px;min-width:0}
.direction-label{font-size:11px;font-weight:650;letter-spacing:.5px;color:#365941;white-space:nowrap}
.direction-hint{font-size:9px;color:#8b9685;text-align:right;line-height:1.5}
.direction-hint.editable{color:#4b815b}
.record-card input.direction-input{width:100%;max-width:100%;min-width:0;height:48px;background:#eff6e9;border-color:#cbdcbc;color:#284c32;padding:0 11px;font-size:18px;font-weight:700;letter-spacing:.1px}
.record-card input.direction-input[readonly]{background:#f5f6f1;border-color:#e0e4d9;color:#53614b;font-weight:650}
.direction-reset{min-height:44px;padding:6px 2px;background:transparent;border:0;color:#729263;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.direction-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:8px}
.direction-flip{flex:1 1 170px;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #bbd2b5;border-radius:10px;background:#e4f0dc;color:#285236;text-align:left}
.direction-flip:hover:not(:disabled){background:#d9eacb;border-color:#94b28d}
.direction-flip-label{font-size:12px;font-weight:700;white-space:nowrap}
.direction-flip-value{font-size:12px;font-weight:600;overflow-wrap:anywhere;text-align:right}
.direction-flip:disabled{background:#f4f5f0;border-color:#e0e4d9;color:#8a9581;opacity:1;cursor:not-allowed}
.direction-flip-note{margin-top:6px;font-size:10px;color:#83917b;line-height:1.6;overflow-wrap:anywhere}
.direction-outcome{font-size:11px;line-height:1.6;color:#7b8975;margin-top:7px;overflow-wrap:anywhere}
.direction-outcome.lost{color:#9c623d}
.direction-outcome.won{color:#4d7756}
.score-lookup{margin-top:10px;padding:10px 11px;border:1px solid #d7e4cf;border-radius:10px;background:#f2f8ed;display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}
.score-lookup.not_found,.score-lookup.ambiguous,.score-lookup.missing{border-color:#e5e2d7;background:#f8f7f1;color:#7e8177}
.score-source-meta{display:flex;align-items:center;gap:9px;min-width:0}
.score-source-label{font-size:10px;color:#62805f;font-weight:650}
.score-source-value{font-size:17px;color:#214f37;font-variant-numeric:tabular-nums}
.score-source-teams{grid-column:1;font-size:10px;color:#7a8977;overflow-wrap:anywhere}
.score-import{grid-column:2;grid-row:1 / span 2;min-height:46px;border:0;border-radius:9px;background:#1b5745;color:#fff;padding:8px 12px;font-size:11px;font-weight:700;white-space:nowrap}
.score-import:hover{background:#144635}
.classification-notice{padding:10px 13px;border-radius:9px;background:#f4eedf;color:#8b6e3e;font-size:11px;line-height:1.6;margin-bottom:12px}
.bulk-panel{padding:17px 18px;margin-bottom:18px;background:#fff;border:1px solid #cbdccc;border-radius:14px}
.bulk-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-bottom:12px;color:var(--ink)}
.bulk-heading strong{font-size:15px}.bulk-heading span{font-size:11px;color:var(--muted)}
.bulk-buttons{display:flex;gap:12px}.bulk-buttons .button{flex:1;min-height:48px;font-size:14px}
.bulk-reverse{background:#e4f0dc;border-color:#bbd2b5;color:#285236}.bulk-reverse:hover:not(:disabled){background:#d9eacb}
.bulk-help{margin-top:10px;color:var(--muted);font-size:11px;line-height:1.7}
.bulk-status{margin-top:10px;padding:10px 12px;border-radius:8px;background:#edf5e8;color:#365f41;font-size:12px;white-space:pre-line;overflow-wrap:anywhere}
.bulk-status.has-skips{background:#fbf5e8;color:#886329}
@media(max-width:580px){.bulk-panel{padding:14px}.bulk-buttons{flex-direction:column;gap:9px}.bulk-buttons .button{width:100%;min-height:48px;font-size:14px}.bulk-heading{align-items:flex-start;flex-direction:column}.bulk-help{font-size:11px}}
.direction-preview{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:stretch;gap:9px;margin-top:14px;margin-bottom:10px}
.direction-preview-before,.direction-preview-after{border-radius:10px;padding:11px 12px;min-width:0;background:#f4f5f0}
.direction-preview-after{background:#edf5e7;border:1px solid #d7e5c9}
.direction-preview-label{display:block;font-size:10px;color:#8a9581;margin-bottom:5px}
.direction-preview strong{display:block;font-size:18px;line-height:1.5;overflow-wrap:anywhere;color:#697261}
.direction-preview-after strong{color:#315b35}
.direction-preview-arrow{display:grid;place-items:center;color:#8aa077;font-size:20px}
@media(max-width:850px){.record-main{padding-right:0}.record-main>.record-meta,.record-main>.teams{padding-right:28px}.direction-editor{margin-top:9px}.direction-hint{font-size:10px}.record-card input.direction-input{font-size:19px;height:49px}.score-import{min-height:48px}}
@media(max-width:390px){.score-lookup{grid-template-columns:1fr}.score-import{grid-column:1;grid-row:auto;width:100%;margin-top:4px}.score-source-teams{grid-column:1}}
@media(max-width:360px){.direction-hint{font-size:9px}.direction-preview-before,.direction-preview-after{padding:9px}.direction-preview strong{font-size:16px}}
.filter-toggle,.date-range-summary{display:none}
@media(max-width:600px){
  .page-header{margin-bottom:18px}
  .source-panel{padding-top:12px;padding-bottom:12px}
  .source-panel p{margin-top:8px}
  .record-section{margin-top:20px}
  .records-toolbar{margin-bottom:10px}
  .controls{padding-top:12px;padding-bottom:12px}
  .controls .date-top{margin-bottom:5px}
  .date-range-summary{display:block;margin:0 0 8px;font-size:10px;line-height:1.5;color:#85917f}
  .controls .date-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
  .controls .date-arrow{display:none}
  .controls .refresh{grid-column:auto;margin-top:0;min-width:0;padding-left:8px;padding-right:8px}
  .filter-toggle{display:inline-flex;min-width:0;padding:8px 6px;font-size:11px;font-weight:500;color:#667b5e;background:#fafcf7}
  .controls:not(.filters-expanded) .date-inputs>label,.controls:not(.filters-expanded) .filter-row{display:none}
  .controls.filters-expanded .date-inputs>label{display:flex}
  .controls.filters-expanded .filter-row{display:grid}
}
/* Keep every frequently used phone control comfortably tappable. */
@media(pointer:coarse),(max-width:850px){.segmented button{min-height:44px}.filter-row select,.refresh,.score-editor input{min-height:44px}.record-check{min-width:44px;min-height:44px;right:7px;top:7px}.select-all{min-height:44px}.record-card{scroll-margin-bottom:100px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

