/* Seven Solutions Housing Portal — corporate design system
   Black and white with a mild steel-blue accent. */

:root {
	--ssp-ink: #0E1116;
	--ssp-accent: #3A6EA5;
	--ssp-accent-soft: color-mix(in srgb, var(--ssp-accent) 9%, #fff);
	--ssp-accent-line: color-mix(in srgb, var(--ssp-accent) 28%, #fff);
	--ssp-text: #1C232B;
	--ssp-muted: #5E6A77;
	--ssp-faint: #8A949F;
	--ssp-line: #E2E6EB;
	--ssp-line-2: #EDF0F3;
	--ssp-bg: #F4F6F8;
	--ssp-card: #FFFFFF;
	--ssp-ok: #1F7A4D;
	--ssp-ok-soft: #E8F4EE;
	--ssp-warn: #9A6200;
	--ssp-warn-soft: #FBF3E3;
	--ssp-bad: #B42318;
	--ssp-bad-soft: #FCEDEB;
	--ssp-r: 6px;
	--ssp-r-lg: 10px;
	--ssp-shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 1px 1px rgba(14, 17, 22, .02);
	--ssp-shadow-lg: 0 12px 32px rgba(14, 17, 22, .14);
	--ssp-side: 252px;
	--ssp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
.ssp-body { margin: 0; background: var(--ssp-bg); }
.ssp-app, .ssp-auth { font-family: var(--ssp-font); font-size: 15px; line-height: 1.5; color: var(--ssp-text); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
.ssp-app *, .ssp-auth *, .ssp-app *::before, .ssp-app *::after { box-sizing: border-box; }
.ssp-app a, .ssp-auth a { color: var(--ssp-accent); text-decoration: none; }
.ssp-app a:hover, .ssp-auth a:hover { text-decoration: underline; }
.ssp-app p { margin: 0 0 .6em; }
.ssp-app img { max-width: 100%; }
.ssp-ico { width: 18px; height: 18px; flex: none; }
.ssp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ssp-accent); outline-offset: 2px; }

/* ---------- Shell ---------- */
.ssp-app { display: grid; grid-template-columns: var(--ssp-side) 1fr; min-height: 100vh; }
.ssp-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ssp-ink); color: #fff; display: flex; flex-direction: column; padding: 22px 14px 14px; }
.ssp-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 4px; }
.ssp-brand__mark { width: 34px; height: 34px; border-radius: 7px; background: #fff; color: var(--ssp-ink); display: grid; place-items: center; font-weight: 700; font-size: 19px; letter-spacing: -.02em; position: relative; }
.ssp-brand__mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 2px; background: var(--ssp-accent); }
.ssp-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.ssp-brand__text strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.ssp-brand__text small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-top: 2px; }
.ssp-brand__logo { max-height: 36px; width: auto; }
.ssp-side__role { margin: 20px 8px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ssp-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ssp-nav__group { margin: 16px 10px 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.36); }
.ssp-app .ssp-nav__link { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--ssp-r); color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; text-decoration: none; }
.ssp-app .ssp-nav__link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.ssp-app .ssp-nav__link.is-active { background: rgba(255,255,255,.09); color: #fff; }
.ssp-nav__link.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ssp-accent); }
.ssp-nav__link .ssp-ico { opacity: .85; }
.ssp-nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ssp-accent); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-grid; place-items: center; }
.ssp-side__foot { border-top: 1px solid rgba(255,255,255,.08); margin-top: 14px; padding-top: 12px; }
.ssp-me { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; min-width: 0; }
.ssp-me__name { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; min-width: 0; }
.ssp-me__name small { font-weight: 400; color: rgba(255,255,255,.5); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssp-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--ssp-accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.ssp-main { min-width: 0; display: flex; flex-direction: column; }
.ssp-top { display: none; }
.ssp-content { width: 100%; max-width: 1240px; padding: 34px 40px 64px; margin: 0 auto; }
.ssp-scrim { display: none; }

/* ---------- Type ---------- */
.ssp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.ssp-head__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ssp-h1 { font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.022em; margin: 0 0 6px; color: var(--ssp-ink); }
.ssp-h2 { font-size: 17px; line-height: 1.3; font-weight: 620; letter-spacing: -.012em; margin: 0 0 12px; color: var(--ssp-ink); }
.ssp-h3 { font-size: 16px; line-height: 1.3; font-weight: 620; letter-spacing: -.01em; margin: 0 0 4px; color: var(--ssp-ink); }
.ssp-sub { color: var(--ssp-muted); margin: 0; max-width: 72ch; }
.ssp-eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ssp-faint); font-weight: 600; margin: 0 0 6px !important; }
.ssp-section { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ssp-muted); font-weight: 650; margin: 30px 0 12px; }
.ssp-muted { color: var(--ssp-muted); }
.ssp-text-bad { color: var(--ssp-bad) !important; }
.ssp-fineprint { margin-top: 22px !important; font-size: 12.5px; color: var(--ssp-faint); max-width: 90ch; }
.ssp-center { text-align: center; margin-top: 18px; }
.ssp-app code { font-size: 12.5px; background: var(--ssp-line-2); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

/* ---------- Layout ---------- */
.ssp-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.ssp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssp-grid--main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ssp-grid--detail { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.ssp-grid--cards { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.ssp-grid--clients { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.ssp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ssp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.ssp-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.ssp-stack { display: flex; flex-direction: column; gap: 18px; }
.ssp-row { display: flex; align-items: center; gap: 12px; }
.ssp-row--between { justify-content: space-between; }
.ssp-pad { padding: 18px 20px 0; }
.ssp-pad.ssp-muted { padding-bottom: 18px; }

/* ---------- Cards ---------- */
.ssp-card { background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); padding: 22px; box-shadow: var(--ssp-shadow); margin-bottom: 0; }
.ssp-grid > .ssp-card, .ssp-stack > .ssp-card { margin: 0; }
.ssp-content > .ssp-card { margin-bottom: 18px; }
.ssp-card--flush { padding: 0; overflow: hidden; }
.ssp-card--accent { border-color: var(--ssp-accent-line); background: var(--ssp-accent-soft); }

/* ---------- Stats ---------- */
.ssp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ssp-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ssp-app a.ssp-stat:hover { text-decoration: none; border-color: var(--ssp-accent-line); }
.ssp-stat { display: flex; flex-direction: column; gap: 6px; background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); padding: 16px 18px; box-shadow: var(--ssp-shadow); color: inherit; position: relative; overflow: hidden; }
.ssp-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.ssp-stat--warn::before { background: #E3A63B; }
.ssp-stat--bad::before { background: var(--ssp-bad); }
.ssp-stat--ok::before { background: var(--ssp-accent); }
.ssp-stat__label { font-size: 12.5px; color: var(--ssp-muted); font-weight: 500; }
.ssp-stat__value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; color: var(--ssp-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }

/* ---------- Buttons ---------- */
.ssp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--ssp-r); border: 1px solid transparent; font: 600 14px/1 var(--ssp-font); letter-spacing: -.005em; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; text-decoration: none !important; }
.ssp-btn .ssp-ico { width: 16px; height: 16px; }
.ssp-btn--primary { background: var(--ssp-ink); color: #fff !important; }
.ssp-btn--primary:hover { background: color-mix(in srgb, var(--ssp-ink) 82%, var(--ssp-accent)); }
.ssp-btn--secondary { background: #fff; border-color: var(--ssp-line); color: var(--ssp-ink) !important; }
.ssp-btn--secondary:hover { border-color: var(--ssp-accent); color: var(--ssp-accent) !important; }
.ssp-btn--ghost { background: transparent; color: var(--ssp-muted) !important; }
.ssp-btn--ghost:hover { background: var(--ssp-line-2); color: var(--ssp-ink) !important; }
.ssp-btn--danger { background: #fff; border-color: #F1C5C0; color: var(--ssp-bad) !important; }
.ssp-btn--danger:hover { background: var(--ssp-bad-soft); }
.ssp-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.ssp-btn--block { width: 100%; height: 44px; }
.ssp-btn:disabled { opacity: .45; cursor: not-allowed; }
.ssp-icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: var(--ssp-r); color: var(--ssp-muted); cursor: pointer; }
.ssp-icon-btn:hover { background: var(--ssp-line-2); color: var(--ssp-ink); }
.ssp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ssp-inline { display: inline-flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.ssp-inline--tight { align-items: center; }
.ssp-inline--tight input, .ssp-inline--tight select { height: 32px; font-size: 13px; }
.ssp-link-danger { color: var(--ssp-bad) !important; font-size: 13px; }

/* ---------- Forms ---------- */
.ssp-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ssp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.ssp-field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ssp-ink); }
.ssp-field > span em { font-style: normal; color: var(--ssp-faint); font-weight: 400; }
.ssp-field small { color: var(--ssp-faint); font-size: 12.5px; }
.ssp-field--sm { max-width: 150px; }
.ssp-field--grow { flex: 1; min-width: 200px; }
.ssp-app input[type=text], .ssp-app input[type=email], .ssp-app input[type=tel], .ssp-app input[type=password], .ssp-app input[type=number], .ssp-app input[type=date], .ssp-app input[type=time], .ssp-app input[type=datetime-local], .ssp-app input[type=url], .ssp-app input[type=search], .ssp-app input:not([type]), .ssp-app select, .ssp-app textarea,
.ssp-auth input[type=text], .ssp-auth input[type=email], .ssp-auth input[type=tel], .ssp-auth input[type=password] {
	width: 100%; height: 40px; padding: 0 12px; border: 1px solid #D5DBE1; border-radius: var(--ssp-r); background: #fff; font: 400 14.5px/1.4 var(--ssp-font); color: var(--ssp-text); transition: border-color .12s, box-shadow .12s; appearance: none; -webkit-appearance: none;
}
.ssp-app textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 64px; }
.ssp-app select { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E6A77' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ssp-app input:focus, .ssp-app select:focus, .ssp-app textarea:focus, .ssp-auth input:focus { outline: none; border-color: var(--ssp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ssp-accent) 18%, transparent); }
.ssp-app input:disabled, .ssp-app select:disabled { background: var(--ssp-line-2); color: var(--ssp-muted); }
.ssp-app input[type=color] { width: 64px; height: 40px; padding: 3px; border: 1px solid #D5DBE1; border-radius: var(--ssp-r); background: #fff; }
.ssp-money { position: relative; display: block; }
.ssp-money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ssp-faint); font-size: 14px; }
.ssp-money input { padding-left: 24px !important; }
.ssp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ssp-text); margin: 0 0 14px; cursor: pointer; line-height: 1.45; }
.ssp-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ssp-ink); flex: none; }
.ssp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ssp-pills--stack { flex-direction: column; align-items: flex-start; }
.ssp-pill { position: relative; cursor: pointer; }
.ssp-pill input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.ssp-pill span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #D5DBE1; border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; transition: all .12s; }
.ssp-pill:hover span { border-color: var(--ssp-ink); }
.ssp-pill input:checked + span { background: var(--ssp-ink); border-color: var(--ssp-ink); color: #fff; }
.ssp-pill input:focus-visible + span { outline: 2px solid var(--ssp-accent); outline-offset: 2px; }
.ssp-pill input:disabled + span { opacity: .45; }
.ssp-upload { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px dashed #BFC7D0; border-radius: var(--ssp-r); cursor: pointer; background: #FAFBFC; position: relative; transition: border-color .12s, background .12s; }
.ssp-upload:hover { border-color: var(--ssp-accent); background: var(--ssp-accent-soft); }
.ssp-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ssp-upload span { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--ssp-ink); }
.ssp-upload small { color: var(--ssp-faint); font-size: 12.5px; }
.ssp-upload.has-file { border-style: solid; border-color: var(--ssp-accent); background: var(--ssp-accent-soft); }
.ssp-upload.has-error { border-color: var(--ssp-bad); background: var(--ssp-bad-soft); }
.ssp-upload--big { display: flex; padding: 26px; align-items: center; text-align: center; }
.ssp-upload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ssp-file-on { font-size: 14px; }
.ssp-code { font-size: 26px !important; letter-spacing: .4em; text-align: center; height: 56px !important; font-variant-numeric: tabular-nums; }
.ssp-signature { font-family: "Brush Script MT", "Segoe Script", cursive !important; font-size: 22px !important; height: 50px !important; }
.ssp-copy { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 12.5px !important; cursor: copy; }

/* Filters */
.ssp-filters { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); padding: 14px 16px 0; margin-bottom: 18px; }
.ssp-filters .ssp-btn, .ssp-filters .ssp-check { margin-bottom: 16px; }
.ssp-filters .ssp-check { align-self: center; margin-top: 10px; }
.ssp-filters__spacer { flex: 1; }

/* ---------- Badges, alerts, notes ---------- */
.ssp-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .005em; white-space: nowrap; vertical-align: middle; }
.ssp-badge--ok { background: var(--ssp-ok-soft); color: var(--ssp-ok); }
.ssp-badge--warn { background: var(--ssp-warn-soft); color: var(--ssp-warn); }
.ssp-badge--bad { background: var(--ssp-bad-soft); color: var(--ssp-bad); }
.ssp-badge--accent { background: var(--ssp-accent-soft); color: var(--ssp-accent); }
.ssp-badge--muted { background: var(--ssp-line-2); color: var(--ssp-muted); }
.ssp-alert { position: relative; padding: 12px 44px 12px 16px; border-radius: var(--ssp-r); margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.ssp-alert--success { background: var(--ssp-ok-soft); border-color: #BFE0CE; color: #155C3A; }
.ssp-alert--error { background: var(--ssp-bad-soft); border-color: #F1C5C0; color: #8E1C13; }
.ssp-alert--info { background: var(--ssp-accent-soft); border-color: var(--ssp-accent-line); color: color-mix(in srgb, var(--ssp-accent) 70%, #000); }
.ssp-alert__x { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 4px 8px; }
.ssp-banner { padding: 14px 18px; border-radius: var(--ssp-r-lg); margin-bottom: 18px; font-size: 14px; border-left: 4px solid; }
.ssp-banner--warn { background: var(--ssp-warn-soft); border-color: #E3A63B; }
.ssp-banner--bad { background: var(--ssp-bad-soft); border-color: var(--ssp-bad); }
.ssp-note { font-size: 13.5px; background: var(--ssp-line-2); border-radius: var(--ssp-r); padding: 10px 12px; margin: 10px 0; }
.ssp-note--warn { background: var(--ssp-warn-soft); color: #6E4600; }
.ssp-callout { background: var(--ssp-accent-soft); border: 1px solid var(--ssp-accent-line); border-radius: var(--ssp-r); padding: 14px 16px; margin: 12px 0 4px; }
.ssp-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ssp-ok); font-weight: 600; font-size: 14px; }
.ssp-ok .ssp-ico { width: 16px; height: 16px; }

/* ---------- Tables ---------- */
.ssp-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.ssp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ssp-table th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ssp-muted); padding: 12px 16px; background: #FAFBFC; border-bottom: 1px solid var(--ssp-line); white-space: nowrap; }
.ssp-table td { padding: 13px 16px; border-bottom: 1px solid var(--ssp-line-2); vertical-align: top; }
.ssp-table tr:last-child td { border-bottom: 0; }
.ssp-table--click tbody tr { cursor: pointer; }
.ssp-table--click tbody tr:hover td { background: #FAFBFC; }
.ssp-table--mini td { padding: 10px 20px; font-size: 13.5px; }
.ssp-table small { font-size: 12.5px; }

/* ---------- Lists ---------- */
.ssp-list { list-style: none; margin: 0 0 12px; padding: 0; }
.ssp-list__i { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ssp-line-2); }
.ssp-list__i:last-child { border-bottom: 0; }
.ssp-list__i > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ssp-list__i small { color: var(--ssp-muted); }
.ssp-list__i .ssp-ico { color: var(--ssp-accent); }
.ssp-rows { list-style: none; margin: 0; padding: 0; }
.ssp-rows li { border-top: 1px solid var(--ssp-line-2); }
.ssp-rows li:first-child { border-top: 0; }
.ssp-rows a { display: flex; flex-direction: column; padding: 12px 20px; color: inherit; }
.ssp-app .ssp-rows a:hover { background: #FAFBFC; text-decoration: none; }
.ssp-rows__flex { display: flex; align-items: center; justify-content: space-between; padding-right: 20px; }
.ssp-rows .ssp-muted { font-size: 13px; }
.ssp-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin: 14px 0; }
.ssp-dl > div { min-width: 0; }
.ssp-dl dt { font-size: 12px; color: var(--ssp-faint); font-weight: 500; margin-bottom: 2px; }
.ssp-dl dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ssp-dl--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssp-dl--tight { gap: 8px 16px; margin: 10px 0; }

/* Alerts list */
.ssp-alerts { list-style: none; margin: 12px 0 0; padding: 0; }
.ssp-alerts__i { display: flex; gap: 12px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--ssp-line-2); font-size: 14px; }
.ssp-alerts__i a { color: var(--ssp-text) !important; }
.ssp-alerts__ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.ssp-alerts__ic .ssp-ico { width: 15px; height: 15px; }
.ssp-alerts__i--bad .ssp-alerts__ic { background: var(--ssp-bad-soft); color: var(--ssp-bad); }
.ssp-alerts__i--warn .ssp-alerts__ic { background: var(--ssp-warn-soft); color: var(--ssp-warn); }

/* Tasks */
.ssp-tasks { list-style: none; margin: 12px 0 0; padding: 0; }
.ssp-tasks__i { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--ssp-line-2); }
.ssp-tasks__i > div { display: flex; flex-direction: column; }
.ssp-tasks__i form { margin: 0; }
.ssp-checkbtn { width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #BFC7D0; border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; color: #fff; }
.ssp-checkbtn:hover { border-color: var(--ssp-ink); }
.ssp-checkbtn.is-done { background: var(--ssp-ink); border-color: var(--ssp-ink); }
.ssp-checkbtn .ssp-ico { width: 13px; height: 13px; }
.ssp-task-form { border-top: 1px solid var(--ssp-line-2); padding-top: 12px; margin-top: 12px; }
.ssp-note-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 14px; }

/* Timeline */
.ssp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ssp-timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 1px; background: var(--ssp-line); }
.ssp-timeline__item { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.ssp-timeline__dot { position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%; background: #fff; border: 1px solid var(--ssp-line); display: grid; place-items: center; flex: none; color: var(--ssp-muted); }
.ssp-timeline__dot .ssp-ico { width: 13px; height: 13px; }
.ssp-tl--star .ssp-timeline__dot, .ssp-tl--placement .ssp-timeline__dot { color: var(--ssp-accent); border-color: var(--ssp-accent-line); }
.ssp-tl--no_show .ssp-timeline__dot, .ssp-tl--warning .ssp-timeline__dot { color: var(--ssp-bad); border-color: #F1C5C0; background: var(--ssp-bad-soft); }
.ssp-tl--payment .ssp-timeline__dot { color: var(--ssp-ok); border-color: #BFE0CE; }
.ssp-timeline__msg { font-size: 14px; margin: 3px 0 1px !important; }
.ssp-timeline__meta { font-size: 12px; color: var(--ssp-faint); margin: 0 !important; }

/* ---------- Tabs, segmented ---------- */
.ssp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ssp-line); margin-bottom: 18px; overflow-x: auto; }
.ssp-app .ssp-tabs__t { padding: 10px 14px; color: var(--ssp-muted); font-weight: 550; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ssp-app .ssp-tabs__t:hover { color: var(--ssp-ink); text-decoration: none; }
.ssp-app .ssp-tabs__t.is-active { color: var(--ssp-ink); border-bottom-color: var(--ssp-ink); }
.ssp-tabs__n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--ssp-line-2); font-size: 11.5px; color: var(--ssp-muted); }
.ssp-seg { display: inline-flex; background: var(--ssp-line-2); padding: 3px; border-radius: 8px; gap: 2px; margin-bottom: 20px; }
.ssp-seg--sm { margin: 0; }
.ssp-app .ssp-seg__b, .ssp-auth .ssp-seg__b { padding: 7px 14px; border-radius: 6px; color: var(--ssp-muted); font-weight: 600; font-size: 13.5px; }
.ssp-app .ssp-seg__b:hover, .ssp-auth .ssp-seg__b:hover { color: var(--ssp-ink); text-decoration: none; }
.ssp-app .ssp-seg__b.is-active, .ssp-auth .ssp-seg__b.is-active { background: #fff; color: var(--ssp-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Progress / steps ---------- */
.ssp-meter { height: 6px; border-radius: 3px; background: var(--ssp-line-2); overflow: hidden; margin: 10px 0 8px; }
.ssp-meter span { display: block; height: 100%; background: var(--ssp-accent); border-radius: 3px; transition: width .3s; }
.ssp-progress-card { margin-bottom: 18px; padding: 18px 22px; }
.ssp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: s; }
.ssp-steps__s { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ssp-faint); position: relative; padding-top: 2px; }
.ssp-steps__s::after { content: ""; position: absolute; top: 15px; left: 34px; right: 4px; height: 1px; background: var(--ssp-line); }
.ssp-steps__s:last-child::after { display: none; }
.ssp-steps__n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ssp-line); background: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.ssp-steps__n .ssp-ico { width: 14px; height: 14px; }
.ssp-steps__s.is-done { color: var(--ssp-text); }
.ssp-steps__s.is-done .ssp-steps__n { background: var(--ssp-ink); border-color: var(--ssp-ink); color: #fff; }
.ssp-steps__s.is-done::after { background: var(--ssp-ink); }
.ssp-steps__s.is-current { color: var(--ssp-ink); font-weight: 600; }
.ssp-steps__s.is-current .ssp-steps__n { border: 2px solid var(--ssp-accent); color: var(--ssp-accent); }
.ssp-checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.ssp-checklist li { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 14.5px; }
.ssp-checklist__b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #BFC7D0; display: grid; place-items: center; flex: none; color: #fff; }
.ssp-checklist li.is-done { color: var(--ssp-muted); }
.ssp-checklist li.is-done .ssp-checklist__b { background: var(--ssp-ink); border-color: var(--ssp-ink); }
.ssp-checklist__b .ssp-ico { width: 13px; height: 13px; }

/* Wizard */
.ssp-wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.ssp-wizard__rail { position: sticky; top: 24px; }
.ssp-wizard__steps { list-style: none; margin: 16px 0 0; padding: 0; }
.ssp-wizard__steps a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--ssp-r); color: var(--ssp-muted) !important; font-size: 14px; font-weight: 500; }
.ssp-wizard__steps a:hover { background: #fff; text-decoration: none !important; }
.ssp-wizard__steps .is-current a { background: #fff; color: var(--ssp-ink) !important; font-weight: 600; box-shadow: var(--ssp-shadow); border: 1px solid var(--ssp-line); }
.ssp-wizard__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #CDD4DB; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #fff; flex: none; }
.ssp-wizard__n .ssp-ico { width: 12px; height: 12px; }
.ssp-wizard__steps .is-done .ssp-wizard__n { background: var(--ssp-ink); border-color: var(--ssp-ink); color: #fff; }
.ssp-wizard__steps .is-current .ssp-wizard__n { border: 2px solid var(--ssp-accent); color: var(--ssp-accent); background: #fff; }
.ssp-wizard__panel { padding: 30px 32px; }
.ssp-wizard__panel .ssp-h2 { font-size: 22px; margin-bottom: 20px; }
.ssp-wizard__nav { display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--ssp-line-2); padding-top: 18px; margin-top: 8px; flex-wrap: wrap; }
.ssp-wizard__nav .ssp-btn--ghost { margin-right: auto; }
.ssp-repeat__row { display: grid; grid-template-columns: 1fr 100px 180px 34px; gap: 12px; align-items: end; }
.ssp-repeat__row .ssp-icon-btn { margin-bottom: 19px; }
.ssp-review { border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); margin-bottom: 18px; }
.ssp-review__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ssp-line-2); font-size: 14px; }
.ssp-review__row:first-child { border-top: 0; }
.ssp-review__row p { margin: 0 !important; }
.ssp-review__l { font-size: 12px !important; color: var(--ssp-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px !important; }
.ssp-terms { border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); margin-bottom: 16px; }
.ssp-terms summary { padding: 12px 16px; font-weight: 600; cursor: pointer; font-size: 14px; }
.ssp-terms__body { padding: 0 16px 6px; font-size: 13.5px; color: var(--ssp-muted); }
.ssp-terms__body--scroll { max-height: 280px; overflow-y: auto; border: 1px solid var(--ssp-line-2); border-radius: var(--ssp-r); padding: 14px 16px; margin-bottom: 16px; background: #FAFBFC; }

/* ---------- Photos / media ---------- */
.ssp-photo { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--ssp-line-2); color: var(--ssp-muted); font-weight: 650; }
.ssp-photo--md { width: 46px; height: 46px; font-size: 17px; }
.ssp-photo--lg { width: 64px; height: 64px; font-size: 22px; }
.ssp-photo--blank { background: var(--ssp-accent-soft); color: var(--ssp-accent); }
.ssp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ssp-thumb { position: relative; margin: 0; width: 92px; height: 92px; border-radius: var(--ssp-r); overflow: hidden; border: 1px solid var(--ssp-line); }
.ssp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ssp-thumb__x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(14,17,22,.75); color: #fff !important; display: grid; place-items: center; }
.ssp-thumb__x .ssp-ico { width: 13px; height: 13px; }
.ssp-flyer-prev { max-height: 120px; border-radius: var(--ssp-r); border: 1px solid var(--ssp-line); }
.ssp-doc { display: inline-flex; align-items: center; gap: 5px; font-weight: 550; }
.ssp-doc .ssp-ico { width: 15px; height: 15px; }
.ssp-docs { list-style: none; padding: 0; margin: 0; }
.ssp-docs li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--ssp-line-2); font-size: 14px; flex-wrap: wrap; }
.ssp-docs li > span:first-child { font-weight: 600; }

