.ndc-content{max-width:1280px;margin:0 auto;width:100%;color:#172b4d}.ndc-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.ndc-hero h1{font-size:32px;margin:0 0 8px}.ndc-hero p{color:#63758d;margin:0}.ndc-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.ndc-tabs a{padding:10px 16px;border-radius:9px;background:#e8f0ff;color:#1460d2;text-decoration:none;font-weight:700}.ndc-tabs a.active{background:#2563eb;color:#fff}.ndc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.ndc-card{background:#fff;border:1px solid #d7e0ed;border-radius:14px;padding:22px;box-shadow:0 8px 22px rgba(31,55,92,.05)}.ndc-card h2{margin:0 0 18px;font-size:22px}.ndc-metric-label{color:#60708a;font-size:14px}.ndc-metric-value{font-size:30px;font-weight:800;margin-top:6px}.ndc-table-wrap{overflow:auto}.ndc-table{width:100%;border-collapse:collapse;min-width:740px}.ndc-table th,.ndc-table td{padding:13px 12px;border-bottom:1px solid #e3eaf3;text-align:left;white-space:nowrap}.ndc-table th{background:#f4f7fb;color:#59708f;font-size:13px}.ndc-muted{color:#687b96}.ndc-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:10px 15px;background:#2563eb;color:#fff;text-decoration:none;font-weight:700;cursor:pointer}.ndc-button.secondary{background:#e8effb;color:#175fc5}.ndc-button.danger{background:#fee2e2;color:#b42318}.ndc-filter{display:grid;grid-template-columns:2fr repeat(5,1fr);gap:12px}.ndc-filter input,.ndc-filter select,.ndc-form input,.ndc-form select,.ndc-form textarea{width:100%;padding:10px 12px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;font:inherit}.ndc-form{display:grid;gap:15px;max-width:720px}.ndc-notice{padding:14px 16px;border-radius:10px;margin-bottom:16px}.ndc-notice.success{background:#e8f8ef;color:#167342}.ndc-notice.error{background:#fff0f0;color:#b42318}.ndc-code{font:700 30px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.12em;text-align:center;padding:20px;background:#f3f7ff;border:1px dashed #7fa4df;border-radius:10px}.ndc-device{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 0;border-bottom:1px solid #e3eaf3}.ndc-song-group{padding:18px 0;border-bottom:1px solid #e3eaf3}.is-active{background:#edf4ff;color:#1661cf!important;font-weight:700}.ndc-best-table .ndc-best-row-basic td{background:#f4fbff}.ndc-best-table .ndc-best-row-recital td{background:#fff7fc}.ndc-best-table .ndc-best-style{vertical-align:middle;text-align:center;font-size:15px;border-right:4px solid #fff}.ndc-best-table .ndc-best-style-basic{background:#d8f2ff;color:#075985;border-left:5px solid #38bdf8}.ndc-best-table .ndc-best-style-recital{background:#f3ddff;color:#6b21a8;border-left:5px solid #a855f7}.ndc-difficulty-badge{display:inline-flex;align-items:center;justify-content:center;min-width:90px;padding:6px 12px;border-radius:999px;font-weight:800;font-size:12px}.ndc-difficulty-normal{background:#d8f2ff;color:#075985}.ndc-difficulty-hard{background:#fff0a8;color:#854d0e}.ndc-difficulty-expert{background:#ffd6da;color:#a31323}.ndc-difficulty-real{background:#eadcff;color:#6b21a8}@media(max-width:860px){.ndc-grid{grid-template-columns:1fr}.ndc-filter{grid-template-columns:1fr 1fr}.ndc-hero{display:block}.ndc-hero h1{font-size:28px}}
.ndc-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ndc-manage-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700}.ndc-manage-grid input,.ndc-manage-grid select,.ndc-manage-grid textarea{width:100%;padding:10px 12px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;font:inherit}.ndc-manage-grid textarea{min-height:80px}.ndc-wide{grid-column:1/-1}@media(max-width:860px){.ndc-manage-grid{grid-template-columns:1fr}.ndc-wide{grid-column:auto}}
.ndc-inline-form{display:flex;gap:6px;align-items:center}.ndc-inline-form select{padding:6px;border:1px solid #cbd8e8;border-radius:6px}.ndc-inline-form .ndc-button{padding:6px 8px;font-size:12px}
.ndc-link-code-panel{margin:18px 0 12px;padding:18px;border:2px solid #5f91e8;border-radius:12px;background:linear-gradient(135deg,#eef5ff,#f8fbff)}.ndc-link-code-label{margin:0 0 10px;color:#1c416f;font-size:14px;font-weight:800}.ndc-link-code-row{display:flex;align-items:center;gap:12px}.ndc-link-code{flex:1;min-width:0;padding:14px 18px;border:1px solid #a9c5f5;border-radius:9px;background:#fff;color:#0d438f;font:800 clamp(28px,4vw,42px)/1 ui-monospace,Consolas,"Courier New",monospace;letter-spacing:.13em;text-align:center;white-space:nowrap}.ndc-link-code-copy{flex:0 0 auto;min-width:76px}.ndc-link-code-copy:disabled{cursor:default;opacity:.7}@media(max-width:600px){.ndc-link-code-row{align-items:stretch;flex-direction:column}.ndc-link-code{font-size:32px;letter-spacing:.09em}.ndc-link-code-copy{width:100%}}
.ndc-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 10000;
    max-width: min(90vw, 520px);
    padding: 12px 22px;
    border-radius: 999px;
    background: #173f2b;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -16px);
    transition: opacity .18s ease, transform .18s ease;
}

.ndc-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ndc-toast.is-error {
    background: #9b2430;
}

/* Score history fits the card without horizontal scrolling on desktop. */
.ndc-score-table-wrap {
    overflow-x: hidden;
}

.ndc-score-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 14px;
}

.ndc-score-table th,
.ndc-score-table td {
    padding: 11px 7px;
    overflow-wrap: anywhere;
    white-space: normal;
    vertical-align: middle;
}

.ndc-score-table th:nth-child(1) { width: 11%; }
.ndc-score-table th:nth-child(2) { width: 23%; }
.ndc-score-table th:nth-child(3) { width: 25%; }
.ndc-score-table th:nth-child(4) { width: 9%; }
.ndc-score-table th:nth-child(5) { width: 9%; }
.ndc-score-table th:nth-child(6) { width: 10%; }
.ndc-score-table th:nth-child(7) { width: 6%; }
.ndc-score-table th:nth-child(8) { width: 7%; }

@media (max-width: 760px) {
    .ndc-score-table {
        font-size: 12px;
    }
    .ndc-score-table th,
    .ndc-score-table td {
        padding: 9px 4px;
    }
}

.ndc-platform-option {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid #cbd8e8;
    border-radius: 10px;
    background: #f8fbff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

/* Compact song best-score matrix: one difficulty row, two style lines. */
.ndc-best-table-compact{min-width:620px;table-layout:fixed}.ndc-best-table-compact th:first-child{width:24%}.ndc-best-table-compact th:nth-child(2){width:52%}.ndc-best-table-compact th:nth-child(3){width:24%}.ndc-best-table-compact td{vertical-align:middle}.ndc-best-pairs{display:grid;gap:5px}.ndc-best-pair{display:grid;grid-template-columns:minmax(76px,.45fr) minmax(0,1fr);align-items:center;gap:10px;min-height:34px;padding:5px 10px;border-radius:8px}.ndc-best-pair span{font-size:12px;font-weight:900;letter-spacing:.02em}.ndc-best-pair strong{font-size:15px}.ndc-best-pair.is-basic{background:#e6f7ff;color:#075985}.ndc-best-pair.is-recital{background:#f8eaff;color:#6b21a8}.ndc-best-ranks .ndc-best-pair{grid-template-columns:1fr;text-align:center}.ndc-best-empty{margin:14px 0 0}@media(max-width:680px){.ndc-best-table-compact{min-width:520px}.ndc-best-pair{grid-template-columns:70px minmax(0,1fr);gap:6px;padding:5px 7px}.ndc-best-pair strong{font-size:14px}}

.ndc-platform-option:hover {
    border-color: #7da6e8;
    background: #f2f7ff;
}

.ndc-platform-option:has(input:checked) {
    border-color: #3b82f6;
    background: #eef5ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .08);
}

.ndc-platform-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ndc-platform-check {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #91a4bd;
    border-radius: 6px;
    background: #fff;
}

.ndc-platform-option input:checked + .ndc-platform-check {
    border-color: #2563eb;
    background: #2563eb;
}

.ndc-platform-option input:checked + .ndc-platform-check::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.ndc-platform-option input:focus-visible + .ndc-platform-check {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.ndc-platform-option strong {
    display: block;
    color: #172b4d;
    font-size: 15px;
}

.ndc-platform-option small {
    display: block;
    margin-top: 4px;
    color: #687b96;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.ndc-song-combobox {
    position: relative;
}

.ndc-song-combobox input[type="search"] {
    padding-right: 36px;
}

.ndc-song-suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #b9c9dd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(31, 55, 92, .18);
}

.ndc-song-suggestion {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #172b4d;
    text-align: left;
    cursor: pointer;
}

.ndc-song-suggestion:hover,
.ndc-song-suggestion.is-active {
    background: #eaf2ff;
    color: #155ec5;
}

.ndc-song-suggestion strong,
.ndc-song-suggestion small {
    display: block;
}

.ndc-song-suggestion strong {
    font-size: 14px;
    line-height: 1.4;
}

.ndc-song-suggestion small {
    margin-top: 2px;
    color: #687b96;
    font-size: 12px;
    font-weight: 400;
}

.ndc-song-suggestion-empty {
    padding: 14px 12px;
    color: #687b96;
    font-size: 13px;
    text-align: center;
}
/* NDC download and account-link actions */
.ndc-hero-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ndc-hero-actions .ndc-button{box-sizing:border-box;gap:8px;min-height:44px;margin:0;padding:0 15px;line-height:1.2;white-space:nowrap;vertical-align:top}
@media(max-width:860px){.ndc-hero-actions{justify-content:flex-start;margin-top:16px}}

/* OCR failure report management */
.ndc-report-game-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 4px;padding-bottom:18px;border-bottom:1px solid #e3eaf3}
.ndc-report-game-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #b8c8dd;border-radius:999px;background:#f5f8fc;color:#34506f;text-decoration:none;font-weight:800}
.ndc-report-game-tabs a.active{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.2)}
.ndc-ocr-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:18px;margin-top:20px}
.ndc-ocr-report-card{overflow:hidden;border:1px solid #d6e0ee;border-radius:14px;background:#fff}
.ndc-ocr-report-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#101827}
.ndc-ocr-report-image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s ease}
.ndc-ocr-report-image:hover img{transform:scale(1.02)}
.ndc-ocr-report-body{padding:16px}
.ndc-ocr-report-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ndc-ocr-report-heading strong{color:#172b4d;font-size:17px;line-height:1.5}
.ndc-ocr-status{flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#fff2cc;color:#805b00;font-size:12px;font-weight:700}
.ndc-ocr-status.is-reviewed{background:#dcfce7;color:#166534}
.ndc-ocr-status.is-dismissed{background:#eef2f7;color:#52647c}
.ndc-ocr-report-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;margin:16px 0}
.ndc-ocr-report-meta div{min-width:0}
.ndc-ocr-report-meta dt{color:#687b96;font-size:12px}
.ndc-ocr-report-meta dd{overflow-wrap:anywhere;margin:2px 0 0;color:#172b4d;font-size:14px}
.ndc-ocr-review-form{display:flex;align-items:flex-end;gap:10px;padding-top:14px;border-top:1px solid #e5ebf4}
.ndc-ocr-review-form label{flex:1}
.ndc-ocr-review-form select{width:100%;margin-top:5px}
.ndc-ocr-delete-form{display:flex;justify-content:flex-end;margin-top:10px}
.ndc-ocr-delete-form .ndc-button:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed;opacity:1}
.ndc-ocr-empty{margin-top:18px;padding:28px;border-radius:12px;background:#f5f8fc;color:#687b96;text-align:center}
.ndc-iidx-missing{margin-top:12px;padding:9px 11px;border-radius:8px;background:#fff4d6;color:#805b00;font-size:13px}
.ndc-iidx-diagnostics{margin:14px 0;padding:12px 13px;border-radius:9px;background:#f5f8fc;color:#40536e;font-size:13px;overflow-wrap:anywhere}
.ndc-iidx-diagnostics p{margin:6px 0 0;line-height:1.55}
.ndc-iidx-diagnostics span{color:#687b96;font-weight:700}
@media(max-width:600px){.ndc-ocr-report-meta{grid-template-columns:1fr}.ndc-ocr-review-form{align-items:stretch;flex-direction:column}.ndc-ocr-review-form .ndc-button{width:100%}}
.ndc-ocr-correction-current{display:flex;flex-direction:column;gap:3px;margin:14px 0;padding:11px 13px;border-radius:9px;background:#eaf8ef;color:#166534}
.ndc-ocr-correction-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:14px;padding:15px;border:1px solid #d6e0ee;border-radius:11px;background:#f8faff}
.ndc-ocr-correction-form label{min-width:0;color:#40536e;font-size:13px;font-weight:700}
.ndc-ocr-correction-form input,.ndc-ocr-correction-form select,.ndc-ocr-correction-form textarea{box-sizing:border-box;width:100%;margin-top:5px}
.ndc-ocr-correction-form textarea{resize:vertical}
.ndc-ocr-wide{grid-column:1/-1}
@media(max-width:600px){.ndc-ocr-correction-form{grid-template-columns:1fr}.ndc-ocr-wide{grid-column:auto}}

/* Nostalgia rivals */
.ndc-rival-section{margin-top:20px}.ndc-rival-list{display:grid;gap:10px}.ndc-rival-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #d8e2ef;border-radius:11px;background:#f8fbff}.ndc-rival-item strong,.ndc-rival-item small{display:block}.ndc-rival-item small{margin-top:4px;color:#687b96}.ndc-rival-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ndc-rival-actions form{margin:0}.ndc-rival-status{padding:7px 11px;border-radius:999px;background:#fff0bd;color:#7a5200;font-size:13px;font-weight:800}.ndc-rival-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.ndc-rival-search input{box-sizing:border-box;width:100%;padding:11px 13px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;font:inherit}.ndc-rival-search-results{margin-top:14px}.ndc-rival-compare-heading h2{margin-top:4px}.ndc-rival-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}.ndc-rival-summary a{display:flex;flex-direction:column;gap:3px;padding:12px;border:1px solid #cad8e9;border-radius:10px;background:#f7faff;color:#40536e;text-decoration:none}.ndc-rival-summary a strong{color:#172b4d;font-size:22px}.ndc-rival-summary a.is-active{border-color:#3280dd;background:#eaf3ff}.ndc-rival-compare-table{min-width:980px}.ndc-rival-compare-table td:first-child strong,.ndc-rival-compare-table td:first-child small{display:block}.ndc-rival-compare-table td:first-child small{margin-top:3px;color:#687b96}.ndc-score-diff.is-win{color:#087443;font-weight:800}.ndc-score-diff.is-loss{color:#bd2536;font-weight:800}.ndc-compare-badge{display:inline-flex;min-width:72px;justify-content:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}.ndc-compare-badge.is-win{background:#dcfce7;color:#166534}.ndc-compare-badge.is-loss{background:#fee2e2;color:#991b1b}.ndc-compare-badge.is-tie{background:#e8eff8;color:#40536e}.ndc-compare-badge.is-unplayed{background:#fff1bd;color:#7a5200}@media(max-width:760px){.ndc-rival-item{align-items:flex-start;flex-direction:column}.ndc-rival-actions,.ndc-rival-actions form,.ndc-rival-actions .ndc-button{width:100%}.ndc-rival-search{grid-template-columns:1fr}.ndc-rival-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ndc-rival-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.ndc-rival-heading h2{margin:0}.ndc-rival-count{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:7px 12px;border-radius:999px;background:#e8effb;color:#175fc5;font-weight:900}.ndc-rival-section .ndc-button:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed;opacity:1}@media(max-width:760px){.ndc-rival-heading{align-items:flex-start}.ndc-rival-count{flex:none}}
