/* ==========================================================================
   Nextekk Leads
   A dense, fast sales surface. Plain CSS, no build step, no framework.
   ========================================================================== */

:root {
    --ink:        #0f172a;
    --ink-2:      #334155;
    --ink-3:      #64748b;
    --ink-4:      #94a3b8;
    --line:       #e2e8f0;
    --line-2:     #cbd5e1;
    --bg:         #f1f5f9;
    --surface:    #ffffff;
    --surface-2:  #f8fafc;

    --brand:      #0f172a;
    --accent:     #2563eb;
    --accent-ink: #1d4ed8;
    --accent-bg:  #eff6ff;

    --good:       #16a34a;
    --good-bg:    #f0fdf4;
    --warn:       #d97706;
    --warn-bg:    #fffbeb;
    --bad:        #dc2626;
    --bad-bg:     #fef2f2;

    --radius:     10px;
    --radius-sm:  7px;
    --shadow:     0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-lg:  0 4px 16px rgba(15, 23, 42, .1);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 15px/1.55 var(--font);
    color: var(--ink);
    background: var(--bg);
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.011em; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }

p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.25rem;
    height: 56px;
    background: var(--brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    background: var(--accent);
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 800;
}
.brand-text { font-size: .95rem; }

.topnav { display: flex; gap: .25rem; margin-left: .5rem; }
.topnav-link {
    padding: .4rem .7rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .72);
    font-size: .875rem;
    font-weight: 550;
}
.topnav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.topnav-link.is-active { background: rgba(255, 255, 255, .16); color: #fff; }

.topbar-user { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.user-chip { display: flex; flex-direction: column; line-height: 1.2; color: #fff; text-align: right; }
.user-chip:hover { text-decoration: none; opacity: .85; }
.user-name { font-size: .825rem; font-weight: 600; }
.user-role { font-size: .7rem; color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.app-main { padding: 1.25rem; max-width: 1680px; margin: 0 auto; }
.guest-main { display: grid; place-items: center; min-height: 100vh; padding: 1.25rem; }

.page-head {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.page-head .spacer { margin-left: auto; }
.page-sub { color: var(--ink-3); font-size: .85rem; margin-top: .15rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
}
.card-head .spacer { margin-left: auto; }
.card-body { padding: 1rem; }
.card-body.tight { padding: .6rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Buttons and form controls
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem .9rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .875rem;
    font-weight: 550;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-danger { color: var(--bad); border-color: #fecaca; background: var(--bad-bg); }
.btn-danger:hover { background: #fee2e2; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="date"], input[type="datetime-local"], input[type="tel"],
select, textarea {
    width: 100%;
    padding: .5rem .65rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font: inherit;
    font-size: .875rem;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    border-color: var(--accent);
}
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 1.8rem; }

.field { margin-bottom: .85rem; }
.field-hint { font-size: .75rem; color: var(--ink-3); margin-top: .25rem; }
.field-row { display: flex; gap: .6rem; align-items: flex-end; }
.check { display: flex; align-items: center; gap: .45rem; font-size: .825rem; font-weight: 500; color: var(--ink-2); margin: 0; cursor: pointer; }
.check input { width: auto; }

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flash-stack { max-width: 1680px; margin: 1rem auto 0; padding: 0 1.25rem; display: grid; gap: .5rem; }
.flash {
    padding: .65rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    border: 1px solid transparent;
    word-break: break-word;
}
.flash-success { background: var(--good-bg); border-color: #bbf7d0; color: #166534; }
.flash-error   { background: var(--bad-bg);  border-color: #fecaca; color: #991b1b; }
.flash-info    { background: var(--accent-bg); border-color: #bfdbfe; color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
table.data th {
    text-align: left;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-3);
    font-weight: 650;
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
table.data td {
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .nowrap { white-space: nowrap; }

.row-link { font-weight: 600; color: var(--ink); }
.row-link:hover { color: var(--accent-ink); }
.row-sub { font-size: .75rem; color: var(--ink-3); }

.empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--ink-3);
    font-size: .875rem;
}

/* --------------------------------------------------------------------------
   Badges, pills, scores
   -------------------------------------------------------------------------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .5rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-good { background: var(--good-bg); border-color: #bbf7d0; color: #166534; }
.pill-warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.pill-bad  { background: var(--bad-bg);  border-color: #fecaca; color: #991b1b; }
.pill-accent { background: var(--accent-bg); border-color: #bfdbfe; color: var(--accent-ink); }

.score {
    display: inline-grid;
    place-items: center;
    min-width: 2.4rem;
    padding: .2rem .45rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.score-good { background: var(--good-bg); color: #166534; }
.score-warn { background: var(--warn-bg); color: #92400e; }
.score-bad  { background: var(--bad-bg);  color: #991b1b; }
.score-none { background: var(--surface-2); color: var(--ink-4); }

.meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter.is-good > span { background: var(--good); }
.meter.is-warn > span { background: var(--warn); }
.meter.is-bad  > span { background: var(--bad); }

/* --------------------------------------------------------------------------
   Stat tiles
   -------------------------------------------------------------------------- */

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    box-shadow: var(--shadow);
}
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 650; }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat-note { font-size: .75rem; color: var(--ink-3); margin-top: .1rem; }
.stat a { color: inherit; }

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */

.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.filters-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filters-row > * { flex: 0 0 auto; }
.filter-field { min-width: 150px; }
.filter-field.wide { flex: 1 1 260px; min-width: 220px; }
.filter-toggles { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pager { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .825rem; color: var(--ink-3); }
.pager .spacer { margin-left: auto; }

/* --------------------------------------------------------------------------
   Auth screens
   -------------------------------------------------------------------------- */

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
}
.auth-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; }
.auth-brand .brand-mark { background: var(--brand); }
.auth-title { font-size: 1.15rem; margin-bottom: .3rem; }
.auth-sub { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.auth-foot { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); text-align: center; }

/* --------------------------------------------------------------------------
   Lead dashboard (the call screen)
   -------------------------------------------------------------------------- */

.lead-head {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}
.lead-head-top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.lead-title { font-size: 1.4rem; letter-spacing: -.02em; }
.lead-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.lead-queue { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-3); }

.lead-scores { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.lead-score { min-width: 118px; }
.lead-score-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 650; }
.lead-score-value { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.lead-score .meter { margin-top: .35rem; }

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 1180px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } }

.lead-col { display: grid; gap: 1rem; align-content: start; }

/* Sticky call panel so the disposition is always reachable mid-call. */
.call-panel { position: sticky; top: 72px; }

.contact-strip { display: grid; gap: .5rem; }
.contact-line { display: flex; align-items: center; gap: .55rem; font-size: .875rem; }
.contact-line .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); font-weight: 650; width: 52px; flex: none; }
.contact-line a { word-break: break-all; }
.contact-value { color: var(--ink-2); }

.dial { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

.link-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.link-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .6rem;
    border: 1px solid var(--line-2);
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 550;
    color: var(--ink-2);
    background: var(--surface);
}
.link-chip:hover { background: var(--accent-bg); border-color: #bfdbfe; color: var(--accent-ink); text-decoration: none; }
.link-chip .kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); }

/* Website preview */
.preview-frame {
    width: 100%;
    height: 460px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: block;
}
.preview-note { font-size: .75rem; color: var(--ink-3); margin-top: .5rem; }
.preview-placeholder {
    height: 200px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: .875rem;
}

/* Pitch cards */
.pitch-list { display: grid; gap: .6rem; }
.pitch {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .8rem;
    background: var(--surface);
}
.pitch.is-top { border-color: #bfdbfe; background: var(--accent-bg); }
.pitch-head { display: flex; align-items: center; gap: .6rem; }
.pitch-name { font-weight: 650; font-size: .9rem; }
.pitch-price { margin-left: auto; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pitch-reason { font-size: .82rem; color: var(--ink-2); margin-top: .35rem; line-height: 1.5; }

.talk-track {
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: .75rem .85rem;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ink-2);
}

/* Review snippets */
.snippet {
    font-size: .82rem;
    color: var(--ink-2);
    line-height: 1.55;
    padding: .55rem .7rem;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--line-2);
}

/* Definition-style fact list */
.facts { display: grid; gap: .45rem; }
.fact { display: flex; gap: .75rem; font-size: .83rem; align-items: baseline; }
.fact dt { flex: 0 0 128px; color: var(--ink-3); font-weight: 550; }
.fact dd { margin: 0; color: var(--ink); min-width: 0; word-break: break-word; }

/* Hours */
.hours { display: grid; gap: .2rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.hours-row { display: flex; gap: .6rem; }
.hours-row.is-today { font-weight: 700; color: var(--accent-ink); }
.hours-day { width: 34px; color: var(--ink-3); }
.hours-row.is-today .hours-day { color: var(--accent-ink); }

/* Activity timeline */
.timeline { display: grid; gap: .7rem; }
.tl-item { display: grid; gap: .2rem; padding-left: .85rem; border-left: 2px solid var(--line); position: relative; }
.tl-item::before {
    content: '';
    position: absolute;
    left: -5px; top: .35rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--line-2);
    border: 2px solid var(--surface);
}
.tl-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.tl-when { color: var(--ink-4); font-size: .75rem; }
.tl-note { font-size: .83rem; color: var(--ink-2); white-space: pre-wrap; }

/* Tabs */
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); padding: 0 .4rem; overflow-x: auto; }
.tab {
    padding: .6rem .8rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-3);
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.tab-panel { padding: 1rem; }