/* Match / home cards */
.ssp-match { background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); overflow: hidden; box-shadow: var(--ssp-shadow); display: flex; flex-direction: column; }
.ssp-match__media { position: relative; aspect-ratio: 16 / 10; background: var(--ssp-line-2); }
.ssp-match__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssp-match__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #B8C1CA; background: linear-gradient(135deg, #F1F4F7, #E6EBF0); }
.ssp-match__ph .ssp-ico { width: 42px; height: 42px; }
.ssp-match__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ssp-match__body .ssp-actions { margin-top: auto; padding-top: 14px; }
.ssp-gal { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ssp-ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ssp-gal--prev { left: 10px; } .ssp-gal--next { right: 10px; }
.ssp-gal__count { position: absolute; right: 10px; bottom: 10px; background: rgba(14,17,22,.72); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 10px; }
.ssp-facts { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ssp-muted); }
.ssp-facts li { display: flex; gap: 8px; align-items: center; }
.ssp-facts .ssp-ico { width: 15px; height: 15px; color: var(--ssp-faint); }
.ssp-facts-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ssp-muted); }
.ssp-facts-line .ssp-ico { width: 15px; height: 15px; }

/* Client cards (operator browse) */
.ssp-client { background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); box-shadow: var(--ssp-shadow); padding: 20px; display: flex; flex-direction: column; }
.ssp-client__head { display: flex; gap: 14px; align-items: center; }
.ssp-client__head > div { flex: 1; min-width: 0; }
.ssp-client__head p { margin: 0 !important; font-size: 13.5px; }
.ssp-client__foot { border-top: 1px solid var(--ssp-line-2); margin-top: 14px; padding-top: 12px; display: flex; justify-content: flex-end; }
.ssp-fitbadge { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ssp-fitbadge--strong { background: var(--ssp-accent-soft); color: var(--ssp-accent); }
.ssp-fitbadge--weak { background: var(--ssp-line-2); color: var(--ssp-muted); }
.ssp-fits { display: flex; flex-direction: column; gap: 10px; }
.ssp-fit { border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); padding: 12px 14px; }
.ssp-fit--strong { border-color: var(--ssp-accent-line); background: color-mix(in srgb, var(--ssp-accent) 4%, #fff); }
.ssp-fit__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 14px; }
.ssp-fit__score { font-size: 12px; font-weight: 650; color: var(--ssp-muted); font-variant-numeric: tabular-nums; }
.ssp-fit__checks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12.5px; }
.ssp-fit__checks li { display: flex; gap: 5px; align-items: center; color: var(--ssp-muted); }
.ssp-fit__checks .ssp-ico { width: 13px; height: 13px; }
.ssp-fit__checks .ok .ssp-ico { color: var(--ssp-ok); }
.ssp-fit__checks .no { color: var(--ssp-faint); }
.ssp-fit__checks .no .ssp-ico { color: #C7CED6; }

/* Swipe */
.ssp-swipe { position: relative; max-width: 460px; margin: 0 auto; min-height: 620px; }
.ssp-swipe__card { position: absolute; inset: 0 0 auto 0; touch-action: pan-y; transition: transform .28s ease, opacity .28s ease; will-change: transform; user-select: none; box-shadow: var(--ssp-shadow-lg); }
.ssp-swipe__card.is-gone { pointer-events: none; opacity: 0; }
.ssp-swipe__card.go-right { transform: translateX(130%) rotate(12deg); }
.ssp-swipe__card.go-left { transform: translateX(-130%) rotate(-12deg); }
.ssp-swipe__done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ssp-muted); z-index: -1; }

/* Tours */
.ssp-tour { display: flex; gap: 20px; }
.ssp-tour__when { width: 74px; flex: none; text-align: center; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); padding: 8px 4px; align-self: flex-start; display: flex; flex-direction: column; background: #FAFBFC; }
.ssp-tour__day { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ssp-accent); font-weight: 700; }
.ssp-tour__date { font-size: 26px; font-weight: 650; color: var(--ssp-ink); line-height: 1.1; }
.ssp-tour__time { font-size: 12px; color: var(--ssp-muted); }
.ssp-tour__body { flex: 1; min-width: 0; }
.ssp-more { margin-top: 12px; border-top: 1px solid var(--ssp-line-2); padding-top: 10px; }
.ssp-more summary { cursor: pointer; color: var(--ssp-muted); font-size: 13.5px; font-weight: 550; }
.ssp-more[open] summary { margin-bottom: 12px; }
.ssp-more .ssp-inline { margin-bottom: 10px; }
.ssp-suggest { margin: 4px 0 14px; }
.ssp-suggest summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ssp-accent); margin-bottom: 10px; }
.ssp-slots { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow-y: auto; }
.ssp-slots .ssp-pill span { height: 34px; font-size: 13px; }
.ssp-offer .ssp-dl { border-top: 1px solid var(--ssp-line-2); border-bottom: 1px solid var(--ssp-line-2); padding: 14px 0; }

