.mcc-hidden {
    display: none !important;
}

.mcc-intro {
    display: grid;
    gap: 10px;
}

.mcc-lead {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.7;
    color: #5f5a56;
}

.mcc-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mcc-section:hover {
    border-color: #e1d6af;
    box-shadow: 0 4px 14px rgba(45, 42, 38, 0.08);
}

.mcc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
}

.mcc-section-title i,
.mcc-disclaimer i,
.mcc-waiting i,
.mcc-rule-item strong,
.mcc-copy-btn i {
    color: #d4af37;
}

.mcc-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mcc-mode-btn {
    min-height: 48px;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcc-mode-btn:hover,
.mcc-mode-btn.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.14);
}

.mcc-mode-note,
.mcc-input-hint,
.mcc-table-note,
.mcc-kpi-note,
.mcc-nearby-note,
.mcc-rule-item span {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6d665e;
}

.mcc-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.mcc-input-label {
    font-size: 13px;
    font-weight: 700;
    color: #5f5a56;
}

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

.mcc-month-input,
.mcc-date-input,
.mcc-number-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #fff;
    color: #2d2a26;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcc-month-input:hover,
.mcc-date-input:hover,
.mcc-number-input:hover {
    border-color: #d4c67a;
}

.mcc-month-input:focus,
.mcc-date-input:focus,
.mcc-number-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.mcc-number-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.mcc-unit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mcc-preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mcc-preset-btn {
    padding: 9px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 999px;
    background: #fff;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcc-preset-btn:hover,
.mcc-preset-btn.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
}

.mcc-guide-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #5f5a56;
    font-size: 14px;
    line-height: 1.6;
}

.mcc-btn-row.is-realtime {
    display: grid;
    gap: 8px;
}

.mcc-reset-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcc-reset-btn:hover {
    border-color: #d4af37;
    background: #faf7f2;
    color: #2d2a26;
}

.mcc-waiting {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 20px;
    border: 1px solid #f1d6bf;
    border-radius: 14px;
    background: #fff8f1;
    color: #9e6f46;
}

.mcc-waiting i {
    font-size: 28px;
}

.mcc-result-hero {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.96) 54%, rgba(232, 228, 220, 0.72) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 10px 24px rgba(45, 42, 38, 0.08);
}

.mcc-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mcc-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mcc-status-badge.is-neutral {
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
}

.mcc-status-badge.is-warning {
    background: rgba(181, 109, 49, 0.14);
    color: #9f5b26;
}

.mcc-status-badge.is-danger {
    background: rgba(214, 86, 71, 0.12);
    color: #b24c3f;
}

.mcc-copy-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcc-copy-btn:hover {
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.14);
}

.mcc-hero-value {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #2d2a26;
}

.mcc-hero-label {
    font-size: 15px;
    font-weight: 700;
    color: #5f5a56;
}

.mcc-hero-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4e4943;
}

.mcc-formula-box {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #6d665e;
    font-size: 13px;
    line-height: 1.6;
}

.mcc-kpi-grid,
.mcc-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mcc-kpi-card,
.mcc-nearby-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8e4dc;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.05);
}

.mcc-kpi-label,
.mcc-nearby-badge {
    font-size: 12px;
    font-weight: 700;
    color: #8a6500;
}

.mcc-kpi-value,
.mcc-nearby-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #2d2a26;
}

.mcc-nearby-meta {
    font-size: 14px;
    font-weight: 700;
    color: #5f5a56;
}

.mcc-nearby-card.is-current {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.12);
}

.mcc-nearby-card.is-muted {
    background: #fcfbf8;
}

.mcc-rule-list {
    display: grid;
    gap: 12px;
}

.mcc-rule-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf9f7;
    border: 1px solid #ece7de;
}

.mcc-rule-item strong {
    font-size: 13px;
}

.mcc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fcf7e8;
    border: 1px solid #efe0a8;
    font-size: 13px;
    line-height: 1.6;
    color: #6c6244;
}

@media (max-width: 900px) {
    .mcc-month-input,
    .mcc-date-input,
    .mcc-number-input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .mcc-mode-toggle,
    .mcc-kpi-grid,
    .mcc-nearby-grid {
        grid-template-columns: 1fr;
    }

    .mcc-hero-value {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .tool-section,
    .tool-layout-split,
    .tool-layout-input,
    .tool-layout-result {
        max-width: 100%;
        overflow-x: hidden;
    }

    .mcc-section,
    .mcc-result-hero,
    .mcc-kpi-card,
    .mcc-nearby-card {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mcc-section,
    .mcc-mode-btn,
    .mcc-preset-btn,
    .mcc-reset-btn,
    .mcc-copy-btn,
    .mcc-month-input,
    .mcc-date-input,
    .mcc-number-input {
        transition: none !important;
    }
}
