/*
 * Seven Solutions Business Manager — plugin screens.
 * Loads after portal-brand.css and uses only its tokens (color, type, radius, depth).
 * Everything is scoped to .ssp. No other fonts, colors or radii live here.
 */

/* ---------- Base adjustments ---------- */

.ssp .ssp-icon { display: inline-block; vertical-align: -0.22em; }
.ssp .ssp-icon--sm { width: 16px; height: 16px; }
.ssp p { margin: 0 0 0.6em; }
.ssp p:last-child { margin-bottom: 0; }
.ssp img { max-width: 100%; }
.ssp code { padding: 1px 6px; border-radius: 6px; background: var(--ssp-canvas); font-size: 13px; overflow-wrap: anywhere; }
@view-transition { navigation: none; }
html { margin-top: 0 !important; }

/* ---------- Shell ---------- */

.ssp-sidebar .ssp-nav a > span:first-of-type { flex: 1; min-width: 0; }
.ssp-sidebar .ssp-nav a .ssp-icon { width: 20px; height: 20px; }
.ssp-sidebar .ssp-avatar--onink { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.ssp-mobilebar__actions { display: flex; gap: 8px; }
.ssp-content > .ssp-alert--block:first-child { margin-top: 12px; }

/* ---------- Type helpers ---------- */

.ssp .ssp-h1 { font-family: var(--ssp-display); font-size: 30px; font-weight: 720; line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 6px; }
.ssp .ssp-h2 { font-family: var(--ssp-display); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 12px; }
.ssp .ssp-h3 { font-family: var(--ssp-display); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.008em; margin: 0 0 4px; }
.ssp .ssp-h2 a, .ssp .ssp-h3 a { color: inherit; }
.ssp .ssp-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ssp-muted); }
.ssp .ssp-section { margin: 28px 0 12px; font-family: var(--ssp-display); font-size: 17px; font-weight: 700; color: var(--ssp-ink); }
.ssp .ssp-sub { color: var(--ssp-muted); }
.ssp .ssp-muted { color: var(--ssp-muted); }
.ssp .ssp-text-bad { color: var(--ssp-bad); font-weight: 600; }
.ssp .ssp-fineprint { margin-top: 20px; font-size: 13px; color: var(--ssp-muted); max-width: 90ch; }
.ssp .ssp-center { text-align: center; margin-top: 16px; }
.ssp .ssp-pagehead p .ssp-chip { vertical-align: 1px; }
.ssp .ssp-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ssp-ok); font-weight: 600; }
.ssp .ssp-note { margin: 10px 0; padding: 10px 14px; border-radius: var(--ssp-r-sm); background: var(--ssp-canvas); font-size: 14px; color: var(--ssp-ink-2); }
.ssp .ssp-note--warn { background: var(--ssp-warn-bg); color: var(--ssp-warn); }
.ssp .ssp-callout { margin: 12px 0 4px; padding: 14px 16px; border-radius: var(--ssp-r-sm); background: var(--ssp-sky-tint); }
.ssp .ssp-link-danger { color: var(--ssp-bad); font-weight: 600; font-size: 14px; }

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

