/* ─── FloJob app styles — built on the FloForge design system (ffl.css) ──────
   Same token system + chrome classes as FloBox, so the two apps stay one visual
   system. Colors come from --ffl-* tokens; dark mode is handled by ffl.css via
   [data-theme="dark"] and the shared ffl.js toggle. */

/* ─── Map legacy short names to ffl tokens (same as FloBox) ──── */
:root,
[data-theme="dark"],
[data-theme="light"] {
    --bg: var(--ffl-bg);
    --panel: var(--ffl-panel);
    --panel-raised: var(--ffl-panel-raised);
    --ink: var(--ffl-ink);
    --muted: var(--ffl-muted);
    --line: var(--ffl-line);
    --line-strong: var(--ffl-line-strong);
    --accent: var(--ffl-accent);
    --accent-soft: var(--ffl-accent-soft);
    --baby-blue: var(--ffl-blue);
    --done: var(--ffl-done);
    --sb-bg: var(--ffl-sb-bg);
    --sb-text: var(--ffl-sb-text);
    --sb-text-muted: var(--ffl-sb-muted);
    --sb-hover: var(--ffl-sb-hover);
    --sb-active-bg: var(--ffl-sb-active);
    --sb-border: var(--ffl-sb-border);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--ffl-line-strong);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ffl-muted);
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.5;
    transition:
        background 0.2s,
        color 0.2s;
}
button {
    font-family: inherit;
    cursor: pointer;
}
.logo-font {
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH SCREEN (FloBox .auth-* classes)
═══════════════════════════════════════════════════════════════ */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-bg);
    padding: 1rem;
}
.auth-card {
    background: var(--panel);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--ffl-shadow-lg);
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.auth-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-logo-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
    line-height: 1;
}
.auth-logo-name span {
    color: var(--accent);
}
.auth-logo-sub {
    font-size: 0.75rem;
    color: var(--muted);
}
.auth-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.auth-field {
    margin-bottom: 1rem;
}
.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.375rem;
}
.auth-field input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg);
    transition: border-color 0.15s;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--ffl-focus);
}
.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: opacity 0.15s;
}
.auth-btn:hover {
    opacity: 0.88;
}
.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--muted);
}
.auth-switch a {
    color: var(--ffl-link);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.auth-error {
    background: var(--accent-soft);
    border: 1px solid #fca5a5;
    color: var(--accent);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}
.auth-error.visible {
    display: block;
}
.auth-success {
    background: var(--ffl-blue-soft);
    border: 1px solid var(--ffl-blue);
    color: var(--ffl-blue-text);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL (FloBox .app-wrap / .sidebar / .main)
═══════════════════════════════════════════════════════════════ */
.app-wrap {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--sb-bg);
    border-right: 1px solid var(--sb-border);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}
@media (min-width: 768px) {
    .sidebar {
        position: static;
        transform: none;
    }
}
.sidebar.open {
    transform: translateX(0);
}
.sb-logo {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--sb-border);
}
.sb-logo-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sb-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sb-logo-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sb-text);
    letter-spacing: 0.01em;
    line-height: 1;
}
.sb-logo-name span {
    color: var(--accent);
}
.sb-logo-sub {
    font-size: 0.7rem;
    color: var(--sb-text-muted);
    margin-top: 0.15rem;
}
.sb-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}
.sb-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    color: var(--sb-text);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}
.sb-item i {
    font-size: 1.15rem;
    opacity: 0.7;
    flex-shrink: 0;
}
.sb-item:hover {
    background: var(--sb-hover);
}
.sb-item.active {
    background: transparent;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 0 0.5rem 0.5rem 0;
    padding-left: calc(0.75rem - 3px);
}
.sb-item.active i {
    opacity: 1;
    color: var(--accent);
}
[data-theme="dark"] .sb-item.active {
    color: var(--ffl-blue);
    border-left-color: var(--ffl-blue);
}
[data-theme="dark"] .sb-item.active i {
    color: var(--ffl-blue);
}
.sb-divider {
    margin: 0.75rem 0;
    border: none;
    border-top: 1px solid var(--sb-border);
}
.sb-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--sb-border);
}
.sb-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    color: var(--sb-text-muted);
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.12s,
        color 0.12s;
}
.sb-logout i {
    font-size: 1.05rem;
}
.sb-logout:hover {
    background: var(--sb-hover);
    color: var(--accent);
}

/* ─── Backdrop (mobile) ──────────────────────────────────────── */
.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 30;
}
.backdrop.open {
    display: block;
}

/* ─── Main + topbar ──────────────────────────────────────────── */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sb-border);
    background: var(--sb-bg);
}
@media (min-width: 768px) {
    .mobile-bar {
        display: none;
    }
}
.mobile-bar button {
    border: none;
    background: none;
    color: var(--sb-text);
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}
.mobile-bar .mb-logo-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sb-text);
}
.mobile-bar .mb-logo-name span {
    color: var(--accent);
}

/* ─── View ───────────────────────────────────────────────────── */
.view {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.25rem;
}
@media (max-width: 767px) {
    .view {
        padding: 1.25rem 1rem;
    }
}
.view.loading {
    visibility: hidden;
}
.view-section {
    display: none;
}
.view-section.active {
    display: block;
}
.view-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.view-header h1 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.view-header p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
/* Global FloForge pattern: title + primary action sit together, left-aligned.
   The action is a muted button (not a loud filled red), accent on hover. */
.view-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.header-add {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    transition:
        border-color 0.15s,
        color 0.15s;
}
.header-add:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.header-add i {
    font-size: 1rem;
}

/* ─── Section label ──────────────────────────────────────────── */
.section-label {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS (FloBox .btn-* + FloJob sizes)
═══════════════════════════════════════════════════════════════ */
.btn-primary {
    height: 40px;
    padding: 0 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.15s;
}
.btn-primary:hover {
    opacity: 0.88;
}
.btn-secondary {
    height: 40px;
    padding: 0 1.25rem;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.15s;
}
.btn-secondary:hover {
    border-color: var(--line-strong);
}
.btn-danger {
    height: 36px;
    padding: 0 0.875rem;
    background: none;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.btn-danger:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.btn-sm {
    height: 30px;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition:
        border-color 0.12s,
        color 0.12s;
}
.btn-sm:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn-sm.danger {
    color: var(--accent);
    border-color: var(--accent-soft);
}
.btn-sm.danger:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS (shared primitives, tokenized)
═══════════════════════════════════════════════════════════════ */
.field {
    margin-bottom: 1rem;
}
.field label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    display: block;
    margin-bottom: 0.375rem;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    background: var(--bg);
    color: var(--ink);
}
.field textarea {
    height: 84px;
    padding: 0.625rem 0.75rem;
    resize: vertical;
    line-height: 1.5;
}
.field select {
    cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--ffl-focus);
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CARDS / PANELS
═══════════════════════════════════════════════════════════════ */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.settings-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 520px;
    margin-bottom: 1.5rem;
}
.settings-card h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.settings-card .sub {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.card-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS / SEARCH
═══════════════════════════════════════════════════════════════ */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-btn {
    height: 32px;
    padding: 0 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s;
}
.filter-btn:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.search-input {
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 0.875rem;
    font-size: 0.75rem;
    font-family: inherit;
    outline: none;
    min-width: 240px;
    transition: border-color 0.15s;
    background: var(--bg);
    color: var(--ink);
}
.search-input:focus {
    border-color: var(--ffl-focus);
}
@media (max-width: 600px) {
    .search-input {
        min-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLES (FloJob pipeline / offers)
═══════════════════════════════════════════════════════════════ */
.table-wrap {
    background: var(--panel);
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    overflow: hidden;
}
@media (max-width: 767px) {
    .table-wrap {
        overflow-x: auto;
    }
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
@media (max-width: 767px) {
    .data-table {
        min-width: 640px;
    }
}
.data-table th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
    vertical-align: middle;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr {
    cursor: pointer;
    transition: background 0.12s;
}
.data-table tbody tr:hover td {
    background: var(--bg);
}
.cell-title {
    font-weight: 500;
    color: var(--ink);
}
.cell-sub {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
.cell-muted {
    color: var(--muted);
}
.cell-dim {
    color: var(--line-strong);
}

/* ═══════════════════════════════════════════════════════════════
   STAGE BADGES
═══════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}
.badge-prospect {
    background: var(--line);
    color: var(--muted);
}
.badge-contacted {
    background: #fff7e6;
    color: #b36200;
}
.badge-engaged {
    background: #e6f4ff;
    color: #0066cc;
}
.badge-interview {
    background: #e6fff0;
    color: #007a33;
}
.badge-pending {
    background: #f5e6ff;
    color: #6600cc;
}
.badge-offer {
    background: #e6ffe6;
    color: #007700;
}
.badge-greenlist {
    background: #e6fff0;
    color: #007a33;
}
.badge-redlist {
    background: var(--accent-soft);
    color: var(--accent);
}
.badge-archived {
    background: var(--line);
    color: var(--muted);
}
[data-theme="dark"] .badge-contacted {
    background: #3a2a08;
    color: #f0b657;
}
[data-theme="dark"] .badge-engaged {
    background: #0c2942;
    color: #6bb3f0;
}
[data-theme="dark"] .badge-interview,
[data-theme="dark"] .badge-greenlist {
    background: #052e16;
    color: #4ade80;
}
[data-theme="dark"] .badge-pending {
    background: #2a1245;
    color: #c08cf0;
}
[data-theme="dark"] .badge-offer {
    background: #052e16;
    color: #5fd98a;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD (stat cards / nudges / today list)
═══════════════════════════════════════════════════════════════ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.875rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1.25rem 1.4rem;
    cursor: pointer;
    transition: border-color 0.15s;
}
.stat-card:hover {
    border-color: var(--accent);
}
.stat-num {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.3rem;
}
.nudge {
    background: var(--ffl-blue-soft);
    border: 1px solid var(--ffl-blue);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--ffl-blue-text);
}
.nudge > i {
    font-size: 1.05rem;
    flex-shrink: 0;
}
.nudge-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}
.list-row {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.625rem;
    padding: 0.875rem 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s;
}
.list-row:hover {
    border-color: var(--accent);
}
.list-row.overdue {
    border-color: var(--accent-soft);
}
.list-row-title {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--ink);
}
.list-row-title.overdue {
    color: var(--accent);
}
.list-row-sub {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
.list-group-label {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}
.list-group-label.accent {
    color: var(--accent);
}
.list-group-label:first-child {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PROSPECT DETAIL
═══════════════════════════════════════════════════════════════ */
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.back-link {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.8125rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    margin-bottom: 1rem;
    font-family: inherit;
}
.back-link:hover {
    color: var(--accent);
}
.offer-section {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 1.25rem;
    display: none;
}
.offer-section.visible {
    display: block;
}
.salary {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #007700;
}
[data-theme="dark"] .salary {
    color: #5fd98a;
}
.hourly {
    font-size: 0.6875rem;
    color: var(--muted);
}

/* ─── Perks ──────────────────────────────────────────────────── */
.perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 0.75rem;
    margin-bottom: 1rem;
}
.perk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ink);
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
}
.perk input {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--accent);
}
.perk-chip {
    display: inline-block;
    font-size: 0.625rem;
    background: var(--ffl-blue-soft);
    color: var(--ffl-blue-text);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    margin: 0.05rem 0.1rem 0.05rem 0;
}

/* ─── Notes ──────────────────────────────────────────────────── */
.note {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}
.note:last-child {
    border-bottom: none;
}
.note.old {
    opacity: 0.6;
}
.note.old:hover {
    opacity: 1;
}
.note-meta {
    font-size: 0.6875rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.note-del {
    background: none;
    border: none;
    color: var(--line-strong);
    cursor: pointer;
    font-size: 0.8125rem;
    padding: 0.1rem;
    display: none;
}
.note:hover .note-del {
    display: inline-flex;
}
.note-del:hover {
    color: var(--accent);
}
.note-text {
    font-size: 0.8125rem;
    color: var(--ink);
    white-space: pre-wrap;
    cursor: pointer;
    border-radius: 0.3rem;
    padding: 0.1rem 0.25rem;
    margin: -0.1rem -0.25rem;
}
.note-text:hover {
    background: var(--bg);
}
.note-edit textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    resize: vertical;
}
.note-edit textarea:focus {
    border-color: var(--ffl-focus);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL (FloBox .modal-*)
═══════════════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 18, 0.38);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}
.modal-overlay.open {
    display: flex;
}
.modal-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.875rem;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ffl-shadow-lg);
    animation: modal-in 0.2s ease;
}
@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.modal-head h3 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background 0.15s;
}
.modal-close:hover {
    background: var(--line);
}
.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}
.modal-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE / TOAST
═══════════════════════════════════════════════════════════════ */
.empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--muted);
}
.empty i {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.6;
}
.empty p {
    font-size: 0.875rem;
}
#toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: var(--ink);
    color: var(--bg);
    font-size: 0.8125rem;
    padding: 0.625rem 1.1rem;
    border-radius: 0.5rem;
    box-shadow: var(--ffl-shadow-md);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s;
    pointer-events: none;
}
#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Settings masonry columns (mirrors FloBox) ──────────────── */
.masonry-cols {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.masonry-cols > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.masonry-cols .settings-card {
    max-width: none;
    width: 100%;
    margin-bottom: 0;
}

/* ─── Help steps ─────────────────────────────────────────────── */
.help-step {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}
.help-step:last-child {
    margin-bottom: 0;
}
.help-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}
.help-step-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.help-step-body {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.5;
}
