@charset "UTF-8";

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

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

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

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

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

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

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

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

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

.frc-input-grid,
.frc-chip-section {
    display: grid;
    gap: 10px;
}

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

.frc-label,
.frc-chip-title,
.frc-support-label,
.frc-hero-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

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

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

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

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

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

.frc-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: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.frc-chip {
    min-height: 40px;
    border: 1px solid #ddd7cb;
    background: #f7f4ee;
    color: #5f5a56;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    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;
}

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

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

.frc-btn-row {
    display: grid;
    gap: 8px;
}

.frc-btn-row .tool-btn {
    width: 100%;
    min-width: 0;
}

.frc-btn-row.is-realtime .tool-btn {
    font-size: 14px;
    line-height: 1.35;
}

.frc-result-hero {
    padding: 20px;
    background: linear-gradient(135deg, #fffdf7 0%, #f7f0df 100%);
    border-color: #eadfb8;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.14);
    display: grid;
    gap: 8px;
}

.frc-hero-eyebrow {
    color: #8a6b18;
}

.frc-hero-value {
    font-size: clamp(22px, 3.4vw, 30px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #2d2a26;
    word-break: break-word;
}

.frc-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

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

.frc-support-card.is-highlight {
    background: linear-gradient(135deg, #fff9ec 0%, #f9f2e0 100%);
    border-color: #eadfb8;
}

.frc-support-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.frc-table-section {
    padding: 18px;
    display: grid;
    gap: 10px;
}

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

.frc-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee7d8;
}

.frc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: #fff;
}

.frc-table th,
.frc-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee7d8;
    text-align: left;
    font-size: 13px;
    color: #2d2a26;
    vertical-align: middle;
}

.frc-table thead th {
    background: #faf6ee;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 600;
}

.frc-table tbody tr:nth-child(even) {
    background: #fcfbf7;
}

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

.frc-copy-btn {
    min-width: 64px;
    min-height: 34px;
    border: 1px solid #ddd7cb;
    border-radius: 999px;
    background: #fff;
    color: #5f5a56;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.frc-copy-btn:hover,
.frc-copy-btn:focus-visible {
    border-color: #d4af37;
    color: #7a5d14;
    background: #fff8e6;
    outline: none;
}

.frc-copy-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.frc-copy-btn.is-copied {
    border-color: #c2a146;
    background: #f6ebc8;
    color: #6f5715;
}

.frc-section {
    padding: 18px;
}

.frc-reference-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #514b45;
    font-size: 13px;
    line-height: 1.6;
}

.frc-disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f4ee;
    border: 1px solid #e7dfd0;
    color: #5f5a56;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.6;
}

.frc-disclaimer i {
    color: #d4af37;
    margin-top: 2px;
}

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

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

@media (max-width: 768px) {

    .frc-table {
        min-width: 560px;
    }
}

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

    .frc-hero-value {
        font-size: 22px;
    }

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