.ssp .ssp-grid { margin-bottom: 16px; }
.ssp .ssp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssp .ssp-grid--main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ssp .ssp-grid--detail { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.ssp .ssp-grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ssp .ssp-grid--clients { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.ssp .ssp-grid2, .ssp .ssp-grid3, .ssp .ssp-grid4 { display: grid; gap: 0 16px; }
.ssp .ssp-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssp .ssp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ssp .ssp-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ssp .ssp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ssp .ssp-row--between { justify-content: space-between; }
.ssp .ssp-pad { padding: 18px 20px 6px; }
.ssp .ssp-pad.ssp-muted { padding-bottom: 18px; }
.ssp .ssp-content > .ssp-card, .ssp .ssp-content > form.ssp-card, .ssp .ssp-content > section.ssp-card { margin-bottom: 16px; }
.ssp .ssp-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards: the brand card has no padding; plugin cards hold content directly. */
.ssp .ssp-card { padding: 20px; }
.ssp .ssp-card--flush { padding: 0; overflow: hidden; }
.ssp .ssp-card--accent { background: var(--ssp-sky-tint); border-color: var(--ssp-sky-tint); }
.ssp .ssp-card__titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ssp .ssp-card__title--pad { margin-bottom: 14px; }
.ssp .ssp-card--flush > .ssp-h2.ssp-pad { margin: 0; padding-bottom: 12px; }
.ssp .ssp-decisions { display: grid; gap: 10px; }
.ssp .ssp-alert__body { flex: 1; min-width: 0; }
.ssp .ssp-decisions .ssp-btn { margin-top: 10px; }

/* Stat tiles as links */
.ssp a.ssp-tile { color: var(--ssp-ink); text-decoration: none; transition: border-color 0.15s ease, transform 0.2s var(--ssp-ease); }
.ssp a.ssp-tile:hover { border-color: var(--ssp-line-strong); transform: translateY(-1px); }
.ssp a.ssp-tile--feature { color: #fff; }
.ssp a.ssp-tile--feature:hover { border-color: var(--ssp-blue-deep); }

/* ---------- Buttons and inline forms ---------- */

.ssp .ssp-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ssp-muted); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.ssp .ssp-icon-btn:hover { background: var(--ssp-canvas); color: var(--ssp-ink); }
.ssp .ssp-actions { align-items: center; margin-top: 14px; }
.ssp .ssp-pagehead .ssp-actions { margin-top: 0; }
.ssp .ssp-inline { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.ssp .ssp-inline .ssp-field { margin-bottom: 0; }
.ssp .ssp-inline--tight { align-items: center; }
.ssp .ssp-inline--tight input, .ssp .ssp-inline--tight select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; width: auto; }
.ssp .ssp-btn .ssp-icon { width: 18px; height: 18px; }
.ssp .ssp-btn--sm .ssp-icon { width: 16px; height: 16px; }

/* ---------- Forms (plugin fields: <label class="ssp-field"><span>Label</span><input></label>) ---------- */

.ssp .ssp-form { display: block; }
.ssp .ssp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ssp .ssp-field { margin-bottom: 16px; min-width: 0; }
.ssp .ssp-field > span:first-child { font-size: 14px; font-weight: 600; color: var(--ssp-ink); }
.ssp .ssp-field > span:first-child em { font-style: normal; font-weight: 400; color: var(--ssp-muted); }
.ssp .ssp-field small { font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-field--sm { max-width: 160px; }
.ssp .ssp-field--grow { flex: 1; min-width: 200px; }
.ssp input[type="time"], .ssp input[type="datetime-local"], .ssp input:not([type]) {
	width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--ssp-line-strong); border-radius: var(--ssp-r-sm);
	background: var(--ssp-paper); color: var(--ssp-ink); font: inherit; font-size: 15px; line-height: 1.4;
}
.ssp input[type="time"]:focus, .ssp input[type="datetime-local"]:focus, .ssp input:not([type]):focus { outline: none; border-color: var(--ssp-blue); box-shadow: var(--ssp-ring); }
.ssp input:disabled, .ssp select:disabled, .ssp textarea:disabled { background: var(--ssp-canvas); color: var(--ssp-muted); }
.ssp input[type="color"] { width: 64px; height: 44px; padding: 4px; border: 1.5px solid var(--ssp-line-strong); border-radius: var(--ssp-r-sm); background: var(--ssp-paper); }
.ssp textarea { min-height: 88px; }
.ssp .ssp-money { position: relative; display: block; }
.ssp .ssp-money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ssp-muted); pointer-events: none; }
.ssp .ssp-money input { padding-left: 28px; }
.ssp .ssp-check { align-items: flex-start; margin: 0 0 14px; line-height: 1.45; cursor: pointer; }
.ssp .ssp-check input { margin-top: 2px; flex: none; }
.ssp .ssp-code { font-family: var(--ssp-display); font-size: 26px; letter-spacing: 0.35em; text-align: center; min-height: 56px; font-variant-numeric: tabular-nums; }
.ssp .ssp-signature { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 22px; min-height: 52px; }
.ssp .ssp-copy { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; cursor: copy; }

/* Choice pills: rounded rectangles, never pills. */
.ssp .ssp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ssp .ssp-pills--stack { flex-direction: column; align-items: flex-start; }
.ssp .ssp-pill { position: relative; cursor: pointer; }
.ssp .ssp-pill input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ssp .ssp-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ssp-line-strong); border-radius: var(--ssp-r-sm); background: var(--ssp-paper); font-size: 14.5px; font-weight: 550; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.ssp .ssp-pill:hover span { border-color: var(--ssp-ink); }
.ssp .ssp-pill input:checked + span { border-color: var(--ssp-ink); background: var(--ssp-ink); color: #fff; }
.ssp .ssp-pill input:focus-visible + span { outline: 3px solid var(--ssp-blue); outline-offset: 2px; }
.ssp .ssp-pill input:disabled + span { opacity: 0.45; }

/* Uploads */
.ssp .ssp-upload { position: relative; display: inline-flex; flex-direction: column; gap: 2px; max-width: 100%; padding: 12px 16px; border: 1.5px dashed var(--ssp-line-strong); border-radius: var(--ssp-r-sm); background: var(--ssp-paper); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.ssp .ssp-upload:hover { border-color: var(--ssp-blue); background: var(--ssp-sky-tint); }
.ssp .ssp-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ssp .ssp-upload span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ssp-display); font-weight: 650; color: var(--ssp-ink); }
.ssp .ssp-upload small { font-size: 13px; color: var(--ssp-muted); overflow-wrap: anywhere; }
.ssp .ssp-upload.has-file { border-style: solid; border-color: var(--ssp-blue); background: var(--ssp-sky-tint); }
.ssp .ssp-upload.has-error { border-color: var(--ssp-bad); background: var(--ssp-bad-bg); }
.ssp .ssp-upload--big { display: flex; align-items: center; padding: 28px 20px; text-align: center; }
.ssp .ssp-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

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

