* {
    box-sizing: border-box;
}

:root {
    --panel: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.35);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --cyan: #7dd3fc;
    --green: #86efac;
    --yellow: #fde68a;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0f172a;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) minmax(150px, 240px);
    align-items: center;
    gap: 20px;
    padding: 20px 32px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}

.footer-links a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    text-decoration: underline;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.topbar h1 {
    margin: 8px 0 0;
    font-size: 28px;
    letter-spacing: 0;
}

.brand-logo {
    display: grid;
    gap: 2px;
    justify-items: start;
    justify-self: start;
    width: max-content;
    line-height: 1.1;
    text-align: left;
}

.brand-logo span {
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 800;
}

.brand-logo strong {
    color: var(--text);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy {
    grid-column: 2;
}

.app {
    width: min(960px, calc(100% - 24px));
    margin: 24px auto;
}

.app-with-ads {
    width: min(1780px, calc(100% - 32px));
    margin: 24px auto;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 18px;
    align-items: start;
}

.app-with-ads .app {
    width: 100%;
    margin: 0;
}

.side-ad {
    position: sticky;
    top: 16px;
    min-height: 600px;
}

.ad-box {
    min-height: 600px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
        rgba(15, 23, 42, 0.72);
    color: var(--muted);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.ad-label {
    color: rgba(148, 163, 184, .72);
    font-size: 11px;
    letter-spacing: .14em;
    font-weight: 800;
}

.ad-placeholder {
    color: rgba(203, 213, 225, .72);
    font-size: 13px;
    line-height: 1.6;
}

.ad-box .adsbygoogle {
    width: 100%;
    min-height: 560px;
}

.panel {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.file-select {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 2px dashed rgba(56, 189, 248, 0.65);
    border-radius: 16px;
    cursor: pointer;
    background: rgba(8, 47, 73, 0.35);
    transition: 0.2s;
}

.file-select:hover {
    background: rgba(8, 47, 73, 0.55);
}

.file-select input {
    display: none;
}

.file-select span {
    font-size: 18px;
    font-weight: 700;
    color: #7dd3fc;
}

#waveform {
    min-height: 160px;
}

.controls-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    background: #38bdf8;
    color: #082f49;
}

button:hover {
    filter: brightness(1.08);
}

.time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .controls-panel {
        justify-content: center;
    }

    .time {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
}

.file-select.is-dragover {
    border-color: #f472b6;
    background: rgba(131, 24, 67, 0.35);
    transform: scale(1.01);
}

.file-info {
    margin-top: 14px;
    text-align: center;
    color: #cbd5e1;
}

#fileName {
    font-weight: 700;
    color: #e5e7eb;
    word-break: break-all;
}

#statusText {
    margin-top: 4px;
    font-size: 13px;
    color: #94a3b8;
}

.meter-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.meter-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.meter-row span {
    font-weight: 700;
    color: #7dd3fc;
}

.meter-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    transition: width 0.05s linear;
}

.meter {
    position: relative;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.18);
}

.meter-peak {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ffffff;
    pointer-events: none;
}

.clipping-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.clip-status {
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.clip-status.is-warning {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.clip-detail {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    color: #cbd5e1;
}

.stereo-balance {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.stereo-balance.is-center {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.stereo-balance.is-left {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.stereo-balance.is-right {
    background: rgba(236, 72, 153, 0.16);
    color: #f9a8d4;
}

.spectrum-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

#spectrumCanvas {
    display: block;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        rgba(2, 6, 23, 0.65);
    background-size: 100% 25%, 8.33% 100%, auto;
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.band-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.band-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.band-grid div {
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    background: rgba(148, 163, 184, 0.10);
    color: #e2e8f0;
    font-weight: 700;
}

.band-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

.band-comment {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

.bpm-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.bpm-value {
    text-align: center;
}

.bpm-value span {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: #38bdf8;
}

.bpm-value small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    letter-spacing: 0.16em;
}

.bpm-comment {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

.silence-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.silence-status {
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.silence-status.is-warning {
    background: rgba(234, 179, 8, 0.16);
    color: #fde68a;
}

.silence-detail {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.noise-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.noise-value {
    text-align: center;
}

.noise-value span {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: #22c55e;
}

.noise-comment {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.download-record {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    pointer-events: none;
}

.download-record.is-ready {
    background: #22c55e;
    color: #052e16;
    pointer-events: auto;
}

.copy-result-btn {
    display: block;
    margin: 16px auto 0;
}

.save-card-btn {
    display: block;
    margin: 14px auto 0;
}

.result-canvas {
    display: none;
}

body.streaming-mode {
    background: #020617;
}

body.streaming-mode .topbar,
body.streaming-mode .upload-panel,
body.streaming-mode .clipping-panel,
body.streaming-mode .bpm-panel,
body.streaming-mode .silence-panel,
body.streaming-mode .result-panel,
body.streaming-mode .noise-panel {
    display: none;
}

body.streaming-mode .app {
    width: min(1280px, calc(100% - 24px));
    margin: 12px auto;
}

body.streaming-mode .waveform-panel,
body.streaming-mode .meter-panel,
body.streaming-mode .spectrum-panel,
body.streaming-mode .band-panel,
body.streaming-mode .controls-panel {
    background: rgba(2, 6, 23, 0.92);
}

body.streaming-mode #waveform {
    min-height: 220px;
}

body.streaming-mode #spectrumCanvas {
    height: 360px;
}

body.streaming-mode .band-grid strong {
    font-size: 36px;
}

body.overlay-mode {
    background: transparent;
}

body.overlay-mode .topbar,
body.overlay-mode .upload-panel,
body.overlay-mode .clipping-panel,
body.overlay-mode .bpm-panel,
body.overlay-mode .silence-panel,
body.overlay-mode .result-panel,
body.overlay-mode .noise-panel,
body.overlay-mode .band-panel {
    display: none;
}

body.overlay-mode .app {
    width: 100%;
    margin: 0;
}

body.overlay-mode .panel {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.overlay-mode .controls-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(12px);
}

body.overlay-mode #waveform {
    min-height: 180px;
}

body.overlay-mode #spectrumCanvas {
    height: 320px;
    background: transparent;
}


/* NEON */

body.theme-neon {
    background: #020617;
}

body.theme-neon .panel {
    border-color: rgba(244, 114, 182, 0.45);
    box-shadow:
        0 0 20px rgba(244, 114, 182, 0.18),
        0 0 60px rgba(56, 189, 248, 0.12);
}

body.theme-neon button {
    background: #f472b6;
    color: #1e1b4b;
}

/* MATRIX */

body.theme-matrix {
    background: #020617;
    color: #86efac;
}

body.theme-matrix .panel {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

body.theme-matrix button {
    background: #22c55e;
    color: #052e16;
}

/* SUNSET */

body.theme-sunset {
    background:
        linear-gradient(135deg, #1e293b, #7c2d12);
}

body.theme-sunset .panel {
    border-color: rgba(251, 146, 60, 0.35);
}

body.theme-sunset button {
    background: #fb923c;
    color: #431407;
}

#themeSelect option {
    background: #0f172a;
    color: #e2e8f0;
}


#themeSelect,
#visualizerMode,
#sensitivitySelect,
#fpsSelect {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    border: 0;
    border-radius: 999px;
    padding: 12px 42px 12px 18px;

    background:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%),
        rgba(148, 163, 184, 0.18);

    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        0 0;

    background-size:
        6px 6px,
        6px 6px,
        100% 100%;

    background-repeat: no-repeat;

    color: #e2e8f0;
    font-weight: 700;
}

#themeSelect option,
#visualizerMode option,
#sensitivitySelect option,
#fpsSelect option {
    background: #0f172a;
    color: #e2e8f0;
}

.spectrum-labels.is-circle {
    display: none;
}

.stem-panel h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.stem-row {
    display: grid;
    grid-template-columns: 70px 1fr 48px;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.stem-row span {
    font-weight: 800;
    color: #7dd3fc;
}

.stem-row strong {
    text-align: right;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.stem-meter {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.16);
}

.stem-meter div {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #f472b6);
    transition: width 0.06s linear;
}
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.result-grid div {
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    background: rgba(148, 163, 184, 0.10);
}

.result-grid span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.result-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    color: #e2e8f0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group h3 {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #94a3b8;
}

.playback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.record-btn {
    background: #ef4444;
    color: white;
}

.record-btn:hover {
    filter: brightness(1.1);
}

@media (min-width: 1100px) {
    .app.three-pane {
        width: min(1480px, calc(100% - 32px));
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr) 360px;
        gap: 16px;
        align-items: start;
    }

    .left-pane,
    .center-pane,
    .right-pane {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .panel {
        margin-bottom: 0;
    }

    .left-pane {
        position: sticky;
        top: 16px;
    }

    .right-pane {
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        padding-right: 4px;
    }

    .controls-panel {
    display: grid;
    gap: 16px;
        align-items: stretch;
    }

    .controls-panel button,
    .controls-panel select,
    .controls-panel .download-record {
        width: 100%;
    }

    .time {
        margin-left: 0;
        text-align: center;
    }

    #spectrumCanvas {
        height: 560px;
    }

    #waveform {
        min-height: 130px;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .app.four-pane {
        width: 100%;
        display: grid;
        grid-template-columns:
            190px
            minmax(360px, 1.05fr)
            210px
            210px;
        gap: 12px;
        align-items: start;
    }

    .left-pane,
    .center-pane,
    .right-pane-a,
    .right-pane-b {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }

    .panel {
        margin-bottom: 0;
        padding: 14px;
        border-radius: 16px;
        overflow: hidden;
    }

    .left-pane,
    .right-pane-a,
    .right-pane-b {
        position: sticky;
        top: 12px;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .controls-panel {
    display: grid;
    gap: 16px;
        align-items: stretch;
        gap: 10px;
    }

    .controls-panel button,
    .controls-panel select,
    .controls-panel .download-record {
        width: 100%;
        min-height: 38px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .file-select {
        min-height: 110px;
    }

    .file-select span {
        font-size: 15px;
    }

    #waveform {
        min-height: 110px;
    }

    #spectrumCanvas {
    height: 225px;
}

    .right-pane-a h2,
    .right-pane-b h2 {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .band-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .band-grid div {
        padding: 10px 6px;
        font-size: 11px;
        min-width: 0;
    }

    .band-grid strong {
        font-size: 18px;
    }

    .stem-row {
        grid-template-columns: 58px minmax(0, 1fr) 36px;
        gap: 8px;
        font-size: 12px;
    }

    .clip-detail,
    .silence-detail {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        font-size: 12px;
        text-align: center;
    }

    .noise-value span,
    .bpm-value span {
        font-size: 42px;
    }

    .clip-status,
    .silence-status,
    .band-comment,
    .noise-comment,
    .bpm-comment,
    .stereo-balance {
        padding: 10px;
        font-size: 12px;
    }

    .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .result-grid div {
        padding: 10px 6px;
    }

    .result-grid strong {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
    }
}

@media (min-width: 1280px) {
    .center-pane .stem-panel,
    .center-pane .band-panel {
        padding: 14px;
    }

    .center-pane .stem-panel .stem-row {
        grid-template-columns: 80px minmax(0, 1fr) 44px;
    }

    .center-pane .band-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .right-pane-a,
    .right-pane-b {
        gap: 12px;
    }

    .right-pane-a .panel,
    .right-pane-b .panel {
        padding: 16px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.82);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.04),
            0 14px 40px rgba(0,0,0,0.22);
    }

    .right-pane-a h2,
    .right-pane-b h2 {
        margin: 0 0 14px;
        font-size: 12px;
        letter-spacing: 0.16em;
        color: #cbd5e1;
    }

    .meter-row {
        grid-template-columns: 22px 1fr;
        gap: 10px;
        margin: 12px 0;
    }

    .meter {
        height: 12px;
    }

    .band-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .band-grid div {
        padding: 14px 6px;
        border-radius: 14px;
        font-size: 11px;
    }

    .band-grid strong {
        font-size: 22px;
    }

    .band-comment,
    .noise-comment,
    .bpm-comment,
    .clip-status,
    .silence-status,
    .stereo-balance {
        padding: 12px;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.45;
    }

    .noise-value span,
    .bpm-value span {
        font-size: 48px;
    }

    .clip-detail,
    .silence-detail {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        font-size: 12px;
        text-align: center;
    }

    .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .result-grid div {
        padding: 14px 8px;
        border-radius: 14px;
        background: rgba(30, 41, 59, 0.82);
    }

    .result-grid span {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .result-grid strong {
        font-size: 16px;
    }

    .right-pane-b .copy-result-btn,
    .right-pane-b .save-card-btn,
    .right-pane-b .download-record {
        width: 100%;
        margin-top: 12px;
        font-size: 13px;
        justify-content: center;
    }

    .right-pane-b .download-record {
        margin-top: 10px;
    }

    .stem-row {
        grid-template-columns: 64px minmax(0, 1fr) 38px;
        gap: 10px;
        margin: 10px 0;
        font-size: 12px;
    }

    .stem-meter {
        height: 10px;
    }
}
.app.four-pane {
    width: 100%;
    grid-template-columns:
        190px
        minmax(360px, 1.05fr)
        210px
        210px;
}
.right-pane-b .result-panel {
    padding: 18px;
}

.right-pane-b .result-grid strong {
    font-size: 18px;
}

.center-bottom-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    align-items: start;
}

.info-section,
.comments-section,
.site-footer {
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.info-card,
.comments-section :where(.app-comments, .app-comment-form-section),
.site-footer {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.info-card {
    padding: 18px;
}

.info-card h2,
.comments-section :where(.app-comments h2, .app-comment-form-section h2) {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 18px;
    letter-spacing: 0;
}

.info-card p,
.guide-item p,
.tool-link small,
.site-footer p,
.comments-section :where(.app-comment-count, .app-comment-page-status, .app-comment-meta, .app-comments-empty, .app-comment-message, .app-comment-form label) {
    color: var(--muted);
    line-height: 1.8;
}

.info-card p {
    margin: 0;
    font-size: 14px;
}

.info-card p + p {
    margin-top: 12px;
}

.guide-item + .guide-item {
    margin-top: 14px;
}

.guide-item h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 15px;
}

.tool-links {
    display: grid;
    gap: 10px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    color: var(--text);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tool-link:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(125, 211, 252, .18);
}

.tool-link span {
    min-width: 42px;
    color: var(--cyan);
    font-size: 15px;
    font-weight: 900;
}

.tool-link strong {
    display: block;
    font-size: 15px;
}

.tool-link small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.comments-section :where(.app-comments, .app-comment-form-section) {
    margin: 0 0 14px;
    padding: 18px;
}

.comments-section :where(.app-comment-card, .app-comment-pagination) {
    border-color: var(--line);
}

.comments-section :where(.app-comment-card) {
    border-radius: 8px;
    background: rgba(255,255,255,.03);
}

.comments-section :where(.app-comment-body, .app-comment-form input, .app-comment-form select, .app-comment-form textarea) {
    color: var(--text);
}

.comments-section :where(.app-comment-form input, .app-comment-form select, .app-comment-form textarea) {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 23, .65);
}

.comments-section :where(.app-comment-form select option) {
    background: #0f172a;
    color: var(--text);
}

.comments-section :where(.app-comment-form button, .app-comment-reply-form-wrap summary, .app-comment-pagination a) {
    color: var(--cyan);
}

.comments-section :where(.app-comment-admin-reply, .app-comment-reply) {
    border-color: var(--cyan);
    background: rgba(125, 211, 252, .08);
}

.comments-section :where(.app-comment-admin-reply-title, .app-comment-rating) {
    color: var(--green);
}

.comments-section :where(.app-comment-pagination a, .app-comment-pagination span) {
    border-color: var(--line);
    background: rgba(255,255,255,.03);
}

.comments-section :where(.app-comment-pagination span) {
    border-color: var(--cyan);
    background: rgba(125, 211, 252, .14);
    color: var(--text);
}

.site-footer {
    padding: 18px;
    text-align: center;
}

.site-footer p {
    margin: 0 0 12px;
    font-size: 14px;
}

@media (max-width: 1400px) {
    .app-with-ads {
        width: min(100% - 24px, 1500px);
        display: block;
    }

    .side-ad {
        display: none;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
        padding: 18px 20px;
    }

    .brand-logo {
        justify-items: start;
        text-align: left;
    }

    .hero-copy {
        grid-column: auto;
        justify-self: center;
    }

    .topbar h1 {
        font-size: 24px;
    }

    .info-section,
    .comments-section,
    .site-footer {
        width: min(100% - 24px, 1500px);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