/* Decide bar (admin) */
.ssp-decide { padding: 14px 18px; margin-bottom: 18px !important; }
.ssp-decide__btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ssp-decide .ssp-note { margin-bottom: 0; }

/* Inbox */
.ssp-inbox { list-style: none; margin: 0; padding: 0; }
.ssp-inbox__i { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--ssp-line-2); }
.ssp-inbox__i:first-child { border-top: 0; }
.ssp-inbox__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.ssp-inbox__i.is-unread { background: color-mix(in srgb, var(--ssp-accent) 4%, #fff); }
.ssp-inbox__i.is-unread .ssp-inbox__dot { background: var(--ssp-accent); }
.ssp-inbox__s { font-weight: 600; margin: 0 0 2px !important; }
.ssp-inbox__b { font-size: 14px; color: var(--ssp-muted); margin: 0 0 4px !important; }
.ssp-inbox__m { font-size: 12.5px; color: var(--ssp-faint); margin: 0 !important; }

/* Chat */
.ssp-chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100vh - 200px); min-height: 480px; background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); overflow: hidden; box-shadow: var(--ssp-shadow); }
.ssp-chat__list { border-right: 1px solid var(--ssp-line); overflow-y: auto; }
.ssp-app .ssp-chat__t { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ssp-line-2); color: inherit; }
.ssp-app .ssp-chat__t:hover { background: #FAFBFC; text-decoration: none; }
.ssp-chat__t.is-active { background: var(--ssp-accent-soft); }
.ssp-chat__tt { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; }
.ssp-chat__tt small { color: var(--ssp-muted); font-size: 12.5px; }
.ssp-chat__pane { display: flex; flex-direction: column; min-width: 0; }
.ssp-chat__head { padding: 14px 20px; border-bottom: 1px solid var(--ssp-line); display: flex; flex-direction: column; }
.ssp-chat__head small { color: var(--ssp-faint); font-size: 12.5px; }
.ssp-chat__msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFC; }
.ssp-msg { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.ssp-msg__b { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--ssp-line); font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ssp-msg__m { font-size: 11.5px; color: var(--ssp-faint); padding: 0 4px; }
.ssp-msg--mine { align-self: flex-end; align-items: flex-end; }
.ssp-msg--mine .ssp-msg__b { background: var(--ssp-ink); color: #fff; border-color: var(--ssp-ink); border-radius: 14px 14px 4px 14px; }
.ssp-chat__form { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--ssp-line); align-items: flex-end; }
.ssp-chat__form textarea { min-height: 40px !important; max-height: 160px; height: 40px; }
.ssp-chat__empty, .ssp-chat__closed { padding: 40px; text-align: center; color: var(--ssp-faint); }

/* Events */
.ssp-event { display: flex; flex-direction: column; }
.ssp-event__flyer { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--ssp-line); }
.ssp-event__body { padding: 18px 20px 20px; }
.ssp-event__desc { font-size: 14px; color: var(--ssp-muted); margin: 8px 0; }