/* Register choice */
.ssp .ssp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ssp .ssp-choice__o { position: relative; cursor: pointer; }
.ssp .ssp-choice__o input { position: absolute; opacity: 0; }
.ssp .ssp-choice__o span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border: 1.5px solid var(--ssp-line-strong); border-radius: var(--ssp-r-sm); transition: border-color 0.15s ease, background-color 0.15s ease; }
.ssp .ssp-choice__o strong { font-family: var(--ssp-display); }
.ssp .ssp-choice__o small { font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-choice__o input:checked + span { border-color: var(--ssp-ink); background: var(--ssp-canvas); box-shadow: inset 0 0 0 1px var(--ssp-ink); }
.ssp .ssp-choice__o input:focus-visible + span { outline: 3px solid var(--ssp-blue); outline-offset: 2px; }

/* ---------- Alerts ---------- */

.ssp .ssp-alert--ok { background: var(--ssp-ok-bg); }
.ssp .ssp-alert--ok > .ssp-icon { color: var(--ssp-ok); }
.ssp .ssp-alert--error, .ssp .ssp-alert--bad { background: var(--ssp-bad-bg); }
.ssp .ssp-alert--success { background: var(--ssp-ok-bg); }
.ssp .ssp-alert--block { margin-bottom: 16px; }
.ssp .ssp-alert { position: relative; align-items: flex-start; }
.ssp .ssp-alert__x { margin: -4px -6px 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ssp-ink-2); cursor: pointer; }
.ssp .ssp-alert__x:hover { background: rgba(14, 17, 22, 0.06); }
.ssp .ssp-alert__x .ssp-icon { width: 16px; height: 16px; }
.ssp .ssp-login__form .ssp-alert { margin-bottom: 18px; }

/* ---------- Tabs ---------- */

.ssp .ssp-tabs { flex-wrap: wrap; max-width: 100%; }
.ssp .ssp-tabs a { text-decoration: none; }
.ssp .ssp-tabs a:hover { color: var(--ssp-ink); }
.ssp .ssp-tabs--bar { margin-bottom: 16px; }
.ssp .ssp-card__head .ssp-tabs--bar { margin-bottom: 0; }
.ssp .ssp-login__tabs { display: flex; margin-bottom: 28px; }
.ssp .ssp-login__tabs a { flex: 1; justify-content: center; }

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

.ssp .ssp-table-wrap { margin-bottom: 16px; }
.ssp .ssp-card--flush > .ssp-table, .ssp .ssp-card--flush > .ssp-table-wrap, .ssp-card.ssp-table-wrap { padding: 8px; }
.ssp .ssp-card__body--flush .ssp-table-wrap { margin-bottom: 0; }
.ssp .ssp-table td small { font-size: 13px; }
.ssp .ssp-table td .ssp-chip + .ssp-chip { margin-left: 4px; }
.ssp .ssp-table--click tbody tr { cursor: pointer; }
.ssp .ssp-table--mini td { padding: 10px 14px; font-size: 14px; }
.ssp .ssp-table--mini td:first-child { min-width: 0; }
.ssp .ssp-table td.is-action { text-align: right; }
.ssp .ssp-person__text { min-width: 0; }
.ssp a.ssp-person__name { color: var(--ssp-ink); }
.ssp a.ssp-person__name:hover { color: var(--ssp-blue); }

/* ---------- Lists, details, timeline ---------- */

