/* ============================================================================
   OnPoint Total Trip Report — styles
   Plain CSS, custom properties, mobile-first.
============================================================================ */

:root {
    --navy-50:   #f1f4f9;
    --navy-100:  #dde4ee;
    --navy-200:  #b9c8dc;
    --navy-300:  #8ba4c4;
    --navy-400:  #5e7fa7;
    --navy-500:  #3f628d;
    --navy-600:  #314e72;
    --navy-700:  #283f5c;
    --navy-800:  #1f3149;
    --navy-900:  #152238;
    --navy-950:  #0b1424;

    --accent:     #2f7dff;
    --accent-50:  #eaf2ff;
    --accent-100: #d3e3ff;
    --accent-600: #1f64dd;
    --accent-700: #1850b3;

    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --amber-100:   #fef3c7;
    --amber-500:   #f59e0b;
    --amber-700:   #b45309;
    --amber-900:   #78350f;

    --rose-50:     #fff1f2;
    --rose-100:    #ffe4e6;
    --rose-600:    #e11d48;
    --rose-700:    #be123c;

    --bg:          #f6f8fb;
    --card:        #ffffff;
    --border:      #e6ebf2;
    --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-pop:  0 8px 24px rgba(15, 23, 42, 0.10);

    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   18px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
            Cantarell, "Helvetica Neue", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--navy-900);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }

/* ---------- Top bar ------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    background: var(--navy-950);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: #fff; padding: 2px; object-fit: contain; }
.brand-text { line-height: 1.1; display: flex; flex-direction: column; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--navy-300); font-weight: 600; }

.signout-form { display: flex; align-items: center; gap: 8px; }
.signout-email { display: none; font-size: 12px; color: var(--navy-300); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 480px) { .signout-email { display: inline; } }
.signout-btn {
    background: transparent; border: 0; color: var(--navy-200);
    font: inherit; font-size: 12px; font-weight: 500; padding: 4px 8px;
    border-radius: 6px; cursor: pointer;
}
.signout-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ---------- Page wrapper -------------------------------------------------- */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 16px 110px;
}

/* ---------- Bottom nav ---------------------------------------------------- */
.bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: #fff;
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 720px;
    margin: 0 auto;
}
.navitem { display: flex; flex-direction: column; align-items: center; padding: 9px 4px 8px; color: var(--navy-500); }
.navitem-icon { width: 24px; height: 24px; background-repeat: no-repeat; background-position: center; background-size: contain; margin-bottom: 2px; }
.navitem.is-active { color: var(--accent); }
.navitem-label { font-size: 11px; font-weight: 500; }

