@font-face {
    font-family: "Inter";
    src: url("fonts/inter-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --blue: #2450a4;
    --sky: #367cca;
    --cyan: #29b7ca;
    --blue-soft: #edf2fb;
    --sky-soft: #edf5fd;
    --cyan-soft: #eaf9fb;
    --ink: #1d2738;
    --muted: #626f82;
    --line: #e4e9f1;
    --surface: #ffffff;
    --shadow: 0 4px 8px #20365b03, 0 16px 40px #20365b06;
    --trio: linear-gradient(110deg, var(--blue) 0% 33.333%, var(--sky) 33.333% 66.666%, var(--cyan) 66.666% 100%);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    color-scheme: light;
    color: var(--ink);
    background: #f5f7fb;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: radial-gradient(ellipse at 0% 0%, #2450a408, transparent 50%), radial-gradient(ellipse at 100% 50%, #29b7ca08, transparent 50%), #f5f7fb; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, .button, .side-nav a, .member-row { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
::selection { background: #367cca25; color: #183b77; }
h1 { font-size: clamp(27px, 5vw, 32px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 14px; font-weight: 650; }
.card { position: relative; width: min(100%, 460px); background: var(--surface); border: 1px solid #ffffff; border-radius: 28px; padding: 40px; box-shadow: 0 2px 4px #20365b04, 0 24px 80px #20365b0b; }
.card::before { content: ""; display: block; width: 60px; height: 5px; border-radius: 5px; background: var(--trio); margin-bottom: 26px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; margin-bottom: 22px; }
.login-logo { display: block; width: 80px; height: 80px; object-fit: contain; }
.intro { color: var(--muted); line-height: 1.65; margin: 0 0 26px; font-size: 14px; }
label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 550; }
input, select { width: 100%; min-width: 0; border: 1px solid #dbe2ed; border-radius: 12px; background: #f9fafc; color: var(--ink); padding: 12px 14px; font: inherit; font-size: 16px; min-height: 48px; }
input:hover, select:hover { border-color: #b8cbe4; }
input:focus, select:focus { background: #fff; border-color: var(--sky); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 19px; min-height: 46px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; }
button { width: 100%; margin-top: 26px; }
button:hover, .button:hover { background: #1c438e; box-shadow: 0 5px 15px #2450a41a; }
button:active, .button:active { transform: translateY(1px); }
.secondary, .button.secondary { color: #245b9e; background: var(--sky-soft); border-color: #dce9f8; }
.secondary:hover, .button.secondary:hover { background: #e0edfc; box-shadow: none; }
.button.full { width: 100%; }
.button.small { padding: 8px 12px; min-height: 36px; font-size: 12px; white-space: nowrap; border-radius: 10px; }
.compact { width: auto; margin: 0; padding: 9px 13px; font-size: 13px; }
.field-help, .footnote { color: var(--muted); font-size: 12px; line-height: 1.65; }
.field-help { margin: 7px 0 0; }
.footnote { margin: 26px 0 0; }
.notice { font-size: 13px; line-height: 1.65; padding: 14px 16px; border-radius: 14px; margin: 18px 0; overflow-wrap: anywhere; }
.error { color: #963b47; background: #fff2f3; border: 1px solid #f4dadd; }
.success { color: #23604e; background: #eff9f4; border: 1px solid #d6ebe0; }
.role { display: table; color: var(--blue); background: var(--blue-soft); border-radius: 20px; padding: 6px 12px; font-size: 12px; margin-bottom: 20px; }
.text-link, .workspace-nav a { color: var(--blue); text-underline-offset: 4px; font-size: 13px; }
.text-link { display: inline-block; margin-top: 18px; }
.workspace { width: min(1100px, 100%); padding: 12px 0; border: 0; background: transparent; box-shadow: none; }
.workspace::before { display: none; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.workspace-nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 19px; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 650; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.panel-heading h2 { margin-bottom: 0; }
.account-forms { display: grid; gap: 20px; min-width: 0; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.member-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; }
.member-row:hover { background: #f9fbfe; border-color: #cbdcf1; }
.member-row.selected { border-color: #9abde6; background: var(--sky-soft); }
.member-info { min-width: 0; }
.member-info h3 { margin: 0 0 5px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.username { margin: 0 0 12px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: 11px; padding: 5px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.badge.active { color: #146776; background: var(--cyan-soft); }
.badge.inactive { color: #765546; background: #f7eee9; }
.member-edit { color: var(--blue); font-size: 12px; text-underline-offset: 4px; padding: 4px 0; flex-shrink: 0; }
.empty-state { padding: 28px 20px; background: #f8fafd; border: 1px dashed #ced9ea; border-radius: 16px; }
.empty-state h3 { font-size: 15px; margin: 0 0 9px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.admin-confirm { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 3px; }
.access-panel summary { cursor: pointer; color: #963b47; font-weight: 600; font-size: 14px; }
.access-panel[open] summary { margin-bottom: 16px; }
.danger { background: #a43d4b; }
.danger:hover { background: #89303c; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.65; font-weight: 400; }
.check-row input { width: 18px; min-height: 18px; height: 18px; flex-shrink: 0; margin: 3px 0; accent-color: #a43d4b; }

/* A quiet canvas and translucent navigation, with three equal brand accents. */
.panel-body { display: block; place-items: normal; padding: 0; }
.ui-icon { width: 22px; height: 22px; flex-shrink: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; border-radius: 10px; background: white; padding: 12px; color: var(--blue); }
.skip-link:focus { top: 16px; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: 252px; background: #fafdfff0; color: var(--ink); border-right: 1px solid #dfe7f180; display: flex; flex-direction: column; padding: 34px 18px 22px; overflow-y: auto; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.sidebar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--trio); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 17px; letter-spacing: -.035em; font-weight: 650; text-decoration: none; padding: 0 10px 44px; }
.brand-symbol { display: grid; place-items: center; width: 42px; height: 44px; flex-shrink: 0; }
.brand-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sidebar-brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .16em; margin-top: 6px; font-weight: 500; }
.nav-caption { font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .14em; padding: 0 15px 14px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: #4d5e76; font-size: 14px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; min-height: 48px; }
.side-nav .ui-icon { width: 20px; height: 20px; }
.side-nav > :nth-child(3n + 1) .ui-icon { color: var(--blue); }
.side-nav > :nth-child(3n + 2) .ui-icon { color: var(--sky); }
.side-nav > :nth-child(3n) .ui-icon { color: var(--cyan); }
.side-nav a:hover { background: #edf3fb; color: var(--blue); }
.side-nav a.active { background: #fff; border-color: #e3eaf5; color: var(--blue); box-shadow: 0 3px 12px #2450a408; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 38px 12px 0; }
.signed-in-user { display: flex; gap: 11px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.signed-in-user > div { min-width: 0; }
.signed-in-user strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.signed-in-user small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 13px; background: var(--sky-soft); border: 1px solid #dbe9f9; color: var(--blue); font-weight: 600; }
.sidebar-password { display: inline-block; color: #536984; font-size: 11px; margin-top: 22px; text-underline-offset: 4px; }
.sidebar-logout { justify-content: flex-start; min-height: 40px; gap: 8px; padding: 9px 0; background: transparent; color: #536984; font-size: 11px; font-weight: 500; margin-top: 8px; border-radius: 8px; }
.sidebar-logout:hover { background: transparent; color: var(--blue); box-shadow: none; }
.sidebar-logout .ui-icon { width: 17px; height: 17px; color: var(--sky); }
.panel-main { margin-left: 252px; min-width: 0; }
.panel-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 32px 40px 26px; border-bottom: 1px solid #e4e9f180; }
.eyebrow { display: block; font-size: 9px; letter-spacing: .15em; font-weight: 600; color: var(--muted); }
.panel-topbar h1 { font-size: 30px; margin: 8px 0 0; font-weight: 650; }
.panel-topbar time { font-size: 11px; color: #586b85; background: #ffffffbf; border: 1px solid #e4eaf3; padding: 10px 14px; border-radius: 30px; white-space: nowrap; }
.panel-content { max-width: 1540px; margin: 0 auto; padding: 32px 40px 44px; }
.overview-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.overview-intro h2 { font-size: 18px; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 600; }
.overview-intro p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.65; }
.data-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #50657f; border: 1px solid #dce9f2; background: #f8fdfe; padding: 8px 11px; border-radius: 20px; white-space: nowrap; }
.data-tag::before { content: ""; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
@media (min-width: 1600px) { .panel-topbar { padding-left: 48px; padding-right: 48px; } .panel-content { padding: 40px 48px 52px; } }
@media (max-width: 1200px) {
    .panel-content, .panel-topbar { padding-left: 26px; padding-right: 26px; }
    .panel-body .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sidebar { position: relative; width: 100%; padding: 22px 18px 18px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .sidebar-brand { padding: 0 6px 22px; }
    .nav-caption { display: none; }
    .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .side-nav a { padding: 11px 10px; font-size: 13px; gap: 9px; }
    .sidebar-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 20px 7px 0; }
    .signed-in-user { border-top: 0; padding-top: 0; grid-row: span 2; }
    .sidebar-password { margin: 0; font-size: 11px; align-self: end; }
    .sidebar-logout { margin: 0; padding: 4px 0; min-height: 30px; font-size: 11px; }
    .panel-main { margin-left: 0; }
    .panel-topbar { padding: 24px 20px; }
    .panel-topbar h1 { font-size: 25px; }
    .panel-topbar time { font-size: 11px; padding: 8px 10px; }
    .panel-content { padding: 24px 16px 32px; }
    .overview-intro { align-items: flex-start; margin-bottom: 22px; }
    .overview-intro h2 { font-size: 17px; }
    .data-tag { display: none; }
    .panel { padding: 22px 18px; border-radius: 20px; }
    .workspace-grid { grid-template-columns: 1fr; }
    .workspace-heading { flex-direction: column; margin-bottom: 24px; gap: 0; }
    .workspace-nav { width: 100%; justify-content: space-between; }
    .workspace { padding: 0; }
}
/* Call and WhatsApp shortcuts next to phone numbers. */
.phone-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; vertical-align: middle; }
.phone-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 550; text-decoration: none; font-variant-numeric: tabular-nums; }
.phone-actions .ui-icon { width: 15px; height: 15px; flex-shrink: 0; }
.phone-call { color: var(--blue); background: var(--sky-soft); border: 1px solid #dce9f8; }
.phone-whatsapp { color: #12704a; background: #e9f8f0; border: 1px solid #cdeedd; }
.phone-call:hover, .phone-whatsapp:hover { filter: brightness(.97); }
.property-sale-summary .phone-actions, .collection-main .phone-actions { margin: 0 0 0 6px; }
.property-sale-summary .phone-actions a, .collection-main .phone-actions a { min-height: 28px; padding: 3px 9px; font-size: 12px; }

/* Phone menu: hidden on wide screens. */
.bottom-nav { display: none; }
@media (max-width: 760px) {
    .side-nav, .sidebar-password, .sidebar-logout, .sidebar-footer form { display: none; }
    .sidebar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; position: sticky; top: 0; z-index: 20; }
    .sidebar-brand { padding: 0; font-size: 15px; }
    .sidebar-brand img { width: 32px; height: auto; }
    .sidebar-footer { display: block; margin: 0; padding: 0; }
    .signed-in-user { padding: 0; border: 0; }
    .signed-in-user > div { display: none; }
    .bottom-nav { display: flex; position: fixed; z-index: 30; inset: auto 0 0 0; justify-content: space-around; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #ffffffee; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px #20365b0d; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .bottom-nav > a, .bottom-more > summary { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; min-width: 0; padding: 4px 2px; border-radius: 12px; color: #5b6b82; font-size: 10.5px; font-weight: 550; text-decoration: none; list-style: none; cursor: pointer; }
    .bottom-more { flex: 1 1 0; display: flex; min-width: 0; }
    .bottom-more > summary::-webkit-details-marker { display: none; }
    .bottom-nav .ui-icon { width: 22px; height: 22px; }
    .bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bottom-nav > a[aria-current="page"], .bottom-more.is-current > summary, .bottom-more[open] > summary { color: var(--blue); background: var(--sky-soft); }
    .bottom-more-menu { position: absolute; right: 8px; bottom: calc(100% + 8px); min-width: 220px; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 40px #20365b26; }
    .bottom-more-menu a, .bottom-more-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 500; text-decoration: none; justify-content: flex-start; border: 0; }
    .bottom-more-menu a[aria-current="page"] { color: var(--blue); background: var(--sky-soft); }
    .bottom-more-menu form { margin: 0; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
    .bottom-more-menu button { color: #a43d4b; }
    .bottom-more-menu .ui-icon { width: 20px; height: 20px; color: var(--sky); }
    .panel-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    /* Comfortable touch targets for small links and buttons. */
    .button.small, .compact, .member-edit, .customer-delete-link, .property-row-actions a, .text-link { min-height: 44px; display: inline-flex; align-items: center; }
    .phone-actions a { min-height: 42px; padding: 8px 14px; font-size: 14px; }
    .panel-topbar { padding: 18px 16px; }
    .panel-topbar h1 { font-size: 23px; margin-top: 4px; }
}
@media (max-width: 380px) {
    .card { padding: 28px 23px; border-radius: 24px; }
    .panel-topbar { gap: 10px; }
    .panel-topbar time { padding: 7px 8px; font-size: 9px; }
    .member-row { padding: 14px; gap: 10px; }
}
/* Customer list: compact rows; card or form opens beside it. */
.customer-add-button { width: auto; margin: 0; flex-shrink: 0; }
.customer-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.customer-workspace.has-panel { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); }
.customer-create-panel { scroll-margin-top: 80px; position: sticky; top: 24px; }
.customer-search { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.customer-search label { margin-top: 0; }
.search-controls { display: flex; gap: 10px; align-items: stretch; }
.search-controls button { width: auto; margin: 0; flex-shrink: 0; }
.customer-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.customer-filters label { margin-top: 0; font-size: 12px; }
.customer-filters input, .customer-filters select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-size: 14px; }
.customer-filter-actions { display: flex; align-items: center; gap: 12px; }
.customer-filter-actions button { width: auto; margin: 0; min-height: 44px; }
.has-panel .customer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.has-panel .customer-filter-search { grid-column: 1 / -1; }
.customer-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.customer-rows > li { padding: 13px 12px; border-bottom: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.customer-rows > li:hover { background: #f8fbff; }
.customer-rows > li.is-selected { background: var(--sky-soft); }
.customer-row-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.customer-name { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; margin-right: 4px; overflow-wrap: anywhere; }
.customer-name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.customer-rows .badge { background: #f1f4f8; color: #4d5e76; font-size: 10.5px; padding: 3px 8px; }
.status-tag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.status-lead { background: #f1f4f8; color: #4d5e76; }
.status-optioned { background: #fff6e5; color: #8a5300; }
.status-buyer { background: #e9f8f0; color: #12704a; }
.customer-holdings { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 12px; }
.customer-holdings a { color: var(--blue); text-underline-offset: 3px; }
.customer-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.customer-row-meta .phone-actions { margin: 0; }
.customer-row-meta .phone-actions a { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.customer-row-meta .member-edit { margin-left: auto; }
.customer-card-heading h2 { margin: 6px 0 8px; font-size: 22px; overflow-wrap: anywhere; }
.customer-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.customer-facts > div { padding: 12px 14px; border-radius: 12px; background: #f6f9fd; }
.customer-facts dt { font-size: 11px; color: var(--muted); }
.customer-facts dd { margin: 5px 0 0; font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; }
.customer-card-title { margin: 24px 0 10px; font-size: 15px; }
.customer-card-holdings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.customer-card-holdings > li { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid #f0b445; border-radius: 4px 14px 14px 4px; }
.customer-card-holdings > li.holding-sale { border-left-color: #1f8a5b; }
.holding-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.holding-head a { font-weight: 600; font-size: 14px; color: var(--blue); }
.holding-head span { font-size: 12px; color: var(--muted); }
.customer-card-holdings p { margin: 6px 0 0; font-size: 12.5px; color: #3d4a5e; }
.customer-card-holdings .is-late, .customer-card-holdings p.is-late { color: #a43d4b; font-weight: 550; }
.customer-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.customer-card-actions .button { width: auto; }
.customer-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-name-fields label { margin-top: 0; }
.customer-owner-note { margin-top: 20px; }
.customer-delete-link { color: #963b47; font-size: 12px; text-underline-offset: 4px; padding: 8px 4px; }
.customer-delete-link:hover { color: #742936; }
.customer-delete-summary { display: grid; gap: 9px; padding: 18px; margin-bottom: 18px; border: 1px solid #f4dadd; background: #fff7f8; border-radius: 15px; overflow-wrap: anywhere; }
.customer-delete-summary strong { font-size: 15px; font-weight: 600; }
.customer-delete-summary span { font-size: 13px; color: var(--muted); }
.customer-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.customer-pagination > div { display: flex; gap: 8px; }
@media (max-width: 1200px) { .customer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .customer-filter-search { grid-column: 1 / -1; } }
@media (max-width: 1000px) {
    .customer-workspace.has-panel { grid-template-columns: minmax(0, 1fr); }
    .customer-create-panel { position: static; order: -1; }
}
@media (max-width: 760px) {
    .customer-workspace { gap: 20px; }
    .overview-intro .customer-add-button { padding: 11px 14px; font-size: 13px; }
    .customer-rows > li { padding: 14px 4px; border-radius: 0; }
    .customer-row-meta .member-edit { margin-left: 0; }
    .customer-facts { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
    button:active, .button:active { transform: none; }
}

/* Daily glance and the local events calendar. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.calendar-panel { margin-top: 28px; scroll-margin-top: 24px; }
.calendar-panel .eyebrow { margin-bottom: 8px; }
.calendar-layout { display: grid; grid-template-columns: minmax(290px, 1fr) minmax(260px, 1fr); gap: 32px; }
.calendar-month { min-width: 0; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; }
.calendar-toolbar h3, .calendar-agenda > h3 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.calendar-toolbar nav { display: flex; gap: 6px; }
.calendar-toolbar a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--sky-soft); color: var(--blue); text-decoration: none; font-size: 25px; line-height: 1; }
.calendar-toolbar a:hover { background: #dceafa; }
.calendar-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.calendar-grid th { font-size: 11px; color: var(--muted); font-weight: 500; padding: 0 0 11px; }
.calendar-grid td { padding: 0; text-align: center; vertical-align: top; }
.calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 48px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); font-size: 13px; text-decoration: none; font-variant-numeric: tabular-nums; }
.calendar-day:hover { background: var(--sky-soft); }
.calendar-day.today { border-color: var(--sky); font-weight: 650; }
.calendar-day.holiday { color: var(--blue); background: var(--blue-soft); }
.calendar-day.selected { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 4px 12px #2450a420; }
.calendar-dots { display: flex; gap: 3px; align-items: center; height: 5px; }
.calendar-dots i, .calendar-legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.holiday-dot { background: var(--blue); }
.special-dot { background: var(--sky); }
.week-dot { background: var(--cyan); }
.calendar-day.selected .holiday-dot { background: #fff; }
.calendar-day.selected .special-dot { background: #a8d2ff; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; color: var(--muted); margin: 20px 4px 0; }
.calendar-legend span { display: inline-flex; gap: 6px; align-items: center; }
.calendar-agenda { min-width: 0; border-left: 1px solid var(--line); padding-left: 32px; }
.calendar-agenda > h3 { margin: 8px 0 20px; }
.calendar-agenda h3 small { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; color: var(--muted); letter-spacing: 0; }
.agenda-event { border-left: 3px solid var(--sky); padding: 12px 15px; margin: 10px 0; border-radius: 0 12px 12px 0; background: var(--sky-soft); }
.agenda-event span { display: block; font-size: 13px; font-weight: 550; line-height: 1.55; }
.agenda-event small { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.event-holiday, .event-half { border-color: var(--blue); background: var(--blue-soft); }
.event-week { border-color: var(--cyan); background: var(--cyan-soft); }
.month-events { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.month-events summary { cursor: pointer; font-size: 12px; font-weight: 550; }
.month-events summary > span { display: inline-block; margin-left: 5px; font-size: 10px; border-radius: 6px; background: var(--sky-soft); color: var(--blue); padding: 2px 6px; }
.month-events > div { max-height: 260px; overflow-y: auto; margin-top: 12px; scrollbar-width: thin; }
.month-event { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; text-decoration: none; color: var(--ink); font-size: 11px; line-height: 1.6; padding: 11px 5px; border-bottom: 1px solid #edf1f6; }
.month-event:hover { background: var(--sky-soft); border-radius: 8px; }
.month-event time { color: #536b8c; font-size: 10px; font-variant-numeric: tabular-nums; }
.calendar-notes a { color: var(--blue); text-underline-offset: 3px; }
.calendar-notes { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 11px; color: var(--muted); }
.calendar-notes summary { cursor: pointer; }
.calendar-notes p { line-height: 1.8; max-width: 850px; }
@media (max-width: 1200px) { .calendar-layout { gap: 22px; } .calendar-agenda { padding-left: 22px; } }
@media (max-width: 1000px) { .calendar-layout { grid-template-columns: minmax(0, 1fr); } .calendar-agenda { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .calendar-grid { border-spacing: 2px; } .calendar-day { min-height: 42px; border-radius: 10px; } .calendar-toolbar h3 { font-size: 16px; } }

/* Vector site plan, traced from the owner's reference image. */
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.site-map-panel { padding: 24px 20px 18px; overflow: hidden; }
.site-map-panel .panel-heading { padding: 0 5px; }
.site-map-label { font-size: 10px; padding: 7px 10px; border-radius: 20px; color: #2965a8; background: var(--sky-soft); white-space: nowrap; }
.site-plan-scroll { overflow-x: auto; border: 1px solid #e1e8df; border-radius: 18px; background: #e8efe5; scrollbar-width: thin; }
.site-plan { display: block; width: 100%; min-width: 820px; height: auto; }
.site-block { cursor: pointer; outline-offset: 4px; }
.site-block-roof { fill: transparent; stroke: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: all; transition: fill .16s ease, stroke .16s ease; }
.site-block-badge { fill: #293235; stroke: #ffffff70; stroke-width: 1px; }
.site-block-name { fill: #fff; font-size: 25px; font-weight: 650; letter-spacing: -.7px; pointer-events: none; }
.site-block-caption { fill: #e8edf1; font-size: 10px; font-weight: 550; letter-spacing: 1.6px; pointer-events: none; }
.site-block:hover .site-block-roof, .site-block:focus-visible .site-block-roof { fill: #29b7ca20; stroke: var(--cyan); stroke-width: 2px; }
.site-block.is-selected .site-block-roof { fill: #2450a418; stroke: #7ebdff; stroke-width: 2px; }
.site-block.is-selected .site-block-badge { fill: var(--blue); stroke: #fff; stroke-width: 2px; }
.site-block.is-selected .site-block-name { fill: #fff; }
.site-block.is-selected .site-block-caption { fill: #d1e2f8; }
.site-map-footer { display: flex; align-items: flex-start; gap: 18px; padding: 16px 4px 0; }
.site-map-footer > span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--blue); white-space: nowrap; }
.site-map-footer i { width: 9px; height: 9px; background: var(--blue); border-radius: 3px; }
.site-map-footer p { font-size: 10px; line-height: 1.7; color: var(--muted); margin: 0; }
.block-details { padding: 26px; scroll-margin-top: 24px; }
.block-details h2 { font-size: 40px; font-weight: 600; letter-spacing: -.05em; margin: 12px 0; line-height: 1.2; }
.block-details h2 > span { font-size: 18px; font-weight: 450; color: var(--muted); letter-spacing: -.02em; }
.block-type-badge { display: inline-block; color: #157284; background: var(--cyan-soft); font-size: 11px; padding: 6px 11px; border-radius: 8px; }
.block-picker { margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.block-picker label { font-size: 12px; margin-top: 0; }
.block-picker select { font-size: 14px; }
.block-statistics { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.block-statistics > div { background: #f5f7fb; border: 1px solid #e9edf4; border-radius: 14px; padding: 14px; }
.block-statistics .block-stat-available { background: var(--blue-soft); border-color: #2450a40a; }
.block-statistics .block-stat-optioned { background: var(--sky-soft); border-color: #367cca0a; }
.block-statistics .block-stat-sold { background: var(--cyan-soft); border-color: #29b7ca0a; }
.block-statistics dt { font-size: 10px; color: #52647c; }
.block-statistics dd { margin: 8px 0 0; font-size: 27px; font-weight: 550; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.block-type-list { margin: 20px 0; padding: 8px 0; }
.block-type-list > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #edf1f6; font-size: 12px; }
.block-type-list span { color: var(--muted); }
.block-type-list strong { font-weight: 550; font-variant-numeric: tabular-nums; }
.block-details .empty-state { padding: 18px 15px; }
.block-details .empty-state h3 { font-size: 13px; }
.block-details .empty-state p { font-size: 11px; }
@media (max-width: 1200px) { .site-layout { grid-template-columns: minmax(0, 1fr); } .block-details { max-width: none; } .block-statistics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .site-layout { gap: 20px; } .site-map-panel { padding: 20px 12px 16px; border-radius: 20px; } .site-map-panel .panel-heading { align-items: flex-start; gap: 8px; } .site-map-panel .field-help { font-size: 11px; } .site-plan-scroll { border-radius: 14px; } .site-map-footer { flex-direction: column; gap: 9px; } .block-statistics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .block-details { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .site-block-roof { transition: none; } }

/* Inventory editing and recorded sales. */
.property-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.property-add-button { font-size: 12px; text-align: center; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.property-inventory, .property-details { margin-top: 26px; scroll-margin-top: 24px; }
.property-records { display: grid; gap: 12px; }
.property-record { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.property-record > div:first-child { min-width: 0; }
.property-record h3 { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.property-record p { margin: 7px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.property-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.property-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
.property-form label { margin-top: 12px; }
.property-form-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.property-form-submit button { margin-top: 0; width: auto; padding-left: 26px; padding-right: 26px; }
.property-form [hidden] { display: none; }
.property-form-note { grid-column: 1 / -1; margin-top: 2px; }
.area-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-warning { margin: 7px 0 0; padding: 7px 10px; border-radius: 10px; background: #fff6e5; color: #8a5300; font-size: 12px; line-height: 1.5; }
.property-form input[aria-invalid="true"] { border-color: #e2a83c; }
.property-form label small { color: var(--muted); font-weight: 400; }
.bulk-summary { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--sky-soft); border: 1px solid #dce9f8; font-size: 13px; line-height: 1.6; }
.bulk-summary strong { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.property-details .eyebrow { margin-bottom: 8px; }
.property-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.property-info-grid > div { background: var(--sky-soft); padding: 18px; border-radius: 14px; }
.property-info-grid dt { font-size: 11px; color: var(--muted); }
.property-info-grid dd { margin: 8px 0 0; font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
.property-sale-summary { padding: 22px; border: 1px solid #cfe9ed; border-radius: 16px; background: var(--cyan-soft); }
.property-sale-summary h3 { margin: 0 0 15px; font-size: 16px; }
.property-sale-summary p { font-size: 13px; margin: 8px 0 0; }
.property-sale-summary strong { font-weight: 550; }

/* Prices, payment plans and collections. */
.property-info-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.price-link { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--blue); }
.price-box { margin: 22px 0 4px; padding: 18px 18px 20px; border: 1px solid #dce9f8; border-radius: 16px; background: #fbfdff; }
.price-box legend { padding: 0 6px; font-size: 13px; font-weight: 650; color: var(--blue); }
.price-box > label:first-of-type { margin-top: 4px; }
.custom-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; margin-top: 4px; align-items: end; }
.custom-plan[hidden] { display: none; }
.custom-plan-wide { grid-column: 1 / -1; }
.plan-preview { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--sky-soft); border: 1px solid #dce9f8; font-size: 13px; line-height: 1.65; }
.plan-preview strong { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.discount-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff6e5; color: #8a5300; font-size: 11px; font-weight: 600; }
.payment-schedule { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 24px; }
.payment-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.payment-head h3 { margin: 0; font-size: 16px; }
.payment-totals { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.payment-totals dt { font-size: 11px; color: var(--muted); }
.payment-totals dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; }
.payment-totals .is-late dd, .payment-list tr.is-late td:first-child, .payment-list tr.is-late .pay-state { color: #a43d4b; }
.payment-list { margin-top: 16px; }
.payment-list summary { cursor: pointer; font-size: 13px; font-weight: 550; color: var(--blue); }
.payment-list table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 13px; }
.payment-list th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.payment-list td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.payment-list tr.is-paid td { color: var(--muted); }
.payment-list tr.is-paid td:first-child::before { content: "✓ "; color: #1f8a5b; }
.pay-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pay-form input[type="date"] { width: auto; min-height: 36px; padding: 6px 8px; font-size: 13px; }
.pay-state { font-size: 12px; }
.link-button { width: auto; min-height: 0; margin: 0 0 0 8px; padding: 0; background: none; border: 0; color: var(--blue); font-size: 12px; font-weight: 600; text-decoration: underline; }
.link-button:hover { background: none; box-shadow: none; }
.collection-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.collection-cards > div { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.collection-cards dt { font-size: 12px; color: var(--muted); }
.collection-cards dd { margin: 8px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.collection-cards p { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.collection-cards .is-late dd { color: #a43d4b; }
.collection-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.collection-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--muted); text-decoration: none; background: #f4f7fb; }
.collection-tabs a[aria-current="page"] { background: var(--blue); color: #fff; }
.collection-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.collection-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid #9aa6b6; border-radius: 4px 14px 14px 4px; }
.collection-list > li.is-late { border-left-color: #a43d4b; }
.collection-main strong { font-size: 14px; font-weight: 600; }
.collection-phone { font-size: 12px; color: var(--muted); }
.collection-main p { margin: 4px 0 0; font-size: 12px; color: #3d4a5e; }
.collection-main a { color: var(--blue); }
.collection-due { text-align: right; }
.collection-due strong { display: block; font-size: 15px; font-weight: 650; }
.collection-due span { font-size: 12px; color: var(--muted); }
.collection-list > li.is-late .collection-due span { color: #a43d4b; }
@media (max-width: 1100px) { .collection-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .collection-list > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .collection-due { text-align: left; }
    .custom-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payment-list table, .payment-list tbody, .payment-list tr, .payment-list td { display: block; }
    .payment-list thead { display: none; }
    .payment-list tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .payment-list td { padding: 3px 0; border: 0; }
}
.property-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.property-details .customer-search, .property-details .sale-form { max-width: 640px; }
@media (max-width: 1100px) { .property-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .property-record { align-items: flex-start; flex-direction: column; gap: 14px; } .property-row-actions { justify-content: flex-start; } }
@media (max-width: 760px) { .property-form { grid-template-columns: minmax(0, 1fr); } .property-form-submit button { width: 100%; } .property-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .property-record { padding: 16px; } .property-detail-actions .button { width: 100%; } .property-row-actions { gap: 12px; } }

/* Personal profile, shared by every signed-in role. */
.signed-in-user { text-decoration: none; color: var(--ink); }
.signed-in-user:hover strong { color: var(--blue); }
.signed-in-user .avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.signed-in-user[aria-current="page"] .avatar { border-color: var(--sky); }
.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1100px; }
.profile-summary { text-align: center; padding: 34px 26px; }
.profile-avatar { display: grid; place-items: center; width: 144px; height: 144px; margin: 0 auto 24px; border-radius: 38px; background: linear-gradient(135deg, var(--blue-soft), var(--sky-soft) 50%, var(--cyan-soft)); border: 1px solid #dce8f7; overflow: hidden; }
.profile-avatar > span { font-size: 54px; font-weight: 500; color: var(--blue); }
.profile-avatar img { display: block; width: 144px; height: 144px; object-fit: cover; }
.profile-summary h2 { font-size: 22px; overflow-wrap: anywhere; }
.profile-username { font-size: 13px; color: var(--muted); margin: 10px 0 16px; overflow-wrap: anywhere; }
.profile-summary .button { margin-top: 30px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
input[type="file"] { font-size: 13px; padding: 10px; overflow: hidden; }
input[type="file"]::file-selector-button { font: inherit; color: var(--blue); background: var(--sky-soft); border: 1px solid #dce8f7; border-radius: 8px; padding: 7px 10px; margin-right: 12px; cursor: pointer; }
@media (max-width: 1100px) { .profile-layout { grid-template-columns: minmax(0, 1fr); } .profile-summary { max-width: none; } }
@media (max-width: 760px) { .profile-layout { gap: 20px; } .profile-fields { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* New-sale notifications; sound is activated by the account holder. */
.panel-tools { display: flex; align-items: center; gap: 14px; }
.notification-center { position: relative; }
.notification-toggle { display: grid; place-items: center; position: relative; width: 42px; height: 42px; border: 1px solid #dce7f4; border-radius: 13px; color: var(--blue); background: #fff; text-decoration: none; }
.notification-toggle:hover { background: var(--sky-soft); }
.notification-badge { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #f5f7fb; border-radius: 20px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 600; }
.notification-popover { position: absolute; top: 54px; right: 0; width: min(370px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 60px #20365b24; z-index: 30; overflow: hidden; }
.notification-popover[hidden], .notification-badge[hidden], .notification-toast[hidden] { display: none; }
.notification-heading, .notification-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; }
.notification-heading { border-bottom: 1px solid var(--line); font-size: 14px; }
.notification-heading button, .notification-footer button { width: auto; min-height: 32px; margin: 0; padding: 7px 10px; font-size: 11px; }
.notification-footer { border-top: 1px solid var(--line); }
.notification-footer a { color: var(--blue); font-size: 11px; text-underline-offset: 3px; white-space: nowrap; }
.notification-footer button:disabled { cursor: default; opacity: .5; }
.notification-list { max-height: 340px; overflow-y: auto; }
.notification-list > p { margin: 0; padding: 22px 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.notification-item { display: grid; gap: 7px; padding: 17px 18px; border-bottom: 1px solid #edf1f7; color: var(--ink); text-decoration: none; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--sky-soft); }
.notification-item.unread { background: #edf5fd; border-left: 3px solid var(--cyan); padding-left: 15px; }
.notification-item strong { font-size: 12px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.notification-item span { font-size: 11px; color: #586e8a; overflow-wrap: anywhere; }
.notification-item small { font-size: 10px; color: var(--muted); }
.notification-toast { position: fixed; right: 28px; bottom: 26px; width: min(370px, calc(100vw - 32px)); background: #fff; border: 1px solid #c9dff2; border-radius: 18px; box-shadow: 0 12px 40px #20365b24; z-index: 40; overflow: hidden; }
.notification-toast .notification-item { border-left: 4px solid var(--cyan); }
.notifications-page { max-width: 900px; }
.notifications-history { display: grid; gap: 10px; margin-top: 20px; }
.notifications-history .notification-item { border: 1px solid var(--line); border-radius: 14px; }
.notifications-history .notification-item.unread { border-left: 3px solid var(--cyan); }
@media (max-width: 760px) { .notification-toast { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); } .panel-tools { gap: 10px; } }
@media (max-width: 440px) { .panel-tools time { display: none; } }

/* Live overview: progress, block map, activity, follow-ups. */
.lv-greeting { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 22px; }
.lv-greeting h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.lv-greeting p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.lv-greeting .ui-icon { width: 18px; height: 18px; color: var(--sky); }
.lv-greeting small { font-size: 10px; }
.lv-greeting a { color: var(--muted); text-underline-offset: 3px; }
.lv-root { display: grid; gap: 22px; margin-bottom: 28px; }
.lv-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; }
.lv-hero { display: grid; gap: 18px; }
.lv-hero .eyebrow { color: var(--blue); font-size: 10px; }
.lv-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.lv-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 10px 0 0; }
.lv-big strong { font-size: 52px; font-weight: 650; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.lv-big span { font-size: 17px; color: var(--muted); }
.lv-big b { font-size: 14px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.lv-mine { margin: 0; font-size: 13px; color: #3d4a5e; background: #f5f8fd; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.lv-stack { display: block; width: 100%; height: 16px; border-radius: 6px; background: #f5f7fb; }
.lv-seg-sold { fill: #2450a4; background: #2450a4; }
.lv-seg-optioned { fill: #1597ab; background: #1597ab; }
.lv-seg-available { fill: #c9d6ea; background: #c9d6ea; }
.lv-seg-unregistered { fill: #eef1f6; background: #eef1f6; }
.lv-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: #3d4a5e; }
.lv-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lv-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lv-legend .lv-seg-unregistered { border: 1px solid #c9d3e3; }
.lv-legend strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; border-top: 1px solid #eef1f6; padding-top: 18px; }
.lv-kpis span { font-size: 12px; color: var(--muted); font-weight: 500; }
.lv-kpis p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 0; }
.lv-kpis strong { font-size: 26px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lv-kpis small { font-size: 12px; color: #3d4a5e; }
.lv-map { flex: 2 1 560px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.lv-map .panel-heading { margin-bottom: 0; flex-wrap: wrap; }
.lv-scale { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.lv-scale i { width: 110px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2450a41f, #2450a4b8); }
.lv-plan { border-radius: 16px; overflow: hidden; background: #e8efe5; border: 1px solid #e1e8df; }
.lv-plan svg { display: block; width: 100%; height: auto; }
.lv-block { cursor: pointer; }
.lv-roof { fill: #2450a4; stroke: #ffffffbf; stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill-opacity .4s ease; }
.lv-block:hover .lv-roof, .lv-block:focus-visible .lv-roof { stroke: #fff; stroke-width: 3px; }
.lv-block.is-selected .lv-roof { stroke: #fff; stroke-width: 4px; }
.lv-pill { fill: #fff; stroke: #c9d3e3; stroke-width: 1px; }
.lv-pct { fill: var(--ink); font-size: 17px; font-weight: 700; pointer-events: none; }
.lv-block.is-selected .lv-pill { fill: var(--blue); stroke: #fff; stroke-width: 2px; }
.lv-block.is-selected .lv-pct { fill: #fff; }
.lv-under { display: flex; flex-wrap: wrap; gap: 16px; }
.lv-selbox { flex: 1 1 250px; min-width: 0; display: grid; gap: 10px; align-content: start; background: #f5f8fd; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.lv-sel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lv-sel-head strong { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.lv-sel-head span { font-size: 12px; color: var(--muted); }
.lv-selbox progress, .lv-leaders progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 4px; background: #e4e9f1; overflow: hidden; }
.lv-selbox progress::-webkit-progress-bar, .lv-leaders progress::-webkit-progress-bar { background: #e4e9f1; border-radius: 4px; }
.lv-selbox progress::-webkit-progress-value, .lv-leaders progress::-webkit-progress-value { background: #2450a4; border-radius: 4px; }
.lv-selbox progress::-moz-progress-bar, .lv-leaders progress::-moz-progress-bar { background: #2450a4; border-radius: 4px; }
.lv-selbox dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lv-selbox dt { font-size: 12px; color: var(--muted); }
.lv-selbox dd { margin: 2px 0 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lv-selbox .text-link { font-size: 13px; font-weight: 600; }
.lv-chips { flex: 2 1 300px; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid #dbe2ed; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.lv-chip span { color: var(--muted); font-weight: 500; }
.lv-chip:hover { border-color: var(--sky); }
.lv-chip[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.lv-chip[aria-current="true"] span { color: #dbe6f7; }
.lv-feed { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lv-feed-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lv-feed-head h2 { margin: 0; }
.lv-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #0f6f80; white-space: nowrap; }
.lv-live i { width: 8px; height: 8px; border-radius: 50%; background: #1597ab; animation: lv-pulse 1.8s infinite; }
.lv-live.is-offline { color: var(--muted); }
.lv-live.is-offline i { background: #9aa6b6; animation: none; }
@keyframes lv-pulse { 0% { box-shadow: 0 0 0 0 #1597ab66; } 70% { box-shadow: 0 0 0 8px #1597ab00; } 100% { box-shadow: 0 0 0 0 #1597ab00; } }
.lv-feed-list { list-style: none; margin: 0; padding: 0; }
.lv-feed-list a { display: flex; gap: 12px; padding: 12px 8px; border-bottom: 1px solid #eef1f6; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lv-feed-list a:hover { background: #f5f8fd; }
.lv-feed-list li:last-child a { border-bottom: 0; }
.lv-feed-list li.is-new a { animation: lv-new 2s ease; }
@keyframes lv-new { from { background: #d9f1f4; } to { background: transparent; } }
.lv-feed-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; }
.lv-feed-icon svg { width: 16px; height: 16px; }
.lv-k-sold .lv-feed-icon { color: #2450a4; background: var(--blue-soft); }
.lv-k-option .lv-feed-icon { color: #0f6f80; background: #e6f6f8; }
.lv-k-released .lv-feed-icon { color: #5b6779; background: #eef1f6; }
.lv-feed-list strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.lv-feed-list small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.lv-feed-more { margin-top: auto; font-size: 13px; font-weight: 600; }
.lv-empty { margin: 0; padding: 18px 4px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lv-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lv-col h2 { margin: 0; }
.lv-att { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f5f8fd; color: var(--ink); text-decoration: none; }
.lv-att .ui-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.lv-att strong { display: block; font-size: 13px; font-weight: 600; }
.lv-att small { display: block; margin-top: 2px; font-size: 12px; color: #3d4a5e; }
.lv-att-serious { background: #fff2f3; border-color: #f4dadd; }
.lv-att-serious .ui-icon { color: #a3323f; }
.lv-att-warn { background: #fff8ec; border-color: #f6e3bf; }
.lv-att-warn .ui-icon { color: #9a5b00; }
.lv-att-ok { display: block; background: #eefaf6; border-color: #cdeee2; }
a.lv-att:hover { border-color: #b8cbe4; }
.lv-chart { display: block; width: 100%; height: auto; }
.lv-grid { stroke: #e4e9f1; stroke-dasharray: 3 4; }
.lv-baseline { stroke: #c9d3e3; }
.lv-axis { fill: var(--muted); font-size: 11px; }
.lv-value { fill: var(--ink); font-size: 12px; font-weight: 650; }
.lv-hit { fill: transparent; }
.lv-bar { fill: #2450a4; transition: filter .15s ease; }
.lv-hatch-bg { fill: #2450a4; }
.lv-hatch-line { fill: #5878bd; }
.lv-barcol:hover .lv-bar { filter: brightness(1.15); }
.lv-chart-note { margin: -6px 0 0; font-size: 11px; color: var(--muted); }
.lv-table summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--blue); }
.lv-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; }
.lv-table th, .lv-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.lv-leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lv-leaders li { display: grid; gap: 6px; }
.lv-leaders li > span { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.lv-leaders b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.lv-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv-options a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.lv-options a:hover { border-color: #b8cbe4; }
.lv-options strong { display: block; font-size: 13px; font-weight: 600; }
.lv-options small { font-size: 12px; color: var(--muted); }
.lv-tag-warn, .lv-tag-ok { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.lv-tag-warn { color: #8a5200; background: #fff3dc; }
.lv-tag-ok { color: #0f6f80; background: #e6f6f8; }
.lv-setup { display: grid; gap: 16px; margin-bottom: 22px; }
.lv-setup h2 { margin: 6px 0 4px; }
.lv-setup .eyebrow { color: var(--blue); }
.lv-setup ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lv-setup li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.lv-setup li > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.lv-setup strong { display: block; font-size: 14px; font-weight: 600; }
.lv-setup small { font-size: 12px; color: var(--muted); }
.lv-step { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; }
.lv-setup li.is-done .lv-step { background: #2450a4; color: #fff; }
.lv-setup .button.small { width: auto; margin: 0; }
@media (max-width: 760px) { .lv-big strong { font-size: 42px; } .lv-greeting h2 { font-size: 19px; } .lv-root, .lv-row { gap: 18px; } .lv-pct { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .lv-live i, .lv-feed-list li.is-new a { animation: none; } .lv-roof { transition: none; } }

/* KVKK: privacy notice record and optional marketing consent on customers. */
.privacy-box { margin: 26px 0 0; padding: 4px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; min-width: 0; }
.privacy-box legend { padding: 0 6px; font-size: 13px; font-weight: 650; color: var(--blue); }
.privacy-box .check-row { margin-top: 16px; }
.privacy-box .check-row input { accent-color: var(--blue); }
.privacy-box .check-row small { color: var(--muted); }
.privacy-optional { padding-top: 16px; border-top: 1px solid var(--line); }
.privacy-record { display: grid; gap: 3px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #eefaf6; border: 1px solid #cdeee2; font-size: 13px; }
.privacy-record strong { font-weight: 600; color: #23604e; }
.privacy-record span { font-size: 12px; color: #3d4a5e; }
.customer-privacy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.privacy-tag { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.privacy-tag.consent { color: #0f6f80; background: #e6f6f8; }
.privacy-tag.missing { color: #8a5200; background: #fff3dc; }

/* Audit trail: full history page and per-record history. */
.audit-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.audit-filters h2 { margin-bottom: 4px; }
.audit-filters label { font-size: 13px; margin-top: 16px; }
.audit-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.audit-dates input { padding: 10px; font-size: 14px; }
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.audit-list > li { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid #9aa6b6; border-radius: 4px 14px 14px 4px; background: #fff; }
.audit-list > li.audit-sale { border-left-color: #2450a4; }
.audit-list > li.audit-option { border-left-color: #1597ab; }
.audit-list > li.audit-customer { border-left-color: #367cca; }
.audit-list > li.audit-user { border-left-color: #6b5bb5; }
.audit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.audit-head strong { font-size: 14px; font-weight: 600; }
.audit-head time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.audit-meta { margin: 4px 0 0; font-size: 12px; color: #3d4a5e; }
.audit-meta a { color: var(--blue); text-underline-offset: 3px; }
.audit-list ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #3d4a5e; line-height: 1.7; }
.audit-list.compact > li { padding: 10px 12px; }
.record-history { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.record-history h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.record-history .text-link { margin-top: 12px; font-size: 12px; }
@media (max-width: 1000px) { .audit-layout { grid-template-columns: minmax(0, 1fr); } }

/* Sign-in page: brand showcase and a softly glowing card. */
@property --login-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.login-body { display: block; place-items: normal; padding: 0; min-height: 100vh; background: #f3f6fb; overflow-x: hidden; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); min-height: 100vh; }
.login-showcase { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; color: #fff; background: linear-gradient(150deg, #173a7c 0%, var(--blue) 38%, var(--sky) 72%, var(--cyan) 100%); isolation: isolate; }
.login-showcase::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #102c6200 0%, #102c62b3 62%, #0d2452e6 100%), linear-gradient(120deg, #2450a4aa, #29b7ca33); }
.login-orb { position: absolute; z-index: 2; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.orb-1 { width: 380px; height: 380px; left: -90px; top: -80px; background: var(--cyan); animation: login-float 16s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; right: -60px; top: 30%; background: var(--sky); animation: login-float 20s ease-in-out -6s infinite reverse; }
.orb-3 { width: 240px; height: 240px; left: 30%; bottom: -80px; background: #5b8ef0; animation: login-float 18s ease-in-out -3s infinite; }
.login-showcase-content { position: relative; z-index: 3; max-width: 520px; animation: login-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.login-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: #ffffff1f; border: 1px solid #ffffff33; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 550; letter-spacing: .02em; }
.login-chip i { width: 8px; height: 8px; border-radius: 50%; background: #7ff0ff; box-shadow: 0 0 0 0 #7ff0ff99; animation: lv-pulse 2.4s infinite; }
.login-showcase h2 { margin: 22px 0 26px; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.login-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: #e8f1ff; }
.login-points span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #ffffff1a; border: 1px solid #ffffff2e; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.login-stage { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; padding: 48px 32px; background: radial-gradient(ellipse at 100% 0%, #29b7ca14, transparent 55%), radial-gradient(ellipse at 0% 100%, #2450a412, transparent 55%), #f3f6fb; }
.login-glow { position: absolute; width: min(500px, 82%); aspect-ratio: 1 / 1.15; border-radius: 40px; background: conic-gradient(from var(--login-angle), var(--blue), var(--sky), var(--cyan), #7fd8e4, var(--blue)); filter: blur(46px); opacity: .4; animation: login-spin 9s linear infinite, login-breathe 6s ease-in-out infinite; pointer-events: none; }
.login-card { position: relative; z-index: 1; width: min(100%, 440px); border: 1px solid #ffffffcc; background: #ffffffeb; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 2px #20365b0a, 0 30px 80px -20px #2450a440; animation: login-rise .7s cubic-bezier(.2, .7, .2, 1) .1s both; }
.login-card::before { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--blue), var(--sky), var(--cyan), var(--sky), var(--blue)); animation: login-sheen 6s linear infinite; }
.login-card .login-logo { width: 68px; height: 68px; }
.login-field { position: relative; }
.login-field input { transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease; }
.login-field input:focus { box-shadow: 0 0 0 4px #367cca24, 0 8px 22px -10px #2450a466; outline: none; }
.login-field input:focus-visible { outline: none; }
.login-field.has-toggle input { padding-right: 84px; }
.password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: auto; min-height: 36px; margin: 0; padding: 6px 12px; border-radius: 9px; background: var(--sky-soft); color: var(--blue); font-size: 12.5px; font-weight: 600; }
.password-toggle:hover { background: #e0edfc; box-shadow: none; }
.password-toggle[hidden] { display: none; }
.caps-warning { margin: 8px 0 0; font-size: 12px; color: #8a5300; }
.caps-warning[hidden] { display: none; }
.login-submit { position: relative; overflow: hidden; margin-top: 28px; background: linear-gradient(110deg, var(--blue), var(--sky) 55%, var(--cyan)); background-size: 160% 100%; background-position: 0% 0; box-shadow: 0 14px 30px -14px #2450a4b3; transition: background-position .5s ease, transform .18s ease, box-shadow .25s ease; }
.login-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff40 50%, transparent 70%); transform: translateX(-120%); animation: login-shine 4.5s ease-in-out 1.5s infinite; }
.login-submit:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 18px 36px -14px #2450a4cc; }
.login-submit:active { transform: translateY(0); }
.login-submit span { position: relative; z-index: 1; }
.login-submit.is-busy { pointer-events: none; opacity: .85; }
.login-legal { position: relative; z-index: 1; margin: 0; font-size: 11px; color: #7a879a; text-align: center; }
@keyframes login-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.12); } }
@keyframes login-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes login-spin { to { --login-angle: 360deg; } }
@keyframes login-breathe { 0%, 100% { opacity: .32; transform: scale(.96); } 50% { opacity: .5; transform: scale(1.03); } }
@keyframes login-sheen { to { background-position: 200% 0; } }
@keyframes login-shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (max-width: 960px) {
    .login-shell { grid-template-columns: minmax(0, 1fr); }
    .login-showcase { padding: 28px 22px 26px; min-height: 0; }
    .login-showcase h2 { font-size: 22px; margin: 14px 0 0; }
    .login-points { display: none; }
    .orb-1 { width: 220px; height: 220px; }
    .orb-2, .orb-3 { width: 160px; height: 160px; }
    .login-stage { padding: 28px 16px 36px; align-content: start; }
    .login-glow { top: 40px; }
}
@media (max-width: 480px) {
    .login-card { padding: 30px 22px; border-radius: 24px; }
    .login-showcase h2 br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .login-orb, .login-glow, .login-card, .login-card::before, .login-showcase-content, .login-submit::after, .login-chip i { animation: none !important; }
    .login-submit, .login-field input { transition: none; }
}

/* Living overview: brand hero, gentle entrance, soft hover glow. */
.lv-root { position: relative; }
.lv-root::before { content: ""; position: fixed; z-index: -1; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -18vw; top: -22vw; border-radius: 50%; background: radial-gradient(circle, #29b7ca1f, #367cca12 45%, transparent 70%); filter: blur(20px); animation: lv-ambient 26s ease-in-out infinite alternate; pointer-events: none; }
.lv-root > section, .lv-root > .lv-row { animation: lv-enter .7s cubic-bezier(.2, .7, .2, 1) both; }
.lv-root > :nth-child(2) { animation-delay: .12s; }
.lv-root > :nth-child(3) { animation-delay: .24s; }
.lv-root .panel { transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease; }
.lv-row > .panel:hover { transform: translateY(-3px); box-shadow: 0 2px 6px #20365b08, 0 24px 50px -18px #2450a440; border-color: #dbe7f6; }
.lv-hello { display: flex; align-items: center; gap: 12px; }
.lv-clock { padding: 4px 10px; border-radius: 999px; background: #ffffffcc; border: 1px solid #e1e9f4; font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .02em; font-variant-numeric: tabular-nums; vertical-align: middle; }

/* Hero: same brand gradient as the sign-in page. */
.lv-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; border: 0; background: linear-gradient(135deg, #173a7c 0%, var(--blue) 42%, var(--sky) 78%, var(--cyan) 120%); box-shadow: 0 30px 60px -30px #2450a4aa; }
.lv-hero::before, .lv-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.lv-hero::before { width: 420px; height: 420px; right: -80px; top: -160px; background: #29b7ca; opacity: .45; animation: login-float 17s ease-in-out infinite; }
.lv-hero::after { width: 320px; height: 320px; left: 20%; bottom: -200px; background: #5b8ef0; opacity: .5; animation: login-float 21s ease-in-out -5s infinite reverse; }
.lv-hero .eyebrow { color: #a9e9f2; }
.lv-hero .lv-big strong { color: #fff; font-size: 58px; text-shadow: 0 6px 30px #0d24524d; }
.lv-hero .lv-big span { color: #dbe8fb; }
.lv-hero .lv-big b { color: #fff; background: #ffffff26; border: 1px solid #ffffff38; }
.lv-hero .lv-mine { color: #eef4ff; background: #ffffff1a; border-color: #ffffff2e; }
.lv-hero .lv-stack { background: #ffffff1f; height: 18px; border-radius: 9px; }
.lv-hero .lv-stack rect { transform-box: fill-box; transform-origin: left center; animation: lv-grow 1.3s cubic-bezier(.2, .7, .2, 1) .25s both; }
.lv-hero .lv-stack rect:nth-of-type(2) { animation-delay: .55s; }
.lv-hero .lv-stack rect:nth-of-type(3) { animation-delay: .75s; }
.lv-hero .lv-seg-sold { fill: #ffffff; background: #ffffff; }
.lv-hero .lv-seg-optioned { fill: #7fe6f2; background: #7fe6f2; }
.lv-hero .lv-seg-available { fill: #ffffff47; background: #ffffff47; }
.lv-hero .lv-seg-unregistered { fill: #ffffff1a; background: #ffffff1a; border-color: #ffffff40; }
.lv-hero .lv-legend { color: #dbe8fb; }
.lv-hero .lv-legend strong { color: #fff; }
.lv-hero .lv-kpis { border-top-color: #ffffff26; }
.lv-hero .lv-kpis > div { padding: 14px 16px; border-radius: 16px; background: #ffffff14; border: 1px solid #ffffff22; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .25s ease, transform .25s ease; }
.lv-hero .lv-kpis > div:hover { background: #ffffff22; transform: translateY(-2px); }
.lv-hero .lv-kpis span { color: #cfe0f8; }
.lv-hero .lv-kpis strong { color: #fff; }
.lv-hero .lv-kpis small { color: #dbe8fb; }

/* Map: the chosen block breathes. */
.lv-block.is-selected .lv-roof { animation: lv-breathe-roof 2.6s ease-in-out infinite; }
.lv-chip { transition: transform .18s ease, border-color .2s ease, background-color .2s ease; }
.lv-chip:hover { transform: translateY(-1px); }

@keyframes lv-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lv-ambient { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 6vw) scale(1.15); } }
@keyframes lv-breathe-roof { 0%, 100% { stroke-width: 4px; filter: drop-shadow(0 0 0 #ffffff00); } 50% { stroke-width: 5px; filter: drop-shadow(0 0 8px #ffffffcc); } }
@media (max-width: 760px) {
    .lv-hero .lv-big strong { font-size: 44px; }
    .lv-clock { font-size: 12px; }
    .lv-hello { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .lv-root::before, .lv-root > section, .lv-root > .lv-row, .lv-hero::before, .lv-hero::after, .lv-hero .lv-stack rect, .lv-block.is-selected .lv-roof { animation: none !important; }
    .lv-root .panel, .lv-chip, .lv-hero .lv-kpis > div { transition: none; }
    .lv-row > .panel:hover, .lv-hero .lv-kpis > div:hover, .lv-chip:hover { transform: none; }
}

/* Customer delete: what else will be removed. */
.delete-impact { display: grid; gap: 6px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid #f1c9cf; background: #fff4f5; color: #6d2430; font-size: 13px; line-height: 1.55; }
.delete-impact strong { font-weight: 650; }
.delete-impact ul { margin: 2px 0; padding-left: 18px; }
.delete-impact p { margin: 0; }

/* Modern sidebar, brand credit and motto. */
.sidebar { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 55%, #eef6fd 100%); border-right: 1px solid #e3ebf5; box-shadow: 8px 0 40px -28px #2450a440; }
.sidebar::before { height: 3px; background-image: linear-gradient(90deg, var(--blue), var(--sky), var(--cyan), var(--sky), var(--blue)); background-size: 200% 100%; animation: login-sheen 7s linear infinite; }
/* The glow stays inside the menu, so it never creates a scrollbar. */
.sidebar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 320px; background: radial-gradient(240px 240px at 22% 92%, #29b7ca2e, transparent 70%); animation: side-glow 9s ease-in-out infinite alternate; pointer-events: none; z-index: 0; }
@keyframes side-glow { from { opacity: .55; } to { opacity: 1; } }
/* Very short screens can still scroll the menu, without a visible bar. */
.sidebar { overflow-x: hidden; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar > * { position: relative; z-index: 1; }
.sidebar-brand { padding: 0 8px 38px; gap: 12px; }
.brand-symbol { width: 46px; height: 46px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #e3ebf5; box-shadow: 0 8px 20px -10px #2450a455; transition: transform .3s ease, box-shadow .3s ease; }
.sidebar-brand:hover .brand-symbol { transform: rotate(-4deg) scale(1.04); box-shadow: 0 12px 26px -10px #2450a477; }
.brand-text strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1.15; }
.brand-text small { display: block; margin-top: 4px; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(90deg, var(--blue), var(--sky), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-caption { padding: 0 14px 12px; color: #8a97aa; }
.side-nav { gap: 6px; }
.side-nav a { position: relative; gap: 12px; padding: 8px 12px 8px 8px; min-height: 50px; color: #4a5b73; font-weight: 500; border-radius: 14px; transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .3s ease; animation: side-in .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.side-nav a:nth-child(2) { animation-delay: .05s; } .side-nav a:nth-child(3) { animation-delay: .1s; } .side-nav a:nth-child(4) { animation-delay: .15s; } .side-nav a:nth-child(5) { animation-delay: .2s; } .side-nav a:nth-child(6) { animation-delay: .25s; }
.nav-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--sky-soft); transition: background-color .25s ease, transform .25s ease; }
.side-nav a:nth-child(3n + 2) .nav-icon { background: #e9f3fd; }
.side-nav a:nth-child(3n) .nav-icon { background: var(--cyan-soft); }
.side-nav .ui-icon { width: 19px; height: 19px; }
.side-nav a:hover { background: #ffffff; color: var(--blue); transform: translateX(3px); box-shadow: 0 6px 18px -12px #2450a466; }
.side-nav a:hover .nav-icon { transform: scale(1.06); }
.side-nav a.active { color: #fff; font-weight: 600; border-color: transparent; background: linear-gradient(120deg, var(--blue), var(--sky) 70%, var(--cyan)); background-size: 160% 100%; box-shadow: 0 12px 26px -12px #2450a4b3; animation: side-in .5s cubic-bezier(.2, .7, .2, 1) backwards, side-flow 8s ease-in-out infinite alternate; }
.side-nav a.active .nav-icon { background: #ffffff2e; }
.side-nav a.active .ui-icon { color: #fff; }
.side-nav a.active::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 #ffffffaa; animation: lv-pulse 2.4s infinite; }
.sidebar-footer { padding: 30px 4px 0; }
.signed-in-user { padding: 12px; border: 1px solid #e3ebf5; border-radius: 16px; background: #ffffffcc; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; color: var(--ink); transition: box-shadow .25s ease, transform .25s ease; }
.signed-in-user:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px #2450a466; }
.signed-in-user .avatar { position: relative; border: 0; background: var(--sky-soft); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #29b7ca66; overflow: hidden; }
.signed-in-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-password { margin: 14px 8px 0; }
.sidebar-logout { margin: 4px 8px 0; }
.sidebar-credit { margin: 18px 8px 0; padding-top: 14px; border-top: 1px dashed #dbe4f0; font-size: 10.5px; letter-spacing: .04em; color: #8a97aa; }
.sidebar-credit strong { font-weight: 700; letter-spacing: .02em; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--sky), var(--blue)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: login-sheen 6s linear infinite; }
.brand-motto { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; background: linear-gradient(100deg, var(--blue) 0%, var(--sky) 35%, var(--cyan) 50%, var(--sky) 65%, var(--blue) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: motto-in .9s cubic-bezier(.2, .7, .2, 1) both, motto-shine 5s ease-in-out 1s infinite; }
.brand-motto span + span { font-weight: 700; }
@keyframes side-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes side-flow { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes motto-in { from { opacity: 0; transform: translateY(-6px); letter-spacing: .08em; } to { opacity: 1; transform: none; letter-spacing: -.01em; } }
@keyframes motto-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@media (max-width: 1100px) { .brand-motto { display: none; } }
@media (max-width: 760px) {
    .sidebar { box-shadow: none; }
    .sidebar::after, .sidebar-footer .sidebar-credit { display: none; }
    .sidebar-brand { padding: 0; }
    .brand-symbol { width: 38px; height: 38px; padding: 4px; border-radius: 12px; }
    .brand-text strong { font-size: 15px; }
    .signed-in-user { padding: 0; border: 0; background: transparent; box-shadow: none; }
    .bottom-more-menu .sidebar-credit { margin: 6px 12px 4px; padding-top: 10px; display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar::before, .sidebar::after, .side-nav a, .side-nav a.active, .side-nav a.active::after, .sidebar-credit strong, .brand-motto { animation: none !important; }
    .side-nav a:hover, .signed-in-user:hover, .sidebar-brand:hover .brand-symbol { transform: none; }
}

/* Customer card: start a new sale or option for the same customer. */
.customer-new-holding { display: grid; gap: 8px; margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; }
.customer-new-holding .customer-card-title { margin-top: 0; }
.customer-new-holding select { width: 100%; }
.customer-new-holding-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* New customer form: optional sale or option. */
.holding-box { display: grid; gap: 8px; margin: 22px 0; padding: 8px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; min-width: 0; }
.holding-box legend { padding: 0 6px; font-size: 13px; font-weight: 650; color: var(--blue); }
.holding-box .check-row { margin-top: 0; }
.holding-box input[type="radio"] { accent-color: var(--blue); }
.holding-box legend small { font-weight: 400; color: var(--muted); }
.holding-choice { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.holding-fields, .holding-new { display: grid; gap: 8px; }
.holding-fields[hidden], .holding-new[hidden], [data-holding-room][hidden] { display: none; }
.holding-new { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.holding-new-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 12px; }
.holding-new-grid select, .holding-new-grid input, .holding-fields > select { width: 100%; }
.holding-box-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }

/* Custom plan: instalment periods with different monthly amounts. */
.plan-periods { display: grid; gap: 8px; margin-top: 14px; padding: 12px 14px; border: 1px dashed #cfe0f4; border-radius: 12px; background: #fff; }
.plan-periods-title { margin: 0; font-size: 13px; font-weight: 650; color: var(--blue); }
.plan-period { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 2fr) 76px; gap: 0 10px; align-items: end; }
.plan-period[hidden] { display: none; }
.plan-period-name { padding-bottom: 14px; font-size: 13px; font-weight: 650; color: var(--muted); }
.plan-period [data-period-remove] { margin-bottom: 6px; }
.plan-periods [data-period-add] { justify-self: start; }
.plan-periods [data-period-add][hidden] { display: none; }
@media (max-width: 560px) {
    .plan-period { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .plan-period-name { grid-column: 1 / -1; padding: 6px 0 0; }
    .plan-period [data-period-remove] { grid-column: 1 / -1; justify-self: start; }
}

/* Notifications: each user can delete their own. */
.notification-row { position: relative; display: flex; align-items: stretch; gap: 4px; }
.notification-row > .notification-item { flex: 1; min-width: 0; padding-right: 40px; }
.notification-row > form { position: absolute; top: 6px; right: 6px; margin: 0; }
.notification-dismiss { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none; }
.notification-row > form .notification-dismiss { position: static; }
.notification-dismiss:hover, .notification-dismiss:focus-visible { background: #fdecec; color: #b42318; }
.notification-page-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.notification-page-actions form { margin: 0; }
.notification-footer { flex-wrap: wrap; gap: 8px; }

/* History page: one line per entry, details on click. */
.audit-list.folded { gap: 6px; }
.audit-list.folded > li { padding: 0; }
.audit-list.folded summary, .audit-list.folded .audit-row { display: block; padding: 10px 14px; list-style: none; }
.audit-list.folded summary { cursor: pointer; border-radius: 4px 14px 14px 4px; }
.audit-list.folded summary::-webkit-details-marker { display: none; }
.audit-list.folded summary:hover { background: #f6f9fd; }
.audit-list.folded summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.audit-line { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr) auto 14px; gap: 4px 12px; align-items: center; font-size: 13px; }
.audit-list.folded .audit-row .audit-line { grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr) auto 14px; }
.audit-line strong { font-size: 13px; font-weight: 600; }
.audit-line .audit-label, .audit-line .audit-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3d4a5e; }
.audit-line .audit-who { color: var(--muted); }
.audit-line time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.audit-list.folded summary .audit-line::after { content: "›"; color: var(--muted); font-size: 16px; line-height: 1; transition: transform .15s; justify-self: end; }
.audit-list.folded details[open] summary .audit-line::after { transform: rotate(90deg); }
.audit-list.folded .audit-row .audit-line::after { content: ""; }
.audit-more { padding: 0 14px 12px; }
.audit-more ul { margin-top: 0; }
.audit-more .text-link { display: inline-block; margin-top: 6px; font-size: 12px; }
.audit-list > li.audit-audit { border-left-color: #b42318; }
.audit-clear { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.audit-clear summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #b42318; }
.audit-clear form { margin-top: 4px; }
@media (max-width: 700px) {
    .audit-line { grid-template-columns: minmax(0, 1fr) auto; }
    .audit-list.folded .audit-row .audit-line { grid-template-columns: minmax(0, 1fr) auto; }
    .audit-line .audit-label { grid-column: 1 / -1; grid-row: 2; }
    .audit-line .audit-who { grid-column: 1; grid-row: 3; }
    .audit-line time { grid-column: 2; grid-row: 3; }
    .audit-list.folded summary .audit-line::after { grid-column: 2; grid-row: 1; }
}

/* Personal assistant: a round smiling face in the bottom-right corner. */
.assistant { position: fixed; right: 26px; bottom: 24px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.assistant-toggle { position: relative; width: 62px; height: 62px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--sky) 60%, var(--cyan)); box-shadow: 0 14px 30px -10px #2450a4aa, inset 0 -4px 10px #0000001a; cursor: pointer; animation: assistant-bob 4s ease-in-out infinite; transition: transform .25s ease, box-shadow .25s ease; }
.assistant-toggle:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 34px -10px #2450a4cc; }
.assistant-toggle:focus-visible { outline: 3px solid #29b7ca; outline-offset: 4px; }
.assistant-toggle::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #29b7ca55; animation: assistant-ring 3.2s ease-out infinite; pointer-events: none; }
.assistant-face { display: grid; place-items: center; width: 100%; height: 100%; }
.assistant-face svg { width: 40px; height: 40px; }
.assistant-face .face-eyes { fill: #fff; transform-origin: 24px 20px; animation: assistant-blink 5s infinite; }
.assistant-face .face-smile { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; transition: d .3s ease; }
.assistant-face .face-cheek { fill: #ffffff40; }
.assistant-toggle:hover .face-smile, .assistant.is-open .assistant-toggle .face-smile { d: path("M14.5 27.5c2.8 7 16.2 7 19 0"); }
.assistant.is-open .assistant-toggle { animation: none; }
.assistant-badge { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; border: 2px solid #fff; }
.assistant-badge[hidden] { display: none; }
.assistant-panel { width: min(380px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #dce8f5; border-radius: 22px; box-shadow: 0 24px 60px -18px #20365b55; overflow: hidden; transform-origin: bottom right; animation: assistant-pop .28s cubic-bezier(.2, .9, .3, 1.2); }
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: linear-gradient(120deg, #eef5ff, #e9f8fb); border-bottom: 1px solid #e3edf7; }
.assistant-head > div { flex: 1; min-width: 0; }
.assistant-head strong { display: block; font-size: 15px; font-weight: 650; color: var(--ink); }
.assistant-head small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.assistant-face.is-small { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--sky) 60%, var(--cyan)); }
.assistant-face.is-small svg { width: 28px; height: 28px; }
.assistant-close { width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; box-shadow: none; cursor: pointer; }
.assistant-close:hover { background: #ffffffaa; color: var(--ink); }
.assistant-body { overflow-y: auto; padding: 6px 14px 16px; scrollbar-width: thin; }
.assistant-section { margin: 12px 4px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7d8ba0; }
.assistant-tips { display: grid; gap: 8px; }
.assistant-loading { margin: 0; padding: 12px 14px; border-radius: 14px; background: #f6f9fd; font-size: 13px; color: #4a5b73; }
.assistant-tip { display: grid; gap: 3px; padding: 11px 14px; border-radius: 14px; border: 1px solid #e3ebf5; border-left-width: 4px; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.assistant-tip:hover, .assistant-tip:focus-visible { transform: translateX(2px); box-shadow: 0 8px 18px -12px #20365b55; }
.assistant-tip strong { font-size: 13.5px; font-weight: 600; }
.assistant-tip span { font-size: 12px; color: #4a5b73; }
.assistant-tip small { font-size: 11.5px; font-weight: 600; color: var(--blue); }
.assistant-tip.tone-alert { border-left-color: #e5484d; background: #fff7f7; }
.assistant-tip.tone-warn { border-left-color: #f0a020; background: #fffbf2; }
.assistant-tip.tone-info { border-left-color: var(--sky); background: #f7fbff; }
.assistant-tip.tone-good { border-left-color: #2fa36b; background: #f3fbf6; }
.assistant-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.assistant-actions a { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 14px; border: 1px solid #e3ebf5; background: #fbfdff; color: var(--ink); text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.assistant-actions a:hover, .assistant-actions a:focus-visible { border-color: #b9d3ef; background: #f1f7ff; transform: translateY(-1px); }
.assistant-actions a > span:last-child { min-width: 0; }
.assistant-actions strong { display: block; font-size: 12.5px; font-weight: 600; }
.assistant-actions small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant-action-icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--sky-soft); color: var(--blue); }
.assistant-action-icon .ui-icon { width: 17px; height: 17px; }
/* The sale toast moves up so it never hides behind the assistant. */
.notification-toast { bottom: 100px; }
@keyframes assistant-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes assistant-ring { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes assistant-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes assistant-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
    .assistant { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
    .assistant-toggle { width: 54px; height: 54px; }
    .assistant-face svg { width: 34px; height: 34px; }
    .assistant-panel { max-height: calc(100vh - 170px); }
    .notification-toast { bottom: calc(146px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .assistant-toggle, .assistant-toggle::before, .assistant-face .face-eyes, .assistant-panel { animation: none !important; }
}
@media print { .assistant { display: none; } }

/* Guided tour: "?" next to the bell, a spotlight and a small card. */
.tour-toggle { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0; border: 1px solid #dce7f4; border-radius: 13px; background: #fff; color: var(--blue); font-size: 18px; font-weight: 700; line-height: 1; box-shadow: none; cursor: pointer; }
.tour-toggle:hover { background: var(--sky-soft); box-shadow: none; }
.tour-toggle.is-new::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 #29b7ca99; animation: tour-ping 1.8s ease-out infinite; }
.tour-layer { position: fixed; inset: 0; z-index: 90; background: transparent; }
.tour-spot { position: fixed; z-index: 91; left: var(--tour-x, 0); top: var(--tour-y, 0); width: var(--tour-w, 0); height: var(--tour-h, 0); border-radius: 16px; box-shadow: 0 0 0 3px #29b7ca, 0 0 0 9999px #0d1a33b3; pointer-events: none; transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; }
.tour-spot[hidden] { display: block; left: 50%; top: 50%; width: 0; height: 0; box-shadow: 0 0 0 9999px #0d1a33b3; }
.tour-card { position: fixed; z-index: 92; left: var(--tour-x, 50%); top: var(--tour-y, 30%); width: min(360px, calc(100vw - 24px)); padding: 20px 20px 16px; border: 1px solid #dce8f5; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -16px #0d1a3380; outline: none; overflow: hidden; transition: left .3s ease, top .3s ease; }
.tour-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--cyan)); }
.tour-card.is-moving { animation: tour-in .3s ease; }
.tour-count { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--sky); }
.tour-card h2 { margin: 6px 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.tour-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: #3d4a5e; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d5dfec; transition: width .2s ease, background-color .2s ease; }
.tour-dots i.is-on { width: 18px; border-radius: 4px; background: var(--blue); }
.tour-buttons { display: flex; align-items: center; gap: 8px; }
.tour-buttons > span { flex: 1; }
.tour-buttons button { width: auto; min-height: 36px; margin: 0; padding: 8px 14px; font-size: 13px; }
.tour-buttons button[hidden] { display: none; }
.tour-skip { padding: 8px 4px !important; border: 0; background: transparent; color: var(--muted); box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.tour-skip:hover { background: transparent; color: var(--ink); box-shadow: none; }
@keyframes tour-ping { 0% { box-shadow: 0 0 0 0 #29b7ca99; } 80%, 100% { box-shadow: 0 0 0 8px #29b7ca00; } }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .tour-toggle { width: 38px; height: 38px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } .tour-card.is-moving, .tour-toggle.is-new::after { animation: none; } }
@media print { .tour-toggle { display: none; } }

/* Dashboard: who is online now, in a row next to the greeting. */
.lv-greeting { align-items: center; }
.lv-online { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; flex: 1 1 auto; min-width: 0; }
.lv-online-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.lv-online-label i { width: 8px; height: 8px; border-radius: 50%; background: #22a565; box-shadow: 0 0 0 0 #22a56580; animation: lv-online-pulse 2.4s ease-out infinite; }
.lv-online ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lv-online li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border: 1px solid #e3ebf5; border-radius: 999px; background: #ffffffcc; font-size: 12.5px; font-weight: 550; color: var(--ink); }
.lv-online-avatar { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700; background: linear-gradient(140deg, var(--sky), var(--cyan)); }
.lv-online-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #22a565; border: 2px solid #fff; }
.lv-online-admin .lv-online-avatar { background: linear-gradient(140deg, #173a7c, var(--blue)); }
.lv-online-manager .lv-online-avatar { background: linear-gradient(140deg, var(--blue), var(--sky)); }
.lv-online-accountant .lv-online-avatar { background: linear-gradient(140deg, #0f766e, #14b8a6); }
.lv-online li.is-me { border-color: #b9d3ef; background: var(--sky-soft); }
.lv-online-more { padding: 4px 10px !important; color: var(--muted) !important; }
@keyframes lv-online-pulse { 0% { box-shadow: 0 0 0 0 #22a56580; } 70%, 100% { box-shadow: 0 0 0 7px #22a56500; } }
@media (max-width: 1100px) { .lv-online { order: 3; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .lv-online-label i { animation: none; } }

/* Collections: one sale's schedule (also the accountant's sale page). */
.collection-back { margin: 0 0 12px; font-size: 13px; }
.collection-back a { color: var(--blue); font-weight: 550; }
.sale-ledger-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.sale-ledger-head p { margin: 6px 0 0; font-size: 13px; color: #3d4a5e; }
.sale-ledger-head a { color: var(--blue); }
.sale-ledger-cards { margin: 18px 0; }
.sale-ledger-cards > div { box-shadow: none; padding: 14px 16px; }
.sale-ledger-cards dd { font-size: 18px; }