/* Disposition picker */
.disp-group { margin-bottom: .6rem; }
.disp-group-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); font-weight: 700; margin-bottom: .3rem; }
.disp-options { display: flex; flex-wrap: wrap; gap: .3rem; }
.disp-option { position: relative; }
.disp-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.disp-option span {
    display: inline-block;
    padding: .32rem .6rem;
    border: 1px solid var(--line-2);
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 550;
    cursor: pointer;
    background: var(--surface);
    color: var(--ink-2);
}
.disp-option input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.disp-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* --------------------------------------------------------------------------
   Help markers - the "?" that explains a score
   -------------------------------------------------------------------------- */

.help {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 14px; height: 14px;
    margin-left: .15rem;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink-3);
    font-size: .62rem;
    font-weight: 800;
    cursor: help;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0;
}
.help:hover, .help:focus-visible { background: var(--accent); color: #fff; outline: none; }

.help-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    padding: .7rem .8rem;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
    z-index: 60;
    pointer-events: none;
}
.help-tip strong { display: block; margin-bottom: .25rem; font-size: .8rem; }
.help-tip em { display: block; margin-top: .4rem; color: #fbbf24; font-style: normal; font-weight: 600; }
.help:hover .help-tip, .help:focus-visible .help-tip { opacity: 1; visibility: visible; }

/* Keep the tooltip on screen for the last score in the row. */
.lead-score:last-child .help-tip,
.lead-score:nth-last-child(2) .help-tip { left: auto; right: 0; transform: none; }

.lead-score-note { font-size: .7rem; color: var(--ink-3); margin-top: .35rem; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Openers
   -------------------------------------------------------------------------- */

.opener-list { display: grid; gap: .6rem; }
.opener {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .8rem;
    background: var(--surface);
}
.opener.is-top { border-color: #bfdbfe; background: var(--accent-bg); }
.opener-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.opener-head .btn { margin-left: auto; }
.opener-text { font-size: .9rem; line-height: 1.6; color: var(--ink); margin: 0; }

/* --------------------------------------------------------------------------
   "Say this" block inside a pitch
   -------------------------------------------------------------------------- */

.pitch-say {
    margin-top: .55rem;
    padding: .6rem .7rem;
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    line-height: 1.6;
    color: var(--ink);
}
.pitch.is-top .pitch-say { background: rgba(255, 255, 255, .75); }
.pitch-say-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.pitch-say-head .btn { margin-left: auto; }
.pitch-reason { font-size: .82rem; color: var(--ink-2); margin-top: .35rem; line-height: 1.5; }
.pitch-reason strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.map-frame {
    width: 100%;
    height: 300px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: block;
    background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   People (owner & team tab)
   -------------------------------------------------------------------------- */

.person { display: flex; align-items: flex-start; gap: .6rem; }
.person-avatar {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: .82rem;
}

/* --------------------------------------------------------------------------
   Editable table (contacts)
   -------------------------------------------------------------------------- */

.hidden-form { display: none; }

table.table-edit td { padding: .35rem .4rem; vertical-align: top; }
table.table-edit input[type="text"],
table.table-edit input[type="email"],
table.table-edit input[type="tel"] {
    padding: .35rem .5rem;
    font-size: .82rem;
}
table.table-edit tbody tr:hover { background: transparent; }
table.table-edit .row-new { background: var(--surface-2); }
table.table-edit .row-new td { border-bottom: none; }

.req {
    font-size: .68rem;
    font-weight: 500;
    color: var(--warn);
    text-transform: none;
    letter-spacing: 0;
}

.timer-display { font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-display.is-running { color: var(--good); }

/* --------------------------------------------------------------------------
   Bar chart (reports)
   -------------------------------------------------------------------------- */

.barlist { display: grid; gap: .55rem; }
.barlist-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: .65rem; align-items: center; font-size: .82rem; }
.barlist-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist-value { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 44px; }
.spark-bar { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.spark-bar:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.muted { color: var(--ink-3); }
.small { font-size: .8rem; }
.tiny { font-size: .72rem; }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); font-size: .8rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: .85rem 0; }
.stack { display: grid; gap: .75rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }
