@charset "UTF-8";

.spdc-main-layout,
.spdc-input-col,
.spdc-result-col,
.spdc-input-section,
.spdc-input,
.spdc-input-pair,
.spdc-input-group,
.spdc-support-grid,
.spdc-support-card,
.spdc-table-section,
.spdc-table-wrap,
.spdc-reference,
.spdc-disclaimer,
.spdc-btn-row,
.spdc-chip-group,
.spdc-input-unit-row,
.spdc-sync-badge,
.spdc-unit-chip {
    box-sizing: border-box;
    max-width: 100%;
}

.spdc-main-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.spdc-input-col {
    position: sticky;
    top: 20px;
    min-width: 0;
}

.spdc-result-col {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.spdc-input-section,
.spdc-result-hero,
.spdc-support-card,
.spdc-table-section,
.spdc-section {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.spdc-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.spdc-input-title,
.spdc-table-title,
.spdc-reference-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spdc-input-title i,
.spdc-table-title i,
.spdc-reference-title i {
    color: #d4af37;
}

.spdc-intro,
.spdc-note,
.spdc-helper,
.spdc-table-help,
.spdc-hero-subtext {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6a6258;
}

.spdc-input-pair {
    display: grid;
    gap: 10px;
}

.spdc-input-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.spdc-label,
.spdc-chip-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
}

.spdc-input-unit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.spdc-input,
.spdc-input-group select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #d8d1c6;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.spdc-input:hover,
.spdc-input-group select:hover {
    border-color: #d4c67a;
}

.spdc-input:focus,
.spdc-input-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.spdc-input[aria-invalid="true"] {
    border-color: #c65b49;
    box-shadow: 0 0 0 3px rgba(198, 91, 73, 0.12);
    background: #fff8f6;
}

.spdc-unit-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #ddd7cb;
    background: #f7f4ee;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.spdc-sync-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px dashed #d4c67a;
    background: linear-gradient(135deg, #fff9ec 0%, #f9f2e0 100%);
    color: #8b6b15;
    font-size: 12px;
    font-weight: 700;
}

.spdc-chip-section {
    display: grid;
    gap: 8px;
}

.spdc-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spdc-chip {
    min-height: 40px;
    border: 1px solid #ddd7cb;
    background: #f7f4ee;
    color: #5f5a56;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.spdc-chip:hover,
.spdc-chip:focus-visible {
    border-color: #d4af37;
    color: #594f42;
    background: #fff;
    outline: none;
    transform: translateY(-1px);
}

.spdc-chip.active {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff8e6 0%, #f4ead0 100%);
    color: #7a5d14;
}

.spdc-btn-row {
    display: flex;
    gap: 8px;
}

.spdc-btn-row .tool-btn {
    flex: 1;
}

.spdc-btn-row .tool-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.spdc-result-hero {
    padding: 20px;
    background: linear-gradient(135deg, #fffdf7 0%, #f7f0df 100%);
}

.spdc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6a12;
    font-size: 12px;
    font-weight: 700;
}

.spdc-hero-value {
    display: block;
    margin-top: 12px;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #2d2a26;
}

.spdc-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.spdc-support-card {
    padding: 16px;
    display: grid;
    gap: 6px;
}

.spdc-support-card.is-highlight {
    border-color: #e2c66a;
    background: linear-gradient(180deg, #fffdf7 0%, #f9f3e3 100%);
}

.spdc-support-label {
    font-size: 12px;
    font-weight: 700;
    color: #7a7168;
}

.spdc-support-value {
    font-size: 22px;
    line-height: 1.3;
    color: #2d2a26;
}

.spdc-table-section,
.spdc-section {
    padding: 18px;
}

.spdc-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.spdc-table-wrap {
    overflow-x: auto;
}

.spdc-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.spdc-table th,
.spdc-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee7da;
    text-align: left;
    font-size: 14px;
    color: #2d2a26;
}

.spdc-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: #6d645a;
    background: #fbf8f2;
}

.spdc-table tbody tr:last-child th,
.spdc-table tbody tr:last-child td {
    border-bottom: none;
}

.spdc-reference-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #4d463f;
    font-size: 14px;
    line-height: 1.6;
}

.spdc-disclaimer {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8f4eb;
    color: #5e564d;
    font-size: 13px;
    line-height: 1.6;
}

.spdc-disclaimer i {
    margin-top: 2px;
    color: #b68b16;
}

@media (max-width: 1023px) {
    .spdc-main-layout {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    }

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

    .spdc-support-card:last-child {
        grid-column: 1 / -1;
    }

    .spdc-hero-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .spdc-main-layout {
        grid-template-columns: 1fr;
    }

    .spdc-input-col {
        position: static;
    }

    .spdc-support-grid {
        grid-template-columns: 1fr;
    }

    .spdc-table {
        min-width: 100%;
    }

    .spdc-table-head {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .spdc-input-section,
    .spdc-result-hero,
    .spdc-table-section,
    .spdc-section,
    .spdc-support-card {
        padding: 16px;
    }

    .spdc-btn-row {
        flex-direction: column;
    }

    .spdc-chip {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
    }

    .spdc-hero-value {
        font-size: 24px;
    }

    .spdc-support-value {
        font-size: 20px;
    }

    .spdc-table th,
    .spdc-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}
