/* ============================================================================
   Nimnal design system (design_handoff_nimnal_redesign)
   Tokens: bg #f4f8fa · text #17242e / #57707e / #7d919e / #8a9aa6 · accent
   oklch(0.45 0.1 210) · navy oklch(0.28 0.05 250) · green 160 · red 25.
   Per-kid colors derive from --hue set inline on elements.
   ========================================================================== */

:root {
    --nl-bg: #f4f8fa;
    --nl-ink: #17242e;
    --nl-ink-2: #57707e;
    --nl-ink-3: #7d919e;
    --nl-ink-4: #8a9aa6;
    --nl-disabled: #b9c8d1;
    --nl-border: #e6edf1;
    --nl-border-soft: #eef3f5;
    --nl-accent: oklch(0.45 0.1 210);
    --nl-accent-dark: oklch(0.35 0.1 210);
    --nl-accent-tint: oklch(0.95 0.02 210);
    --nl-navy: oklch(0.28 0.05 250);
    --nl-navy-ink: oklch(0.25 0.05 250);
    --nl-gold: oklch(0.8 0.1 80);
    --nl-green: oklch(0.45 0.11 160);
    --nl-green-tint: oklch(0.94 0.03 160);
    --nl-red: oklch(0.5 0.14 25);
    --nl-red-tint: oklch(0.95 0.03 25);
    --nl-grad: linear-gradient(160deg, oklch(0.45 0.1 210), oklch(0.55 0.11 180));
    --nl-mono: ui-monospace, Menlo, monospace;
}

html, body {
    margin: 0;
    background: var(--nl-bg);
    font-family: 'Nunito Sans', system-ui, sans-serif;
    color: var(--nl-ink);
}

a {
    color: var(--nl-accent);
}

    a:hover {
        color: var(--nl-accent-dark);
    }

input, button {
    font-family: 'Nunito Sans', system-ui, sans-serif;
}

h1:focus {
    outline: none;
}

/* ---- App shell ---------------------------------------------------------- */

.nl-app {
    min-height: 100vh;
    display: flex;
    background: var(--nl-bg);
}

.nl-main {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.nl-content {
    width: 100%;
    max-width: 520px;
    padding-bottom: 96px;
    box-sizing: border-box;
}

/* Sidebar (desktop) */
.nl-sidebar {
    display: none;
    width: 230px;
    flex: none;
    background: var(--nl-navy);
    color: #fff;
    padding: 22px 14px;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    height: 100vh;
}

.nl-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
    padding: 0 10px;
    color: #fff;
    text-decoration: none;
    display: block;
}

.nl-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nl-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

    .nl-nav-item:hover {
        color: #fff;
        background: rgba(255, 255, 255, .08);
    }

    .nl-nav-item.active {
        background: rgba(255, 255, 255, .12);
        font-weight: 800;
    }

.nl-nav-badge {
    margin-left: auto;
    background: var(--nl-gold);
    color: var(--nl-navy-ink);
    font-size: 11px;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 999px;
}

.nl-nav-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    padding: 0 10px 6px;
}

.nl-nav-kid-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: none;
}

.nl-nav-add {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--nl-gold);
    text-decoration: none;
}

    .nl-nav-add:hover {
        color: var(--nl-gold);
    }

.nl-sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    border: none;
    width: 100%;
    text-align: left;
    color: #fff;
    cursor: pointer;
}

.nl-sidebar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: none;
}

.nl-sidebar-user-name {
    font-size: 12.5px;
    font-weight: 800;
}

.nl-sidebar-user-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .55);
}

/* Right rail (desktop, home only) */
.nl-rail {
    display: none;
    width: 300px;
    flex: none;
    padding: 26px 24px 26px 0;
    box-sizing: border-box;
    flex-direction: column;
    gap: 16px;
}

/* Bottom tabs (mobile) */
.nl-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    border-top: 1px solid var(--nl-border);
    background: #fff;
    padding: 8px 6px 14px;
    z-index: 30;
}

.nl-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--nl-ink-4);
    text-decoration: none;
}

    .nl-tab:hover {
        color: var(--nl-ink-4);
    }

