/* ── Tokens ──────────────────────────────────────────────── */
:root {
    --bg:        #0d111d;
    --card:      rgba(255,255,255,0.07);
    --border:    rgba(255,255,255,0.11);
    --border-hi: rgba(255,255,255,0.22);
    --text:      #e8edf5;
    --muted:     #8899b4;
    --muted-2:   rgba(255,255,255,0.07);
    --blue:      #34d399;
    --blue-rgb:  52, 211, 153;
    --green:     #34d399;
    --card-alpha: 0.07;
    --red:       #f87171;
    --yellow:    #fbbf24;

    --sans: 'DM Sans', system-ui, sans-serif;

    --gap:    16px;
    --pad:    24px;
    --radius: 14px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
html { overflow-x: hidden; max-width: 100%; }
input, textarea, select { font-size: max(16px, 1em); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ── Base ────────────────────────────────────────────────── */
body {
    background: var(--bg);
    background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(var(--blue-rgb),0.28) 0%, transparent 70%),
        radial-gradient(ellipse 55% 45% at 92% 88%, rgba(var(--blue-rgb),0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(var(--blue-rgb),0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

header, main { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────────────────── */
header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 36px var(--pad) 24px;
    padding-top: calc(36px + env(safe-area-inset-top));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

#clock {
    font-size: clamp(3.5rem, 10vw, 5.8rem);
    font-weight: 300;
    letter-spacing: -4px;
    line-height: 1;
    background: linear-gradient(140deg, #f1f5f9 0%, rgba(52,211,153,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

#date {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* Pulsing status dot */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    display: block;
    box-shadow: 0 0 8px rgba(52,211,153,0.6);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.65); }
    50%      { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
}

.install-btn {
    background: transparent;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    transition: border-color .15s, color .15s;
}
.install-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Grid ────────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    padding: 0 var(--pad) var(--pad);
}

@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .news-card    { grid-column: span 2; }
    .pokemon-card { grid-column: span 2; }
    .routine-card { grid-column: span 2; }
}

@media (min-width: 1024px) {
    :root { --pad: 32px; }
    .grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 var(--pad) var(--pad);
        align-items: start;
    }
    /* Row 1: weather(1) | portfolio(2cols) — stretch weather to fill height */
    .card:nth-child(1) { align-self: stretch; }
    .card:nth-child(2) { grid-column: span 2; }
    /* Row 2: news full width */
    .news-card         { grid-column: span 3; }
    /* Row 3: countdown(1) | dinner(1) | grocery(1) */
    /* Row 4: todo(2) | pokemon(1) */
    /* Row 5: routine full width */
    .todo-card    { grid-column: span 2; }
    .pokemon-card { grid-column: span 1; }
    .routine-card { grid-column: span 3; }
}

/* ── Card ────────────────────────────────────────────────── */
.card {
    background: rgba(255,255,255,var(--card-alpha));
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--pad);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.09s);
    box-shadow: 0 4px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
    overflow: hidden;
}
.card:hover {
    border-color: var(--border-hi);
    box-shadow: 0 4px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.09);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card header ────────────────────────────────────────── */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(79,122,255,0.7);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