/* SVG nav icons (no external requests) */
.navitem-icon[data-icon="home"]   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235e7fa7'><path d='M3 11.5 12 4l9 7.5V20a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1v-8.5Z'/></svg>"); }
.navitem.is-active[data-icon-color] { /* override below */ }
.navitem.is-active .navitem-icon[data-icon="home"]   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f7dff'><path d='M3 11.5 12 4l9 7.5V20a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1v-8.5Z'/></svg>"); }
.navitem-icon[data-icon="loads"]  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235e7fa7'><path d='M3 7h11v8H3zM14 10h4l3 3v2h-7zM6 19a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm12 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/></svg>"); }
.navitem.is-active .navitem-icon[data-icon="loads"]  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f7dff'><path d='M3 7h11v8H3zM14 10h4l3 3v2h-7zM6 19a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm12 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/></svg>"); }
.navitem-icon[data-icon="upload"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e7fa7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12m0-12 4 4m-4-4-4 4M5 21h14'/></svg>"); }
.navitem.is-active .navitem-icon[data-icon="upload"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7dff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12m0-12 4 4m-4-4-4 4M5 21h14'/></svg>"); }
.navitem-icon[data-icon="costs"]  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235e7fa7'><path d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 15.93V19h-2v-1.06A4 4 0 0 1 8 14h2a2 2 0 1 0 2-2 4 4 0 0 1 0-8 4 4 0 0 1 3 1.34V4h2v1.34A4 4 0 0 1 16 8h-2a2 2 0 1 0-2 2 4 4 0 0 1 1 7.93Z'/></svg>"); }
.navitem.is-active .navitem-icon[data-icon="costs"]  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f7dff'><path d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 15.93V19h-2v-1.06A4 4 0 0 1 8 14h2a2 2 0 1 0 2-2 4 4 0 0 1 0-8 4 4 0 0 1 3 1.34V4h2v1.34A4 4 0 0 1 16 8h-2a2 2 0 1 0-2 2 4 4 0 0 1 1 7.93Z'/></svg>"); }
.navitem-icon[data-icon="quotes"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e7fa7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2h9l5 5v15H6Zm8 0v6h6M9 13h8M9 17h6M9 9h3'/></svg>"); }
.navitem.is-active .navitem-icon[data-icon="quotes"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7dff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2h9l5 5v15H6Zm8 0v6h6M9 13h8M9 17h6M9 9h3'/></svg>"); }
.navitem-icon[data-icon="dashboard"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235e7fa7'><rect x='3' y='12' width='4' height='9' rx='1'/><rect x='10' y='7' width='4' height='14' rx='1'/><rect x='17' y='3' width='4' height='18' rx='1'/></svg>"); }
.navitem.is-active .navitem-icon[data-icon="dashboard"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f7dff'><rect x='3' y='12' width='4' height='9' rx='1'/><rect x='10' y='7' width='4' height='14' rx='1'/><rect x='17' y='3' width='4' height='18' rx='1'/></svg>"); }

/* ---------- Headings ------------------------------------------------------ */
h1, h2, h3 { color: var(--navy-900); margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.page-h1 { font-size: 24px; }
.page-sub { color: var(--navy-500); font-size: 14px; margin-top: 2px; }
.section-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--navy-500); }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }

/* ---------- Card ---------------------------------------------------------- */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }
.card-pad-sm { padding: 12px; }

/* ---------- Form primitives ----------------------------------------------- */
.field { display: block; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--navy-700); margin-bottom: 6px; }
.input, .textarea, .select {
    width: 100%; font: inherit; font-size: 16px;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 125, 255, 0.15);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.4; }
.select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235e7fa7'><path d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input.input-prefix-pad { padding-left: 30px; }
.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--navy-400); pointer-events: none; }
.input-wrap { position: relative; }

.input-big { font-size: 28px; font-weight: 700; padding-top: 16px; padding-bottom: 16px; padding-left: 36px; }
.input-big-prefix { font-size: 22px; left: 14px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 18px; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font: inherit; font-weight: 600; font-size: 15px;
    padding: 12px 20px; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .04s;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-secondary { background: #fff; color: var(--navy-800); border-color: var(--navy-200); }
.btn-secondary:hover { background: var(--navy-50); }
.btn-ghost { background: transparent; color: var(--navy-700); padding: 8px 12px; }
.btn-ghost:hover { background: var(--navy-100); }
.btn-danger { background: transparent; color: var(--rose-700); }
.btn-danger:hover { background: var(--rose-50); }
.btn-block { display: flex; width: 100%; }
.btn-sm { font-size: 13px; padding: 8px 14px; }
.btn-lg { padding: 16px 22px; font-size: 16px; }

/* ---------- Pills --------------------------------------------------------- */
.pill {
    display: inline-flex; align-items: center;
    border-radius: 999px; padding: 4px 10px;
    font-size: 11px; font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pill-draft     { background: var(--navy-100); color: var(--navy-700); }
.pill-booked    { background: #dbeafe; color: #1e40af; }
.pill-transit   { background: var(--amber-100); color: var(--amber-900); }
.pill-delivered { background: var(--emerald-100); color: var(--emerald-700); }
.pill-invoiced  { background: #e0e7ff; color: #3730a3; }
.pill-paid      { background: var(--emerald-600); color: #fff; }
.pill-cancelled { background: var(--rose-100); color: var(--rose-700); }
.pill-amber     { background: var(--amber-500); color: #fff; }

/* Pill button (chip) */
.chip {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; padding: 6px 12px;
    background: #fff; border: 1px solid var(--navy-200);
    color: var(--navy-700);
    font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; text-decoration: none;
}
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.tone-warning.is-active { background: var(--amber-500); border-color: var(--amber-500); }
.chip.tone-positive.is-active { background: var(--emerald-600); border-color: var(--emerald-600); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; margin: -4px -2px; }
.chip-row::-webkit-scrollbar { display: none; }

/* ---------- Stat cards ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 14px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy-500); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 11px; color: var(--navy-500); margin-top: 3px; }
.stat-value.tone-positive { color: var(--emerald-700); }
.stat-value.tone-warning  { color: var(--amber-700); }
.stat-value.tone-danger   { color: var(--rose-700); }

/* ---------- List items ---------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-row {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-sm);
}
.list-row:hover { background: var(--navy-50); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 14px; color: var(--navy-900); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-customer { color: var(--navy-900); font-weight: 600; }
.list-broker   { color: var(--accent); font-size: 12px; font-weight: 500; }
.list-ref      { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--navy-400); font-weight: 400; }
.list-sub  { font-size: 12px; color: var(--navy-500); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-times {
    display: flex; align-items: center;
    gap: 8px; font-size: 12px; color: var(--navy-500); margin-top: 2px;
}
.list-times-sep { color: var(--navy-300); }
.rpm-loaded     { color: var(--navy-300); font-weight: 400; }
.list-meta { font-size: 12px; color: var(--navy-400); margin-top: 2px; }
.list-amount { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy-900); white-space: nowrap; }
.list-amount-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.list-equip {
    font-size: 11px; font-weight: 600; color: var(--navy-600);
    background: var(--navy-100); padding: 2px 8px; border-radius: 999px;
    white-space: nowrap;
}

/* ---------- Empty state --------------------------------------------------- */
.empty { padding: 32px 16px; text-align: center; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--navy-500); font-size: 14px; margin: 6px 0 14px; }
.empty .empty-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-50); margin: 0 auto 12px; display: grid; place-items: center; color: var(--accent); font-size: 24px; font-weight: 700; }

/* ---------- Flash --------------------------------------------------------- */
.flash {
    border-radius: var(--radius); padding: 12px 14px;
    font-size: 14px; margin-bottom: 12px;
}
.flash-ok    { background: var(--emerald-100); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.flash-warn  { background: var(--amber-100); color: var(--amber-900); border: 1px solid #fde68a; }
.flash-err   { background: var(--rose-100); color: var(--rose-700); border: 1px solid #fecaca; }

/* ---------- Toggle (paid switch) ----------------------------------------- */
.toggle {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--navy-50); border-radius: var(--radius);
    padding: 12px 14px; cursor: pointer; user-select: none;
}
.toggle-label { font-weight: 500; color: var(--navy-800); }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle-switch-track {
    position: absolute; inset: 0; border-radius: 999px;
    background: var(--navy-200); transition: background-color .15s;
}
.toggle-switch-thumb {
    position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform .15s;
}
.toggle-switch input:checked ~ .toggle-switch-track { background: var(--emerald-500); }
.toggle-switch input:checked ~ .toggle-switch-thumb { transform: translateX(20px); }

/* ---------- File dropzone ------------------------------------------------- */
.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    border: 2px dashed var(--navy-200);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    background: #fff;
    cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { background: var(--navy-50); border-color: var(--accent); }
.dropzone-input { position: absolute; left: -9999px; opacity: 0; }
.dropzone-mark {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--accent-50); color: var(--accent);
    display: grid; place-items: center;
}
.dropzone-title { font-weight: 600; color: var(--navy-900); font-size: 15px; }
.dropzone-hint  { color: var(--navy-500); font-size: 12px; }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.preview {
    position: relative; aspect-ratio: 1 / 1;
    border-radius: var(--radius); overflow: hidden;
    background: var(--navy-100); border: 1px solid var(--border);
}
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-file {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--navy-600); font-size: 11px; padding: 10px; text-align: center;
}
.preview-remove {
    position: absolute; top: 4px; right: 4px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff;
    border: 0; cursor: pointer; font-size: 14px;
    display: grid; place-items: center;
}
.preview-tag {
    position: absolute; top: 4px; left: 4px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.preview-date {
    position: absolute; bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.5); color: #fff;
    font-size: 10px; padding: 2px 6px; border-radius: 999px;
}

/* ---------- Progress bar -------------------------------------------------- */
.progress { height: 6px; border-radius: 999px; background: var(--navy-100); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; background: var(--accent); width: 0; transition: width .15s; }

/* ---------- Login page ---------------------------------------------------- */
.login-shell {
    min-height: 100vh; min-height: 100dvh;
    background: var(--navy-950); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px 18px;
}
.login-card {
    width: 100%; max-width: 380px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(6px);
}
.login-splash {
    background: #fff; border-radius: var(--radius-lg);
    padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow-pop);
}
.login-splash img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.login-tag { color: var(--navy-300); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; margin-top: 14px; font-weight: 600; }
.login-blurb { color: var(--navy-200); font-size: 14px; text-align: center; margin: 8px 0 18px; }
.login-card .label { color: var(--navy-100); }
.login-card .input {
    background: var(--navy-900); border-color: var(--navy-700); color: #fff;
}
.login-card .input::placeholder { color: var(--navy-300); }
.login-foot { color: var(--navy-300); font-size: 11px; text-align: center; margin-top: 18px; }

/* ---------- Workflow status bar ------------------------------------------ */
.workflow { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; margin: -4px -2px; }
.workflow .chip { flex-shrink: 0; }
.workflow .chip.is-current { background: var(--accent); color: #fff; border-color: var(--accent); }
.workflow .chip.is-passed { background: var(--accent-50); color: var(--accent); border-color: var(--accent-100); }

/* ---------- Quick actions tile ------------------------------------------- */
.quick-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.quick-tile-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-50); color: var(--accent); display: grid; place-items: center; }
.quick-tile-icon.tone-positive { background: var(--emerald-50); color: var(--emerald-600); }
.quick-tile-text { line-height: 1.2; }
.quick-tile-title { font-weight: 600; font-size: 14px; color: var(--navy-900); }
.quick-tile-sub { font-size: 12px; color: var(--navy-500); margin-top: 2px; }

/* ---------- Home launcher (big primary actions) -------------------------- */
.home-splash { text-align: center; padding: 14px 0 4px; }
.home-splash img {
    height: 96px; max-width: 80%; object-fit: contain;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 10px;
}
.home-h1 { text-align: center; font-size: 22px; margin-top: 12px; }
.home-sub { text-align: center; color: var(--navy-500); font-size: 14px; margin: 4px 0 22px; }

.big-action {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 20px;
    text-decoration: none; color: inherit;
    border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .04s, box-shadow .15s, border-color .15s;
}
.big-action:hover { box-shadow: var(--shadow-pop); border-color: var(--accent-100); }
.big-action:active { transform: translateY(1px); }
.big-action-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: grid; place-items: center;
    font-size: 32px;
    background: var(--accent-50); color: var(--accent);
    flex-shrink: 0;
}
.big-action-icon.tone-positive { background: var(--emerald-50); color: var(--emerald-700); }
.big-action-text { line-height: 1.25; }
.big-action-title { font-size: 17px; font-weight: 700; color: var(--navy-900); }
.big-action-sub { font-size: 13px; color: var(--navy-500); margin-top: 3px; }

.view-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.view-buttons .btn { padding: 16px; font-size: 14px; }
.dashboard-link { text-align: center; padding-top: 16px; }
.dashboard-link a { font-size: 13px; font-weight: 600; color: var(--navy-500); }
.dashboard-link a:hover { color: var(--accent); }

/* ---------- Quote builder ------------------------------------------------- */
.line-item { border: 1px solid var(--navy-200); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.totals { padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; }
.totals-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--navy-600); padding: 4px 0; }
.totals-grand { font-size: 18px; font-weight: 700; color: var(--navy-900); padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }

/* ---------- Misc ---------------------------------------------------------- */
.muted { color: var(--navy-500); font-size: 13px; }
.tabular { font-variant-numeric: tabular-nums; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.right { text-align: right; }
.danger-link { color: var(--rose-700); }
.spacer { height: 12px; }

/* hide native arrows on number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