/* Week calendar */
.ssp-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; }
.ssp-legend .ssp-ev { padding: 3px 9px; margin: 0; }
.ssp-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ssp-week__day { background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); padding: 10px; min-height: 220px; }
.ssp-week__day.is-today { border-color: var(--ssp-accent); box-shadow: 0 0 0 1px var(--ssp-accent); }
.ssp-week__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px !important; font-size: 12px; color: var(--ssp-muted); text-transform: uppercase; letter-spacing: .08em; }
.ssp-week__h strong { font-size: 18px; color: var(--ssp-ink); letter-spacing: 0; }
.ssp-week__none { color: #C7CED6; text-align: center; margin-top: 30px !important; }
.ssp-ev { display: flex; flex-direction: column; font-size: 12px; padding: 6px 8px; border-radius: 5px; margin-bottom: 6px; border-left: 3px solid; line-height: 1.35; }
.ssp-ev strong { font-weight: 600; }
.ssp-ev small { color: var(--ssp-muted); }
.ssp-ev--open { background: var(--ssp-ok-soft); border-color: var(--ssp-ok); }
.ssp-ev--blocked { background: var(--ssp-bad-soft); border-color: var(--ssp-bad); }
.ssp-ev--tour { background: var(--ssp-accent-soft); border-color: var(--ssp-accent); }

/* Reports */
.ssp-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; height: 240px; align-items: end; padding-top: 10px; }
.ssp-bars__col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.ssp-bars__stack { position: relative; width: 100%; max-width: 44px; height: calc(100% - 40px); display: flex; align-items: flex-end; justify-content: center; }
.ssp-bars__b { position: absolute; bottom: 0; width: 100%; border-radius: 3px 3px 0 0; min-height: 1px; }
.ssp-bars__b--b { background: var(--ssp-line); }
.ssp-bars__b--a { background: var(--ssp-accent); width: 60%; }
.ssp-bars__v { font-size: 10.5px; color: var(--ssp-muted); font-variant-numeric: tabular-nums; min-height: 14px; }
.ssp-bars__l { font-size: 11.5px; color: var(--ssp-faint); }
.ssp-key { display: inline-flex; align-items: center; gap: 6px; color: var(--ssp-muted); }
.ssp-key::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.ssp-key--a::before { background: var(--ssp-accent); }
.ssp-key--b::before { background: var(--ssp-line); }
.ssp-hbars { list-style: none; margin: 0; padding: 0; }
.ssp-hbars li { display: grid; grid-template-columns: 150px 1fr 36px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.ssp-hbars__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssp-hbars__track { height: 10px; background: var(--ssp-line-2); border-radius: 5px; overflow: hidden; }
.ssp-hbars__track span { display: block; height: 100%; background: var(--ssp-ink); border-radius: 5px; }
.ssp-hbars__v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Automations */
.ssp-autos { display: flex; flex-direction: column; gap: 10px; }
.ssp-auto { padding: 0; }
.ssp-auto__sum { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ssp-auto__sum::-webkit-details-marker { display: none; }
.ssp-auto__t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ssp-auto__t small { color: var(--ssp-muted); font-size: 12.5px; }
.ssp-auto__ch { font-size: 12.5px; color: var(--ssp-faint); white-space: nowrap; }
.ssp-auto__body { padding: 4px 18px 6px 70px; border-top: 1px solid var(--ssp-line-2); padding-top: 16px; }
.ssp-switch { position: relative; width: 38px; height: 22px; flex: none; }
.ssp-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.ssp-switch span { position: absolute; inset: 0; background: #CDD4DB; border-radius: 11px; transition: background .15s; }
.ssp-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ssp-switch input:checked + span { background: var(--ssp-accent); }
.ssp-switch input:checked + span::after { transform: translateX(16px); }
.ssp-sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--ssp-bg) 70%, transparent); padding: 18px 0 8px; display: flex; gap: 8px; }