.refresh-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    padding: 4px 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color .15s, border-color .15s;
}
.refresh-btn:hover { color: var(--text); border-color: var(--border-hi); }
.refresh-btn.spinning svg { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Card body ──────────────────────────────────────────── */
.card-body { flex: 1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.loaded { animation: fadeIn .3s ease forwards; }

/* ── Skeleton ───────────────────────────────────────────── */
.skel {
    border-radius: 6px;
    display: block;
    background: linear-gradient(90deg, var(--muted-2) 25%, rgba(255,255,255,0.08) 50%, var(--muted-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}
.skel-row { display: flex; gap: 8px; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── States ─────────────────────────────────────────────── */
.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral  { color: var(--muted); }
.warn     { color: var(--yellow); }

.err-msg  { color: var(--red);    font-size: 13px; line-height: 1.6; }
.warn-msg { color: var(--yellow); font-size: 13px; line-height: 1.6; }

/* ── Weather ────────────────────────────────────────────── */
.wx-main {
    display: flex;
    align-items: center;
    gap: 4px;
}
.wx-temp {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.wx-icon img {
    width: 56px;
    height: 56px;
    filter: saturate(0.4) brightness(1.8);
}
.wx-desc {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 6px;
}

.wx-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.wx-stat-item { display: flex; flex-direction: column; gap: 2px; }
.wx-stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.wx-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Hourly forecast bar */
.wx-forecast {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.wx-forecast::-webkit-scrollbar { display: none; }
.wx-fc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 58px;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid transparent;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.wx-fc-item:hover { border-color: var(--border); background: rgba(255,255,255,0.07); }
.wx-fc-time { font-size: 11px; color: var(--muted); font-weight: 500; }
.wx-fc-icon img { width: 28px; height: 28px; filter: saturate(0.4) brightness(1.8); }
.wx-fc-temp { font-size: 13px; font-weight: 600; color: var(--text); }
.wx-fc-pop { font-size: 10px; color: var(--blue); font-weight: 600; }

/* Rain section embedded in weather card */
.wx-rain-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.wx-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

/* ── Portfolio ──────────────────────────────────────────── */
.port-total {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.port-ppl {
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.port-ppl-label { font-size: 11px; color: var(--muted); font-weight: 400; }

.port-meta {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.port-stat { display: flex; flex-direction: column; gap: 2px; }
.port-stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.port-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Line chart section */
.port-history-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.chart-periods {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}
.chart-period-btn {
    padding: 4px 11px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: var(--sans);
    transition: all .15s;
}
.chart-period-btn.active {
    background: rgba(52,211,153,0.14);
    border-color: rgba(52,211,153,0.35);
    color: #6ee7b7;
}
.chart-period-btn:hover:not(.active) { color: var(--text); }
.chart-wrap { position: relative; }
#portfolio-line-chart { border-radius: 4px; display: block; cursor: crosshair; }
.chart-tooltip {
    position: absolute;
    top: 4px;
    left: 10px;
    background: rgba(13,17,29,0.92);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    pointer-events: none;
    display: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(6px);
}
.chart-no-data {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

/* Portfolio allocation bar */
.alloc-bar {
    display: flex;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 16px;
    gap: 1px;
}
.alloc-seg {
    border-radius: 1px;
    transition: opacity .15s;
    cursor: default;
}
.alloc-seg:hover { opacity: 0.7; }

/* Donut chart */
.port-chart-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.port-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.port-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.port-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.port-legend-name { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.port-legend-pct  { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Positions table — bigger */
.positions {
    margin-top: 12px;
    border-top: 1px solid var(--border);
}
.pos-header {
    display: grid;
    grid-template-columns: 42px 1fr 86px;
    padding: 8px 0 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.pos-scroll { max-height: 420px; overflow-y: auto; }
.pos-row {
    display: grid;
    grid-template-columns: 42px 1fr 86px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: center;
    gap: 8px;
}
.pos-row:last-child { border-bottom: none; }

/* Stock logo circle — bigger */
.pos-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
}
.pos-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Symbol + quantity stacked — bigger */
.pos-sym-wrap { display: flex; flex-direction: column; gap: 2px; }
.pos-sym { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.pos-qty { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; }

.pos-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pos-val { font-size: 14px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.pos-pct { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ── Email ──────────────────────────────────────────────── */
.email-count-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.email-unread-count {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.email-unread-label { font-size: 12px; color: var(--muted); font-weight: 400; }

.email-list { list-style: none; }
.email-item {
    display: flex;
    flex-direction: column;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    gap: 3px;
}
.email-item:last-child { border-bottom: none; }
.email-subject {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.email-item.unread .email-subject { font-weight: 500; color: var(--text); }
.email-meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 5px;
    align-items: center;
}
.email-from { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 160px; }

.connect-section { display: flex; flex-direction: column; gap: 12px; }
.connect-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }
.connect-steps {
    list-style: decimal;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.connect-steps li { font-size: 12px; color: var(--muted); line-height: 1.5; }
.connect-steps strong { color: var(--text); font-weight: 600; }
.connect-steps code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--text);
}
.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    align-self: flex-start;
}
.connect-btn:hover { background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.45); }

/* ── News ───────────────────────────────────────────────── */
.news-list { list-style: none; }
.news-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child  { border-bottom: none; }
.news-num { font-size: 11px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.news-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-title a { color: var(--text); transition: color .15s; }
.news-title a:hover { color: var(--blue); }
.news-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── Todo ───────────────────────────────────────────────── */
.todo-empty { color: var(--muted); font-size: 13px; padding: 2px 0 10px; }
.todo-items { list-style: none; margin-bottom: 14px; }
.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.todo-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--muted);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s, background .15s;
}
.todo-item input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 10px rgba(52,211,153,0.4);
}
.todo-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px; top: 1px;
    width: 6px; height: 9px;
    border: 1.5px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
.todo-item input[type="checkbox"]:hover:not(:checked) { border-color: var(--blue); }

.todo-text { flex: 1; font-size: 13px; word-break: break-word; }
.todo-item.done .todo-text { text-decoration: line-through; color: var(--muted); }

.todo-delete {
    background: none;
    border: none;
    color: var(--muted);
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    transition: opacity .15s, color .15s;
}
.todo-item:hover .todo-delete { opacity: 1; }
.todo-delete:hover { color: var(--red); }
@media (hover: none) { .todo-delete { opacity: .7; } }

.todo-form {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.todo-form input {
    flex: 1;
    font-size: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 13px;
    outline: none;
    transition: border-color .15s, background .15s;
}
.todo-form input:focus {
    border-color: rgba(52,211,153,0.5);
    background: rgba(52,211,153,0.05);
}
.todo-form input::placeholder { color: var(--muted); }
.todo-form button {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: opacity .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(52,211,153,0.35);
}
.todo-form button:hover { opacity: .9; box-shadow: 0 4px 22px rgba(52,211,153,0.5); }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 639px) {
    :root { --pad: 16px; --gap: 12px; }

    header {
        padding: 28px var(--pad) 20px;
        padding-top: calc(28px + env(safe-area-inset-top));
    }

    #clock { font-size: clamp(3rem, 16vw, 4.5rem); letter-spacing: -3px; }

    .card { padding: 16px; border-radius: 12px; overflow: hidden; }
    .card-header { margin-bottom: 14px; }

    .refresh-btn { padding: 8px; min-width: 36px; min-height: 36px; justify-content: center; }

    /* ── Portfolio positions: compact on mobile ─── */
    .pos-header,
    .pos-row {
        grid-template-columns: 32px 1fr 72px;
        gap: 6px;
    }

    .pos-sym-wrap { gap: 1px; }
    .pos-sym      { font-size: 13px; }
    .pos-qty      { font-size: 11px; }
    .pos-val      { font-size: 13px; }
    .pos-pct      { font-size: 11px; font-weight: 700; }
    .pos-row      { padding: 10px 0; }
    .pos-scroll   { max-height: 260px; }
    .pos-logo     { width: 32px; height: 32px; font-size: 10px; }

    /* Portfolio numbers */
    .port-total { font-size: 2.4rem; letter-spacing: -1.5px; }
    .port-meta  { gap: 14px; }
    .port-stat-value { font-size: 12px; }

    #portfolio-line-chart { height: 120px !important; }

    .chart-periods {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        margin-bottom: 8px;
    }
    .chart-periods::-webkit-scrollbar { display: none; }
    .chart-period-btn { padding: 7px 12px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }

    .port-chart-wrap { flex-direction: column; gap: 12px; }
    .port-chart-legend { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
    .port-legend-item  { font-size: 11px; }

    /* Weather */
    .wx-fc-item { min-width: 48px; padding: 8px 4px; }
    .wx-temp    { font-size: 3rem; letter-spacing: -2px; }
    .wx-stats   { gap: 16px; }

    /* Email */
    .email-unread-count { font-size: 2.2rem; letter-spacing: -1.5px; }
    .email-from         { max-width: 120px; }

    /* News */
    .news-title { font-size: 12px; }

    /* Todo */
    .todo-form input  { padding: 10px 12px; }
    .todo-form button { padding: 10px 14px; }

    /* Roadworks */
    .rw-times { flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px 0; }
    .rw-map { height: 175px; }
    .rw-route-form { padding: 8px 14px 10px; }

    /* Games */
    .game-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .game-thumb { width: 46px; height: 32px; }

    /* Flight form */
    .flight-form-row { flex-wrap: wrap; }
    .flight-form-row input { min-width: 80px; font-size: 14px; }
    .flight-form-row input[type="datetime-local"] { width: 100%; flex: 1 0 100%; }

    /* Marktplaats / PC */
    .mp-search-row { gap: 6px; }
    .mp-search-row input { font-size: 14px; }

    /* Cat gallery */
    .cats-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }

    /* Alt route */
    .rw-alt-row { padding: 6px 14px 0; }
    .rw-alt-btn { font-size: 10px; padding: 4px 10px; }

    /* Meals section */
    .meals-section { margin-top: 10px; }
    .meals-list { max-height: 110px; }

    /* Drag handle: bigger tap target on mobile */
    .card-label { padding: 6px 0; min-height: 36px; align-items: center; }
    .card-label::before { font-size: 14px; opacity: 0.7; }
}

/* ── Vakantie countdown ─────────────────────────────────── */
.trips { display: flex; flex-direction: column; gap: 0; }
.trip-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.trip-item:last-child { border-bottom: none; }
.trip-flag { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.trip-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.trip-dest { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.trip-date { font-size: 11px; color: var(--muted); opacity: 0.6; }
.trip-days-wrap { text-align: right; }
.trip-num { font-size: 2.4rem; font-weight: 300; letter-spacing: -2px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; display: block; }
.trip-label { font-size: 10px; color: var(--muted); font-weight: 500; }
.trip-item.arrived .trip-num { color: var(--green); font-size: 1.4rem; letter-spacing: 0; }

/* ── Buienradar ─────────────────────────────────────────── */
.rain-summary { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.rain-summary.dry  { color: var(--muted); }
.rain-summary.wet  { color: var(--blue); }
.rain-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 64px;
}
.rain-bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.rain-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--blue);
    opacity: 0.85;
}
.rain-bar.dry { background: rgba(255,255,255,0.1); opacity: 1; }
.rain-times {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--muted);
}

/* ── Vanavond eten ──────────────────────────────────────── */
.dinner-display { display: flex; flex-direction: column; justify-content: center; min-height: 60px; }
.dinner-set { position: relative; }
.dinner-meal { font-size: 2rem; font-weight: 300; letter-spacing: -1.5px; color: var(--text); line-height: 1.2; padding-right: 28px; }
.dinner-ago  { font-size: 11px; color: var(--muted); margin-top: 6px; }
.dinner-clear {
    position: absolute;
    top: 2px; right: 0;
    background: none; border: none;
    color: var(--muted); font-size: 16px;
    cursor: pointer; padding: 0; line-height: 1;
    transition: color .15s;
}
.dinner-clear:hover { color: var(--red); }
.dinner-empty { font-size: 13px; color: var(--muted); }

/* ── Chart orders label ─────────────────────────────────── */
.chart-orders-label {
    font-size: 10px;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

/* ── Pokémon TCG ────────────────────────────────────────── */
.pkmn-sets { display: flex; flex-direction: column; }
.pkmn-set {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity .15s;
    color: inherit;
}
.pkmn-set:last-child { border-bottom: none; }
.pkmn-set:hover { opacity: 0.72; }
.pkmn-logo {
    flex-shrink: 0;
    width: 86px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pkmn-logo img {
    max-width: 86px;
    max-height: 38px;
    object-fit: contain;
}
.pkmn-info { min-width: 0; flex: 1; }
.pkmn-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pkmn-meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* ── Weekplanning ───────────────────────────────────────── */
.routine-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.routine-col { min-width: 0; }
.routine-col.today {
    background: rgba(52,211,153,0.05);
    border-radius: 8px;
    padding: 0 3px 4px;
}
.routine-day-hdr {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    text-align: center;
    padding: 4px 0 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    letter-spacing: 0.06em;
}
.routine-col.today .routine-day-hdr { color: var(--blue); border-color: rgba(52,211,153,0.3); }
.routine-blocks { display: flex; flex-direction: column; gap: 3px; }
.routine-block {
    padding: 4px 5px;
    border-radius: 5px;
    border: 1px solid;
    cursor: pointer;
    transition: opacity .15s;
    min-width: 0;
}
.routine-block:hover { opacity: 0.45; }
.routine-block-label {
    font-size: 10px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.routine-block-time {
    font-size: 9px;
    display: block;
    opacity: 0.7;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.routine-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.routine-toggle-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--sans);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s, border-color .15s;
}
.routine-toggle-btn:hover { color: var(--text); border-color: var(--border-hi); }
.routine-hint { font-size: 10px; color: var(--muted); opacity: 0.55; }
.routine-form {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}
.routine-form select,
.routine-form input[type="text"],
.routine-form input[type="time"] {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color-scheme: dark;
    padding: 7px 10px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 12px;
    outline: none;
    transition: border-color .15s;
}
.routine-form select:focus,
.routine-form input:focus { border-color: rgba(52,211,153,0.5); }
.routine-form select { cursor: pointer; }
.routine-form input[type="text"] { flex: 1; min-width: 90px; }
.routine-swatches { display: flex; gap: 5px; align-items: center; }
.routine-swatch {
    width: 18px; height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s, transform .1s;
    flex-shrink: 0;
}
.routine-swatch.active { border-color: rgba(255,255,255,0.65); transform: scale(1.2); }
.routine-submit {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--sans);
    transition: opacity .15s;
    white-space: nowrap;
}
.routine-submit:hover { opacity: .85; }

/* Mobile routine */
@media (max-width: 639px) {
    .routine-grid { gap: 4px; }
    .routine-block-label { font-size: 9px; }
    .routine-block-time  { display: none; }
    .routine-form { flex-direction: column; }
    .routine-form input[type="text"] { width: 100%; }
}

/* ── Wegwerkzaamheden ───────────────────────────────────── */
.rw-route-form {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px 10px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.rw-route-form input {
    flex: 1; min-width: 70px; background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); border-radius: 7px;
    padding: 5px 10px; color: var(--text); font-family: var(--sans);
    font-size: 12px; outline: none; color-scheme: dark;
}
.rw-route-form input:focus { border-color: rgba(52,211,153,0.45); }
.rw-route-form svg { color: var(--muted); flex-shrink: 0; }
.rw-days-sel {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    border-radius: 7px; padding: 5px 8px; color: var(--text); font-family: var(--sans);
    font-size: 12px; cursor: pointer; color-scheme: dark;
}
.rw-route-form button {
    background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.3);
    border-radius: 7px; padding: 5px 10px; color: var(--blue); cursor: pointer;
    display: flex; align-items: center;
}
.rw-route-form button:hover { background: rgba(52,211,153,0.25); }
.rw-route-form button.spinning svg { animation: spin .6s linear infinite; }
.rw-map {
    height: 200px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.rw-map .leaflet-layer { filter: invert(1) hue-rotate(180deg) brightness(0.75) saturate(0.6); }
.leaflet-container { background: var(--bg); }
.rw-alt-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 0; gap: 8px; }
.rw-alt-btn { background: rgba(255,255,255,0.07); border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-size: 11px; font-family: var(--sans); padding: 4px 12px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.rw-alt-btn:hover { color: var(--green); border-color: rgba(52,211,153,0.4); }
.rw-times {
    display: flex; gap: 16px;
}
.rw-t-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600; color: var(--text);
}
.rw-t-icon { font-size: 15px; }
.rw-route-info {
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
    padding: 8px 16px 0;
    font-size: 11px; color: var(--muted);
}
.rw-route-info::before { content: 'Route:'; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.rw-list  { display: flex; flex-direction: column; gap: 10px; }
.rw-item  { display: flex; gap: 10px; align-items: flex-start; }
.rw-left  { flex-shrink: 0; padding-top: 1px; }
.rw-badge {
    display: inline-block; padding: 2px 7px; border-radius: 4px;
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
    border: 1px solid currentColor; color: var(--muted);
}
.rw-a1  { color: #f59e0b; }
.rw-a2  { color: var(--blue); }
.rw-a4  { color: #fb923c; }
.rw-a6  { color: #a78bfa; }
.rw-a9  { color: #f472b6; }
.rw-a10 { color: #22d3ee; }
.rw-a12 { color: #4ade80; }
.rw-a20 { color: #fb923c; }
.rw-a27 { color: #34d399; }
.rw-a28 { color: #60a5fa; }
.rw-n50,.rw-n200,.rw-n201,.rw-n202,.rw-n302 { color: var(--muted); }
.rw-right { flex: 1; min-width: 0; }
.rw-desc  { font-size: 12px; color: var(--text); line-height: 1.45; }
.rw-time  { font-size: 10px; color: var(--muted); margin-top: 3px; }
.rw-clear { font-size: 13px; color: #34d399; }

.roadworks-card { grid-column: 1 / -1; }
.games-card     { grid-column: 1 / -1; }
@media (min-width: 1024px) {
    .roadworks-card { grid-column: span 2; }
    .games-card     { grid-column: span 1; }
}

/* ── Games ──────────────────────────────────────────────── */
.game-list  { display: flex; flex-direction: column; }
.game-item  {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
}
.game-item:last-child { border-bottom: none; }
.game-thumb {
    flex-shrink: 0; width: 52px; height: 36px; border-radius: 5px;
    background-size: cover; background-position: center;
    background-color: rgba(255,255,255,0.06);
}
.game-thumb-empty { opacity: 0.3; }
.game-info  { flex: 1; min-width: 0; }
.game-name  { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta  { display: flex; align-items: center; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.game-plat  { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; letter-spacing: .3px; }
.game-plat.ps5 { background: rgba(0,55,145,0.5);    color: #60a5fa; }
.game-plat.sw  { background: rgba(230,0,18,0.2);    color: #f87171; }
.game-plat.pc  { background: rgba(74,222,128,0.15); color: #4ade80; }
.game-when  { font-size: 10px; color: var(--muted); }

/* ── Toast ──────────────────────────────────────────────── */
#toast {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: rgba(10,12,22,0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-hi);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}
#toast.show    { transform: translateX(-50%) translateY(0); }
#toast.success { border-color: rgba(52,211,153,.4);  color: var(--green); }
#toast.error   { border-color: rgba(248,113,113,.4); color: var(--red); }
#toast.info    { color: var(--text); }

/* ── Settings panel ─────────────────────────────────────────── */
.settings-btn {
    background: none; border: 1px solid transparent; border-radius: 8px;
    color: var(--muted); padding: 7px; display: flex; align-items: center;
    transition: color .15s, border-color .15s;
}
.settings-btn:hover { color: var(--text); border-color: var(--border-hi); }
.settings-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.settings-overlay.open { opacity: 1; pointer-events: auto; }
.settings-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 90vw);
    background: rgba(5,18,12,0.97); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-hi); z-index: 201;
    transform: translateX(100%); transition: transform .28s cubic-bezier(0.22,1,0.36,1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.settings-panel.open { transform: translateX(0); }
.settings-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); position: sticky; top: 0; background: rgba(5,18,12,0.97);
}
.settings-close { background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px 8px; cursor: pointer; }
.settings-close:hover { color: var(--text); }
.settings-body { padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.setting-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.color-presets { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.color-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .15s, border-color .15s; flex-shrink: 0; position: relative; }
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: white; }
.color-custom { background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.color-custom input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: none; padding: 0; }
.setting-btn { background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; color: var(--text); font-size: 12px; font-weight: 500; cursor: pointer; font-family: var(--sans); transition: background .15s; }
.setting-btn:hover { background: rgba(255,255,255,0.13); }
.setting-btn-dim { color: var(--muted); }
.bg-status { font-size: 11px; color: var(--muted); margin-top: 8px; min-height: 16px; }
body.has-bg::before { background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(5,18,12,0.82) 0%, transparent 60%), radial-gradient(ellipse 100% 100% at 50% 100%, rgba(5,18,12,0.75) 0%, transparent 60%); }
body.has-bg { background-size: cover; background-position: center; background-attachment: fixed; }

/* ── Stemming (mood) ────────────────────────────────────────── */
.mood-card { grid-column: 1 / -1; }
@media (min-width: 640px) { .mood-card { grid-column: span 1; } }
.mood-picker { display: flex; gap: 6px; margin-bottom: 16px; }
.mood-btn { flex: 1; font-size: 22px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; padding: 10px 4px; cursor: pointer; transition: background .15s, transform .1s; line-height: 1; }
.mood-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.08); }
.mood-btn.selected { background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.5); transform: scale(1.1); }
.mood-history { display: flex; gap: 6px; }
.mood-day { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.mood-day-dot { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.mood-day-label { font-size: 9px; color: var(--muted); font-weight: 500; }

/* ── Dinner wheel ───────────────────────────────────────────── */
.spin-btn { font-size: 16px; background: none; border: none; cursor: pointer; padding: 4px 6px; border-radius: 8px; transition: transform .15s; }
.spin-btn:hover { transform: scale(1.2); }
.meals-section { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.meals-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meals-list { max-height: 140px; overflow-y: auto; }
.meal-name { font-size: 13px; }
.dinner-wheel-wrap { margin: 10px 0; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px; text-align: center; overflow: hidden; }
.dinner-slot { font-size: 18px; font-weight: 600; color: var(--green); min-height: 28px; transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dinner-slot.slot-winner { color: #fff; transform: scale(1.08); }
.dinner-empty { color: var(--muted); font-size: 13px; }

/* ── Flight tracker ─────────────────────────────────────────── */
.flights-list { display: flex; flex-direction: column; gap: 8px; }
.flight-item { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 12px; position: relative; border-left: 3px solid var(--green); }
.flight-item.flight-past { opacity: .5; border-left-color: var(--muted); }
.flight-route { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.flight-num { font-size: 13px; font-weight: 700; color: var(--green); font-family: monospace; letter-spacing: .05em; }
.flight-arrow { color: var(--muted); font-size: 11px; }
.flight-od { font-size: 13px; font-weight: 500; }
.flight-meta { display: flex; justify-content: space-between; align-items: center; }
.flight-dep { font-size: 11px; color: var(--muted); }
.flight-countdown { font-size: 12px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.flight-note { font-size: 11px; color: var(--muted); margin-top: 4px; font-style: italic; }
.flight-item .todo-del { position: absolute; top: 8px; right: 8px; }
.flight-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.flight-form-row { display: flex; gap: 6px; }
.flight-form-row input { flex: 1; min-width: 0; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 13px; font-family: var(--sans); }
.flight-form-row input[type="datetime-local"] { flex: 1.5; color-scheme: dark; }
.flight-form-row input::placeholder { color: var(--muted); }
.flight-form-row button[type="submit"] { background: var(--green); border: none; border-radius: 8px; width: 36px; min-width: 36px; height: 36px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── Marktplaats / Gaming PC ─────────────────────────────────── */
.mp-search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.mp-search-row input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 13px; font-family: var(--sans); }
.mp-search-row input::placeholder { color: var(--muted); }
.mp-search-btn { background: var(--green); border: none; border-radius: 8px; padding: 8px 14px; color: #fff; font-size: 13px; font-family: var(--sans); font-weight: 600; cursor: pointer; white-space: nowrap; }
.mp-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.mp-item { display: block; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--text); border: 1px solid transparent; transition: border-color .15s; }
.mp-item:hover { border-color: var(--green); }
.mp-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mp-price { font-size: 15px; font-weight: 700; color: var(--green); }
.mp-date  { font-size: 11px; color: var(--muted); }
.mp-city  { font-size: 11px; color: var(--muted); }
.pc-specs-banner { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pc-spec-item { display: flex; align-items: center; gap: 5px; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); border-radius: 20px; padding: 4px 10px; font-size: 11px; color: var(--text); white-space: nowrap; }
.pc-spec-icon { font-size: 13px; }

/* ── Cat photo gallery ───────────────────────────────────────── */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.cat-thumb-wrap { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.cat-thumb { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .15s; }
.cat-thumb:hover { transform: scale(1.04); }
.cat-del { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,0.65); border: none; color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.cat-thumb-wrap:hover .cat-del { opacity: 1; }
.cat-upload-btn { cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cat-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.cat-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 10px; object-fit: contain; }
.cat-lightbox button { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 18px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* ── Draggable cards ─────────────────────────────────────────── */
.card-label { cursor: grab; user-select: none; }
.card-label:active { cursor: grabbing; }
.card-drag-ghost { opacity: .4; }
.card-drag-chosen { box-shadow: 0 0 0 2px var(--green), 0 8px 32px rgba(0,0,0,0.4) !important; }

/* ── Card wide (double-click to expand) ─────────────────────── */
.card-wide { grid-column: span 2; }
@media (max-width: 700px) { .card-wide { grid-column: span 1; } }

/* ── Card resize + drag hint ─────────────────────────────────── */
.card-resize-btn { background: none; border: none; color: var(--muted); padding: 3px 5px; border-radius: 5px; cursor: pointer; transition: color .15s, background .15s; flex-shrink: 0; }
.card-resize-btn:hover { color: var(--green); background: rgba(var(--blue-rgb),0.12); }
.card-label { cursor: grab; user-select: none; }
.card-label::before { content: '⠿ '; color: var(--muted); font-size: 11px; opacity: .5; }
.card-label:active { cursor: grabbing; }

/* ── Recepten suggesties ─────────────────────────────────────── */
.recipes-wrap { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.recipes-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.recipes-header span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.recipes-close { background: none; border: none; color: var(--muted); font-size: 15px; padding: 2px 6px; cursor: pointer; border-radius: 4px; }
.recipes-close:hover { color: var(--text); background: var(--muted-2); }
#recipes-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.recipe-item { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 8px 10px; text-decoration: none; color: var(--text); border: 1px solid transparent; transition: border-color .15s; }
.recipe-item:hover { border-color: var(--green); }
.recipe-thumb { width: 52px; height: 52px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.recipe-info { flex: 1; min-width: 0; }
.recipe-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe-match { font-size: 10px; color: var(--blue); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; min-height: 0; }
.recipe-tag-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(var(--blue-rgb),0.15); border: 1px solid rgba(var(--blue-rgb),0.35); border-radius: 20px; padding: 4px 10px 4px 12px; font-size: 13px; color: var(--blue); }
.recipe-tag-remove { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; opacity: 0.7; }
.recipe-tag-remove:hover { opacity: 1; }
.recipe-search-btn { width: 100%; margin: 8px 0 4px; padding: 10px; background: rgba(var(--blue-rgb),0.18); border: 1px solid rgba(var(--blue-rgb),0.4); border-radius: 10px; color: var(--blue); font-size: 14px; font-family: var(--sans); font-weight: 600; cursor: pointer; transition: background .15s; }
.recipe-search-btn:hover { background: rgba(var(--blue-rgb),0.28); }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.recipe-tag { background: rgba(var(--blue-rgb),0.15); border: 1px solid rgba(var(--blue-rgb),0.3); border-radius: 10px; padding: 2px 7px; font-size: 10px; color: var(--blue); }

/* ── NS vertrektijden ────────────────────────────────────────── */
.ns-station-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ns-station-row input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 13px; font-family: var(--sans); }
.ns-station-row input::placeholder { color: var(--muted); }
.ns-station-row button { background: var(--green); border: none; border-radius: 8px; padding: 8px 14px; color: #fff; font-size: 13px; font-family: var(--sans); font-weight: 600; cursor: pointer; white-space: nowrap; }
#ns-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.ns-row { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ns-row:last-child { border-bottom: none; }
.ns-row-cancelled { opacity: .55; }
.ns-time { font-size: 16px; font-weight: 700; font-family: monospace; font-variant-numeric: tabular-nums; }
.ns-dest-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ns-dest { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-type { font-size: 10px; color: var(--muted); }
.ns-platform { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.08); border-radius: 5px; padding: 2px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ns-delay { font-size: 11px; font-weight: 600; color: var(--yellow); }
.ns-cancelled { font-size: 11px; font-weight: 600; color: var(--red); }

/* ── PC filters ──────────────────────────────────────────────── */
.pc-presets-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.pc-preset-btn { flex: 1; min-width: 0; background: rgba(var(--blue-rgb),0.12); border: 1px solid rgba(var(--blue-rgb),0.3); border-radius: 8px; padding: 7px 8px; color: var(--blue); font-size: 12px; font-family: var(--sans); cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.pc-preset-btn:hover { background: rgba(var(--blue-rgb),0.22); }
.pc-filters-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pc-filters-row input[type="number"] { width: 110px; min-width: 90px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 13px; font-family: var(--sans); }
.pc-filters-row select { flex: 1; min-width: 120px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 13px; font-family: var(--sans); color-scheme: dark; }
.pc-filters-row input::placeholder { color: var(--muted); }

/* ── Mood partner ────────────────────────────────────────────── */
.mood-partner { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.mood-partner-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.mood-partner-today { font-size: 28px; line-height: 1; margin: 6px 0 8px; }

/* ── Stickers ────────────────────────────────────────────────── */
.sticker-item { position: relative; display: flex; align-items: center; justify-content: center; align-self: center; background: transparent !important; border: none !important; box-shadow: none !important; padding: 4px; animation: none !important; opacity: 1 !important; backdrop-filter: none !important; min-height: 0 !important; }
.sticker-item:hover { border: none !important; box-shadow: none !important; }
.sticker-img { max-width: 100%; height: auto; object-fit: contain; cursor: grab; user-select: none; border-radius: 6px; display: block; }
.sticker-del { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.72); border: none; color: #fff; border-radius: 50%; width: 22px; height: 22px; font-size: 10px; cursor: pointer; opacity: 0; transition: opacity .15s; display: flex; align-items: center; justify-content: center; z-index: 2; }
.sticker-item:hover .sticker-del { opacity: 1; }

/* ── Widget toggles ──────────────────────────────────────────── */
.widget-toggles { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.widget-toggle-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 4px 0; }
.widget-toggle-name { font-size: 12px; color: var(--text); }
.widget-toggle-switch { position: relative; width: 34px; height: 18px; border-radius: 9px; background: rgba(255,255,255,0.12); transition: background .2s; flex-shrink: 0; }
.widget-toggle-switch.on { background: var(--green); }
.widget-toggle-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.widget-toggle-switch.on .widget-toggle-knob { transform: translateX(16px); }

/* ── Settings color inputs ───────────────────────────────────── */
.color-pick-native { width: 38px; height: 38px; padding: 3px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); cursor: pointer; }
.color-pick-native::-webkit-color-swatch-wrapper { padding: 0; border-radius: 5px; }
.color-pick-native::-webkit-color-swatch { border: none; border-radius: 5px; }

/* ── User name badge ─────────────────────────────────────────── */
.user-badge { font-size: 11px; font-weight: 600; background: rgba(var(--blue-rgb), 0.15); color: var(--blue); padding: 2px 8px; border-radius: 100px; letter-spacing: 0.04em; white-space: nowrap; }

/* ── Help section ────────────────────────────────────────────── */
.help-section { display: flex; flex-direction: column; }
.help-item { font-size: 11.5px; color: var(--muted); line-height: 1.5; padding: 5px 0; border-bottom: 1px solid var(--border); }
.help-item:last-child { border-bottom: none; }
.help-item b { color: var(--text); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; min-width: 280px; max-width: 360px; width: 90%; }
.modal-box h3 { margin: 0 0 16px; font-size: 15px; color: var(--text); }
.modal-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.modal-field label { font-size: 11px; color: var(--muted); }
.modal-field input { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 14px; outline: none; }
.modal-field input:focus { border-color: rgba(var(--blue-rgb), 0.6); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.modal-cancel { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.modal-save { background: rgba(var(--blue-rgb), 0.2); border: 1px solid rgba(var(--blue-rgb), 0.4); color: var(--blue); border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.modal-save:hover { background: rgba(var(--blue-rgb), 0.35); }

/* ── Trip card actions ───────────────────────────────────────── */
.card-action-btn { background: none; border: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.card-action-btn:hover { color: var(--text); }
.trip-del { background: none; border: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 2px 4px; opacity: 0.45; margin-left: 6px; flex-shrink: 0; }
.trip-del:hover { opacity: 1; color: #f87171; }
.trip-past { opacity: 0.45; }

/* ── Pokémon section labels ──────────────────────────────────── */
.pkmn-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.pkmn-section-label:first-child { margin-top: 0; }
.pkmn-upcoming-label { color: rgba(var(--blue-rgb), 0.8); }
.pkmn-announced { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pkmn-ann-row { display: flex; justify-content: space-between; align-items: center; background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.2); border-radius: 8px; padding: 6px 10px; gap: 8px; }
.pkmn-ann-name { font-size: 13px; font-weight: 500; flex: 1; min-width: 0; }
.pkmn-ann-date { font-size: 11px; color: #fb923c; white-space: nowrap; }
.collection-search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.collection-search-row input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 13px; font-family: var(--sans); }
.collection-search-row input::placeholder { color: var(--muted); }
.collection-badge { font-size: 11px; color: var(--muted); margin-left: 6px; }
.coll-search-results { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 240px; overflow-y: auto; }
.coll-result { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 6px 8px; }
.coll-result img { width: 42px; height: 58px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.coll-result-info { flex: 1; min-width: 0; }
.coll-result-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-result-meta { font-size: 11px; color: var(--muted); }
.coll-result-rarity { font-size: 10px; color: var(--blue); }
.coll-add-btn { background: rgba(var(--blue-rgb),0.15); border: 1px solid rgba(var(--blue-rgb),0.3); border-radius: 6px; padding: 5px 10px; color: var(--blue); font-size: 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .15s; }
.coll-add-btn:hover { background: rgba(var(--blue-rgb),0.25); }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.coll-card { position: relative; }
.coll-card img { width: 100%; border-radius: 6px; display: block; transition: transform .15s; }
.coll-card:hover img { transform: scale(1.04); }
.coll-count { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.75); color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 5px; pointer-events: none; }
.coll-remove { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,0.65); border: none; color: #fff; font-size: 13px; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.coll-card:hover .coll-remove { display: flex; }
.coll-scan-btn { flex-shrink: 0; padding: 8px 12px; }
.scan-modal { background: rgba(10,14,28,0.98); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 480px; overflow: hidden; }
.scan-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 15px; font-weight: 600; }
.scan-viewport { position: relative; background: #000; }
#scan-video { width: 100%; display: block; max-height: 55vw; object-fit: cover; }
.scan-guide { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; pointer-events: none; }
.scan-guide-box { position: relative; width: 70%; height: 48px; border: 2px solid rgba(52,211,153,0.9); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5); }
.scan-beam { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(52,211,153,1), transparent); animation: scanBeam 1.4s ease-in-out infinite; top: 0; }
@keyframes scanBeam { 0%,100% { top: 0; opacity:1; } 50% { top: calc(100% - 2px); opacity:0.7; } }
.scan-hint { padding: 6px 16px 2px; font-size: 12px; color: rgba(255,255,255,0.55); text-align: center; }
.scan-status { padding: 6px 16px 8px; font-size: 13px; color: var(--muted); min-height: 32px; text-align: center; }
.scan-dots::after { content: ''; animation: scanDots 1.2s steps(3,end) infinite; }
@keyframes scanDots { 0%{content:'●○○'} 33%{content:'○●○'} 66%{content:'○○●'} 100%{content:'●○○'} }
.scan-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.scan-card-choice { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,0.05); margin-bottom: 6px; border: 1px solid var(--border); transition: background .15s; }
.scan-card-choice:hover { background: rgba(52,211,153,0.12); }
.scan-card-choice img { width: 48px; border-radius: 4px; flex-shrink: 0; }
.scan-card-info { flex: 1; min-width: 0; }
.scan-card-name { font-size: 14px; font-weight: 600; }
.scan-card-meta { font-size: 11px; color: var(--muted); }
.coll-set-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.coll-series { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Voetbal ─────────────────────────────────────────────────── */
.fb-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.fb-tab { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s; }
.fb-tab.active { background: rgba(var(--blue-rgb), 0.15); border-color: rgba(var(--blue-rgb), 0.4); color: var(--blue); }
.fb-tab:hover:not(.active) { color: var(--text); border-color: var(--border-hi); }
.fb-group-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.fb-group-label:first-child { margin-top: 0; }
.fb-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 4px; }
.fb-table thead th { color: var(--muted); font-size: 10px; font-weight: 600; text-align: right; padding: 0 3px 4px; }
.fb-table thead th:nth-child(2) { text-align: left; }
.fb-row td { padding: 4px 3px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; white-space: nowrap; }
.fb-row:last-child td { border-bottom: none; }
.fb-pos { color: var(--muted); font-size: 11px; width: 16px; text-align: right; }
.fb-team { color: var(--text); display: flex; align-items: center; gap: 5px; min-width: 0; }
.fb-team img { flex-shrink: 0; }
.fb-num { text-align: right; color: var(--muted); min-width: 22px; }
.fb-pts { color: var(--text); font-weight: 600; }
.fb-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.fb-match { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px; gap: 8px; }
.fb-match:last-child { border-bottom: none; }
.fb-match-teams { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-match-date { color: var(--muted); font-size: 11px; flex-shrink: 0; }


/* ── Recepten ────────────────────────────────────────────────── */
.recipe-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.recipe-search-row input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 14px; outline: none; }
.recipe-search-row input:focus { border-color: rgba(var(--blue-rgb), 0.6); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.recipe-card { cursor: pointer; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid var(--border); transition: transform .15s, border-color .15s; }
.recipe-card:hover { transform: translateY(-2px); border-color: rgba(var(--blue-rgb), 0.4); }
.recipe-thumb { aspect-ratio: 1; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.05); }
.recipe-name { font-size: 10px; padding: 5px 6px 6px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-modal { max-width: 460px; padding: 0; overflow: hidden; max-height: 88vh; display: flex; flex-direction: column; }
.recipe-modal-img { height: 160px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; background-color: rgba(255,255,255,0.05); }
.recipe-modal-close { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.55); border: none; color: #fff; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 12px; line-height: 1; }
.recipe-modal-body { padding: 16px 18px 20px; overflow-y: auto; }
.recipe-modal-body h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.recipe-meta { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.recipe-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.recipe-section-label:first-of-type { margin-top: 0; }
.recipe-ings { margin: 0 0 4px; padding-left: 16px; }
.recipe-ings li { font-size: 12px; color: var(--text); padding: 2px 0; line-height: 1.5; }
.recipe-steps p { font-size: 12px; color: var(--text); line-height: 1.65; margin: 0 0 8px; }
.recipe-yt-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #f87171; border-radius: 8px; padding: 7px 14px; font-size: 12px; text-decoration: none; }
.recipe-yt-btn:hover { background: rgba(239,68,68,0.2); }