.nl-tab-pill {
    width: 36px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.nl-tab-label {
    font-size: 10.5px;
    font-weight: 800;
}

.nl-tab.active {
    color: var(--nl-accent);
}

    .nl-tab.active .nl-tab-pill {
        background: oklch(0.92 0.04 190);
    }

@media (min-width: 1000px) {
    .nl-sidebar {
        display: flex;
    }

    .nl-rail {
        display: flex;
    }

    .nl-tabs {
        display: none;
    }

    .nl-content {
        max-width: 760px;
    }
}

/* ---- Hero (home + kid detail) ------------------------------------------- */

.nl-hero {
    background: var(--nl-grad);
    color: #fff;
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nl-hero--kid {
    padding: 16px 20px 20px;
    background: linear-gradient(160deg, oklch(0.5 0.11 var(--hue)), oklch(0.6 0.1 var(--hue2)));
}

@media (min-width: 1000px) {
    .nl-hero {
        border-radius: 18px;
        margin: 26px 16px 0;
    }
}

.nl-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nl-hero-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.nl-hero-date {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .16);
    padding: 6px 12px;
    border-radius: 999px;
}

.nl-hero-greeting {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.nl-hero-kids {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nl-hero-kid {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

    .nl-hero-kid:hover {
        background: rgba(255, 255, 255, .24);
        color: #fff;
    }

.nl-hero-kid-name {
    font-size: 13.5px;
    font-weight: 800;
}

.nl-hero-kid-sub {
    font-size: 11px;
    opacity: .85;
}

.nl-hero-kid-chevron {
    font-size: 16px;
    opacity: .7;
    font-weight: 800;
}

.nl-hero-back {
    font-size: 22px;
    font-weight: 800;
    opacity: .85;
    cursor: pointer;
    padding: 0 4px;
    color: #fff;
    text-decoration: none;
}

    .nl-hero-back:hover {
        color: #fff;
    }

.nl-hero-kid-title {
    font-size: 20px;
    font-weight: 900;
}

.nl-hero-kid-school {
    font-size: 12px;
    opacity: .85;
}

/* Forwarding address card inside hero */
.nl-addr-card {
    background: rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nl-addr-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .8;
}

.nl-addr-value {
    font-size: 13.5px;
    font-weight: 800;
    font-family: var(--nl-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-addr-copy {
    flex: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--nl-ink);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    border: none;
}

/* ---- Page scaffolding ---------------------------------------------------- */

.nl-page-head {
    padding: 20px 20px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nl-page-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--nl-ink);
    margin: 0;
}

.nl-page-date {
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--nl-ink-2);
}

.nl-section {
    padding: 18px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nl-section-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--nl-ink);
    margin: 0;
}

.nl-empty {
    font-size: 13px;
    color: var(--nl-ink-3);
}

/* ---- To-dos (navy card) -------------------------------------------------- */

.nl-todos {
    background: var(--nl-navy);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nl-todos-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--nl-gold);
    text-transform: uppercase;
}

.nl-todo {
    background: rgba(255, 255, 255, .07);
    border-radius: 11px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    color: #fff;
}

    .nl-todo.done {
        opacity: .55;
    }

.nl-todo-box {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, .4);
    background: transparent;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--nl-navy-ink);
    font-weight: 900;
    box-sizing: border-box;
}

.nl-todo.done .nl-todo-box {
    border-color: var(--nl-gold);
    background: var(--nl-gold);
}

.nl-todo-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}

.nl-todo.done .nl-todo-title {
    text-decoration: line-through;
}

.nl-todo-meta {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .65);
}

/* ---- Coming up timeline (home) ------------------------------------------ */

.nl-timeline-item {
    display: flex;
    gap: 12px;
}

.nl-timeline-gutter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nl-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: oklch(0.62 0.13 var(--hue));
    border: 3px solid oklch(0.9 0.05 var(--hue));
    flex: none;
}

.nl-timeline-dot--family {
    background: var(--nl-disabled);
    border-color: #e7edf1;
}

.nl-timeline-line {
    width: 2px;
    flex: 1;
    background: #e3eaee;
}

.nl-timeline-body {
    flex: 1;
    padding-bottom: 16px;
    min-width: 0;
}

.nl-event-when {
    font-size: 11.5px;
    font-weight: 800;
    color: oklch(0.5 0.11 var(--hue));
    text-transform: uppercase;
    letter-spacing: .05em;
}

.nl-event-when--family {
    color: var(--nl-ink-3);
}

.nl-event-card {
    background: #fff;
    border-radius: 12px;
    padding: 11px 13px;
    margin-top: 6px;
    box-shadow: 0 1px 2px rgba(23, 36, 46, .05);
}

.nl-event-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--nl-ink);
}

.nl-event-meta {
    font-size: 12px;
    color: var(--nl-ink-2);
    margin-top: 2px;
}

/* Secondary chip-button ("+ Add to calendar", Copy, ›) */
.nl-chip-btn {
    display: inline-flex;
    flex: none;
    white-space: nowrap;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f2f7f9;
    border: 1px solid #d8e2e8;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--nl-accent);
    cursor: pointer;
    text-decoration: none;
}

    .nl-chip-btn:hover {
        background: #e7f0f4;
        color: var(--nl-accent);
    }

.nl-chip-btn--plain {
    margin-top: 0;
    border: none;
    color: #41525f;
}

    .nl-chip-btn--plain:hover {
        color: #41525f;
    }

/* ---- Kid detail ---------------------------------------------------------- */

