/* Retirement Calculator — style.css v1.0 */

.rcc-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* Header */
.rcc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rcc-icon   { font-size: 34px; line-height: 1; }
.rcc-title  {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 0 3px !important; padding: 0 !important;
    border: none !important; color: #1a1a1a !important;
}
.rcc-sub { font-size: 13px; color: #666; margin: 0; }

/* 4-tab grid */
.rcc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
}
.rcc-tab {
    padding: 10px 10px;
    font-size: 12.5px; font-weight: 500;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff; color: #555;
    cursor: pointer; transition: background .13s, color .13s;
    text-align: center; line-height: 1.4;
}
.rcc-tab:hover:not(.act) { background: #fffbee; }
.rcc-tab.act { background: #fff3cd; color: #7A4F00; border-color: #F5C400; }
.rcc-tab-num { font-size: 10px; opacity: .65; display: block; margin-bottom: 2px; }

/* Panels */
.rcc-panel { display: none; }
.rcc-panel.act { display: block; }

/* Section labels */
.rcc-section-lbl {
    font-size: 11px; font-weight: 700; color: #999;
    text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 10px; margin-top: 18px;
}

/* Grid */
.rcc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 4px;
}
@media (max-width: 500px) { .rcc-grid { grid-template-columns: 1fr; } }

/* Labels */
.rcc-lbl {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500; color: #555;
    margin-bottom: 6px;
}
.rcc-tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: #ebebeb; font-size: 10px; color: #777;
    cursor: help; flex-shrink: 0; font-style: normal;
}

/* Inputs */
.rcc-iw { position: relative; }
.rcc-iw input[type="number"] {
    width: 100%; box-sizing: border-box;
    padding: 9px 36px 9px 26px;
    border: 1px solid #d0d0d0; border-radius: 8px;
    font-size: 14px; color: #1a1a1a; background: #fff;
    outline: none; transition: border-color .15s;
    -moz-appearance: textfield;
}
.rcc-iw input::-webkit-inner-spin-button,
.rcc-iw input::-webkit-outer-spin-button { -webkit-appearance: none; }
.rcc-iw input:focus { border-color: #B58A00; box-shadow: 0 0 0 3px rgba(181,138,0,.1); }
.rcc-pre {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: #999; pointer-events: none;
}
.rcc-suf {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: #999; pointer-events: none;
}

/* Result card */
.rcc-result-card {
    background: #fffbee; border: 1px solid #F5C400;
    border-radius: 12px; padding: 18px 20px;
    margin-top: 20px; margin-bottom: 14px;
    animation: rcc-in .22s ease;
}
@keyframes rcc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.rcc-res-top  { display: flex; align-items: center; margin-bottom: 14px; }
.rcc-metric   { flex: 1; text-align: center; }
.rcc-sep      { width: 1px; height: 44px; background: #F5C400; }
.rcc-val      { font-size: 19px; font-weight: 700; color: #4A2E00; }
.rcc-mlbl     { font-size: 11px; color: #B58A00; margin-top: 3px; }

/* Breakdown */
.rcc-breakdown { border-top: 1px solid #F5C400; padding-top: 12px; margin-bottom: 10px; }
.rcc-brow {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 13px;
    border-bottom: 1px solid #fde99a;
}
.rcc-brow:last-child { border-bottom: none; font-weight: 600; }
.rcc-blbl { color: #7A5200; }
.rcc-bval { color: #4A2E00; }

/* Status badges */
.rcc-status {
    border-radius: 9px; padding: 9px 14px;
    font-size: 13px; font-weight: 500;
    margin-top: 10px; text-align: center;
    line-height: 1.5;
}
.rcc-status.ok   { background: #e6f4ea; color: #1B5E3B; }
.rcc-status.warn { background: #FEF9C3; color: #7A4F00; }
.rcc-status.bad  { background: #FEE2E2; color: #B91C1C; }

/* Bars */
.rcc-bars { border-top: 1px solid #F5C400; padding-top: 12px; margin-top: 10px; }
.rcc-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.rcc-bar-row:last-child { margin-bottom: 0; }
.rcc-barlbl  { font-size: 12px; color: #7A5200; width: 130px; flex-shrink: 0; }
.rcc-track   { flex: 1; height: 7px; background: #fde99a; border-radius: 4px; overflow: hidden; }
.rcc-fill    { height: 100%; border-radius: 4px; transition: width .5s ease; }
.rcc-baramt  { font-size: 12px; color: #4A2E00; width: 100px; text-align: right; flex-shrink: 0; }

.rcc-reset-btn {
    display: block; width: 100%; margin-top: 10px; padding: 9px;
    font-size: 13px; color: #999; background: none;
    border: 1px solid #e8e8e8; border-radius: 8px;
    cursor: pointer; transition: background .13s;
}
.rcc-reset-btn:hover { background: #f5f5f5; color: #333; }