.ssp .ssp-list { margin-bottom: 8px; }
.ssp .ssp-list__i { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ssp-line); }
.ssp .ssp-list__i:last-child { border-bottom: 0; }
.ssp .ssp-list__i > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ssp .ssp-list__i small { color: var(--ssp-muted); }
.ssp .ssp-list__i > span:first-child .ssp-icon { color: var(--ssp-blue); }
.ssp .ssp-list__main .ssp-person__name, .ssp .ssp-list__main .ssp-person__sub { display: block; }
.ssp .ssp-rows { margin: 0; padding: 0 8px 8px; list-style: none; }
.ssp .ssp-rows li + li { border-top: 1px solid var(--ssp-line); }
.ssp .ssp-rows a { display: flex; flex-direction: column; padding: 12px; border-radius: var(--ssp-r-sm); color: var(--ssp-ink); }
.ssp .ssp-rows a:hover { background: var(--ssp-hover); }
.ssp .ssp-rows .ssp-muted { font-size: 13px; }
.ssp .ssp-rows__flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 12px; }
.ssp .ssp-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin: 14px 0; }
.ssp .ssp-dl > div { min-width: 0; }
.ssp .ssp-dl dt { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--ssp-muted); }
.ssp .ssp-dl dd { margin: 0; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.ssp .ssp-dl--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssp .ssp-dl--tight { gap: 8px 16px; margin: 10px 0; }

.ssp .ssp-tasks { margin: 0; padding: 0; list-style: none; }
.ssp .ssp-tasks__i { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-tasks__i:first-child { border-top: 0; }
.ssp .ssp-card--flush .ssp-tasks__i { padding: 12px 20px; }
.ssp .ssp-card--flush .ssp-tasks__i:first-child { border-top: 1px solid var(--ssp-line); }
.ssp .ssp-tasks__i > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ssp .ssp-tasks__i a { color: var(--ssp-ink); font-weight: 600; }
.ssp .ssp-tasks__i small { font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-tasks__i form { margin: 0; }
.ssp .ssp-checkbtn { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; padding: 0; border: 1.5px solid var(--ssp-line-strong); border-radius: 6px; background: var(--ssp-paper); color: #fff; cursor: pointer; }
.ssp .ssp-checkbtn:hover { border-color: var(--ssp-ink); }
.ssp .ssp-checkbtn.is-done { background: var(--ssp-ink); border-color: var(--ssp-ink); }
.ssp .ssp-checkbtn .ssp-icon { width: 14px; height: 14px; }
.ssp .ssp-task-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-task-form textarea, .ssp .ssp-note-form textarea { margin-bottom: 8px; }
.ssp .ssp-note-form { margin-bottom: 16px; }

.ssp .ssp-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.ssp .ssp-timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 1px; background: var(--ssp-line); }
.ssp .ssp-timeline__item { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.ssp .ssp-timeline__dot { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid var(--ssp-line); border-radius: 8px; background: var(--ssp-paper); color: var(--ssp-muted); }
.ssp .ssp-timeline__dot .ssp-icon { width: 15px; height: 15px; }
.ssp .ssp-tl--star .ssp-timeline__dot, .ssp .ssp-tl--placement .ssp-timeline__dot, .ssp .ssp-tl--match .ssp-timeline__dot { border-color: var(--ssp-sky-tint); background: var(--ssp-sky-tint); color: var(--ssp-blue-deep); }
.ssp .ssp-tl--no_show .ssp-timeline__dot, .ssp .ssp-tl--warning .ssp-timeline__dot { border-color: var(--ssp-bad-bg); background: var(--ssp-bad-bg); color: var(--ssp-bad); }
.ssp .ssp-tl--payment .ssp-timeline__dot { border-color: var(--ssp-ok-bg); background: var(--ssp-ok-bg); color: var(--ssp-ok); }
.ssp .ssp-timeline__msg { margin: 3px 0 1px; font-size: 14.5px; }
.ssp .ssp-timeline__meta { margin: 0; font-size: 13px; color: var(--ssp-muted); }

/* ---------- Progress, steps, wizard ---------- */

.ssp .ssp-meter { height: 8px; margin: 10px 0 8px; overflow: hidden; border-radius: 4px; background: var(--ssp-canvas); }
.ssp .ssp-meter span { display: block; height: 100%; border-radius: 4px; background: var(--ssp-blue); transition: width 0.25s var(--ssp-ease); }
.ssp .ssp-progress-card { margin-bottom: 16px; }
.ssp .ssp-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ssp .ssp-steps__s { position: relative; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ssp-muted); }
.ssp .ssp-steps__s::after { content: ""; position: absolute; top: 15px; left: 38px; right: 6px; height: 1.5px; background: var(--ssp-line); }
.ssp .ssp-steps__s:last-child::after { display: none; }
.ssp .ssp-steps__n { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ssp-line-strong); border-radius: 9px; background: var(--ssp-paper); font-family: var(--ssp-display); font-weight: 700; font-size: 13px; color: var(--ssp-ink); }
.ssp .ssp-steps__n .ssp-icon { width: 15px; height: 15px; }
.ssp .ssp-steps__s.is-done { color: var(--ssp-ink); }
.ssp .ssp-steps__s.is-done .ssp-steps__n { border-color: var(--ssp-ink); background: var(--ssp-ink); color: #fff; }
.ssp .ssp-steps__s.is-done::after { background: var(--ssp-ink); }
.ssp .ssp-steps__s.is-current { font-weight: 650; color: var(--ssp-ink); }
.ssp .ssp-steps__s.is-current .ssp-steps__n { border-color: var(--ssp-blue); background: var(--ssp-sky-tint); color: var(--ssp-blue-deep); }

.ssp .ssp-checklist { margin: 14px 0 0; padding: 0; list-style: none; }
.ssp .ssp-checklist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ssp .ssp-checklist__b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--ssp-line-strong); border-radius: 7px; color: #fff; }
.ssp .ssp-checklist li.is-done { color: var(--ssp-muted); }
.ssp .ssp-checklist li.is-done .ssp-checklist__b { border-color: var(--ssp-ink); background: var(--ssp-ink); }
.ssp .ssp-checklist__b .ssp-icon { width: 14px; height: 14px; }

.ssp .ssp-wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.ssp .ssp-wizard__rail { position: sticky; top: calc(var(--ssp-topbar-h) + 8px); }
.ssp .ssp-wizard__steps { display: grid; gap: 2px; margin: 16px 0 0; padding: 0; list-style: none; }
.ssp .ssp-wizard__steps a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: var(--ssp-r-sm); color: var(--ssp-muted); font-weight: 550; text-decoration: none; }
.ssp .ssp-wizard__steps a:hover { background: var(--ssp-paper); color: var(--ssp-ink); }
.ssp .ssp-wizard__steps .is-current a { background: var(--ssp-paper); color: var(--ssp-ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--ssp-line); }
.ssp .ssp-wizard__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1.5px solid var(--ssp-line-strong); border-radius: 8px; background: var(--ssp-paper); font-family: var(--ssp-display); font-size: 12.5px; font-weight: 700; color: var(--ssp-ink); }
.ssp .ssp-wizard__n .ssp-icon { width: 13px; height: 13px; }
.ssp .ssp-wizard__steps .is-done .ssp-wizard__n { border-color: var(--ssp-ink); background: var(--ssp-ink); color: #fff; }
.ssp .ssp-wizard__steps .is-current .ssp-wizard__n { border-color: var(--ssp-blue); background: var(--ssp-sky-tint); color: var(--ssp-blue-deep); }
.ssp .ssp-wizard__panel { padding: 28px 30px; }
.ssp .ssp-wizard__panel .ssp-h2 { font-size: 22px; margin-bottom: 20px; }
.ssp .ssp-wizard__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-wizard__nav .ssp-btn--quiet { margin-right: auto; }
.ssp .ssp-repeat__row { display: grid; grid-template-columns: 110px minmax(0, 260px) 36px; gap: 12px; align-items: end; }
.ssp .ssp-repeat__row .ssp-icon-btn { margin-bottom: 20px; }
.ssp .ssp-review { margin-bottom: 18px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); }
.ssp .ssp-review__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ssp-line); font-size: 14.5px; }
.ssp .ssp-review__row:first-child { border-top: 0; }
.ssp .ssp-review__row p { margin: 0; }
.ssp .ssp-review__l { font-size: 13px; font-weight: 600; color: var(--ssp-muted); }
.ssp .ssp-terms { margin-bottom: 16px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); }
.ssp .ssp-terms summary { padding: 12px 16px; font-weight: 650; cursor: pointer; }
.ssp .ssp-terms__body { padding: 0 16px 8px; font-size: 14px; color: var(--ssp-ink-2); }
.ssp .ssp-terms__body--scroll { max-height: 280px; margin-bottom: 16px; padding: 14px 16px; overflow-y: auto; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-sm); background: var(--ssp-canvas); }