/* Menu popover */
.ssp-menu { position: relative; }
.ssp-menu summary { list-style: none; }
.ssp-menu summary::-webkit-details-marker { display: none; }
.ssp-menu__pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 280px; background: #fff; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-lg); box-shadow: var(--ssp-shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ssp-menu__pop form { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ssp-menu__pop .ssp-field { margin-bottom: 4px; width: 100%; }
.ssp-menu__pop input[type=text] { height: 34px; }

/* Modal */
.ssp-modal { border: 0; padding: 0; border-radius: var(--ssp-r-lg); box-shadow: var(--ssp-shadow-lg); width: min(560px, calc(100vw - 32px)); font-family: var(--ssp-font); color: var(--ssp-text); }
.ssp-modal::backdrop { background: rgba(14, 17, 22, .45); }
.ssp-modal form { padding: 22px 24px; }
.ssp-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* Empty state */
.ssp-empty-state { text-align: center; background: var(--ssp-card); border: 1px dashed #CDD4DB; border-radius: var(--ssp-r-lg); padding: 48px 24px; color: var(--ssp-muted); }
.ssp-empty-state__t { font-size: 17px; font-weight: 620; color: var(--ssp-ink); margin-bottom: 4px !important; }
.ssp-empty-state .ssp-btn { margin-top: 10px; }
.ssp-empty { color: var(--ssp-faint); }

/* ---------- Auth ---------- */
.ssp-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.ssp-auth__panel { background: var(--ssp-ink); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ssp-auth__panel::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.015); }
.ssp-brand--light { padding: 0; }
.ssp-auth__claim { font-size: 38px; line-height: 1.12; letter-spacing: -.03em; font-weight: 650; margin: auto 0 28px; max-width: 14ch; color: #fff; }
.ssp-auth__points { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.ssp-auth__points li { display: flex; gap: 14px; font-size: 15px; color: rgba(255,255,255,.72); }
.ssp-auth__points strong { color: #fff; font-weight: 600; }
.ssp-auth__points .ssp-ico { width: 20px; height: 20px; color: var(--ssp-accent); margin-top: 2px; filter: brightness(1.5); }
.ssp-auth__foot { font-size: 12.5px; color: rgba(255,255,255,.4); margin: 0; }
.ssp-auth__form { display: grid; place-items: center; padding: 40px 24px; background: var(--ssp-bg); }
.ssp-auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--ssp-line); border-radius: 14px; padding: 32px; box-shadow: var(--ssp-shadow); }
.ssp-auth .ssp-sub { margin-bottom: 22px; }
.ssp-auth .ssp-field { margin-bottom: 14px; }
.ssp-auth .ssp-seg { display: flex; }
.ssp-auth .ssp-seg__b { flex: 1; text-align: center; }
.ssp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ssp-choice__o { position: relative; cursor: pointer; }
.ssp-choice__o input { position: absolute; opacity: 0; }
.ssp-choice__o span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid #D5DBE1; border-radius: var(--ssp-r); font-size: 14px; transition: all .12s; height: 100%; }
.ssp-choice__o small { color: var(--ssp-muted); font-size: 12.5px; }
.ssp-choice__o input:checked + span { border-color: var(--ssp-ink); box-shadow: inset 0 0 0 1px var(--ssp-ink); background: #FAFBFC; }
.ssp-choice__o input:focus-visible + span { outline: 2px solid var(--ssp-accent); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.ssp-stats, .ssp-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ssp-grid--main, .ssp-grid--detail { grid-template-columns: 1fr; }
	.ssp-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ssp-app { grid-template-columns: 1fr; }
	.ssp-side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; }
	.ssp-app.nav-open .ssp-side { transform: none; }
	.ssp-app.nav-open .ssp-scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(14,17,22,.45); }
	.ssp-top { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; gap: 10px; height: 56px; padding: 0 10px; background: var(--ssp-ink); color: #fff; }
	.ssp-top__menu { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
	.ssp-top__brand { font-weight: 650; font-size: 15px; flex: 1; letter-spacing: -.01em; }
	.ssp-app .ssp-top__bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
	.ssp-dot { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ssp-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
	.ssp-content { padding: 22px 16px 56px; }
	.ssp-h1 { font-size: 23px; }
	.ssp-grid--2, .ssp-grid2, .ssp-grid3, .ssp-grid4 { grid-template-columns: 1fr; }
	.ssp-grid--clients, .ssp-grid--cards { grid-template-columns: 1fr; }
	.ssp-stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ssp-wizard { grid-template-columns: 1fr; }
	.ssp-wizard__rail { position: static; }
	.ssp-wizard__steps { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
	.ssp-wizard__steps a { white-space: nowrap; }
	.ssp-wizard__panel { padding: 22px 18px; }
	.ssp-repeat__row { grid-template-columns: 1fr 80px 34px; }
	.ssp-repeat__row .ssp-field:nth-child(3) { grid-column: 1 / 3; }
	.ssp-steps { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
	.ssp-steps__s::after { display: none; }
	.ssp-chat { grid-template-columns: 1fr; height: auto; }
	.ssp-chat__list { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--ssp-line); }
	.ssp-chat__msgs { min-height: 50vh; }
	.ssp-week { grid-template-columns: 1fr; }
	.ssp-week__day { min-height: 0; }
	.ssp-dl--grid { grid-template-columns: 1fr; }
	.ssp-auth { grid-template-columns: 1fr; }
	.ssp-auth__panel { padding: 28px 24px; }
	.ssp-auth__claim { font-size: 28px; margin: 28px 0 18px; }
	.ssp-auth__points { margin-bottom: 8px; }
	.ssp-auth__card { padding: 24px 20px; }
	.ssp-bars { gap: 4px; }
	.ssp-bars__v { display: none; }
	.ssp-auto__body { padding-left: 18px; }
	.ssp-hbars li { grid-template-columns: 110px 1fr 30px; }
	/* Tables become stacked cards */
	.ssp-table thead { display: none; }
	.ssp-table, .ssp-table tbody, .ssp-table tr, .ssp-table td { display: block; width: 100%; }
	.ssp-table tr { padding: 12px 16px; border-bottom: 1px solid var(--ssp-line-2); }
	.ssp-table td { padding: 3px 0; border: 0; }
	.ssp-table td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ssp-faint); font-weight: 600; }
	.ssp-table--mini td { padding: 3px 0; }
	.ssp-tour { flex-direction: column; gap: 12px; }
	.ssp-tour__when { flex-direction: row; gap: 8px; width: auto; align-items: baseline; padding: 6px 10px; }
	.ssp-tour__date { font-size: 18px; }
	.ssp-head { align-items: flex-start; }
	.ssp-swipe { min-height: 680px; }
}
@media (prefers-reduced-motion: reduce) {
	.ssp-app *, .ssp-auth * { transition: none !important; }
}

/* No cross-page transitions inside the app (some block themes enable them). */
@view-transition { navigation: none; }
html { margin-top: 0 !important; }
