:root{--bg: #f8fafc;--surface: #ffffff;--surface-hover: #f3f7fa;--border: #dbe7df;--text: #1f2937;--muted: #5f6b7a;--accent: #2e7d32;--accent-dim: #245f28;--court-blue: #1e5fae;--ball: #d4ff00;--line: #ffffff;--danger: #e05a5a;--radius: 12px;--font: "DM Sans", system-ui, sans-serif}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);background:linear-gradient(180deg,#f4f8fb 0%,var(--bg) 100%);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input{font-family:inherit}button{cursor:pointer}.app-shell{min-height:100%;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--border);background:linear-gradient(90deg,#1e5fae14,#2e7d321f),var(--surface);position:relative}.app-brand{font-weight:700;font-size:1.1rem;letter-spacing:-.02em;color:var(--accent-dim)}.app-nav{display:flex;gap:1.25rem;align-items:center}.app-nav a{color:#36526a;font-weight:500;font-size:.95rem}.app-nav a:hover{color:var(--accent-dim)}.app-main{flex:1;padding:1.5rem;max-width:960px;margin:0 auto;width:100%}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.5rem;box-shadow:0 8px 24px #1e39280f;position:relative}.card:after,.analysis-section:after{content:"";position:absolute;left:1rem;right:1rem;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.3}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.55rem 1.1rem;border-radius:8px;border:none;font-weight:600;font-size:.9rem;transition:background .2s ease,transform .2s ease,box-shadow .2s ease}.btn:active{transform:translateY(1px) scale(.99)}.btn-primary{background:var(--accent);color:#f9fffc}.btn-primary:hover{background:var(--accent-dim);transform:translateY(-1px);box-shadow:0 6px 16px #2e7d3240}.btn:focus-visible,.shot-chip:focus-visible,.shot-fields input:focus-visible,.shot-fields select:focus-visible,.analysis-section input:focus-visible,.analysis-section select:focus-visible{outline:2px solid rgba(46,125,50,.55);outline-offset:2px}.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}.btn-ghost:hover{background:var(--surface-hover);color:var(--accent-dim)}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}.field label{font-size:.85rem;font-weight:600;color:var(--muted)}.field input{padding:.65rem .85rem;border-radius:8px;border:1px solid var(--border);background:#fbfdff;color:var(--text);font-size:1rem}.field input:focus{outline:2px solid rgba(46,125,50,.35);outline-offset:1px}.muted{color:var(--muted);font-size:.9rem}.error{color:var(--danger);font-size:.9rem;margin:.5rem 0 0}.video-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.video-card{display:flex;flex-direction:column;padding:0;overflow:hidden;transition:border-color .2s ease,transform .2s ease}.video-card-link{display:block;text-decoration:none;color:inherit}.video-card-footer{padding:0 1.1rem 1rem;margin-top:auto}.video-card-delete{color:var(--danger);width:100%}.video-card:hover{border-color:var(--accent-dim);transform:translateY(-2px)}.video-card-thumb{aspect-ratio:16 / 9;background:var(--bg);object-fit:cover;width:100%;display:block}.video-card-body{padding:1rem 1.1rem}.video-card-title{font-weight:600;margin:0 0 .25rem;font-size:.95rem}.embed-wrap{position:relative;aspect-ratio:16 / 9;background:#000;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}.embed-wrap iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-wrap--api{min-height:240px}.embed-wrap--api .youtube-api-player-inner,.embed-wrap--api .youtube-api-player-inner iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.analysis-editor{gap:1.25rem}.analysis-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border);border-radius:var(--radius)}.analysis-toolbar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.analysis-dirty{color:#b56b00;font-weight:600;font-size:.9rem}.inline-label{display:flex;align-items:center;gap:.35rem;font-size:.85rem;color:var(--muted)}.select-input{padding:.35rem .5rem;border-radius:6px;border:1px solid var(--border);background:#fbfdff;color:var(--text)}.shot-type-checkbox-groups{display:grid;gap:.6rem;border:1px solid var(--border);background:#fbfdff;border-radius:8px;padding:.7rem .8rem}.shot-type-checkbox-group{display:grid;gap:.35rem}.shot-type-group-title{margin:0;font-size:.78rem;font-weight:700;color:var(--muted)}.shot-type-checkbox-list{display:flex;flex-wrap:wrap;gap:.45rem .85rem}.shot-type-checkbox-item{font-size:.83rem}.game-detail-page{display:flex;flex-direction:column;gap:1.1rem}.game-summary-panel{padding:.8rem 1rem;border-radius:12px;background:linear-gradient(160deg,#eef8f0,#f6fbff);border:1px solid #d3e7d8;display:grid;gap:.9rem}.game-summary-panel--with-court{gap:1rem}.game-summary-panel__court{display:grid;gap:.45rem;min-width:0;margin-top:.15rem}.shot-court-plot-title{margin:0;font-size:.95rem;font-weight:800;color:#14532d}.shot-court-plot-hint{margin:0;line-height:1.35}.shot-court-plot-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;width:100%}.shot-court-plot-wrap{display:grid;gap:.45rem;justify-items:center}.shot-court-plot-svg{display:block;width:50%;max-width:100%;height:auto;aspect-ratio:117.370079 / 75.370079;min-height:110px;max-height:min(29vh,320px);border-radius:10px;background:#fff;border:1px solid #cfe8d4;box-shadow:0 2px 12px #1b433214}.shot-court-plot-svg--modal{width:min(92vw,960px);max-width:100%;max-height:min(78vh,900px);min-height:240px;aspect-ratio:117.370079 / 75.370079}.shot-court-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.shot-court-modal{max-width:min(96vw,1000px);width:100%;max-height:90vh;overflow:auto;padding:1rem 1.1rem 1.25rem;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);box-shadow:0 16px 48px #0f172a2e}.shot-court-modal__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.shot-court-plot-legend{display:flex;flex-wrap:wrap;gap:.75rem 1rem;justify-content:center;width:100%}.shot-court-legend-marker{display:inline-block;width:.275rem;height:.275rem;border-radius:50%;background:#2563eb;margin-right:.25rem;vertical-align:middle}.coach-court-coords{display:grid;gap:.5rem;margin-top:.35rem;padding:.65rem .75rem;border-radius:10px;background:#3b82f60f;border:1px solid rgba(59,130,246,.15)}.coach-court-coords-title{margin:0;font-size:.82rem;font-weight:700;color:var(--muted)}.coach-court-coords-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.45rem .65rem}.coach-court-coords-grid label{font-size:.8rem}.coach-court-coords-grid input{width:100%;margin-top:.15rem}.game-summary-header{display:grid;gap:.35rem}.game-main-score{display:flex;align-items:baseline;gap:.55rem}.player-label{color:var(--muted);font-size:.78rem;font-weight:700}.score-value{font-size:clamp(1.7rem,4vw,2.2rem);font-weight:900;color:#123a27;line-height:1}.score-sep{font-size:1.3rem;font-weight:800;color:#3b556f}.success-summary{display:grid;gap:.25rem}.success-rate-big{margin:0;font-size:clamp(1.25rem,3vw,1.55rem);font-weight:900;color:#166534}.shot-selector{display:grid;gap:.55rem}.shot-selector-title{margin:0;font-size:.86rem;font-weight:700;color:var(--muted)}.all-shot-chip{padding-inline:.85rem}.shot-chip-group{display:grid;gap:.4rem}.shot-chip-list{display:flex;flex-wrap:wrap;gap:.45rem}.shot-chip{border:1px solid #cfe0d4;border-radius:999px;background:#fff;color:#335364;padding:.35rem .7rem;font-size:.8rem;font-weight:700}.shot-chip-selected{background:#e8f6ec;color:#166534;border-color:#9ad3a9}.game-set-list{display:grid;gap:.75rem}.match-result-panel{display:grid;gap:.75rem;padding:.9rem;border-radius:12px;border:1px solid #b9d9c1;background:linear-gradient(180deg,#eaf6ee,#e3f1e7)}.match-result-title{margin:0;font-size:clamp(1.25rem,3vw,1.55rem);font-weight:800;color:#184b33}.other-stats-panel{display:grid;gap:.75rem;padding:.9rem;border-radius:12px;border:1px solid #d3e7d8;background:#f7fcf8}.other-stats-title{margin:0;font-size:clamp(1.05rem,2.3vw,1.3rem);font-weight:800;color:#184b33}.other-stats-grid{display:grid;gap:.55rem}.other-stats-rank-grid{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.top-shot-card{border:1px solid #d9e8dd;border-radius:10px;background:#fff;padding:.7rem .8rem}.top-shot-title{margin:0 0 .45rem;font-size:.9rem;font-weight:700;color:#234735}.top-shot-list{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}.top-shot-list li{display:flex;justify-content:space-between;align-items:center;gap:.6rem;font-size:.88rem;color:#1e2f40}.set-card{border:1px solid #d9e8dd;border-radius:14px;padding:.85rem .95rem;box-shadow:0 8px 18px #193c260f;background:#fff}.set-card-title{margin:0 0 .5rem;font-size:.95rem;font-weight:800;color:#184b33}.set-card-body{display:grid;gap:.5rem}.game-row{display:flex;justify-content:space-between;align-items:center;gap:.7rem;border:1px solid #e5eee8;border-radius:10px;padding:.55rem .65rem;background:#fbfffd}.game-row-win{background:#f0f9ef;border-color:#d0e9d4}.game-row-sub{margin:0;font-size:.73rem;color:#617587}.game-row-score{margin:.2rem 0 0;font-size:1rem;font-weight:700;color:#1c2f3f}.status-success{background:#dcfce7;color:#15803d}.status-progress{background:#dbeafe;color:#1d4ed8}.status-empty{background:#f3f4f6;color:#4b5563}.analysis-section-title{margin:0 0 .75rem;font-size:1rem;font-weight:600}.analysis-section .small{font-size:.85rem;margin:0 0 .75rem}.shot-timeline{margin-top:.5rem}.shot-timeline-stack{display:flex;flex-direction:column;gap:.5rem}.shot-timeline-segment{display:grid;grid-template-columns:minmax(7.5rem,9rem) 1fr;gap:.5rem .75rem;align-items:center}.shot-timeline-segment-label{margin:0;font-size:.72rem;color:var(--muted);line-height:1.25}.shot-timeline-segment-label button{display:block;width:100%;margin:0;padding:.2rem 0;border:none;background:none;font:inherit;color:var(--accent);cursor:pointer;text-align:left;text-decoration:none}.shot-timeline-segment-label button:hover{text-decoration:underline}.shot-timeline-bar{position:relative;height:36px;background:#eef6f1;border-radius:6px;border:1px solid var(--border);min-width:0}.shot-timeline-mark{position:absolute;top:50%;transform:translate(-50%,-50%);width:3px;height:22px;padding:0;border:none;border-radius:2px;background:var(--accent);cursor:pointer;opacity:.9}.shot-timeline-mark:hover{opacity:1;box-shadow:0 0 0 2px #d4ff00cc;animation:ball-bounce .5s ease}@keyframes ball-bounce{0%{transform:translate(-50%,-50%)}35%{transform:translate(-50%,-68%)}70%{transform:translate(-50%,-42%)}to{transform:translate(-50%,-50%)}}.shot-timeline-scale{display:flex;justify-content:space-between;margin-top:.35rem;font-size:.75rem;color:var(--muted)}.shot-list,.rally-list{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.75rem}.shot-row,.rally-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem;padding:.75rem;background:#fbfdff;border-radius:8px;border:1px solid var(--border)}.shot-row-editing{border-color:#8fc59d;background:#f1fbf3;box-shadow:inset 0 0 0 1px #2e7d321f}.shot-fields,.rally-fields{display:flex;flex-wrap:wrap;gap:.75rem;flex:1;min-width:0}.shot-fields label,.rally-fields label{display:flex;flex-direction:column;gap:.2rem;font-size:.75rem;color:var(--muted)}.shot-fields input,.shot-fields select,.rally-fields input{min-width:5rem;padding:.4rem .5rem;border-radius:6px;border:1px solid var(--border);background:#f7fbff;color:var(--text);font-size:.85rem}.shot-row-actions,.rally-row .btn-sm{display:flex;flex-wrap:wrap;gap:.45rem;flex-shrink:0}.rally-row{align-items:center}.rally-id{align-self:center;margin-right:.25rem}.btn-sm{padding:.35rem .65rem;font-size:.8rem}.analysis-section textarea{width:100%;padding:.65rem .85rem;border-radius:8px;border:1px solid var(--border);background:#fafdff;color:var(--text);resize:vertical}.summary-stats-table{width:100%;border-collapse:collapse;margin-top:.35rem;border:none;border-radius:8px;overflow:hidden}.summary-stats-table th,.summary-stats-table td{padding:.75rem .7rem;border-bottom:1px solid #edf3ef;text-align:left;font-size:.85rem}.summary-stats-table thead th{background:#f2f8f4;font-weight:700}.summary-stats-table tbody tr:nth-child(2n){background:#fbfffc}.summary-stats-table tbody tr:last-child td{border-bottom:none}.summary-rate-grid{margin-top:.6rem;display:grid;gap:.35rem}.summary-per-game-block{margin-top:.65rem;display:grid;gap:.75rem}.summary-set-block{border:1px solid var(--border);border-radius:8px;padding:.6rem;background:#fbfffd}.summary-set-title{margin:0 0 .35rem;font-size:.85rem;font-weight:700}.summary-per-game-table th,.summary-per-game-table td{text-align:center}.summary-per-game-table th:first-child,.summary-per-game-table td:first-child{text-align:left}.summary-rate-item{margin:0;padding:.75rem .95rem;border-radius:10px;border:1px solid #d2e8d7;background:linear-gradient(180deg,#f7fff8,#f0fbf2);display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.rate-emphasis-grid{display:grid;gap:.55rem}.summary-rate-label{color:#3f5f50;font-size:.92rem;font-weight:700}.summary-rate-value{color:#14532d;font-size:1.35rem;font-weight:900;letter-spacing:-.01em}.scoreboard-readonly{margin:0;padding:.65rem .85rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);font-size:.85rem;line-height:1.45;white-space:pre-wrap;font-family:inherit}.shot-history-title{margin:0;font-size:.9rem;font-weight:600}.shot-history-toggle{margin:1.25rem 0 .5rem;width:100%;border:1px solid #d9e8dd;border-radius:8px;background:#f7fcf8;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.5rem .65rem;text-align:left}.shot-history-toggle-main{display:grid;gap:.1rem}.shot-history-toggle-help{font-size:.74rem;color:var(--muted)}.shot-history-toggle-icon{color:#245f28;font-size:1.1rem;font-weight:700;line-height:1}.shot-result-block{margin:.75rem 0;padding:.75rem;border-radius:8px;border:1px dashed var(--border)}.shot-result-block-hint{margin:0 0 .5rem}.shot-flags-row{display:flex;flex-wrap:wrap;gap:1rem;margin:.75rem 0}.shot-flags-row label.inline-checkbox{display:flex;flex-direction:row;align-items:center;gap:.4rem;font-size:.85rem;color:var(--text)}.shot-advanced-details{border:1px solid #dce9df;border-radius:10px;background:#fbfffd}.shot-advanced-static-title{margin:0;padding:.65rem .8rem;border-bottom:1px solid #e6f0e8;color:#2f5f45;font-size:.86rem;font-weight:800}.shot-advanced-body{display:grid;grid-template-columns:minmax(14rem,.85fr) minmax(18rem,1.15fr);gap:.85rem;padding:.85rem}.shot-advanced-panel{border:1px dashed #d6e7db;border-radius:8px;padding:.75rem;background:#fff}.shot-advanced-title{margin:0 0 .55rem;font-size:.83rem;font-weight:800;color:#244c35}.shot-history-list{list-style:none;margin:.8rem 0 0;padding:0;display:grid;gap:.5rem}.shot-history-header,.shot-history-row{list-style:none}.shot-history-row{border:1px solid #e1ece5;border-radius:10px;background:#fff}.shot-history-row--issue{border-color:#f2c9a3;background:#fffaf5}.shot-history-row__main{padding:.65rem}.shot-history-grid-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:.65rem}.shot-history-grid-row .shot-row-actions{grid-column:1 / -1;justify-content:flex-start;padding-top:.35rem;margin-top:.1rem;border-top:1px solid #e8f0eb}.shot-history-cell{min-width:0;display:grid;gap:.08rem;color:var(--text);font-size:.86rem}.shot-history-cell-label{color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.04em}.shot-history-cell--time strong{color:#153f2b;font-size:1rem}.shot-history-cell--issues{color:#5f6b7a}.shot-history-row--issue .shot-history-cell--issues{color:#b45309;font-weight:700}.shot-result-pill{width:fit-content;border-radius:999px;padding:.14rem .55rem;border:1px solid #d5e5da;background:#f2f8f4;color:#254634;font-size:.78rem;font-weight:800}.shot-result-pill--in{background:#ebf9ed;color:#216a2c;border-color:#bee7c6}.shot-result-pill--out,.shot-result-pill--fault,.shot-result-pill--doubleFault,.shot-result-pill--net{background:#fff0f0;color:#a52e2e;border-color:#f3c5c5}.shot-result-pill--empty{background:#f3f4f6;color:#5f6b7a;border-color:#e5e7eb}.shot-history-edit,.shot-history-edit-panel{display:grid;gap:.75rem;padding:.85rem;background:#f6fbf7;border:1px solid #cfe5d5;border-radius:10px}.shot-history-edit-panel{margin-top:.85rem}.shot-history-edit-panel__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem}.shot-history-summary{flex:1;min-width:12rem;font-size:.85rem;line-height:1.4}.shot-row.shot-history-header{align-items:center;background:linear-gradient(180deg,#f2f8ff,#ebf3ff);border:1px solid #b7cbe6;box-shadow:inset 0 1px #fffc}.shot-history-header-text{font-size:.9rem;font-weight:700;color:var(--text);display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}.shot-header-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.28rem .56rem;border-radius:999px;border:1px solid #b9c8dc;background:#f2f7ff;box-shadow:0 1px #0f172a0a}.shot-header-pill--accent{background:linear-gradient(180deg,#e9f2ff,#dfeeff);border-color:#8bb4e9}.shot-header-pill-label{font-size:.72rem;font-weight:700;color:#2f5f96;letter-spacing:.01em;text-transform:uppercase}.shot-header-pill-value{font-size:.9rem;font-weight:800;color:#123a67}.shot-history-issues{color:var(--danger);font-weight:600}.shot-edit-block{flex:1;min-width:14rem}.shot-input-form{display:grid;gap:.75rem;padding:.9rem;border:1px solid #d9e8dd;border-radius:12px;background:linear-gradient(180deg,#f7fcf8e6,#fffffff2),#fff}.shot-submit-btn{width:fit-content;min-width:7rem}.field-error{margin:.2rem 0 0;color:#a11a1a;font-size:.78rem;font-weight:600}.shot-history-tags{display:inline;margin-left:.35rem}.shot-tag{display:inline-block;margin:.1rem .25rem 0 0;padding:.1rem .35rem;border-radius:4px;font-size:.7rem;background:#ecf4ed;color:var(--text)}.placeholder-box{border:1px dashed var(--border);border-radius:var(--radius);padding:1.5rem;color:var(--muted);text-align:center}.page-title{margin:0 0 1rem;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.stack{display:flex;flex-direction:column;gap:1rem}.tennis-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(46,125,50,.5),transparent);margin:1rem 0}.scoreboard-panel{background:linear-gradient(165deg,#1e5fae21,#2e7d322e),#fff;border:1px solid #c8dfcf}.scoreboard-main{display:flex;justify-content:center;align-items:center;gap:1rem;font-weight:800;font-size:clamp(2rem,5vw,3.4rem);color:#1e293b;line-height:1.1}.scoreboard-main .leading{color:var(--accent)}.scoreboard-sub{margin-top:.35rem;text-align:center;font-weight:600;color:#456377}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.9rem}.summary-card{border:1px solid #d6e7db;border-radius:10px;padding:.85rem 1rem;background:#fbfffd}.summary-card-label{margin:0;color:var(--muted);font-size:.8rem}.summary-card-value{margin:.25rem 0 0;font-size:1.5rem;font-weight:800;color:#153f2b}.status-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.2rem .6rem;font-size:.75rem;font-weight:700;border:1px solid transparent}.status-badge-complete{background:#ebf9ed;color:#216a2c;border-color:#bee7c6}.status-badge-draft{background:#eef4ff;color:#2456a7;border-color:#c8daf8}.status-badge-error{background:#fff0f0;color:#a52e2e;border-color:#f3c5c5}.tennis-table{width:100%;border-collapse:collapse}.tennis-table th,.tennis-table td{padding:.85rem .7rem;text-align:left;border-bottom:1px solid #edf4ee}.tennis-table th{color:#4d6a7d;font-size:.82rem;text-transform:uppercase;letter-spacing:.02em}.tennis-table tbody tr:hover{background:#f5fbf6}.row-highlight-win{background:#f1faef}.analytics-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.analytics-kicker{margin:0 0 .25rem;color:var(--accent);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.analytics-lead-card{overflow:hidden;background:radial-gradient(circle at top right,rgba(30,95,174,.12),transparent 32%),linear-gradient(145deg,#2e7d321f,#fffffff2),var(--surface)}.analytics-lead-text{margin:.55rem 0 0;color:#244354;font-size:1.02rem;line-height:1.8}.analytics-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.analytics-chart-wrap{overflow-x:auto;padding-bottom:.35rem}.analytics-chart{display:block;width:100%;min-width:620px;height:auto;border:1px solid #e1ece5;border-radius:12px;background:linear-gradient(180deg,#f8fafceb,#fffffff2),#fff}.analytics-chart-grid{stroke:#dbe7df;stroke-width:1}.analytics-chart-grid--vertical{stroke-dasharray:4 5;opacity:.75}.analytics-chart-axis{fill:var(--muted);font-size:11px}.analytics-legend{display:flex;flex-wrap:wrap;gap:.65rem 1rem;margin-top:.8rem}.analytics-legend-item{display:inline-flex;align-items:center;gap:.4rem;color:#34495e;font-size:.86rem;font-weight:700}.analytics-legend-dot{width:.75rem;height:.75rem;border-radius:999px}.analytics-table-scroll{overflow-x:auto}.analytics-rate{color:#153f2b;font-size:1.05rem;font-weight:800}.analytics-trend{display:inline-flex;align-items:center;border-radius:999px;padding:.18rem .55rem;font-size:.75rem;font-weight:800;border:1px solid transparent}.analytics-trend--up{background:#ebf9ed;color:#216a2c;border-color:#bee7c6}.analytics-trend--down{background:#fff7ed;color:#b45309;border-color:#fed7aa}.analytics-trend--flat{background:#eef4ff;color:#2456a7;border-color:#c8daf8}.analytics-trend--new,.analytics-trend--none{background:#f3f4f6;color:#4b5563;border-color:#e5e7eb}.score-chip{font-weight:800;font-size:1.05rem}.admin-json-panel{margin-bottom:1rem}.admin-json-preview,.admin-json-input{font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.45;width:100%;margin:0;padding:.75rem 1rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);box-sizing:border-box}.admin-json-preview{max-height:22rem;overflow:auto;white-space:pre;word-break:normal}.admin-json-input{resize:vertical;min-height:8rem}.admin-section-title{margin:0 0 .35rem;font-size:1.05rem;font-weight:800;color:#14532d}.admin-draft-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.admin-draft-list__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .65rem;background:var(--surface-hover);border-radius:var(--radius);border:1px solid var(--border)}.admin-draft-list__actions{display:flex;gap:.35rem}.admin-checkbox-row{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:1rem;font-size:.9rem;color:var(--muted);cursor:pointer}.admin-checkbox-row input{margin-top:.2rem}@media (max-width: 820px){.shot-advanced-body{grid-template-columns:1fr}.shot-history-grid-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 560px){.shot-fields{flex-direction:column}.shot-fields label,.shot-fields input,.shot-fields select{width:100%}.shot-history-grid-row{grid-template-columns:1fr}}