/* ---------- Photos, files ---------- */

.ssp .ssp-photo { object-fit: cover; flex: none; }
.ssp .ssp-photo--md { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.ssp .ssp-photo--lg { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; }
.ssp img.ssp-photo--lg { border-radius: var(--ssp-arch); width: 64px; height: 76px; }
.ssp .ssp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ssp .ssp-thumb { position: relative; width: 92px; height: 92px; margin: 0; overflow: hidden; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-sm); }
.ssp .ssp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ssp .ssp-thumb__x { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(14, 17, 22, 0.78); color: #fff; }
.ssp .ssp-thumb__x .ssp-icon { width: 14px; height: 14px; }
.ssp .ssp-flyer-prev { max-height: 120px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-sm); }
.ssp .ssp-doc { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.ssp .ssp-docs { margin: 0; padding: 0; list-style: none; }
.ssp .ssp-docs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-docs li > span:first-child { font-weight: 650; }
.ssp .ssp-docs__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }

/* ---------- Home and match cards ---------- */

.ssp .ssp-match { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); background: var(--ssp-paper); }
.ssp .ssp-match__media { position: relative; aspect-ratio: 16 / 10; background: var(--ssp-canvas); }
.ssp .ssp-match__media img { width: 100%; height: 100%; object-fit: cover; }
.ssp .ssp-match__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ssp-sky); }
.ssp .ssp-match__ph .ssp-icon { width: 44px; height: 44px; }
.ssp .ssp-match__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.ssp .ssp-match__body .ssp-actions { margin-top: auto; padding-top: 14px; }
.ssp .ssp-gal { position: absolute; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translateY(-50%); border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.94); color: var(--ssp-ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--ssp-shadow-sm); }
.ssp .ssp-gal--prev { left: 10px; }
.ssp .ssp-gal--next { right: 10px; }
.ssp .ssp-gal__count { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: var(--ssp-r-xs); background: rgba(14, 17, 22, 0.78); color: #fff; font-size: 12.5px; }
.ssp .ssp-facts { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--ssp-muted); }
.ssp .ssp-facts li, .ssp .ssp-facts-line { display: flex; align-items: center; gap: 8px; color: var(--ssp-muted); }
.ssp .ssp-facts .ssp-icon, .ssp .ssp-facts-line .ssp-icon { width: 17px; height: 17px; color: var(--ssp-ink); }

/* Client cards (operator browse) */
.ssp .ssp-client { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); background: var(--ssp-paper); }
.ssp .ssp-client__head { display: flex; align-items: center; gap: 14px; }
.ssp .ssp-client__head > div { flex: 1; min-width: 0; }
.ssp .ssp-client__head p { margin: 0; font-size: 14px; }
.ssp .ssp-client__foot { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-fits { display: grid; gap: 10px; }
.ssp .ssp-fit { padding: 12px 14px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-sm); }
.ssp .ssp-fit--strong { border-color: var(--ssp-sky-tint); background: var(--ssp-sky-tint); }
.ssp .ssp-fit__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ssp .ssp-fit__score { font-family: var(--ssp-display); font-weight: 700; font-size: 13px; color: var(--ssp-muted); font-variant-numeric: tabular-nums; }
.ssp .ssp-fit__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13.5px; }
.ssp .ssp-fit__checks li { display: flex; align-items: center; gap: 6px; color: var(--ssp-ink-2); }
.ssp .ssp-fit__checks .ssp-icon { width: 15px; height: 15px; }
.ssp .ssp-fit__checks .ok .ssp-icon { color: var(--ssp-ok); }
.ssp .ssp-fit__checks .no { color: var(--ssp-muted); }
.ssp .ssp-fit__checks .no .ssp-icon { color: var(--ssp-line-strong); }

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