.nl-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nl-card {
    background: #fff;
    border-radius: 12px;
    padding: 11px 13px;
    box-shadow: 0 1px 2px rgba(23, 36, 46, .05);
}

.nl-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.nl-see-all {
    font-size: 12px;
    font-weight: 800;
    color: var(--nl-accent);
    cursor: pointer;
    text-decoration: none;
}

.nl-list-card {
    border: 1px solid var(--nl-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.nl-list-row {
    padding: 11px 13px;
    border-bottom: 1px solid var(--nl-border-soft);
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

    .nl-list-row:hover {
        background: #f7fafb;
        color: inherit;
    }

    .nl-list-row:last-child {
        border-bottom: none;
    }

.nl-list-row-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--nl-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-list-row-sub {
    font-size: 11.5px;
    color: var(--nl-ink-3);
}

.nl-found-chip {
    flex: none;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    color: var(--nl-green);
    background: var(--nl-green-tint);
    padding: 3px 8px;
    border-radius: 6px;
}

.nl-found-chip--muted {
    color: var(--nl-ink-3);
    background: #f2f7f9;
}

/* ---- Kids page ----------------------------------------------------------- */

.nl-kid-card {
    border: 1px solid var(--nl-border);
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nl-avatar {
    border-radius: 50%;
    background: oklch(0.93 0.04 var(--hue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.nl-avatar--family {
    background: #eef2f4;
}

/* Avatar-as-button with a pencil badge (kid detail emoji editor) */
.nl-avatar-edit {
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.nl-avatar-edit-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--nl-navy);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-kid-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--nl-ink);
}

.nl-kid-card-addr {
    font-size: 12px;
    color: var(--nl-ink-2);
    font-family: var(--nl-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-form-card {
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nl-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nl-field-label {
    font-size: 12px;
    font-weight: 800;
    color: #41525f;
}

.nl-input {
    background: #fff;
    border: 1.5px solid #d8e2e8;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--nl-ink);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.nl-emoji-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nl-emoji-pick {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f7fafb;
    border: 1.5px solid #d8e2e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0;
}

    .nl-emoji-pick.selected {
        border: 2px solid var(--nl-accent);
    }

.nl-addr-input-group {
    display: flex;
    align-items: stretch;
}

    .nl-addr-input-group .nl-input {
        flex: 1;
        min-width: 0;
        border-right: none;
        border-radius: 10px 0 0 10px;
    }

.nl-addr-suffix {
    background: #e7eef2;
    border: 1.5px solid #d8e2e8;
    border-radius: 0 10px 10px 0;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #41525f;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nl-primary-btn {
    background: var(--nl-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
}

    .nl-primary-btn:hover {
        background: oklch(0.4 0.1 210);
    }

.nl-tip {
    border: 1px dashed #c8d6de;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--nl-ink-2);
    line-height: 1.5;
}

    .nl-tip strong {
        color: var(--nl-ink);
    }

.nl-form-error {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nl-red);
}

/* ---- Inbox --------------------------------------------------------------- */

.nl-inbox-head {
    padding: 20px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nl-filter-pill {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--nl-accent);
    background: var(--nl-accent-tint);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    border: none;
}

.nl-filter-menu {
    position: absolute;
    right: 20px;
    top: 52px;
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(23, 36, 46, .14);
    padding: 6px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.nl-filter-choice {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--nl-ink);
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
}

    .nl-filter-choice:hover,
    .nl-filter-choice.selected {
        background: #f2f7f9;
    }

.nl-inbox-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--nl-border-soft);
}

.nl-inbox-row {
    padding: 13px 16px;
    display: flex;
    gap: 11px;
    border-bottom: 1px solid var(--nl-border-soft);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

    .nl-inbox-row:hover {
        background: #f7fafb;
        color: inherit;
    }

    .nl-inbox-row.analyzing {
        opacity: .65;
    }

.nl-inbox-row-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.nl-inbox-from {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    color: var(--nl-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-inbox-time {
    flex: none;
    font-size: 11px;
    color: var(--nl-ink-4);
    font-weight: 700;
}

.nl-inbox-subject {
    font-size: 13.5px;
    color: #2c3e4a;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-chips {
    display: flex;
    gap: 6px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.nl-chip {
    white-space: nowrap;
    flex: none;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    color: var(--nl-ink-3);
    background: #f2f7f9;
}

.nl-chip--event {
    color: var(--nl-green);
    background: var(--nl-green-tint);
}

.nl-chip--deadline {
    color: var(--nl-red);
    background: var(--nl-red-tint);
}

/* ---- Email detail -------------------------------------------------------- */

.nl-email-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--nl-border-soft);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nl-email-back {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

    .nl-email-back:hover {
        color: inherit;
    }

.nl-email-back-arrow {
    font-size: 20px;
    font-weight: 800;
    color: var(--nl-ink-2);
}

.nl-email-back-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--nl-ink-3);
}

.nl-email-subject {
    font-size: 17px;
    font-weight: 900;
    color: var(--nl-ink);
    line-height: 1.3;
    margin: 0;
}

.nl-email-fromline {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nl-email-from {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--nl-ink);
}

.nl-email-to {
    font-size: 11.5px;
    color: var(--nl-ink-3);
}

.nl-attach-chip {
    flex: none;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    color: var(--nl-ink-3);
    background: #f2f7f9;
    padding: 3px 8px;
    border-radius: 5px;
}

/* Insights panel */
.nl-insights {
    background: var(--nl-grad);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nl-insights-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    text-transform: uppercase;
    opacity: .9;
}

.nl-insight {
    background: #fff;
    border-radius: 11px;
    padding: 11px 13px;
}

.nl-insight-content.dismissed {
    opacity: .5;
}

.nl-insight-kind {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.nl-insight-kind--event {
    color: oklch(0.5 0.11 200);
}

.nl-insight-kind--deadline {
    color: var(--nl-red);
}

.nl-insight-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--nl-ink);
    margin-top: 3px;
}

.nl-insight-content.dismissed .nl-insight-title {
    text-decoration: line-through;
}

.nl-insight-meta {
    font-size: 12px;
    color: var(--nl-ink-2);
    margin-top: 2px;
}

.nl-insight-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.nl-insight-btn {
    display: inline-flex;
    flex: none;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.nl-insight-btn--cal {
    background: var(--nl-accent-tint);
    color: var(--nl-accent);
}

    .nl-insight-btn--cal:hover {
        color: var(--nl-accent);
    }

.nl-insight-btn--do {
    background: var(--nl-navy);
    color: #fff;
}

.nl-insight-btn--done {
    background: var(--nl-green-tint);
    color: var(--nl-green);
}

.nl-insight-btn--dismiss {
    background: transparent;
    color: var(--nl-ink-3);
}

    .nl-insight-btn--dismiss:hover {
        background: #f2f7f9;
        color: var(--nl-ink-2);
    }

.nl-insight-dismissed-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--nl-ink-4);
}

.nl-undo {
    font-weight: 800;
    color: var(--nl-accent);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 11.5px;
}

.nl-email-body-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--nl-ink-3);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nl-email-body {
    border: 1px solid var(--nl-border);
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    font-size: 13.5px;
    color: #2c3e4a;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: break-word;
}

/* ---- Settings ------------------------------------------------------------ */

.nl-settings-card {
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border-style: solid;
    text-align: left;
}

button.nl-settings-card {
    cursor: pointer;
    font-size: inherit;
}

.nl-settings-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--nl-ink);
}

.nl-settings-sub {
    font-size: 12px;
    color: var(--nl-ink-2);
}

.nl-settings-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--nl-ink);
}

.nl-signout-label {
    flex: 1;
    font-size: 14px;
    font-weight: 800;
    color: var(--nl-red);
}

.nl-switch {
    flex: none;
    width: 46px;
    height: 27px;
    border-radius: 999px;
    background: #cdd8de;
    position: relative;
    transition: background .15s;
}

    .nl-switch.on {
        background: oklch(0.55 0.11 180);
    }

.nl-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: left .15s;
}

