/* your-life-in-weeks (RT-FUN-087) — tool-specific styles.
   Card system lives in /assets/css/share-card.css (loaded by the widget). */

.liw-tool {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.liw-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.liw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t2, #6b6760);
}
.liw-field input {
    font: inherit;
    font-weight: 500;
    padding: 10px 12px;
    border: 1.5px solid var(--border, #ebebeb);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--t1, #1a1814);
    min-width: 170px;
}
.liw-field input:focus-visible {
    outline: 3px solid var(--rt-accent, #e8622a);
    outline-offset: 1px;
    border-color: var(--rt-accent, #e8622a);
}
.liw-go {
    font: inherit;
    font-weight: 700;
    padding: 11px 22px;
    border: none;
    border-radius: 999px;
    background: var(--rt-accent, #e8622a);
    color: #fff;
    cursor: pointer;
}
.liw-go:hover { filter: brightness(1.05); }
.liw-go:focus-visible { outline: 3px solid #1a1814; outline-offset: 2px; }

.liw-privacy {
    font-size: 0.85rem;
    color: var(--t2, #6b6760);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.liw-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.liw-stat {
    flex: 1 1 130px;
    background: var(--bg, #f7f6f3);
    border: 1px solid var(--border, #ebebeb);
    border-radius: 12px;
    padding: 14px 16px;
}
.liw-stat b {
    display: block;
    font-family: var(--rt-font-serif, serif);
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--t1, #1a1814);
}
.liw-stat span {
    font-size: 0.82rem;
    color: var(--t2, #6b6760);
}

/* Card preview stage — the 1080px card scaled to column width */
.liw-stage {
    background: #0c1827;
    border-radius: 16px;
}

/* The dot grid inside the card */
.liw-grid-wrap {
    width: 100%;
    margin: 8px 0;
}
.liw-grid-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}
.liw-cell-lived { fill: #e8622a; }
.liw-cell-now { fill: #ffd27a; }
.liw-cell-future { fill: rgba(238, 242, 251, 0.14); }
.liw-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 24px;
    color: #cdd6e8;
    margin-top: 6px;
}
.liw-legend i {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    vertical-align: -4px;
    margin-right: 8px;
}

.liw-empty {
    color: var(--t2, #6b6760);
    font-size: 0.95rem;
    text-align: center;
    padding: 40px 10px;
}

/* Card-coordinate sizing (inside the fixed 1080×1350 .sc-card) */
.liw-card .sc-eyebrow { font-size: 26px; letter-spacing: 5px; }
.liw-card .sc-title { font-size: 60px; line-height: 1.12; font-family: var(--sc-font-serif, serif); }
.liw-card .sc-sub { font-size: 34px; }
.liw-card .liw-grid-wrap { width: 100%; }
.liw-card .liw-grid-wrap svg {
    height: 632px;
    width: auto;
    max-width: 904px;
    margin: 18px auto;
    display: block;
}
.liw-card .liw-legend { justify-content: center; margin-top: 0; }