/* ---------- Tours, offers ---------- */

.ssp .ssp-tour { display: flex; gap: 18px; }
.ssp .ssp-tour__when { display: flex; flex: none; flex-direction: column; align-self: flex-start; width: 72px; padding: 8px 4px; border-radius: var(--ssp-r-sm); background: var(--ssp-sky-tint); color: var(--ssp-blue-deep); text-align: center; }
.ssp .ssp-tour__day { font-size: 13px; font-weight: 650; }
.ssp .ssp-tour__date { font-family: var(--ssp-display); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ssp-ink); font-variant-numeric: tabular-nums; }
.ssp .ssp-tour__time { font-size: 12.5px; font-weight: 600; }
.ssp .ssp-tour__body { flex: 1; min-width: 0; }
.ssp .ssp-more { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-more summary { font-weight: 600; font-size: 14px; color: var(--ssp-muted); cursor: pointer; }
.ssp .ssp-more[open] summary { margin-bottom: 12px; }
.ssp .ssp-more .ssp-inline { margin-bottom: 10px; }
.ssp .ssp-suggest { margin: 4px 0 14px; }
.ssp .ssp-suggest summary { margin-bottom: 10px; font-weight: 650; color: var(--ssp-blue); cursor: pointer; }
.ssp .ssp-slots { display: flex; flex-wrap: wrap; gap: 8px; max-height: 230px; overflow-y: auto; }
.ssp .ssp-slots .ssp-pill span { min-height: 36px; font-size: 13.5px; }
.ssp .ssp-offer .ssp-dl { padding: 14px 0; border-top: 1px solid var(--ssp-line); border-bottom: 1px solid var(--ssp-line); }

/* Admin decision bar */
.ssp .ssp-decide { padding: 14px 16px; }
.ssp .ssp-decide__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ssp .ssp-decide .ssp-note { margin-bottom: 0; }

/* ---------- Inbox ---------- */

.ssp .ssp-inbox { margin: 0; padding: 0; list-style: none; }
.ssp .ssp-inbox__i { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-inbox__i:first-child { border-top: 0; }
.ssp .ssp-inbox__dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; }
.ssp .ssp-inbox__i.is-unread { background: var(--ssp-hover); }
.ssp .ssp-inbox__i.is-unread .ssp-inbox__dot { background: var(--ssp-blue); }
.ssp .ssp-inbox__s { margin: 0 0 2px; font-weight: 650; }
.ssp .ssp-inbox__b { margin: 0 0 4px; font-size: 14.5px; color: var(--ssp-ink-2); overflow-wrap: anywhere; }
.ssp .ssp-inbox__m { margin: 0; font-size: 13px; color: var(--ssp-muted); }

/* ---------- Chat ---------- */

.ssp .ssp-chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100vh - 220px); min-height: 480px; overflow: hidden; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); background: var(--ssp-paper); }
.ssp .ssp-chat__list { padding: 8px; overflow-y: auto; border-right: 1px solid var(--ssp-line); }
.ssp .ssp-chat__t { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--ssp-r-sm); color: var(--ssp-ink); }
.ssp .ssp-chat__t:hover { background: var(--ssp-hover); color: var(--ssp-ink); }
.ssp .ssp-chat__t.is-active { background: var(--ssp-sky-tint); }
.ssp .ssp-chat__tt { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 14.5px; }
.ssp .ssp-chat__tt small { font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-chat__t .ssp-nav__count { background: var(--ssp-blue); color: #fff; }
.ssp .ssp-chat__pane { display: flex; flex-direction: column; min-width: 0; }
.ssp .ssp-chat__head { display: flex; flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--ssp-line); }
.ssp .ssp-chat__head strong { font-family: var(--ssp-display); font-size: 16px; }
.ssp .ssp-chat__head small { font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-chat__msgs { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; overflow-y: auto; background: var(--ssp-canvas); }
.ssp .ssp-msg { display: flex; flex-direction: column; gap: 3px; max-width: 76%; }
.ssp .ssp-msg__b { padding: 10px 14px; border: 1px solid var(--ssp-line); border-radius: 14px 14px 14px 4px; background: var(--ssp-paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.ssp .ssp-msg__m { padding: 0 4px; font-size: 12.5px; color: var(--ssp-muted); }
.ssp .ssp-msg--mine { align-self: flex-end; align-items: flex-end; }
.ssp .ssp-msg--mine .ssp-msg__b { border-color: var(--ssp-ink); border-radius: 14px 14px 4px 14px; background: var(--ssp-ink); color: #fff; }
.ssp .ssp-chat__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-chat__form textarea { min-height: 44px; max-height: 160px; height: 44px; }
.ssp .ssp-chat__empty, .ssp .ssp-chat__closed { padding: 40px; text-align: center; color: var(--ssp-muted); }

/* ---------- Events ---------- */

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

/* ---------- Week calendar ---------- */

.ssp .ssp-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.ssp .ssp-legend .ssp-ev { margin: 0; padding: 4px 10px; }
.ssp .ssp-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ssp .ssp-week__day { min-height: 220px; padding: 10px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); background: var(--ssp-paper); }
.ssp .ssp-week__day.is-today { border-color: var(--ssp-blue); box-shadow: inset 0 0 0 1px var(--ssp-blue); }
.ssp .ssp-week__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ssp-muted); }
.ssp .ssp-week__h strong { font-family: var(--ssp-display); font-size: 18px; color: var(--ssp-ink); }
.ssp .ssp-week__none { margin-top: 30px; text-align: center; color: var(--ssp-line-strong); }
.ssp .ssp-ev { display: flex; flex-direction: column; margin-bottom: 6px; padding: 6px 8px; border-radius: var(--ssp-r-xs); font-size: 12.5px; line-height: 1.35; }
.ssp .ssp-ev strong { font-weight: 650; }
.ssp .ssp-ev small { color: var(--ssp-ink-2); }
.ssp .ssp-ev--open { background: var(--ssp-ok-bg); color: var(--ssp-ok); }
.ssp .ssp-ev--blocked { background: var(--ssp-bad-bg); color: var(--ssp-bad); }
.ssp .ssp-ev--tour { background: var(--ssp-info-bg); color: var(--ssp-info); }

/* ---------- Reports ---------- */

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

/* ---------- Automations ---------- */

.ssp .ssp-autos { display: grid; gap: 10px; }
.ssp .ssp-auto { padding: 0; }
.ssp .ssp-auto__sum { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ssp .ssp-auto__sum::-webkit-details-marker { display: none; }
.ssp .ssp-auto__t { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ssp .ssp-auto__t strong { font-family: var(--ssp-display); }
.ssp .ssp-auto__t small { font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-auto__ch { font-size: 13px; color: var(--ssp-muted); white-space: nowrap; }
.ssp .ssp-auto__body { padding: 16px 18px 6px 72px; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-switch { position: relative; flex: none; width: 40px; height: 24px; }
.ssp .ssp-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ssp .ssp-switch span { position: absolute; inset: 0; border-radius: 8px; background: var(--ssp-line-strong); transition: background-color 0.15s ease; }
.ssp .ssp-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 6px; background: #fff; box-shadow: var(--ssp-shadow-sm); transition: transform 0.15s ease; }
.ssp .ssp-switch input:checked + span { background: var(--ssp-blue); }
.ssp .ssp-switch input:checked + span::after { transform: translateX(16px); }
.ssp .ssp-switch input:focus-visible + span { outline: 3px solid var(--ssp-blue); outline-offset: 2px; }
.ssp .ssp-sticky-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 8px; background: linear-gradient(to top, var(--ssp-canvas) 70%, rgba(243, 246, 250, 0)); }

/* ---------- Menus and modals ---------- */

.ssp .ssp-menu { position: relative; }
.ssp .ssp-menu summary { list-style: none; }
.ssp .ssp-menu summary::-webkit-details-marker { display: none; }
.ssp .ssp-menu__pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 25; display: grid; gap: 12px; width: 290px; padding: 14px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r-md); background: var(--ssp-paper); box-shadow: var(--ssp-shadow-lift); white-space: normal; text-align: left; }
.ssp .ssp-menu__pop form { display: grid; gap: 6px; justify-items: start; margin: 0; }
.ssp .ssp-menu__pop .ssp-field { width: 100%; margin-bottom: 4px; }
.ssp .ssp-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--ssp-r-lg); background: var(--ssp-paper); color: var(--ssp-ink); box-shadow: var(--ssp-shadow-lift); font-family: var(--ssp-text); }
.ssp .ssp-modal::backdrop { background: rgba(14, 17, 22, 0.42); }
.ssp .ssp-modal form { padding: 22px 24px; }
.ssp .ssp-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ---------- Empty states ---------- */

.ssp .ssp-card.ssp-empty { padding: 44px 24px; }
.ssp .ssp-empty .ssp-mark { color: var(--ssp-sky); }
.ssp .ssp-empty--sm { padding: 20px 8px 8px; }
.ssp .ssp-empty--sm .ssp-mark { width: 48px; height: 48px; }
.ssp .ssp-card__body .ssp-empty { padding: 28px 16px 20px; }

/* ---------- Login ---------- */

.ssp .ssp-login__form .ssp-brand { padding: 0 0 40px; }
.ssp .ssp-login__form .ssp-form > .ssp-btn--block { margin-top: 4px; }
.ssp .ssp-login__form .ssp-field { margin-bottom: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.ssp .ssp-grid--main, .ssp .ssp-grid--detail { grid-template-columns: minmax(0, 1fr); }
	.ssp .ssp-grid--detail > .ssp-stack:last-child { order: 0; }
	.ssp .ssp-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.ssp-role--client .ssp-topbar, .ssp-role--operator .ssp-topbar { display: none; }
	.ssp .ssp-content > .ssp-alert--block:first-child { margin-top: 16px; }
	.ssp .ssp-grid--2, .ssp .ssp-grid2, .ssp .ssp-grid3, .ssp .ssp-grid4, .ssp .ssp-grid--cards, .ssp .ssp-grid--clients, .ssp .ssp-tiles--3 { grid-template-columns: minmax(0, 1fr); }
	.ssp .ssp-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ssp .ssp-wizard { grid-template-columns: minmax(0, 1fr); }
	.ssp .ssp-wizard__rail { position: static; }
	.ssp .ssp-wizard__steps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
	.ssp .ssp-wizard__steps a { justify-content: center; min-height: 40px; padding: 0; font-size: 0; }
	.ssp .ssp-wizard__steps .ssp-wizard__n { font-size: 12.5px; }
	.ssp .ssp-wizard__steps .is-current a { box-shadow: none; background: transparent; }
	.ssp .ssp-wizard__panel { padding: 22px 18px; }
	.ssp .ssp-wizard__nav .ssp-btn { flex: 1 1 auto; }
	.ssp .ssp-repeat__row { grid-template-columns: 90px minmax(0, 1fr) 36px; }
	.ssp .ssp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
	.ssp .ssp-steps__s::after { display: none; }
	.ssp .ssp-chat { grid-template-columns: minmax(0, 1fr); height: auto; }
	.ssp .ssp-chat__list { max-height: 190px; border-right: 0; border-bottom: 1px solid var(--ssp-line); }
	.ssp .ssp-chat__msgs { min-height: 50vh; }
	.ssp .ssp-msg { max-width: 88%; }
	.ssp .ssp-week { grid-template-columns: minmax(0, 1fr); }
	.ssp .ssp-week__day { min-height: 0; }
	.ssp .ssp-dl--grid { grid-template-columns: minmax(0, 1fr); }
	.ssp .ssp-bars { gap: 4px; }
	.ssp .ssp-bars__v { display: none; }
	.ssp .ssp-auto__body { padding-left: 18px; }
	.ssp .ssp-auto__ch { display: none; }
	.ssp .ssp-hbars li { grid-template-columns: 110px minmax(0, 1fr) 32px; }
	.ssp .ssp-tour { flex-direction: column; gap: 12px; }
	.ssp .ssp-tour__when { flex-direction: row; align-items: baseline; gap: 8px; width: auto; padding: 6px 12px; }
	.ssp .ssp-tour__date { font-size: 18px; }
	.ssp .ssp-swipe { min-height: 700px; }
	.ssp .ssp-filters .ssp-field, .ssp .ssp-filters .ssp-field--sm { flex: 1 1 140px; max-width: none; }
	.ssp .ssp-inline { display: flex; width: 100%; }
	.ssp .ssp-inline .ssp-field, .ssp .ssp-inline .ssp-field--grow { flex: 1 1 100%; min-width: 0; }
	.ssp .ssp-inline--tight input, .ssp .ssp-inline--tight select { flex: 1 1 140px; }
	.ssp .ssp-actions > form.ssp-inline { width: auto; }
	.ssp .ssp-menu__pop { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; }
	.ssp .ssp-choice { grid-template-columns: minmax(0, 1fr); }

	/* Stacked table cards: let long values wrap so nothing scrolls sideways. */
	.ssp .ssp-table-wrap { overflow-x: visible; }
	.ssp .ssp-card--flush > .ssp-table, .ssp .ssp-card--flush > .ssp-table-wrap, .ssp .ssp-card.ssp-table-wrap { padding: 8px 8px 0; }
	.ssp .ssp-table--stack td, .ssp .ssp-table--stack td:not(:first-child) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
	.ssp .ssp-table--stack td:first-child { min-width: 0; }
	.ssp .ssp-table--stack td > * { max-width: 100%; }
	.ssp .ssp-table--stack td.is-action { justify-content: flex-start; }
	.ssp .ssp-table--stack td.is-action .ssp-btn { width: 100%; }
	.ssp .ssp-table--stack td form { flex-wrap: wrap; justify-content: flex-end; }
	.ssp .ssp-table--stack .ssp-menu { margin-left: auto; }
	.ssp .ssp-table--stack td:empty { display: none; }
	/* Values sit together on the right; the label takes the left. */
	.ssp .ssp-table--stack td { justify-content: flex-end; flex-wrap: wrap; }
	.ssp .ssp-table--stack td[data-label]::before { margin-right: auto; }
	/* A person in the first cell is the card's title, so it needs no label. */
	.ssp .ssp-table--stack td:first-child:has(.ssp-person) { justify-content: flex-start; }
	.ssp .ssp-table--stack td:first-child:has(.ssp-person)::before { display: none; }
	.ssp .ssp-table--stack td:first-child:not([data-label]) { justify-content: flex-start; font-weight: 650; text-align: left; }
}

@media (max-width: 520px) {
	.ssp .ssp-pagehead .ssp-actions > * { flex: 1 1 auto; }
	.ssp .ssp-pagehead .ssp-actions .ssp-tabs { width: 100%; }
	.ssp .ssp-card { padding: 16px; }
	.ssp .ssp-card--flush, .ssp .ssp-card.ssp-table-wrap { padding: 0; }
	.ssp .ssp-fit__checks { grid-template-columns: minmax(0, 1fr); }
	.ssp .ssp-tiles--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ssp .ssp-review__row { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.ssp .ssp-swipe__card { transition: none; }
}
