/* ===================================================================
   Psychoacoustics Suite — jackdaw skin
   Same panel chrome and control language as the binaural tool, applied
   to canvases, a sub-tab strip and a data table.
   =================================================================== */

.tool-psychoacoustics {
    padding: 22px 22px 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.tool-psychoacoustics header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 0 16px;
    flex-wrap: wrap;
}

.tool-psychoacoustics h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text);
}
.tool-psychoacoustics h1 span { color: var(--eye-bright); font-weight: 400; margin-left: 8px; font-size: 0.85rem; }

.tool-psychoacoustics .master { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tool-psychoacoustics .master label { color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tool-psychoacoustics .master input { width: 130px; }

/* sub-tab strip, mirrors the tool switcher up in the app header */
.tool-psychoacoustics #tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}
.tool-psychoacoustics #tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    padding: 9px 14px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
.tool-psychoacoustics #tabs button:hover { color: var(--text); }
.tool-psychoacoustics #tabs button.on { color: var(--eye-bright); border-bottom-color: var(--brass); }

.tool-psychoacoustics .panel { display: none; }
.tool-psychoacoustics .panel.on { display: block; }

.tool-psychoacoustics .readout {
    font-family: var(--mono);
    font-size: 0.86rem;
    color: var(--eye-bright);
    text-shadow: 0 0 6px rgba(143, 225, 255, 0.75), 0 0 14px rgba(143, 225, 255, 0.3);
    background: radial-gradient(120% 90% at 50% 0%, #10151b, #05070a 75%);
    border: 1px solid #000;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
    padding: 11px 14px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-psychoacoustics .readout em { color: var(--text-dim); font-style: normal; }
.tool-psychoacoustics .readout b { color: var(--brass-bright); font-weight: 600; }

.tool-psychoacoustics canvas.card {
    display: block;
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
}
.tool-psychoacoustics #curve { cursor: crosshair; }

.tool-psychoacoustics h3 { font-size: 0.92rem; font-weight: 700; margin: 22px 0 8px; color: var(--text); }
.tool-psychoacoustics h3 small { color: var(--text-faint); font-weight: 400; margin-left: 8px; }

.tool-psychoacoustics .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .tool-psychoacoustics .split { grid-template-columns: 1fr; } }

.tool-psychoacoustics .controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px 24px;
    margin: 20px 0 16px;
    padding: 14px 16px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.tool-psychoacoustics .ctl { display: block; font-size: 0.82rem; color: var(--text-dim); }
.tool-psychoacoustics .ctl b { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 0.82rem; margin-left: 6px; }
.tool-psychoacoustics .ctl.row { display: flex; gap: 18px; align-items: center; padding-top: 4px; }
.tool-psychoacoustics .chk { display: flex; align-items: center; gap: 6px; color: var(--text-dim); cursor: pointer; font-size: 0.82rem; }

.tool-psychoacoustics select { width: 100%; margin-top: 4px; font-size: 0.85rem; }

.tool-psychoacoustics .buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }

.tool-psychoacoustics button {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(180deg, var(--panel-raised), var(--panel));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 5px rgba(0, 0, 0, 0.35);
}
.tool-psychoacoustics button:hover { filter: brightness(1.12); }
.tool-psychoacoustics button.ghost { background: var(--bg-1); color: var(--text-dim); font-weight: 500; }
.tool-psychoacoustics button.ghost:hover { border-color: var(--brass); color: var(--text); }
.tool-psychoacoustics button.live {
    color: #06222b;
    background: linear-gradient(180deg, #b8ecff, var(--eye-bright));
    border-color: #2c94b3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 12px rgba(143, 225, 255, 0.4);
}

.tool-psychoacoustics table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.82rem; margin-top: 4px; }
.tool-psychoacoustics th {
    text-align: left; color: var(--text-faint); font-weight: 600; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.07em; padding: 7px 10px; border-bottom: 1px solid var(--line);
}
.tool-psychoacoustics td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }
.tool-psychoacoustics tbody tr { cursor: pointer; }
.tool-psychoacoustics tbody tr:hover { background: var(--bg-1); }

.tool-psychoacoustics .note { color: var(--text-dim); font-size: 0.82rem; max-width: 75ch; margin-top: 18px; }
.tool-psychoacoustics .note code { font-family: var(--mono); font-size: 0.78rem; color: var(--eye); }

.tool-psychoacoustics footer {
    color: var(--text-faint);
    font-size: 0.76rem;
    margin-top: 40px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