.nl-switch.on .nl-switch-knob {
    left: 22px;
}

/* ---- Rail cards ----------------------------------------------------------- */

.nl-rail-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(23, 36, 46, .06);
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.nl-rail-title {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--nl-ink);
}

.nl-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.nl-week-dow {
    font-size: 10px;
    font-weight: 800;
    color: var(--nl-ink-3);
}

.nl-week-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--nl-ink);
    border-radius: 8px;
    padding: 6px 0;
}

    .nl-week-num.today {
        font-weight: 800;
        color: #fff;
        background: var(--nl-accent);
    }

    .nl-week-num.past {
        color: var(--nl-disabled);
    }

.nl-week-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    min-height: 5px;
}

.nl-week-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: oklch(0.62 0.13 var(--hue));
}

.nl-week-dot--family {
    background: var(--nl-disabled);
}

.nl-rail-row {
    display: flex;
    gap: 9px;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

    .nl-rail-row:hover {
        color: inherit;
    }

.nl-rail-row-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--nl-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-rail-row-sub {
    font-size: 11px;
    color: var(--nl-ink-3);
}

/* ---- Toast ---------------------------------------------------------------- */

.nl-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nl-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(23, 36, 46, .3);
    z-index: 50;
    white-space: nowrap;
}

/* ---- Auth pages (static SSR, outside the app shell) ----------------------- */

.auth-card {
    max-width: 420px;
    margin: 48px auto;
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 16px;
    padding: 24px;
}

/* ---- Framework leftovers -------------------------------------------------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 12.5px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }
