/* Noise diagnosis — GAIPARTS industrial style */

.noise-page {
    background: #F4F7FA;
}

/* —— Hero —— */
.noise-hero {
    background: linear-gradient(115deg, #0B2540 0%, #123A66 55%, #17518E 100%);
    color: #FFFFFF;
    padding: 30px 0 34px;
}
.noise-hero .breadcrumb,
.noise-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}
.noise-eyebrow {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #F5B04C;
}
.noise-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #FFFFFF;
}
.noise-hero-lead {
    margin: 0 0 20px;
    max-width: 66ch;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}
.noise-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.74);
}
.noise-hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.noise-hero-facts li span {
    color: #F5B04C;
    font-size: 0.55rem;
    line-height: 1;
}

/* —— Layout —— */
.noise-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 26px;
    align-items: start;
    padding: 26px 0 56px;
}
.noise-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* —— Card —— */
.noise-card {
    background: #FFFFFF;
    border: 1px solid #D8E0EA;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(11, 37, 64, 0.07);
    overflow: hidden;
}
.noise-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #E2EAF2;
    background: #FBFCFE;
}
.noise-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.noise-card-title strong {
    display: block;
    font-size: 0.94rem;
    color: #0B2540;
}
.noise-card-title span {
    display: block;
    font-size: 0.78rem;
    color: #64748B;
}
.noise-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
    flex-shrink: 0;
}
.noise-reset {
    padding: 7px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    background: #FFFFFF;
    color: #475569;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.noise-reset:hover {
    border-color: #17518E;
    color: #17518E;
}
.noise-body {
    padding: 4px 18px 20px;
}

/* —— Steps —— */
.noise-step {
    margin: 0;
    padding: 18px 0 4px;
    border: 0;
    border-bottom: 1px solid #EDF2F7;
}
.noise-step:last-of-type {
    border-bottom: 0;
}
.noise-step-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 0 14px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0B2540;
}
.noise-step-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E7EFF7;
    color: #17518E;
    font-size: 0.74rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* —— Area tiles —— */
.noise-areas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.noise-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 13px 14px;
    border: 1px solid #D8E0EA;
    border-radius: 6px;
    background: #FFFFFF;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.noise-area svg {
    width: 22px;
    height: 22px;
    color: #64748B;
    margin-bottom: 2px;
}
.noise-area:hover {
    border-color: #94B3D4;
    background: #F7FAFD;
}
.noise-area.is-active {
    border-color: #17518E;
    background: #EEF4FB;
    box-shadow: inset 0 0 0 1px #17518E;
}
.noise-area.is-active svg {
    color: #17518E;
}
.noise-area-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0B2540;
    line-height: 1.3;
}
.noise-area-hint {
    font-size: 0.74rem;
    line-height: 1.4;
    color: #64748B;
}

/* —— Drop zone —— */
.noise-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 18px 22px;
    border: 1.5px dashed #B7C7D8;
    border-radius: 8px;
    background: #FBFCFE;
    text-align: center;
    transition: border-color 0.16s ease, background 0.16s ease;
}
.noise-drop.is-drag {
    border-color: #17518E;
    background: #EEF4FB;
}
.noise-drop-icon {
    width: 30px;
    height: 30px;
    color: #17518E;
    margin-bottom: 10px;
}
.noise-drop-title {
    margin: 0 0 4px;
    font-size: 0.94rem;
    font-weight: 700;
    color: #0B2540;
}
.noise-drop-sub {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: #64748B;
}
.noise-drop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
}
.noise-drop-hint {
    margin: 14px 0 0;
    font-size: 0.74rem;
    color: #8194AA;
}

/* —— Buttons —— */
.noise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    background: #FFFFFF;
    color: #1E293B;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.noise-btn:hover {
    border-color: #17518E;
    color: #17518E;
    background: #F4F8FC;
}
.noise-btn-primary {
    border-color: #17518E;
    background: #17518E;
    color: #FFFFFF;
}
.noise-btn-primary:hover {
    background: #0D3F73;
    border-color: #0D3F73;
    color: #FFFFFF;
}
.noise-btn-cta {
    padding: 13px 26px;
    font-size: 0.94rem;
    border-color: #D97706;
    background: #D97706;
    color: #FFFFFF;
}
.noise-btn-cta:hover {
    background: #B45309;
    border-color: #B45309;
    color: #FFFFFF;
}
.noise-btn:disabled,
.noise-btn-cta:disabled {
    background: #94A3B8;
    border-color: #94A3B8;
    color: #FFFFFF;
    cursor: not-allowed;
}

/* —— Recording panel —— */
.noise-rec {
    padding: 18px;
    border: 1px solid #F3C9A3;
    border-radius: 8px;
    background: #FFF8F0;
}
.noise-rec-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #92400E;
}
.noise-rec-ping {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #DC2626;
    animation: noisePing 1.2s infinite ease-in-out;
}
@keyframes noisePing {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}
.noise-rec-time {
    margin-left: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.86rem;
    color: #0B2540;
}
.noise-rec-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 56px;
    margin-bottom: 12px;
}
.noise-rec-bars i {
    flex: 1;
    min-width: 2px;
    height: 8%;
    border-radius: 2px;
    background: #D97706;
    transition: height 0.09s linear;
}
.noise-rec-hint {
    margin: 0 0 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #92400E;
}

/* —— File card —— */
.noise-file-card {
    padding: 14px;
    border: 1px solid #D8E0EA;
    border-radius: 8px;
    background: #FFFFFF;
}
.noise-file-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.noise-file-meta strong {
    display: block;
    font-size: 0.86rem;
    color: #0B2540;
    word-break: break-all;
}
.noise-file-meta span {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    color: #64748B;
}
.noise-file-remove {
    padding: 5px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    background: #FFFFFF;
    color: #64748B;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.noise-file-remove:hover {
    border-color: #DC2626;
    color: #DC2626;
}
.noise-wave {
    display: block;
    width: 100%;
    height: 96px;
    border-radius: 5px;
    background: #F1F5F9;
}
.noise-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
.noise-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #D8E0EA;
    border-radius: 999px;
    background: #F8FAFC;
    font-size: 0.73rem;
    font-weight: 600;
    color: #334155;
}
.noise-badge b {
    color: #17518E;
    font-weight: 800;
}
.noise-badge-warn {
    border-color: #FBD5A5;
    background: #FFF8F0;
    color: #92400E;
}
.noise-badge-warn b { color: #92400E; }
.noise-file-note {
    margin: 10px 0 0;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #64748B;
}
.noise-skip {
    margin: 12px 0 0;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #8194AA;
}
.noise-skip.is-hidden { display: none; }

/* —— Questions —— */
.noise-q {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 9px 0;
}
.noise-q-label {
    padding-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}
.noise-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.noise-chip {
    padding: 7px 13px;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    background: #FFFFFF;
    color: #334155;
    font: inherit;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.noise-chip:hover {
    border-color: #17518E;
    color: #17518E;
}
.noise-chip.is-active {
    border-color: #17518E;
    background: #17518E;
    color: #FFFFFF;
}

.noise-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 12px;
    padding: 12px 0 4px;
}
.noise-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}
.noise-field input,
.noise-field textarea {
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    background: #FFFFFF;
    color: #0F172A;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.45;
    resize: vertical;
}
.noise-field input:focus,
.noise-field textarea:focus {
    outline: none;
    border-color: #17518E;
    box-shadow: 0 0 0 3px rgba(23, 81, 142, 0.12);
}

/* —— Submit —— */
.noise-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 0 2px;
}
.noise-submit-note {
    margin: 0;
    font-size: 0.78rem;
    color: #64748B;
}
.noise-alert {
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid #FBD5A5;
    border-left: 3px solid #D97706;
    border-radius: 5px;
    background: #FFF8F0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #92400E;
}
.noise-alert.is-error {
    border-color: #F5C2C0;
    border-left-color: #B42318;
    background: #FEF4F3;
    color: #8F1D16;
}

/* —— Result —— */
.noise-result {
    background: #FFFFFF;
    border: 1px solid #D8E0EA;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(11, 37, 64, 0.07);
    overflow: hidden;
}
.noise-result-head {
    padding: 20px 20px 18px;
    border-bottom: 1px solid #E2EAF2;
    background: #FBFCFE;
    border-left: 4px solid #94A3B8;
}
.noise-result-head.sev-stop { border-left-color: #B42318; background: #FEF6F5; }
.noise-result-head.sev-soon { border-left-color: #D97706; background: #FFF9F2; }
.noise-result-head.sev-monitor { border-left-color: #0F766E; background: #F3FAF9; }
.noise-sev {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 10px;
    border-radius: 3px;
    background: #E2E8F0;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sev-stop .noise-sev { background: #B42318; color: #FFFFFF; }
.sev-soon .noise-sev { background: #D97706; color: #FFFFFF; }
.sev-monitor .noise-sev { background: #0F766E; color: #FFFFFF; }
.noise-result-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    color: #0B2540;
}
.noise-result-head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.62;
    color: #334155;
    max-width: 74ch;
}
.noise-result-block {
    padding: 18px 20px;
    border-bottom: 1px solid #EDF2F7;
}
.noise-result-block h3 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #17518E;
}

/* suspects */
.noise-suspects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.noise-suspect {
    padding: 13px 14px;
    border: 1px solid #D8E0EA;
    border-radius: 6px;
    background: #FFFFFF;
}
.noise-suspect-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.noise-suspect-part {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: #0B2540;
    line-height: 1.3;
}
.noise-suspect-area {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 3px;
    background: #F1F5F9;
    color: #64748B;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.noise-suspect-conf {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 800;
    color: #17518E;
}
.noise-bar {
    height: 5px;
    border-radius: 999px;
    background: #EDF2F7;
    overflow: hidden;
    margin-bottom: 9px;
}
.noise-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #17518E, #3E88D0);
}
.noise-suspect[data-rank="0"] .noise-bar i { background: linear-gradient(90deg, #D97706, #F5B04C); }
.noise-suspect-why {
    margin: 0 0 8px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #475569;
}
.noise-suspect-checks {
    margin: 0;
    padding-left: 16px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #334155;
}
.noise-suspect-checks li { margin-bottom: 4px; }
.noise-suspect-checks li:last-child { margin-bottom: 0; }

/* checks list */
.noise-checks {
    margin: 0;
    padding-left: 20px;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #334155;
}
.noise-checks li { margin-bottom: 8px; }
.noise-checks li:last-child { margin-bottom: 0; }

/* products */
.noise-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.noise-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    padding: 9px;
    border: 1px solid #D8E0EA;
    border-radius: 6px;
    background: #FFFFFF;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.noise-product:hover {
    border-color: #17518E;
    box-shadow: 0 8px 20px rgba(11, 37, 64, 0.1);
}
.noise-product img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    background: #F4F7FA;
}
.noise-product h4 {
    margin: 0 0 3px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0B2540;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.noise-product span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #17518E;
}
.noise-products-empty {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #64748B;
}

/* result footer */
.noise-result-foot {
    padding: 16px 20px 20px;
    background: #FBFCFE;
}
.noise-disclaimer {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-left: 3px solid #CBD5E1;
    background: #FFFFFF;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #64748B;
}
.noise-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* skeleton */
.noise-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    font-size: 0.88rem;
    color: #475569;
}
.noise-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #CBD5E1;
    border-top-color: #17518E;
    border-radius: 50%;
    animation: noiseSpin 0.8s linear infinite;
}
@keyframes noiseSpin { to { transform: rotate(360deg); } }

/* —— Aside —— */
.noise-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.noise-panel {
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid #D8E0EA;
    border-radius: 8px;
}
.noise-panel h2 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #17518E;
}
.noise-tips,
.noise-steps {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.55;
}
.noise-tips { list-style: disc; }
.noise-tips li { margin-bottom: 8px; }
.noise-tips li:last-child { margin-bottom: 0; }
.noise-tips strong { color: #0B2540; }
.noise-steps li { margin-bottom: 10px; }
.noise-steps li:last-child { margin-bottom: 0; }
.noise-steps strong { display: block; color: #0B2540; font-size: 0.88rem; }
.noise-steps span { color: #64748B; }
.noise-panel-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #64748B;
}
.noise-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.noise-cat-links a {
    padding: 6px 11px;
    border: 1px solid #D8E0EA;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E293B;
    text-decoration: none;
}
.noise-cat-links a:hover {
    border-color: #17518E;
    color: #17518E;
    background: #E7EFF7;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
    .noise-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .noise-main { grid-template-columns: minmax(0, 1fr); }
    .noise-aside { order: 2; }
}
@media (max-width: 700px) {
    .noise-q { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .noise-q-label { padding-top: 0; }
    .noise-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .noise-hero { padding: 22px 0 26px; }
    .noise-main { padding: 18px 0 40px; }
    .noise-areas { grid-template-columns: minmax(0, 1fr); }
    .noise-area {
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr);
        grid-template-areas: "icon name" "icon hint";
        column-gap: 10px;
        row-gap: 1px;
        align-items: center;
    }
    .noise-area svg { grid-area: icon; margin: 0; }
    .noise-area-name { grid-area: name; }
    .noise-area-hint { grid-area: hint; }
    .noise-products { grid-template-columns: minmax(0, 1fr); }
    .noise-drop { padding: 22px 14px 18px; }
    .noise-drop-actions .noise-btn { flex: 1 1 100%; }
    .noise-submit .noise-btn-cta { width: 100%; }
}

.noise-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.noise-search-links a {
    padding: 6px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #17518E;
    text-decoration: none;
}
.noise-search-links a:hover {
    border-color: #17518E;
    background: #E7EFF7;
}
