/* The new look ("soft"), docs/REDESIGN-PLAN.md part A.
   Loaded only while the look is on (Services/Look.cs), last in <head>, and every rule is
   scoped under body.pt-soft so it can never touch the current look.
   Colours live in the token block only; dark mode will be a second token block.
   New class names use the prefix sf- (pt- collides with the design pack).

   Phase A1, the skin: the values of the design pack (02-design-system/pingtact.css) put on
   the classes the views already use, Bootstrap 5.1's and our own, so no view changes.
   Bootstrap 5.1 has no --bs-btn-* variables: buttons are coloured here through our own
   --sf-btn-* properties, read by one .btn rule.
   Sections, in the order of the plan: tokens and ground, type, sheets, buttons, fields,
   pills and badges, tables, tabs, alerts and banners, pop-ups, pagination and empty states,
   the composer and the help assistant, then the sign-in and public pages, the Conversations
   screen (A4), phones, the phone's frame and the Conversations panes (A3), the installed
   app's sheets, motion. */

/* ===================================================================== tokens */
body.pt-soft {
    /* brand kit v1.1 */
    --soft-ink: #050F2A;
    --soft-blue: #1F5AC8;
    --soft-blue-h: #1A4DAE;          /* the main button under the pointer (7.4:1 with ice) */
    --soft-blue-l: #7FB0F5;
    --soft-sky: #CFE8FF;
    --soft-sheet: #F8FBFF;           /* ice: a raised sheet */
    --soft-ground: #EAF2FC;          /* the tinted page */
    --soft-mute: #4B5870;            /* 6.35:1 on the ground, 5.28:1 on the strongest fill */
    --soft-blue-rgb: 31, 90, 200;

    /* tints and lines */
    --soft-fill: rgba(31, 90, 200, .07);     /* quiet sheet, default button, track */
    --soft-fill-2: rgba(31, 90, 200, .13);   /* hover */
    --soft-field: rgba(31, 90, 200, .06);    /* a field at rest */
    --soft-hair: rgba(180, 186, 196, .5);    /* the only hairline: between rows */
    --soft-line: rgba(75, 88, 112, .3);      /* an off switch */
    --soft-check: rgba(75, 88, 112, .72);    /* a checkbox's edge: 3:1 against the sheet */
    --soft-ring: rgba(31, 90, 200, .16);     /* a field with the focus */
    --soft-veil: rgba(5, 15, 42, .38);       /* behind a dialog */
    --soft-knob: #F8FBFF;
    --soft-rail-hover: rgba(207, 232, 255, .08);   /* sky over the navy rail */
    --soft-rail-btn: rgba(207, 232, 255, .1);
    --soft-rail-btn-h: rgba(207, 232, 255, .2);

    /* depth */
    --soft-raise: 0 1px 2px rgba(5, 15, 42, .05), 0 10px 28px rgba(5, 15, 42, .06);
    --soft-pop: 0 2px 6px rgba(5, 15, 42, .10), 0 18px 44px rgba(5, 15, 42, .16);
    --soft-tile: 0 1px 2px rgba(5, 15, 42, .12);
    --soft-r-s: 8px;
    --soft-r-m: 11px;
    --soft-r-l: 18px;

    /* status: always a word on its tint, never colour alone */
    --soft-good: #0E6B45;  --soft-good-bg: #DDF3E8;
    --soft-warn: #8A5300;  --soft-warn-bg: #FFF0C7;  --soft-warn-bar: #C77D00;
    --soft-bad: #B3261E;   --soft-bad-bg: #FCE4E1;
    --soft-calm-bg: #E4EBF5;

    /* conversations (A4): the customer's bubble, and the channels' own colours behind their
       real logos (inside the app only) */
    --soft-bubble-in: rgba(75, 88, 112, .13);
    --soft-ch-wa: #25D366;
    --soft-ch-ms: #0084FF;
    --soft-ch-ig: #E1306C;
    --soft-ch-tt: #25F4EE;           /* TikTok's glyph, on navy */

    /* our own variables, re-pointed, so every .pt- component follows */
    --pt-ink: var(--soft-ink);
    --pt-ink-2: var(--soft-mute);
    --pt-ink-3: var(--soft-mute);
    --pt-line: var(--soft-hair);
    --pt-line-2: var(--soft-line);
    --pt-surface: var(--soft-sheet);
    --pt-surface-2: var(--soft-fill);
    --pt-ground-2: var(--soft-fill);
    --pt-selected: var(--soft-sky);
    --pt-hover: var(--soft-fill);
    --pt-radius: var(--soft-r-m);
    --pt-success: var(--soft-good);  --pt-success-tint: var(--soft-good-bg);
    --pt-warning: var(--soft-warn);  --pt-warning-tint: var(--soft-warn-bg);  --pt-warning-solid: var(--soft-warn-bar);
    --pt-danger: var(--soft-bad);    --pt-danger-tint: var(--soft-bad-bg);
    --pt-ok: var(--soft-good); --pt-warn: var(--soft-warn); --pt-err: var(--soft-bad);
    --pt-focus: 0 0 0 3px var(--soft-ring);
    --content-bg: var(--soft-ground);
    --accent-soft: var(--soft-sky);

    /* Bootstrap's */
    --bs-body-bg: var(--soft-ground);
    --bs-border-color: var(--soft-hair);
    --bs-secondary-color: var(--soft-mute);
    --bs-tertiary-color: var(--soft-mute);
    --bs-border-radius: var(--soft-r-m);
    --bs-border-radius-sm: var(--soft-r-s);
    --bs-border-radius-lg: 14px;
    --bs-border-radius-xl: var(--soft-r-l);

    background: var(--soft-ground);
    color: var(--soft-ink);
    caret-color: var(--soft-blue);
    accent-color: var(--soft-blue);
}
/* 14 px base, as the pack (it was 15 px from 768 px up). Every rem in the app follows. */
html:has(> body.pt-soft) { font-size: 14px; }

body.pt-soft ::selection { background: rgba(var(--soft-blue-rgb), .26); color: inherit; }
body.pt-soft ::placeholder { color: var(--soft-mute); opacity: 1; }
body.pt-soft :focus-visible { outline: 2px solid var(--soft-blue); outline-offset: 2px; }
body.pt-soft hr { border-color: var(--soft-hair); opacity: 1; }

/* Utility classes that drew a white box or a hard line on the tinted ground. */
body.pt-soft .bg-white { background-color: var(--soft-sheet) !important; }
body.pt-soft .bg-light { background-color: var(--soft-fill) !important; }
body.pt-soft .border, body.pt-soft .border-top, body.pt-soft .border-bottom,
body.pt-soft .border-start, body.pt-soft .border-end { border-color: var(--soft-hair) !important; }
body.pt-soft .text-muted, body.pt-soft .text-secondary { color: var(--soft-mute) !important; }
body.pt-soft .text-primary { color: var(--soft-blue) !important; }
body.pt-soft .text-success { color: var(--soft-good) !important; }
body.pt-soft .text-danger { color: var(--soft-bad) !important; }
body.pt-soft .text-warning { color: var(--soft-warn) !important; }
body.pt-soft .shadow, body.pt-soft .shadow-sm { box-shadow: var(--soft-raise) !important; }

/* The top bar's tools. */
body.pt-soft .topbar-bell { border-radius: var(--soft-r-m); }
body.pt-soft .topbar-bell:hover { background: var(--soft-fill-2); }
body.pt-soft .impersonation-badge {
    background: var(--soft-warn-bg); color: var(--soft-warn); border: 0; border-radius: 999px;
    font-size: 12.5px; padding: 4px 12px;
}
body.pt-soft .impersonation-badge a { color: var(--soft-warn); font-weight: 500; }

/* ===================================================================== the frame (A2) */
/* Pages/Shared/_ShellSoft.cshtml: the navy rail (84 px, one entry per area, the Ping line
   down its leading edge) and the top bar holding the title, the area's tabs and the tools.
   The page scrolls as before; the rail stays put and scrolls by itself when the window is
   short. The tools sit in a foot that never scrolls, so the account sheet is not clipped. */
body.pt-soft .sf-shell { display: flex; min-height: 100vh; }
body.pt-soft .sf-rail {
    position: sticky; top: 0; z-index: 1030;
    flex: 0 0 84px; width: 84px; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--soft-ink); color: var(--soft-sky);
    font-size: 11px; line-height: 1.15;
}
body.pt-soft .sf-rail-scroll {
    position: relative; flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
    overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
}
body.pt-soft .sf-rail-scroll::-webkit-scrollbar { display: none; }
body.pt-soft .sf-rail-logo { flex: none; height: 54px; display: flex; align-items: center; justify-content: center; }
body.pt-soft .sf-rail-logo img { display: block; }
body.pt-soft .sf-rail-search { flex: none; align-self: center; margin-bottom: 8px; }
body.pt-soft .sf-nav { display: flex; flex-direction: column; }
body.pt-soft .sf-nav-item {
    position: relative; flex: none; min-height: 52px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding-block: 6px; padding-inline: 16px 2px;
    color: var(--soft-sky); text-align: center; text-decoration: none;
    transition: background-color .18s ease-out;
}
body.pt-soft .sf-nav-item:hover { background: var(--soft-rail-hover); color: var(--soft-sky); }
body.pt-soft .sf-nav-item[aria-current="page"],
body.pt-soft .sf-nav-item[aria-current="page"]:hover { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .sf-ico {
    flex: none; width: 19px; height: 19px;
    fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
body.pt-soft .sf-nav-label { max-width: 100%; overflow-wrap: anywhere; letter-spacing: -.01em; }
body.pt-soft .sf-nav-label.is-long { font-size: 10px; overflow-wrap: normal; }
html[dir="rtl"] body.pt-soft .sf-nav-label { letter-spacing: 0; font-size: 11.5px; }
/* The Ping line: a blue line with a ring at each entry, filled on the current one. */
body.pt-soft .sf-nav-line { position: absolute; inset-inline-start: 12px; top: 0; bottom: 0; border-inline-start: 3px solid var(--soft-blue); }
body.pt-soft .sf-nav-item.is-last .sf-nav-line { bottom: 50%; }
body.pt-soft .sf-nav-dot {
    position: absolute; inset-inline-start: 7px; top: 50%; margin-top: -6.5px;
    width: 13px; height: 13px; border-radius: 999px;
    border: 3px solid var(--soft-blue); background: var(--soft-ink);
}
body.pt-soft .sf-nav-item[aria-current="page"] .sf-nav-dot { background: var(--soft-blue); }
body.pt-soft .sf-nav-count {
    position: absolute; top: 4px; inset-inline-end: 6px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--soft-bad); color: var(--soft-sheet);
    font-size: 10.5px; font-weight: 500; line-height: 18px; text-align: center;
}
body.pt-soft .sf-rail-foot {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px));
}
body.pt-soft .sf-rail-btn, body.pt-soft .sf-rail-me {
    display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 10px; background: var(--soft-rail-btn); color: var(--soft-sky);
    font-size: 12px; font-weight: 500; line-height: 1;
    transition: background-color .18s ease-out;
}
body.pt-soft .sf-rail-btn:hover, body.pt-soft .sf-rail-me:hover { background: var(--soft-rail-btn-h); color: var(--soft-sky); }
body.pt-soft .sf-rail-btn .sf-ico { width: 16px; height: 16px; stroke-width: 1.7; }
body.pt-soft .sf-rail-me { width: 36px; height: 36px; border-radius: 999px; font-size: 11px; }
body.pt-soft .sf-rail a:focus-visible, body.pt-soft .sf-rail button:focus-visible { outline-color: var(--soft-blue-l); outline-offset: -2px; }
body.pt-soft .sf-rail .sf-nav-item[aria-current="page"]:focus-visible { outline-color: var(--soft-ink); outline-offset: -3px; }

/* The account sheet: the workspace, the person, their links. */
body.pt-soft .sf-me-sheet { min-width: 250px; max-width: 300px; padding: 8px; font-size: 13px; }
body.pt-soft .sf-me-tenant { display: flex; align-items: center; gap: 8px; padding: 4px 8px; font-weight: 500; }
body.pt-soft .sf-me-tenant img { flex: none; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: var(--soft-sheet); }
body.pt-soft .sf-me-initial {
    flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px;
    background: var(--soft-sky); color: var(--soft-ink);
}
body.pt-soft .sf-me-name, body.pt-soft .sf-me-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pt-soft .sf-me-user {
    margin-bottom: 6px; padding: 2px 8px 8px; border-bottom: 1px solid var(--soft-hair);
    font-size: 12.5px; color: var(--soft-mute);
}
body.pt-soft .sf-me-sheet .dropdown-item { display: flex; align-items: center; gap: 8px; }
body.pt-soft .sf-me-legal { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 8px 2px; font-size: 12px; color: var(--soft-mute); }
body.pt-soft .sf-me-legal a { color: var(--soft-mute); }

/* The top bar: title, the area's tabs, then the tools at the end. One row, 60 px like the
   classic bar, because full-window screens (Conversations, the builder) size themselves
   from it; a long row of tabs scrolls sideways instead of wrapping. */
body.pt-soft .sf-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
body.pt-soft .sf-top {
    display: flex; align-items: center; gap: 8px 14px;
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 28px 0;
}
body.pt-soft .sf-top > .sf-title { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pt-soft .sf-top > .impersonation-badge { flex: none; white-space: nowrap; }
body.pt-soft .sf-top > .ms-auto { flex: none; }
body.pt-soft .sf-tabs {
    flex: 0 1 auto; min-width: 0; display: flex; gap: 2px; padding: 3px;
    border-radius: 12px; background: var(--soft-fill);
    overflow-x: auto; scrollbar-width: none;
}
body.pt-soft .sf-tabs::-webkit-scrollbar { display: none; }
body.pt-soft .sf-tab {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px;
    border-radius: 9px; color: var(--soft-mute); font-size: 13px; text-decoration: none; white-space: nowrap;
    transition: background-color .18s ease-out, color .18s ease-out;
}
body.pt-soft .sf-tab:hover { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .sf-tab[aria-current="page"],
body.pt-soft .sf-tab[aria-current="page"]:hover { background: var(--soft-sheet); color: var(--soft-ink); font-weight: 500; box-shadow: var(--soft-tile); }
body.pt-soft .sf-tab:focus-visible { outline-offset: -2px; }
body.pt-soft .sf-tab-lock { font-size: 10px; }
body.pt-soft .sf-tab-badge { padding: 1px 6px; border-radius: 999px; background: var(--soft-calm-bg); color: var(--soft-mute); font-size: 10.5px; }

/* ===================================================================== type */
/* 14 px text, headings light: page title 21/600, section titles 16/500, everything else
   400 with 500 for emphasis. No capitals-only or letter-spaced labels. */
/* Sizes inside the app only: the sign-in and public pages keep their own large headlines. */
body.pt-soft.app-body h1, body.pt-soft.app-body .h1 {
    font-family: var(--pt-font-display); font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em;
}
body.pt-soft.app-body h2, body.pt-soft.app-body .h2 { font-family: var(--pt-font-display); font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
body.pt-soft.app-body h3, body.pt-soft.app-body .h3 { font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
body.pt-soft.app-body :is(h4, .h4, h5, .h5, h6, .h6) { font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
body.pt-soft :is(h1, .auth-h1) { font-weight: 600; }
body.pt-soft :is(h2, h3, h4, h5, h6) { font-weight: 500; }
html[dir="rtl"] body.pt-soft :is(h1, .h1, h2, .h2) { letter-spacing: 0; font-family: var(--pt-font); }
body.pt-soft h1.topbar-title { font-size: 17px; }
body.pt-soft b, body.pt-soft strong, body.pt-soft th { font-weight: 500; }
body.pt-soft .fw-bold, body.pt-soft .fw-bolder, body.pt-soft .fw-semibold { font-weight: 500 !important; }
body.pt-soft .text-uppercase { text-transform: none !important; letter-spacing: 0 !important; }
body.pt-soft small, body.pt-soft .small { font-size: 12.5px; }
body.pt-soft .form-text { font-size: 12px; color: var(--soft-mute); }
body.pt-soft .form-label { font-size: 12.5px; font-weight: 500; color: var(--soft-ink); margin-bottom: 4px; }

body.pt-soft .pt-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 16px; align-items: center; }
body.pt-soft .pt-head h1, body.pt-soft .pt-head h2 { font-family: var(--pt-font-display); font-size: 21px; font-weight: 600; }
html[dir="rtl"] body.pt-soft .pt-head h1, html[dir="rtl"] body.pt-soft .pt-head h2 { font-family: var(--pt-font); }
body.pt-soft .pt-head .pt-sub { font-size: 13px; color: var(--soft-mute); margin-top: 4px; }
body.pt-soft .pt-crumbs { font-size: 12.5px; color: var(--soft-mute); }
body.pt-soft .pt-crumbs a { color: var(--soft-mute); }
body.pt-soft .pt-crumbs a:hover { color: var(--soft-ink); }

/* Labels that were small capitals. */
body.pt-soft .pt-stat-label,
body.pt-soft .pt-filters .form-label,
body.pt-soft .pt-fieldset > legend,
body.pt-soft .var-group > span,
body.pt-soft .emo-group > span,
body.pt-soft .pt-help-group-title {
    text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--soft-mute);
}
/* Numbers that lead: Space Grotesk at 500, never bold. */
body.pt-soft .pt-stat-value, body.pt-soft .pt-kpi-value, body.pt-soft .pt-price .amount {
    font-family: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif; font-weight: 500; letter-spacing: -.02em;
}

/* ===================================================================== sheets */
/* A raised sheet on the tinted ground: no border, radius 18, a soft shadow. */
body.pt-soft .card, body.pt-soft .pt-card, body.pt-soft .pt-box, body.pt-soft .pt-filters,
body.pt-soft .pt-fieldset, body.pt-soft .pt-plan, body.pt-soft .status-page, body.pt-soft .auto-bar {
    background: var(--soft-sheet); border: 0; border-radius: var(--soft-r-l); box-shadow: var(--soft-raise);
}
body.pt-soft .pt-filters { padding: 12px 14px; }
body.pt-soft .card-header, body.pt-soft .pt-card > header {
    background: transparent; border-bottom: 0; padding: 14px 16px 4px;
    font-family: var(--pt-font-display); font-size: 16px; font-weight: 500;
    border-radius: var(--soft-r-l) var(--soft-r-l) 0 0 !important;
}
html[dir="rtl"] body.pt-soft .card-header, html[dir="rtl"] body.pt-soft .pt-card > header { font-family: var(--pt-font); }
body.pt-soft .pt-card > header h3, body.pt-soft .card-header h3, body.pt-soft .card-header h5, body.pt-soft .card-header h6 {
    font-size: 16px; font-weight: 500;
}
body.pt-soft .card-body, body.pt-soft .pt-card > .pt-body, body.pt-soft .pt-box > .pt-box-body { padding: 14px 16px; }
body.pt-soft .card-footer { background: transparent; border-top: 0; padding: 4px 16px 14px; }
/* A sheet inside a sheet is quiet: a fill, no shadow. */
body.pt-soft :is(.card, .pt-card, .pt-box, .modal-content) :is(.card, .pt-card, .pt-box, .pt-fieldset) {
    background: var(--soft-fill); box-shadow: none; border-radius: 14px;
}
/* Filters or a fieldset that are the body of a sheet take no second box. */
body.pt-soft :is(.card, .pt-card, .pt-box, .modal-content) .pt-filters { background: transparent; box-shadow: none; border-radius: 0; }
body.pt-soft .pt-fieldset > legend { padding: 0; margin-bottom: 8px; }

/* Stat tiles: quiet, without the coloured side stripe. */
body.pt-soft .pt-stats { gap: 10px; }
body.pt-soft .pt-stat { background: var(--soft-fill); border: 0; border-radius: 14px; box-shadow: none; padding: 12px 14px; }
body.pt-soft .pt-stat::before { display: none; }
body.pt-soft .pt-stat-value { font-size: 24px; }
body.pt-soft .pt-stat.is-err .pt-stat-value { color: var(--soft-bad); }
body.pt-soft .pt-stat.is-warn .pt-stat-value { color: var(--soft-warn); }
/* The KPI strip: numbers on a quiet band, no lines between them. */
body.pt-soft .pt-kpis { border-block: 0; background: var(--soft-fill); border-radius: 14px; padding: 4px 6px; gap: 0; }
body.pt-soft .pt-kpi, body.pt-soft .pt-kpi:first-child { border-inline-start: 0; padding: 10px 14px; }
body.pt-soft .pt-kpi-label { font-size: 12px; color: var(--soft-mute); }
body.pt-soft .pt-kpi-value { font-size: 22px; }
body.pt-soft .pt-section { border-top: 0; padding-top: 4px; }
body.pt-soft .pt-section > header h2 { font-size: 16px; font-weight: 500; }

body.pt-soft .list-group-item { background: transparent; border-color: var(--soft-hair); color: var(--soft-ink); }
body.pt-soft .list-group:not(.list-group-flush) { background: var(--soft-sheet); border-radius: 14px; box-shadow: var(--soft-raise); }
body.pt-soft .list-group:not(.list-group-flush) > .list-group-item { border: 0; }
body.pt-soft .list-group:not(.list-group-flush) > .list-group-item + .list-group-item { box-shadow: inset 0 1px 0 var(--soft-hair); }
body.pt-soft .list-group-item-action:hover, body.pt-soft .list-group-item-action:focus { background: var(--soft-fill); }
body.pt-soft .list-group-item.active { background: var(--soft-sky); color: var(--soft-ink); border-color: transparent; font-weight: 500; }

body.pt-soft .pt-plan { padding: 20px 18px 18px; }
/* Recommended: its flag says it (A5b: the 2 px blue ring was the one hard frame left on Plans). */
body.pt-soft .pt-plan.is-recommended { box-shadow: var(--soft-raise); }
body.pt-soft .pt-plan.is-current { background: var(--soft-sheet); }
body.pt-soft .pt-plan-flag { font-weight: 500; }
body.pt-soft .pt-offer { background: var(--soft-good-bg); color: var(--soft-good); border-radius: 999px; font-weight: 500; }
body.pt-soft .pt-soon { border: 0; background: var(--soft-calm-bg); color: var(--soft-mute); border-radius: 999px; padding: 0 7px; }
body.pt-soft .auto-bar { padding: 10px 12px; }
body.pt-soft .auto-chip { border: 0; background: var(--soft-fill); border-radius: 12px; }
body.pt-soft .auto-chip.is-current { background: var(--soft-sky); }
body.pt-soft .auto-name { font-weight: 500; }
body.pt-soft .auto-master { border: 0; background: var(--soft-fill); border-radius: 14px; }
body.pt-soft .auto-master.is-on { background: var(--soft-sky); }
body.pt-soft .wh-day { border: 0; background: var(--soft-fill); border-radius: 12px; }
body.pt-soft .wh-day.is-off { background: transparent; }
body.pt-soft .wh-add { border: 0; background: var(--soft-fill); border-radius: 999px; font-weight: 500; }
body.pt-soft .wh-add:hover { background: var(--soft-fill-2); }
body.pt-soft .wh-del:hover { background: var(--soft-bad-bg); }
body.pt-soft .fp-note { border: 0; background: var(--soft-sky); border-radius: 10px; }
body.pt-soft .fp-note code { background: var(--soft-sheet); border: 0; }
body.pt-soft .fp-warn { border: 0; background: var(--soft-warn-bg); border-radius: 10px; }
body.pt-soft .status-page .status-icon { background: var(--soft-ink); }
body.pt-soft .status-page.is-warning .status-icon { background: var(--soft-warn-bg); color: var(--soft-warn); }
body.pt-soft .status-page.is-danger .status-icon { background: var(--soft-bad-bg); color: var(--soft-bad); }
body.pt-soft .status-page h1 { font-weight: 600; }
body.pt-soft .status-page .status-ref { border-top: 0; }
body.pt-soft .pt-contact-open:hover { background: var(--soft-fill); }

/* ===================================================================== buttons */
/* One shape: 34 px, radius 11, no border, 13 px / 500. Default = soft fill; main = solid
   blue (btn-primary, one per view); quiet = transparent; danger = red word on its tint.
   No outlined buttons: the 359 btn-outline-* map onto these. */
body.pt-soft .btn {
    --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink);
    display: inline-block; padding: 6px 13px; border: 1px solid transparent; border-radius: var(--soft-r-m);
    background-color: var(--sf-btn-bg); color: var(--sf-btn-fg);
    font-size: 13px; font-weight: 500; line-height: 20px; box-shadow: none;
    transition: background-color .18s ease-out, color .18s ease-out, transform .12s ease-out;
}
body.pt-soft .btn:hover, body.pt-soft .btn:focus, body.pt-soft .btn:active, body.pt-soft .btn.active,
body.pt-soft .show > .btn.dropdown-toggle {
    background-color: var(--sf-btn-bg-h); color: var(--sf-btn-fg); border-color: transparent; box-shadow: none;
}
body.pt-soft .btn:active { transform: translateY(1px); }
body.pt-soft .btn:focus-visible { outline: 2px solid var(--soft-blue); outline-offset: 2px; box-shadow: none; }
body.pt-soft .btn:disabled, body.pt-soft .btn.disabled, body.pt-soft fieldset:disabled .btn { opacity: .5; }
body.pt-soft .btn-sm { padding: 5px 10px; font-size: 12.5px; line-height: 18px; border-radius: 9px; }
body.pt-soft .btn-lg { padding: 9px 18px; font-size: 14px; line-height: 20px; border-radius: 12px; }

body.pt-soft .btn-primary {
    --sf-btn-bg: var(--soft-blue); --sf-btn-bg-h: var(--soft-blue-h); --sf-btn-fg: var(--soft-sheet);
}
body.pt-soft .btn-outline-primary, body.pt-soft .btn-outline-secondary, body.pt-soft .btn-secondary,
body.pt-soft .btn-outline-dark, body.pt-soft .btn-light, body.pt-soft .btn-dark {
    --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink);
}
/* One main button per view (A5): where a screen has several forms, each with its own
   btn-primary, the views mark the ones that are not the screen's main action sf-secondary
   (a class with no meaning in the classic look). */
body.pt-soft .btn-primary.sf-secondary {
    --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink);
}
/* One main button per view: a filter form's Apply is not it (the page's own action is). */
body.pt-soft .pt-filters .btn-primary {
    --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink);
}
body.pt-soft .btn-quiet, body.pt-soft .btn-link {
    --sf-btn-bg: transparent; --sf-btn-bg-h: var(--soft-fill); --sf-btn-fg: var(--soft-ink);
}
body.pt-soft .btn-link { --sf-btn-fg: var(--soft-blue); text-decoration: none; }
body.pt-soft .btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* A link-button squeezed into text (p-0) stays a link, not a pad. */
body.pt-soft .btn-link.p-0, body.pt-soft .btn-link.px-0 { --sf-btn-bg-h: transparent; }
body.pt-soft .btn-danger, body.pt-soft .btn-outline-danger {
    --sf-btn-bg: var(--soft-bad-bg); --sf-btn-bg-h: var(--soft-bad-bg); --sf-btn-fg: var(--soft-bad);
}
body.pt-soft .btn-danger:hover, body.pt-soft .btn-outline-danger:hover { filter: brightness(.96); }
/* Success and warning keep their meaning without the loud fill: the word on its tint. */
body.pt-soft .btn-success, body.pt-soft .btn-outline-success {
    --sf-btn-bg: var(--soft-good-bg); --sf-btn-bg-h: var(--soft-good-bg); --sf-btn-fg: var(--soft-good);
}
body.pt-soft .btn-warning, body.pt-soft .btn-outline-warning {
    --sf-btn-bg: var(--soft-warn-bg); --sf-btn-bg-h: var(--soft-warn-bg); --sf-btn-fg: var(--soft-warn);
}
body.pt-soft .btn-info, body.pt-soft .btn-outline-info {
    --sf-btn-bg: var(--soft-sky); --sf-btn-bg-h: var(--soft-sky); --sf-btn-fg: var(--soft-ink);
}
body.pt-soft :is(.btn-success, .btn-outline-success, .btn-warning, .btn-outline-warning, .btn-info, .btn-outline-info):hover { filter: brightness(.96); }
/* A selected button in a group (filters): sky, as the pack's chips. */
body.pt-soft .btn-check:checked + .btn, body.pt-soft .btn-group > .btn.active {
    background-color: var(--soft-sky); color: var(--soft-ink);
}
body.pt-soft .btn-group { gap: 2px; }
body.pt-soft .btn-group > .btn { border-radius: var(--soft-r-m) !important; margin: 0 !important; }
body.pt-soft .btn-group > .btn-sm { border-radius: 9px !important; }
body.pt-soft .btn-close { border-radius: 9px; opacity: .65; }
body.pt-soft .btn-close:hover { opacity: 1; background-color: var(--soft-fill); }
body.pt-soft .btn-close:focus { box-shadow: none; }
body.pt-soft .guide-btn { border: 0; background: var(--soft-fill); color: var(--soft-ink); border-radius: 999px; font-weight: 500; font-size: 12.5px; }
body.pt-soft .guide-btn:hover { background: var(--soft-fill-2); color: var(--soft-ink); }
body.pt-soft .emo-btn, body.pt-soft .var-btn { border: 0; background: var(--soft-fill-2); border-radius: 6px; }
body.pt-soft .emo-btn:hover, body.pt-soft .var-btn:hover { background: var(--soft-sky); }

/* ===================================================================== fields */
/* Soft filled fields: no visible border at rest, a blue edge and ring only with the focus. */
body.pt-soft .form-control, body.pt-soft .form-select, body.pt-soft .var-search, body.pt-soft .pt-help-search input {
    min-height: 36px; border: 1px solid transparent; border-radius: var(--soft-r-m);
    background-color: var(--soft-field); color: var(--soft-ink); font-size: 13.5px; box-shadow: none;
    transition: background-color .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out;
}
body.pt-soft .form-control:hover, body.pt-soft .form-select:hover { background-color: var(--soft-fill-2); border-color: transparent; }
body.pt-soft .form-control:focus, body.pt-soft .form-select:focus, body.pt-soft .var-search:focus {
    border-color: var(--soft-blue); background-color: var(--soft-sheet); box-shadow: 0 0 0 3px var(--soft-ring); outline: 0;
}
body.pt-soft .form-control:disabled, body.pt-soft .form-control[readonly], body.pt-soft .form-select:disabled {
    background-color: var(--soft-fill); color: var(--soft-mute); opacity: 1;
}
body.pt-soft .form-control[readonly]:focus { border-color: transparent; box-shadow: none; }
body.pt-soft .form-control-sm, body.pt-soft .form-select-sm { min-height: 30px; font-size: 12.5px; border-radius: 9px; }
body.pt-soft textarea.form-control { padding-block: 8px; line-height: 1.5; }
body.pt-soft .form-control-color { min-height: 36px; padding: 4px; }
body.pt-soft .is-invalid.form-control, body.pt-soft .is-invalid.form-select { border-color: var(--soft-bad); }
body.pt-soft .invalid-feedback, body.pt-soft .field-validation-error, body.pt-soft .text-danger.field-validation-error { color: var(--soft-bad); font-size: 12px; }
body.pt-soft .input-group-text {
    border: 1px solid transparent; background: var(--soft-fill-2); color: var(--soft-mute); border-radius: var(--soft-r-m); font-size: 13px;
}
/* The closed select: our own chevron in the muted ink, on the end that follows the text. */
body.pt-soft .form-select {
    padding-inline-end: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234B5870' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 12px; background-position: right 11px center;
}
html[dir="rtl"] body.pt-soft .form-select { background-position: left 11px center; }
body.pt-soft .form-select[multiple], body.pt-soft .form-select[size]:not([size="1"]) { background-image: none; padding-inline-end: 12px; }
body.pt-soft .form-select option { background: var(--soft-sheet); color: var(--soft-ink); }
/* The open list: the same soft sheet as everything else, not the browser's white box
   (customisable select, Chrome and Edge 135+; other browsers keep their own list). */
@supports (appearance: base-select) {
    body.pt-soft .form-select:not([multiple]):not([size]),
    body.pt-soft .form-select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
    body.pt-soft .form-select:not([multiple]):not([size]) { display: flex; align-items: center; }
    body.pt-soft .form-select:not([multiple]):not([size])::picker-icon { display: none; }
    body.pt-soft .form-select:not([multiple]):not([size])::picker(select) {
        box-sizing: border-box; min-width: anchor-size(width); max-height: min(360px, 60vh); margin-block: 6px; padding: 6px;
        border: 0; border-radius: 14px; background: var(--soft-sheet); color: var(--soft-ink); box-shadow: var(--soft-pop);
        font-size: 13.5px; opacity: 0; transform: translateY(-4px);
        transition: opacity .16s ease-out, transform .16s ease-out, overlay .16s allow-discrete, display .16s allow-discrete;
    }
    body.pt-soft .form-select:not([multiple]):not([size])::picker(select):popover-open { opacity: 1; transform: none; }
    @starting-style {
        body.pt-soft .form-select:not([multiple]):not([size])::picker(select):popover-open { opacity: 0; transform: translateY(-4px); }
    }
    body.pt-soft .form-select:not([multiple]):not([size]) option {
        display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 9px;
        background: transparent; color: var(--soft-ink); white-space: nowrap; cursor: pointer; transition: background .14s ease-out;
    }
    body.pt-soft .form-select:not([multiple]):not([size]) option:hover,
    body.pt-soft .form-select:not([multiple]):not([size]) option:focus-visible { background: var(--soft-fill); outline: 0; }
    body.pt-soft .form-select:not([multiple]):not([size]) option:checked { background: var(--soft-sky); font-weight: 500; }
    body.pt-soft .form-select:not([multiple]):not([size]) option::checkmark { display: none; }
    body.pt-soft .form-select:not([multiple]):not([size]) optgroup { font-size: 12px; font-weight: 500; color: var(--soft-mute); padding: 4px 6px; }
}
/* Files: the browser's grey "Choose file" becomes a soft button inside the field. */
body.pt-soft input[type="file"].form-control { padding: 3px; line-height: 28px; }
body.pt-soft input[type="file"]::file-selector-button {
    margin: 0; margin-inline-end: 10px; padding: 0 12px; height: 28px; border: 0; border-radius: 8px;
    background: var(--soft-fill-2); color: var(--soft-ink); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
body.pt-soft input[type="file"]:hover::file-selector-button { background: var(--soft-sky); }
body.pt-soft .form-control::-webkit-file-upload-button { background: var(--soft-fill-2); border: 0; }
/* Checkboxes and radios: a clear edge (3:1), blue when on. */
body.pt-soft .form-check-input {
    border: 1.5px solid var(--soft-check); background-color: var(--soft-sheet); box-shadow: none;
}
body.pt-soft .form-check-input[type="checkbox"] { border-radius: 5px; }
body.pt-soft .form-check-input:checked, body.pt-soft .form-check-input:indeterminate {
    background-color: var(--soft-blue); border-color: var(--soft-blue);
}
body.pt-soft .form-check-input:focus { box-shadow: none; border-color: var(--soft-check); }
body.pt-soft .form-check-input:checked:focus { border-color: var(--soft-blue); }
body.pt-soft .form-check-input:focus-visible { outline: 2px solid var(--soft-blue); outline-offset: 2px; }
/* Switches: the pack's switch, 36 x 22, a light knob on a grey or blue track. */
body.pt-soft .form-switch { padding-inline-start: 46px; min-height: 22px; }
body.pt-soft .form-switch .form-check-input {
    width: 36px; height: 22px; margin-top: 0; margin-inline-start: -46px; border: 0; border-radius: 999px;
    background-color: var(--soft-line);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2.9' fill='%23F8FBFF'/%3E%3C/svg%3E");
    transition: background-position .18s cubic-bezier(.16, 1, .3, 1), background-color .18s ease-out;
}
body.pt-soft .form-switch .form-check-input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2.9' fill='%23F8FBFF'/%3E%3C/svg%3E"); }
body.pt-soft .form-switch .form-check-input:checked { background-color: var(--soft-blue); }
body.pt-soft .form-switch .form-check-label { line-height: 22px; }

/* ===================================================================== pills and badges */
/* A status is a word on its tint: radius 999, 11.5 px / 500. */
body.pt-soft .badge {
    display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1.45;
    background-color: var(--soft-calm-bg); color: var(--soft-mute);
}
body.pt-soft .badge.bg-success { background-color: var(--soft-good-bg) !important; color: var(--soft-good) !important; }
body.pt-soft .badge.bg-danger { background-color: var(--soft-bad-bg) !important; color: var(--soft-bad) !important; }
body.pt-soft .badge.bg-warning { background-color: var(--soft-warn-bg) !important; color: var(--soft-warn) !important; }
body.pt-soft .badge.bg-secondary, body.pt-soft .badge.bg-light, body.pt-soft .badge.bg-dark {
    background-color: var(--soft-calm-bg) !important; color: var(--soft-mute) !important;
}
body.pt-soft .badge.bg-info, body.pt-soft .badge.bg-primary { background-color: var(--soft-sky) !important; color: var(--soft-ink) !important; }
body.pt-soft .badge.rounded-pill { border-radius: 999px; }
body.pt-soft .pt-pill { padding: 2px 9px; border: 0; font-size: 11.5px; font-weight: 500; line-height: 1.45; }
body.pt-soft .pt-pill-ok { background: var(--soft-good-bg); color: var(--soft-good); }
body.pt-soft .pt-pill-warn { background: var(--soft-warn-bg); color: var(--soft-warn); }
body.pt-soft .pt-pill-err { background: var(--soft-bad-bg); color: var(--soft-bad); }
body.pt-soft .pt-pill-info { background: var(--soft-sky); color: var(--soft-ink); }
body.pt-soft .pt-pill-mute { background: var(--soft-calm-bg); color: var(--soft-mute); }
body.pt-soft .pt-dot { font-size: 12.5px; }
body.pt-soft .pt-dot.is-warn, body.pt-soft .pt-dot.is-danger { border-radius: 999px; padding: 2px 9px; font-weight: 500; }
body.pt-soft .pt-step { border: 0; background: var(--soft-fill); font-weight: 400; min-height: 30px; padding: 0 12px; }
body.pt-soft .pt-step.is-active { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .pt-step.is-done { background: var(--soft-good-bg); color: var(--soft-good); }
/* Tag chips: pills, transparent until applied, sky once applied. */
body.pt-soft .pt-tag-chip {
    border: 0; background: var(--soft-fill); color: var(--soft-ink); border-radius: 999px;
    min-height: 28px; padding: 0 11px; font-size: 12.5px; font-weight: 400;
}
body.pt-soft .pt-tag-chip:hover { background: var(--soft-fill-2); filter: none; }
body.pt-soft .pt-tag-chip.is-on { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .co-tag { color: var(--soft-ink) !important; }
body.pt-soft .co-tag-btn { background: var(--soft-sheet); color: var(--soft-ink) !important; }
body.pt-soft .co-tag-btn:hover, body.pt-soft .co-tag-btn:focus-visible { background: var(--soft-fill-2); }
body.pt-soft .pt-save { font-weight: 500; }

/* ===================================================================== tables */
/* Rows on a sheet, no cage of lines: a muted 12 px head, 46 px rows, a faint hairline
   between rows, a soft rounded fill under the pointer. Tables stay <table>. */
body.pt-soft .table, body.pt-soft .pt-table {
    --bs-table-bg: transparent; --bs-table-accent-bg: transparent;
    --bs-table-hover-bg: var(--soft-fill); --bs-table-striped-bg: var(--soft-fill); --bs-table-active-bg: var(--soft-fill-2);
    border-collapse: separate; border-spacing: 0; border-color: transparent; color: var(--soft-ink); font-size: 13.5px;
}
body.pt-soft .table > :not(caption) > * > *, body.pt-soft .pt-table > :not(caption) > * > * {
    border-width: 0; border-color: transparent; background-color: transparent;
}
body.pt-soft .table > :not(:first-child) { border-top: 0; }
body.pt-soft .table thead th, body.pt-soft .table thead td, body.pt-soft .pt-table thead th {
    background: transparent; border: 0; padding: 6px 10px; height: 30px; vertical-align: middle;
    font-size: 12px; font-weight: 500; color: var(--soft-mute); text-transform: none; letter-spacing: 0;
}
html[lang^="en"] body.pt-soft .table thead th, html[lang^="en"] body.pt-soft .pt-table thead th { text-transform: none; letter-spacing: 0; font-size: 12px; }
body.pt-soft .table tbody td, body.pt-soft .table tbody th, body.pt-soft .pt-table tbody td {
    padding: 8px 10px; height: 46px; vertical-align: middle; border: 0;
}
body.pt-soft .table-sm tbody td, body.pt-soft .table-sm tbody th { padding: 5px 8px; height: 38px; }
body.pt-soft .table-sm thead th { padding: 4px 8px; }
body.pt-soft :is(.table, .pt-table) tbody tr + tr > * { border-top: 1px solid var(--soft-hair); }
body.pt-soft :is(.table, .pt-table) tbody tr:hover > * { background-color: var(--soft-fill); border-top-color: transparent; }
body.pt-soft :is(.table, .pt-table) tbody tr:hover + tr > * { border-top-color: transparent; }
body.pt-soft :is(.table, .pt-table) tbody tr:hover > :first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
body.pt-soft :is(.table, .pt-table) tbody tr:hover > :last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
body.pt-soft .table > :not(caption) > * > * { box-shadow: none; }
body.pt-soft .table-light, body.pt-soft .table-light > tr > *, body.pt-soft thead.table-light th { background: transparent !important; color: var(--soft-mute); }
body.pt-soft .table-bordered > :not(caption) > * > * { border-width: 0; }
body.pt-soft .table tfoot td, body.pt-soft .table tfoot th { border-top: 1px solid var(--soft-hair); font-weight: 500; }
/* A table directly in a sheet: its first and last columns line up with the sheet's text. */
body.pt-soft :is(.pt-box, .pt-card, .card) > .table-responsive { padding: 4px 6px 6px; }
body.pt-soft :is(.pt-box, .pt-card, .card) > .table-responsive > table { margin: 0; }
body.pt-soft :is(.pt-box, .pt-card, .card) > :is(.pt-table, .table) { width: calc(100% - 12px); margin: 4px 6px 6px; }
body.pt-soft .pt-table .pt-muted { color: var(--soft-mute); font-size: 12px; }

/* ===================================================================== tabs */
/* A soft track holding the tabs; the current one is a raised ice tile. */
body.pt-soft .nav-tabs {
    display: flex; flex-wrap: nowrap; gap: 2px; width: fit-content; max-width: 100%; padding: 3px;
    border: 0; border-radius: 12px; background: var(--soft-fill);
    overflow-x: auto; scrollbar-width: none;
}
body.pt-soft .nav-tabs::-webkit-scrollbar { display: none; }
body.pt-soft .nav-tabs .nav-item { flex: none; }
body.pt-soft .nav-tabs .nav-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin: 0; padding: 0 11px;
    border: 0; border-radius: 9px; background: transparent; color: var(--soft-mute);
    font-size: 13px; font-weight: 400; white-space: nowrap; transition: background .18s ease-out, color .18s ease-out;
}
body.pt-soft .nav-tabs .nav-link:hover { color: var(--soft-ink); background: transparent; border: 0; }
body.pt-soft .nav-tabs .nav-link.active, body.pt-soft .nav-tabs .nav-item.show .nav-link {
    background: var(--soft-sheet); color: var(--soft-ink); font-weight: 500; box-shadow: var(--soft-tile); border: 0;
}
body.pt-soft .nav-pills .nav-link { border-radius: 9px; color: var(--soft-mute); font-size: 13px; }
body.pt-soft .nav-pills .nav-link:hover { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .nav-pills .nav-link.active, body.pt-soft .nav-pills .show > .nav-link { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
/* Our segmented tabs and the billing-cycle switch take the same track. */
body.pt-soft .pt-seg {
    display: flex; gap: 2px; padding: 3px; border: 0; border-radius: 12px; background: var(--soft-fill); width: fit-content; max-width: 100%;
}
body.pt-soft .pt-seg > a, body.pt-soft .pt-seg > button {
    display: inline-flex; align-items: center; min-height: 28px; margin: 0; padding: 0 11px;
    border: 0; border-radius: 9px; color: var(--soft-mute); font-size: 13px; font-weight: 400;
}
body.pt-soft .pt-seg > [aria-current="page"], body.pt-soft .pt-seg > [aria-pressed="true"], body.pt-soft .pt-seg > .active {
    background: var(--soft-sheet); color: var(--soft-ink); font-weight: 500; box-shadow: var(--soft-tile);
}
body.pt-soft .pt-switch { border-radius: 999px; background: var(--soft-fill); padding: 3px; }
body.pt-soft .pt-switch > label, body.pt-soft .pt-switch > a, body.pt-soft .pt-switch > button {
    border-radius: 999px; font-size: 12.5px; font-weight: 400; color: var(--soft-mute); padding: 4px 12px;
}
body.pt-soft .pt-switch > input:checked + label, body.pt-soft .pt-switch > .active, body.pt-soft .pt-switch > [aria-pressed="true"] {
    background: var(--soft-sheet); color: var(--soft-ink); font-weight: 500; box-shadow: var(--soft-tile);
}

/* ===================================================================== alerts and banners */
body.pt-soft .alert { border: 0; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; }
body.pt-soft .alert-success { background: var(--soft-good-bg); color: var(--soft-good); }
body.pt-soft .alert-danger { background: var(--soft-bad-bg); color: var(--soft-bad); }
body.pt-soft .alert-warning { background: var(--soft-warn-bg); color: var(--soft-warn); }
body.pt-soft .alert-info, body.pt-soft .alert-primary { background: var(--soft-sky); color: var(--soft-ink); }
body.pt-soft .alert-secondary, body.pt-soft .alert-light, body.pt-soft .alert-dark { background: var(--soft-calm-bg); color: var(--soft-ink); }
body.pt-soft .alert .alert-link { font-weight: 500; }
body.pt-soft .alert-dismissible .btn-close { padding: 12px; }
body.pt-soft .pt-banner { border-radius: 14px; background: var(--soft-fill); padding: 10px 14px; font-size: 13.5px; }
body.pt-soft .pt-banner.is-info { background: var(--soft-sky); }
body.pt-soft .pt-banner.is-warn { background: var(--soft-warn-bg); }
body.pt-soft .pt-banner.is-danger { background: var(--soft-bad-bg); }
body.pt-soft .pt-banner.is-ok { background: var(--soft-good-bg); }
body.pt-soft .pt-banner-body p { color: var(--soft-ink); }

/* ===================================================================== pop-ups */
body.pt-soft .modal-content { background: var(--soft-sheet); border: 0; border-radius: 16px; box-shadow: var(--soft-pop); }
body.pt-soft .modal-header { border-bottom: 0; padding: 16px 18px 6px; border-radius: 16px 16px 0 0; }
body.pt-soft .modal-title { font-family: var(--pt-font-display); font-size: 16px; font-weight: 500; }
html[dir="rtl"] body.pt-soft .modal-title { font-family: var(--pt-font); }
body.pt-soft .modal-body { padding: 10px 18px; }
body.pt-soft .modal-footer { border-top: 0; padding: 6px 14px 14px; }
body.pt-soft .modal-backdrop { background-color: var(--soft-ink); }
body.pt-soft .modal-backdrop.show { opacity: .38; }
body.pt-soft .pt-confirm .modal-body { color: var(--soft-ink); }
body.pt-soft .pt-confirm-icon { background: var(--soft-warn-bg); color: var(--soft-warn); }
body.pt-soft .pt-confirm.is-danger .pt-confirm-icon { background: var(--soft-bad-bg); color: var(--soft-bad); }

body.pt-soft .dropdown-menu {
    padding: 6px; border: 0; border-radius: 14px; background: var(--soft-sheet); box-shadow: var(--soft-pop);
    color: var(--soft-ink); font-size: 13.5px;
}
body.pt-soft .dropdown-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border-radius: 9px; color: var(--soft-ink); }
body.pt-soft .dropdown-item:hover, body.pt-soft .dropdown-item:focus { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .dropdown-item.active, body.pt-soft .dropdown-item:active { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .dropdown-item.text-danger:hover { background: var(--soft-bad-bg); }
body.pt-soft .dropdown-divider { border-top-color: var(--soft-hair); margin: 4px 6px; }
body.pt-soft .dropdown-header { font-size: 12px; font-weight: 500; color: var(--soft-mute); }

/* Toasts: a raised sheet; the icon carries the state (no coloured side stripe). */
body.pt-soft .pt-toast { background: var(--soft-sheet); border-inline-start: 0; border-radius: 14px; box-shadow: var(--soft-pop); color: var(--soft-ink); font-size: 13.5px; }
body.pt-soft .pt-toast.is-success i { color: var(--soft-good); }
body.pt-soft .pt-toast.is-error i { color: var(--soft-bad); }
body.pt-soft .pt-toast.is-warning i { color: var(--soft-warn); }
body.pt-soft .pt-toast .pt-toast-close { color: var(--soft-mute); }
body.pt-soft .tooltip-inner { background: var(--soft-ink); color: var(--soft-sheet); border-radius: var(--soft-r-s); font-size: 12px; padding: 5px 9px; }
body.pt-soft .popover { border: 0; border-radius: 14px; box-shadow: var(--soft-pop); background: var(--soft-sheet); }
body.pt-soft .popover-arrow { display: none; }

/* The composer's menus, the emoji and variable pickers: the same raised sheet. */
body.pt-soft :is(.pt-attach-menu, .pt-emoji-pad, .pt-canned-pad, .var-pop, .emo-pop) {
    background: var(--soft-sheet); border: 0; border-radius: 14px; box-shadow: var(--soft-pop);
}
body.pt-soft :is(.pt-attach-tile, .pt-canned-item, .var-item, .emo-ch, .pt-emoji-pad button):hover { background: var(--soft-fill); }
/* No gradient, no icon in a coloured square: the tile's glyph sits on a sky round. */
body.pt-soft .pt-attach-tile i, body.pt-soft .pt-attach-photo i, body.pt-soft .pt-attach-document i {
    background: var(--soft-sky); color: var(--soft-blue); border-radius: 999px;
}
body.pt-soft .pt-canned-title { font-weight: 500; }
body.pt-soft .pt-canned-title code { background: var(--soft-sky); color: var(--soft-ink); }
body.pt-soft .pt-quick-list li[aria-selected="true"] a, body.pt-soft .pt-quick-list a:hover { background: var(--soft-fill); }

/* ===================================================================== pagination, breadcrumbs, empty states */
body.pt-soft .pagination { gap: 2px; }
body.pt-soft .page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0 10px;
    border: 0; border-radius: 9px !important; margin: 0 !important; background: transparent; color: var(--soft-ink); font-size: 13px;
}
body.pt-soft .page-link:hover { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .page-link:focus { box-shadow: none; background: var(--soft-fill); }
body.pt-soft .page-item.active .page-link { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .page-item.disabled .page-link { background: transparent; color: var(--soft-mute); opacity: .6; }
body.pt-soft .pt-empty { color: var(--soft-mute); padding: 32px 12px; }
body.pt-soft .pt-empty i { color: var(--soft-blue-l); }
body.pt-soft .pt-empty h4, body.pt-soft .pt-empty-v2 h3 { font-size: 15px; font-weight: 500; color: var(--soft-ink); }
body.pt-soft .pt-empty p, body.pt-soft .pt-empty-v2 p { color: var(--soft-mute); font-size: 13px; }

/* Meters and bars: round ends on a tint. */
body.pt-soft .progress { height: 8px; border-radius: 999px; background: var(--soft-fill-2); }
body.pt-soft .progress-bar { border-radius: 999px; background-color: var(--soft-blue); }
body.pt-soft .pt-meter-track { height: 6px; border-radius: 999px; background: var(--soft-fill-2); }
body.pt-soft .pt-meter-fill { border-radius: 999px; }
body.pt-soft .pt-meter-head b { font-weight: 500; }
body.pt-soft .pt-funnel-track { border: 0; border-radius: 8px; background: var(--soft-fill-2); }
body.pt-soft .pt-funnel-fill { border-radius: 8px; font-weight: 500; }
body.pt-soft .pt-funnel-name { font-weight: 500; }
body.pt-soft .pt-bar { background: var(--soft-fill-2); border-radius: 999px; }
body.pt-soft .pt-bar > span { border-radius: 999px; }
/* Reports uses .pt-bar as a card's heading row, where the meter rule above (site.css: 4 px
   high, overflow hidden) hid "By day" and "Per-recipient report" behind a thin stripe, in
   both looks. In the new look it is a heading row again (A5b; the classic look is listed in
   the plan, section 6.4). */
body.pt-soft .pt-card > .pt-bar {
    display: flex; align-items: center; gap: 8px; height: auto; margin: 0; padding: 14px 16px 4px;
    overflow: visible; border-radius: 0; background: transparent; font-size: 16px;
}
body.pt-soft .pt-card > .pt-bar strong { font-weight: 500; }
body.pt-soft .pt-beats::before { background: var(--soft-blue-l); }
body.pt-soft .pt-beats li::before { background: var(--soft-sheet); box-shadow: inset 0 0 0 3px var(--soft-blue); }
body.pt-soft .pt-beats li[data-beat="done"]::before { background: var(--soft-blue); box-shadow: none; }
body.pt-soft .pt-beats li[data-beat="current"] { font-weight: 500; }
body.pt-soft .pt-beats li[data-beat="current"]::before { box-shadow: 0 0 0 4px var(--soft-sheet); }

/* Phone cards (table.pt-cards-m): each row a raised sheet. */
@media (max-width: 767.98px) {
    body.pt-soft table.pt-cards-m tbody tr { border: 0; border-radius: 14px; background: var(--soft-sheet); box-shadow: var(--soft-raise); }
    body.pt-soft table.pt-cards-m tbody tr > * { height: auto; }
    body.pt-soft table.pt-cards-m tbody td + td { border-top: 1px solid var(--soft-hair) !important; }
    body.pt-soft table.pt-cards-m tbody tr:hover > * { background: transparent !important; border-radius: 0; }
    body.pt-soft table.pt-cards-m tbody td:first-child { font-weight: 500; }
    body.pt-soft :is(.pt-box, .pt-card, .card):has(table.pt-cards-m) { background: transparent; box-shadow: none; overflow: visible; }
    body.pt-soft :is(.pt-box, .pt-card, .card) > .table-responsive:has(> table.pt-cards-m) { padding: 0; }
    body.pt-soft .table-responsive > table:not(.pt-cards-m) tbody tr > td:last-child:has(.btn, button, .dropdown, form) { background: var(--soft-sheet); box-shadow: none; }
}

/* ===================================================================== composer */
body.pt-soft .pt-composer-pill { background: var(--soft-field); border: 1px solid transparent; border-radius: 16px; }
body.pt-soft .pt-composer-pill:focus-within { border-color: var(--soft-blue); background: var(--soft-sheet); box-shadow: 0 0 0 3px var(--soft-ring); }
body.pt-soft .pt-composer-tool { color: var(--soft-mute); border-radius: var(--soft-r-m); }
body.pt-soft .pt-composer-tool:hover { background: var(--soft-fill-2); color: var(--soft-ink); }
body.pt-soft .pt-composer-tool.is-on { background: var(--soft-sky); color: var(--soft-ink); }
body.pt-soft .pt-composer-send { width: 42px; height: 42px; background: var(--soft-blue); color: var(--soft-sheet); box-shadow: none; }
body.pt-soft .pt-composer-send:hover { background: var(--soft-blue-h); filter: none; transform: none; }
body.pt-soft .pt-attach-chip { background: var(--soft-fill); border: 0; }
body.pt-soft .pt-attach-chip button { color: var(--soft-mute); }

/* ===================================================================== help assistant */
body.pt-soft .pt-help-fab { background: var(--soft-blue); color: var(--soft-sheet); box-shadow: var(--soft-pop); }
body.pt-soft .pt-help-fab:hover { background: var(--soft-blue-h); transform: none; }
body.pt-soft .pt-help-badge { border-color: var(--soft-sheet); font-weight: 500; }
body.pt-soft .pt-help-panel { background: var(--soft-sheet); border: 0; border-radius: var(--soft-r-l); box-shadow: var(--soft-pop); }
body.pt-soft .pt-help-head { background: transparent; color: var(--soft-ink); padding: 14px 14px 8px; }
body.pt-soft .pt-help-avatar { background: var(--soft-sky); color: var(--soft-blue); }
body.pt-soft .pt-help-head-text strong { font-weight: 500; font-size: 15px; }
body.pt-soft .pt-help-head-text small { color: var(--soft-mute); opacity: 1; }
body.pt-soft .pt-help-x { color: var(--soft-ink); border-radius: 9px; }
body.pt-soft .pt-help-x:hover { background: var(--soft-fill); }
body.pt-soft .pt-help-live-head .pt-help-live-dot { box-shadow: 0 0 0 3px var(--soft-good-bg); }
body.pt-soft .pt-help-tabs { margin: 0 12px 6px; padding: 3px; gap: 2px; border: 0; border-radius: 12px; background: var(--soft-fill); }
body.pt-soft .pt-help-tabs button { min-height: 28px; padding: 0 8px; border: 0; border-radius: 9px; font-weight: 400; color: var(--soft-mute); font-size: 13px; }
body.pt-soft .pt-help-tabs button.active { background: var(--soft-sheet); color: var(--soft-ink); font-weight: 500; box-shadow: var(--soft-tile); }
body.pt-soft .pt-help-body { background: transparent; }
body.pt-soft .pt-help-foot { border-top: 0; background: transparent; }
body.pt-soft .pt-help-msg { background: var(--soft-fill); border: 0; border-radius: 16px; font-size: 13.5px; }
body.pt-soft .pt-help-msg.is-me { background: var(--soft-sky); }
body.pt-soft .pt-help-steps li::marker { color: var(--soft-blue); font-weight: 500; }
body.pt-soft .pt-help-tips { background: var(--soft-warn-bg); border: 0; border-radius: 12px; }
body.pt-soft .pt-help-tips-title { font-weight: 500; }
body.pt-soft .pt-help-search input { border-radius: 999px; }
body.pt-soft .pt-help-group.is-suggested { background: var(--soft-fill); border: 0; border-radius: 14px; }
body.pt-soft .pt-help-topic { background: transparent; border: 0; border-radius: var(--soft-r-m); }
body.pt-soft .pt-help-topic:hover, body.pt-soft .pt-help-topic:focus-visible { background: var(--soft-fill); }
body.pt-soft .pt-help-topic .bi { color: var(--soft-blue); }
body.pt-soft .pt-help-back { color: var(--soft-blue); font-weight: 500; }
body.pt-soft .pt-help-more { border-top: 1px solid var(--soft-hair); }
body.pt-soft .pt-help-form .form-label { font-weight: 500; color: var(--soft-ink); }
body.pt-soft .pt-help-request { background: var(--soft-fill); border: 0; border-radius: 12px; }
body.pt-soft .pt-help-request:hover { background: var(--soft-fill-2); }
body.pt-soft .pt-help-request.is-unread { border-inline-start: 0; background: var(--soft-sky); }
body.pt-soft .pt-help-request-subject { font-weight: 500; }
body.pt-soft .pt-help-status { color: var(--soft-blue); font-weight: 500; }
body.pt-soft .pt-help-live-card { background: var(--soft-good-bg); border: 0; border-radius: 14px; }
body.pt-soft .pt-help-live-on, body.pt-soft .pt-help-live-state.is-on { color: var(--soft-good); font-weight: 500; }
body.pt-soft .pt-support-toggle { border: 0; background: var(--soft-fill); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .pt-support-toggle:hover { background: var(--soft-fill-2); }
body.pt-soft .pt-support-toggle.is-on { background: var(--soft-good-bg); color: var(--soft-good); }

/* ===================================================================== screens' own boxes */
/* Classes from the <style> blocks of single views that drew a white box or a hard frame on
   the new ground. Restyled here so the views stay untouched; the rest of those blocks is
   listed for Part C (docs/REDESIGN-PLAN.md). */
/* Option tiles and inner panels: a quiet fill, no frame. */
body.pt-soft :is(.gs-step a, .us-seat, .er-tile, .up-offer, .ss-team, .ss-example, .lp-choice, .pr-held div,
    .im-res div, .cv-sales, .ins-kpi, .su-plan, .su-cycle label) {
    border: 0; background: var(--soft-fill); border-radius: 14px; box-shadow: none;
}
body.pt-soft :is(.gs-step a, .su-plan, .lp-choice):hover { background: var(--soft-fill-2); border-color: transparent; }
body.pt-soft .gs-step.is-done a { background: transparent; }
body.pt-soft .gs-step .t { font-weight: 500; }
body.pt-soft .gs-step .ic { background: var(--soft-sheet); border-radius: 999px; }
body.pt-soft .gs-bar { background: var(--soft-fill-2); border-radius: 999px; }
body.pt-soft .gs-bar > i { border-radius: 999px; }
/* Whole-page cards: a raised sheet. */
body.pt-soft :is(.up-card, .su-sec, .su-sum, .pub-card) { border: 0; background: var(--soft-sheet); border-radius: var(--soft-r-l); box-shadow: var(--soft-raise); }
/* A card on a quiet column (the Deals board): a raised tile. */
body.pt-soft .dl-card { border: 0; background: var(--soft-sheet); border-radius: 12px; box-shadow: var(--soft-raise); }
/* No coloured side stripe: a quiet deal already carries its hourglass glyph. */
body.pt-soft .dl-card.is-stale { border-inline-start: 0; }
/* Filter links drawn as framed capsules: the pack's chips, sky when current. */
body.pt-soft :is(.ld-tabs a, .qt-tabs a, .gl-chips a, .im-kinds a, .dp-kinds label) {
    border: 0; background: transparent; color: var(--soft-mute); border-radius: 999px; font-size: 12.5px;
}
body.pt-soft :is(.ld-tabs a, .qt-tabs a, .gl-chips a, .im-kinds a, .dp-kinds label):hover { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft :is(.ld-tabs a, .qt-tabs a, .gl-chips a, .im-kinds a):is(.active, .is-on, [aria-current], [aria-pressed="true"]),
body.pt-soft .dp-kinds input:checked + label, body.pt-soft .dp-kinds label:has(input:checked) {
    background: var(--soft-sky); color: var(--soft-ink); font-weight: 500;
}
body.pt-soft .dp-mention { border: 0; background: var(--soft-sheet); border-radius: 14px; box-shadow: var(--soft-pop); }
body.pt-soft .cv-task button { border: 1.5px solid var(--soft-check); background: var(--soft-sheet); }
body.pt-soft .chip-btn { border: 0; background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .pv-bubble { border: 0; background: var(--soft-fill); }
body.pt-soft .rule-kw { border: 0; background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; border-radius: 999px; }
body.pt-soft .rule-any { border: 0; background: var(--soft-warn-bg); color: var(--soft-warn); font-weight: 500; border-radius: 999px; }
body.pt-soft .mail-result { border: 0; border-radius: 12px; }
body.pt-soft .mail-result.is-ok { background: var(--soft-good-bg); color: var(--soft-good); }
body.pt-soft .mail-result.is-err { background: var(--soft-bad-bg); color: var(--soft-bad); }
body.pt-soft .mail-result.is-busy { background: var(--soft-fill); color: var(--soft-mute); }
/* A QR code needs its white quiet zone; it only loses the frame. */
body.pt-soft .tf-qr { border: 0; }
body.pt-soft :is(.su-steps .n, .su-qty, .su-qty button, .su-qty input) { border: 0; background: var(--soft-field); }
body.pt-soft .su-qty { border-radius: var(--soft-r-m); }
body.pt-soft :is(.pay-methods span, .su-methods span) { border: 0; background: var(--soft-fill); border-radius: 999px; }
body.pt-soft .pub-lang button { border: 0; background: var(--soft-fill); color: var(--soft-ink); border-radius: var(--soft-r-m); }
body.pt-soft .pub-lang button:hover { background: var(--soft-fill-2); }
/* Signup's summary (A5b): the navy 2 px rule above the total and the grey ones between the
   add-ons and the subtotals become the one hairline; the total loses its heavy weight; the
   phone's pinned total bar is an ice sheet, not white. */
body.pt-soft :is(.su-addon, .su-tot) { border-top-color: var(--soft-hair); }
body.pt-soft .su-addon:first-child { border-top: 0; }
body.pt-soft .su-total { border-top: 1px solid var(--soft-hair); }
body.pt-soft .su-total .l { font-weight: 500; }
body.pt-soft .su-total .v { font-weight: 500; font-size: 26px; letter-spacing: -.01em; }
body.pt-soft .su-mbar { background: var(--soft-sheet); border-top: 0; box-shadow: var(--soft-pop); }

/* ===================================================================== sign-in and public pages */
body.pt-soft.auth { background: var(--soft-ground); }
body.pt-soft .auth-card .form-control { min-height: 44px; border-radius: var(--soft-r-m); }
body.pt-soft .auth-card .btn-primary { min-height: 44px; border-radius: var(--soft-r-m); font-weight: 500; }
body.pt-soft .auth-card .form-label { font-weight: 500; }
body.pt-soft .auth-lang, body.pt-soft .auth-alt { border: 0; background: var(--soft-fill); color: var(--soft-ink); border-radius: var(--soft-r-m); }
body.pt-soft .auth-lang:hover, body.pt-soft .auth-alt:hover { background: var(--soft-fill-2); color: var(--soft-ink); }
body.pt-soft .auth-mark { background: var(--soft-sky); border-radius: 999px; }
body.pt-soft .auth-sep::before, body.pt-soft .auth-sep::after { background: var(--soft-hair); }
body.pt-soft .auth-side { background: var(--soft-sheet); border-inline-start: 0; }
body.pt-soft .auth-chips span { background: var(--soft-fill); border: 0; font-weight: 400; }
/* A5: the form on one raised sheet, a Ping line running behind it (the pack's sign-in). */
body.pt-soft .auth-center { position: relative; }
body.pt-soft .auth-card {
    position: relative; z-index: 1; max-width: 432px; padding: 28px 28px 24px;
    background: var(--soft-sheet); border-radius: var(--soft-r-l); box-shadow: var(--soft-raise);
}
body.pt-soft .auth-h1 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
body.pt-soft .auth-sub { margin-bottom: 20px; color: var(--soft-mute); }
body.pt-soft .auth-note, body.pt-soft .auth-foot, body.pt-soft .auth-sep { color: var(--soft-mute); }
body.pt-soft .auth-foot a { color: var(--soft-mute); }
@media (min-width: 576px) {
    body.pt-soft .auth-center::before {
        content: ""; position: absolute; inset-inline: -24px; top: 50%; height: 2px; background: var(--soft-blue); opacity: .55;
    }
}
@media (max-width: 575.98px) {
    body.pt-soft .auth-main { padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
    body.pt-soft .auth-center { padding: 20px 0; }
    body.pt-soft .auth-card { padding: 22px 18px 18px; }
}
body.pt-soft.pub { background: var(--soft-ground); }

/* ===================================================================== the Conversations screen (A4) */
/* Pages/Conversations.cshtml: the list, the conversation and the customer as raised sheets on
   the ground. On a computer the page is exactly the window's height, so the reply box never
   leaves the screen: only the list and the thread scroll, each inside its sheet. The markup is
   the page's own (its rules are in css/conversations.css); the new look adds the customer's
   round tile (.sf-av), the channels' real logos (.sf-ch, Services/Channels/ChannelLogos.cs) and
   the channel's name on each row and above each customer message. Room is left for the view
   chips (B1), who wrote each message (B3) and Ping AI (B10). */

/* A channel's mark: its colour, its real logo in ice. SMS and X keep their glyph on calm. */
body.pt-soft .sf-ch {
    flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
    background: var(--soft-calm-bg); color: var(--soft-ink); vertical-align: -5px; line-height: 1;
}
body.pt-soft .sf-ch svg { display: block; width: 12px; height: 12px; fill: currentColor; }
body.pt-soft .sf-ch .bi { font-size: 11px; line-height: 1; }
body.pt-soft .sf-ch-s { width: 15px; height: 15px; border-radius: 5px; vertical-align: -3px; }
body.pt-soft .sf-ch-s svg { width: 9px; height: 9px; }
body.pt-soft .sf-ch-s .bi { font-size: 8.5px; }
body.pt-soft .sf-ch-l { width: 30px; height: 30px; border-radius: 9px; }
body.pt-soft .sf-ch-l svg { width: 17px; height: 17px; }
body.pt-soft .sf-ch-wa { background: var(--soft-ch-wa); color: var(--soft-sheet); }
body.pt-soft .sf-ch-ms { background: var(--soft-ch-ms); color: var(--soft-sheet); }
body.pt-soft .sf-ch-ig { background: var(--soft-ch-ig); color: var(--soft-sheet); }
body.pt-soft .sf-ch-tt { background: var(--soft-ink); color: var(--soft-ch-tt); }

/* The customer: a round tile with their initials, the channel's logo on its corner. */
body.pt-soft .sf-av {
    position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px;
    border-radius: 999px; background: var(--soft-fill-2); color: var(--soft-ink);
    font-size: 12.5px; font-weight: 500; line-height: 1;
}
body.pt-soft .sf-av > .bi { font-size: 16px; }
body.pt-soft .sf-av > .sf-ch {
    position: absolute; inset-inline-end: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 6px;
    box-shadow: 0 0 0 2px var(--soft-sheet);
}
body.pt-soft .sf-av > .sf-ch svg { width: 9px; height: 9px; }
body.pt-soft .sf-av > .sf-ch .bi { font-size: 9px; }
body.pt-soft .sf-av-l { width: 56px; height: 56px; font-size: 18px; }
body.pt-soft .sf-av-l > .bi { font-size: 22px; }
body.pt-soft .sf-av-l > .sf-ch { width: 20px; height: 20px; border-radius: 7px; }
body.pt-soft .sf-av-l > .sf-ch svg { width: 12px; height: 12px; }

/* The list: rows on the sheet, no rules between them; the open one on sky, without the
   coloured side stripe; names at 500, never bold. */
body.pt-soft .conv-list-card > .card-header {
    padding: 4px 16px 2px; font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--soft-mute);
}
body.pt-soft .conv-list { padding: 2px 6px 6px; }
body.pt-soft .conv-item {
    align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 0; border-radius: 12px;
    transition: background-color .18s ease-out;
}
body.pt-soft .conv-item + .conv-item { margin-top: 2px; }
body.pt-soft .conv-item:hover { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .conv-item.active, body.pt-soft .conv-item.active:hover { background: var(--soft-sky); box-shadow: none; }
body.pt-soft .conv-item.active .sf-av > .sf-ch { box-shadow: 0 0 0 2px var(--soft-sky); }
body.pt-soft .conv-item:focus-visible { outline-offset: -2px; }
body.pt-soft .conv-name, body.pt-soft .conv-item.is-unread .conv-name { font-weight: 500; }
body.pt-soft .conv-time { font-size: 11.5px; color: var(--soft-mute); }
body.pt-soft .conv-item.is-unread .conv-time { color: var(--soft-blue); font-weight: 500; }
body.pt-soft .conv-preview { font-size: 13px; color: var(--soft-mute); }
body.pt-soft .conv-item.is-unread .conv-preview { color: var(--soft-ink); }
body.pt-soft .conv-unread { background: var(--soft-blue); color: var(--soft-sheet); font-size: 11px; font-weight: 500; }
body.pt-soft .conv-item .small { font-size: 12px; }
body.pt-soft .sf-row-ch { flex: none; margin-inline-start: auto; font-size: 12px; color: var(--soft-mute); white-space: nowrap; }

/* The conversation's header is a card header, but its text is the page's, not a title's. */
body.pt-soft #convHead { font-family: inherit; font-size: 13.5px; font-weight: 400; }
body.pt-soft #convHead .pt-contact-open strong { font-size: 15px; font-weight: 500; }

/* The filters: the search field, then the channels as chips (sky when chosen). */
body.pt-soft .conv-filters .btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px;
    --sf-btn-bg: transparent; --sf-btn-bg-h: var(--soft-fill); --sf-btn-fg: var(--soft-mute); font-weight: 400;
}
body.pt-soft .conv-filters .btn-primary {
    --sf-btn-bg: var(--soft-sky); --sf-btn-bg-h: var(--soft-sky); --sf-btn-fg: var(--soft-ink); font-weight: 500;
}
body.pt-soft .conv-filters button.btn { --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink); }
/* The views and the channels with their counts (B1): two rows of chips under the search. A row
   that does not fit goes on to a second line: scrolled sideways, the last views were cut off with
   nothing to say there were more (owner, after B1). */
body.pt-soft .conv-chips { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.pt-soft .conv-chip-row { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
body.pt-soft .conv-chip-row .btn { flex: none; white-space: nowrap; }
body.pt-soft .conv-chip-n { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--soft-mute); }
body.pt-soft .conv-filters .btn-primary .conv-chip-n { color: var(--soft-ink); }
body.pt-soft .conv-filters .conv-tag { flex: 0 1 auto; width: auto; max-width: 150px; }
/* "Next waiting" above the reply box, after a send. */
body.pt-soft .conv-next {
    display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 8px; padding: 6px 12px;
    border-radius: 999px; background: var(--soft-fill); color: var(--soft-ink); font-size: 13px; text-decoration: none;
}
body.pt-soft .conv-next:hover { background: var(--soft-fill-2); color: var(--soft-ink); }
body.pt-soft .conv-next .bi { color: var(--soft-blue); }
body.pt-soft .conv-next strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
body.pt-soft .conv-next-time { flex: none; color: var(--soft-mute); white-space: nowrap; }

/* The thread: the customer on a neutral tint, us on sky, radius 16 with one tight corner;
   notes keep their own (amber) tint; what happened to the conversation is a quiet line. */
body.pt-soft .thread { padding: 14px 16px; background: transparent; border-radius: 0; }
body.pt-soft .bubble {
    max-width: min(78%, 540px); margin-bottom: 8px; padding: 8px 13px; border-radius: 16px;
    color: var(--soft-ink); font-size: 14px; line-height: 1.55;
}
body.pt-soft .bubble.in { background: var(--soft-bubble-in); border-end-start-radius: 5px; }
body.pt-soft .bubble.out { background: var(--soft-sky); color: var(--soft-ink); border-end-end-radius: 5px; }
body.pt-soft .bubble.failed { border: 0; box-shadow: inset 0 0 0 1.5px var(--soft-bad); }
body.pt-soft .bubble .when { font-size: 11px; opacity: 1; color: var(--soft-mute); }
body.pt-soft .bubble .tick.is-read { color: var(--soft-blue); }
/* Who wrote an automatic message (B3): the Auto assistant's small square (the pack's
   pt-who-auto, in navy-on-white because our bubble is already sky) or Tacto for the AI. */
body.pt-soft .sf-by { display: inline-flex; align-items: center; gap: 4px; }
body.pt-soft .sf-by-auto {
    display: inline-grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 5px;
    background: var(--soft-sheet); color: var(--soft-blue); font-size: 9px; line-height: 1;
}
body.pt-soft .sf-by-ai { flex: none; width: 11px; height: 13px; }
body.pt-soft .bubble .tpl-tag { font-size: 11px; opacity: 1; color: var(--soft-mute); }
body.pt-soft .bubble .msg-ad { color: var(--soft-mute); }
body.pt-soft .msg-media { border-radius: 12px; }
body.pt-soft .msg-file { background: var(--soft-fill); border-radius: 10px; }
body.pt-soft .msg-file:hover { background: var(--soft-fill-2); }
body.pt-soft .sf-msg-ch {
    display: flex; align-items: center; gap: 5px; margin: 10px 0 3px;
    font-size: 11px; line-height: 1.4; color: var(--soft-mute);
}
body.pt-soft .sys-line { margin: 10px 0; }
body.pt-soft .sys-line span { padding: 0 8px; border: 0; background: transparent; font-size: 12px; color: var(--soft-mute); }
body.pt-soft .note-bubble {
    max-width: min(85%, 560px); padding: 8px 13px; border: 0; border-radius: 12px;
    background: var(--soft-warn-bg); color: var(--soft-ink);
}
body.pt-soft .note-bubble .note-head { font-size: 11.5px; font-weight: 500; opacity: 1; color: var(--soft-warn); }
body.pt-soft .note-bubble .when { font-size: 11px; opacity: 1; color: var(--soft-warn); }

/* The reply box: Reply / Internal note on a soft track, "Send a template" a quiet action. */
body.pt-soft .conv-modes { flex-wrap: nowrap; align-items: center; gap: 0; margin-bottom: 8px !important; }
body.pt-soft .conv-modes > .nav-item:nth-child(-n+2) { padding: 3px; background: var(--soft-fill); }
body.pt-soft .conv-modes > .nav-item:first-child { padding-inline-end: 1px; border-start-start-radius: 12px; border-end-start-radius: 12px; }
body.pt-soft .conv-modes > .nav-item:nth-child(2) { padding-inline-start: 1px; border-start-end-radius: 12px; border-end-end-radius: 12px; }
body.pt-soft .conv-modes .nav-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 9px;
    background: transparent; color: var(--soft-mute); font-size: 13px; font-weight: 400;
}
body.pt-soft .conv-modes .nav-link:hover { background: transparent; color: var(--soft-ink); }
body.pt-soft .conv-modes .nav-link.active, body.pt-soft .conv-modes .nav-link.active:hover {
    background: var(--soft-sheet); color: var(--soft-ink); font-weight: 500; box-shadow: var(--soft-tile);
}
body.pt-soft .conv-modes > .nav-item.ms-auto .nav-link { color: var(--soft-ink); }
body.pt-soft .conv-modes > .nav-item.ms-auto .nav-link:hover { background: var(--soft-fill); }
body.pt-soft .note-box textarea { background: var(--soft-warn-bg); border-color: transparent; }
body.pt-soft .note-box textarea:hover { background: var(--soft-warn-bg); }
body.pt-soft .note-box textarea:focus { background: var(--soft-sheet); border-color: var(--soft-warn-bar); box-shadow: 0 0 0 3px var(--soft-warn-bg); }
body.pt-soft .mention-pick { padding: 6px; border: 0; border-radius: 14px; background: var(--soft-sheet); box-shadow: var(--soft-pop); }
body.pt-soft .mention-pick button { padding: 6px 10px; border-radius: 9px; color: var(--soft-ink); }
body.pt-soft .mention-pick button:hover, body.pt-soft .mention-pick button.is-on { background: var(--soft-fill); }
body.pt-soft .tpl-preview { background: var(--soft-sky); color: var(--soft-ink); border-radius: 16px; border-end-end-radius: 5px; }

/* The customer as a drawer (below 1200 px): an ice sheet, no hard edge or line. */
body.pt-soft #contactPanel.offcanvas-end { border: 0; background: var(--soft-sheet); box-shadow: var(--soft-pop); }
body.pt-soft #contactPanel .offcanvas-header { border-bottom: 0 !important; }

@media (max-width: 699.98px) {
    body.pt-soft .conv-filters .btn { min-height: 36px; }
}

/* ----- on a computer: three sheets, the window's height -----
   The page is a grid: its heading across the top; the filters and the list share one sheet
   (drawn by .conv-page::before, since the markup has no wrapper for them); the conversation
   beside them. The list's wrapper (#convLive, which the live updates read) steps aside with
   display: contents so its two cards can sit in the page's grid. From 1200 px up the customer
   (#contactPanel, a drawer below that) is a third sheet beside the conversation. */
@media (min-width: 900.02px) {
    body.pt-soft .sf-main:has(.conv-page) { height: 100vh; height: 100dvh; }
    body.pt-soft .app-content:has(> .conv-page) {
        flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; max-width: none; padding: 4px 16px 16px;
    }
    body.pt-soft .conv-page {
        flex: 1 1 auto; min-height: 360px;
        display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr);
        grid-template-areas: "head head" "filters thread" "list thread";
        column-gap: 12px;
    }
    body.pt-soft .conv-page::before {
        content: ""; grid-column: 1; grid-row: 2 / 4;
        border-radius: var(--soft-r-l); background: var(--soft-sheet); box-shadow: var(--soft-raise);
    }
    body.pt-soft .conv-page > .conv-grid { display: contents; }

    /* The heading: title and line on one row, the agent's status at the end. */
    body.pt-soft .conv-head { grid-area: head; align-items: center !important; margin-bottom: 12px; }
    body.pt-soft .conv-head > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
    body.pt-soft .conv-head h1 { margin: 0 !important; font-family: var(--pt-font-display); font-size: 21px; font-weight: 600; }
    body.pt-soft .conv-head p { margin: 0; }

    /* The list's sheet: the filters on top, the rows scrolling under them. */
    body.pt-soft .conv-filters { grid-area: filters; margin: 0 !important; padding: 12px 12px 6px; gap: 6px !important; }
    body.pt-soft .conv-filters input[type="search"] { flex: 1 1 100%; max-width: none !important; }
    /* With a tag list, the search shares its row with it; Enter searches, so the button goes. */
    body.pt-soft .conv-filters:has(.conv-tag) input[type="search"] { flex: 1 1 0; min-width: 0; }
    body.pt-soft .conv-filters:has(.conv-tag) > button.btn { display: none; }
    body.pt-soft .conv-list-card {
        grid-area: list; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
        background: transparent; box-shadow: none; border-radius: 0 0 var(--soft-r-l) var(--soft-r-l);
    }
    body.pt-soft .conv-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }

    /* The conversation's sheet: its header, the thread (which scrolls), the reply box (which
       does not). No overflow clipping here: the Transfer menu must open past the sheet. */
    body.pt-soft .conv-thread-card { grid-area: thread; min-height: 0; display: flex; flex-direction: column; }
    body.pt-soft .conv-thread-card > .card-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0; }
    body.pt-soft .conv-thread-card > .card-body:only-child { display: grid; place-content: center; padding: 24px; }
    /* A message scrolled up under the header fades out instead of being cut by a hard edge
       (the thread's padding keeps the first message clear of the fade). */
    body.pt-soft .conv-thread-card .thread {
        flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto;
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 14px);
        mask-image: linear-gradient(to bottom, transparent, black 14px);
    }
    body.pt-soft .conv-thread-card #liveReload { flex: none; width: auto !important; margin: 8px 12px 0 !important; }
    body.pt-soft .conv-thread-card .conv-compose { flex: none; margin: 0 !important; padding: 4px 14px 12px; }

    /* Its header: the customer, what is known, the window, then Take it, Transfer, Close as
       soft buttons (no main button: Send is the one). */
    body.pt-soft #convHead { flex: none; gap: 8px !important; padding: 12px 14px 10px; }
    /* The name gives way (it is cut short) before the buttons drop to a second row. */
    body.pt-soft #convHead .pt-contact-open {
        flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 10px;
        padding: 4px 8px 4px 4px; border-radius: 12px; text-align: start;
    }
    /* The name takes the row's free space, so the window's pill sits beside the buttons; when
       the buttons do drop to a second row, their own auto margin keeps them at its end. */
    body.pt-soft #convHead .conv-actions { gap: 6px !important; }
    /* The page does not scroll, so a long list of colleagues scrolls inside the menu. */
    body.pt-soft #convHead .dropdown-menu { max-height: min(420px, calc(100vh - 200px)); overflow-y: auto; }
}

@media (min-width: 1200px) {
    body.pt-soft .conv-page { grid-template-columns: minmax(270px, 300px) minmax(0, 1fr); }
    body.pt-soft .conv-thread-card:has(> #contactPanel) {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); grid-template-rows: auto minmax(0, 1fr);
        column-gap: 12px; background: transparent; box-shadow: none; border-radius: 0;
    }
    body.pt-soft .conv-thread-card:has(> #contactPanel)::before {
        content: ""; grid-column: 1; grid-row: 1 / 3;
        border-radius: var(--soft-r-l); background: var(--soft-sheet); box-shadow: var(--soft-raise);
    }
    body.pt-soft .conv-thread-card:has(> #contactPanel) > #convHead { grid-column: 1; grid-row: 1; }
    body.pt-soft .conv-thread-card:has(> #contactPanel) > .card-body { grid-column: 1; grid-row: 2; }
    /* The customer: the drawer, held open in place (js/shell-soft.js keeps Bootstrap from
       opening it over the page). */
    body.pt-soft .conv-thread-card > #contactPanel {
        grid-column: 2; grid-row: 1 / 3;
        position: static; inset: auto; z-index: auto; width: auto; max-width: none; min-height: 0;
        visibility: visible !important; transform: none !important; transition: none;
        border: 0; border-radius: var(--soft-r-l); background: var(--soft-sheet); box-shadow: var(--soft-raise);
    }
    body.pt-soft .conv-thread-card > #contactPanel .offcanvas-header { padding: 14px 16px 0; border-bottom: 0 !important; }
    body.pt-soft .conv-thread-card > #contactPanel .offcanvas-header .btn-close { display: none; }
    body.pt-soft .conv-thread-card > #contactPanel .offcanvas-title { font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--soft-mute); }
    body.pt-soft .conv-thread-card > #contactPanel .offcanvas-body { min-height: 0; overflow-y: auto; padding: 6px 16px 16px; }
    /* Beside the conversation its buttons are soft: Send stays the view's one main button. */
    body.pt-soft .conv-thread-card > #contactPanel .btn-primary {
        --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink);
    }
}

/* ===================================================================== parts (A5) */
/* The Ping line, vertical: a blue line through round stops. A done stop is filled, the
   current one ringed in blue, the rest open. Markup: ol.sf-line > li.sf-line-stop
   (.is-done | .is-current) > .sf-line-dot + .sf-line-body (.sf-line-title, .sf-line-text)
   + .sf-line-end (a pill or a button). A6 reuses it for the other sequences. */
body.pt-soft .sf-line { list-style: none; margin: 0; padding: 0; }
body.pt-soft .sf-line-stop {
    position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 2px 12px;
    padding: 8px 0;
}
body.pt-soft .sf-line-stop::before {
    content: ""; position: absolute; inset-inline-start: 10px; top: 0; bottom: 0; width: 2px; background: var(--soft-blue);
}
body.pt-soft .sf-line-stop:first-child::before { top: 18px; }
body.pt-soft .sf-line-stop:last-child::before { bottom: calc(100% - 18px); }
body.pt-soft .sf-line-stop:only-child::before { display: none; }
body.pt-soft .sf-line-dot {
    position: relative; z-index: 1; width: 14px; height: 14px; margin: 4px 4px 0; border-radius: 999px;
    background: var(--sf-line-bg, var(--soft-sheet)); box-shadow: inset 0 0 0 2px var(--soft-blue);
}
body.pt-soft .sf-line-stop.is-done .sf-line-dot { background: var(--soft-blue); }
body.pt-soft .sf-line-stop.is-current .sf-line-dot { box-shadow: inset 0 0 0 2px var(--soft-blue), 0 0 0 4px var(--soft-ring); }
body.pt-soft .sf-line-body { display: flex; flex-direction: column; min-width: 0; }
body.pt-soft .sf-line-title { color: var(--soft-ink); font-weight: 500; text-decoration: none; }
body.pt-soft a.sf-line-title:hover { color: var(--soft-blue); text-decoration: underline; text-underline-offset: 3px; }
body.pt-soft .sf-line-text { color: var(--soft-mute); font-size: 12.5px; }
body.pt-soft .sf-line-end { align-self: center; display: flex; align-items: center; gap: 8px; }

/* A quiet sheet: a fill, no shadow. */
body.pt-soft .pt-box.sf-quiet { background: var(--soft-fill); box-shadow: none; }
/* Figures in one line ("50 contacts · 4 groups"), not a row of big tiles. */
body.pt-soft .sf-figures { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
body.pt-soft .sf-figures b { font-weight: 500; font-variant-numeric: tabular-nums; }
/* A meter (a <progress>): a soft track, a blue fill. */
body.pt-soft .sf-meter {
    -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px;
    background: var(--soft-fill-2); color: var(--soft-blue); overflow: hidden;
}
body.pt-soft .sf-meter::-webkit-progress-bar { background: var(--soft-fill-2); border-radius: 999px; }
body.pt-soft .sf-meter::-webkit-progress-value { background: var(--soft-blue); border-radius: 999px; }
body.pt-soft .sf-meter::-moz-progress-bar { background: var(--soft-blue); border-radius: 999px; }
body.pt-soft .sf-meter.is-full::-webkit-progress-value { background: var(--soft-warn-bar); }
body.pt-soft .sf-meter.is-full::-moz-progress-bar { background: var(--soft-warn-bar); }
/* Key/value rows: the key muted, the value in ink. */
body.pt-soft .sf-kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
body.pt-soft .sf-kv dt { font-weight: 400; color: var(--soft-mute); }
body.pt-soft .sf-kv dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ===================================================================== lists (A5, from Contacts) */
/* The stat tiles of a list page become one quiet line of figures ("50 Total · 50 Reachable
   not blocked · 0 Blocked"): the number first, then its word, then its note. No markup change,
   so every page with .pt-stats follows. */
body.pt-soft .pt-stats {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px;
    padding: 11px 16px; border-radius: 14px; background: var(--soft-fill);
}
body.pt-soft .pt-stat {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0;
    padding: 0; background: transparent; border-radius: 0;
}
body.pt-soft .pt-stat-value { order: -1; font-family: var(--pt-font); font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
body.pt-soft .pt-stat-label { font-size: 13.5px; color: var(--soft-ink); text-transform: none; letter-spacing: 0; font-weight: 400; }
body.pt-soft .pt-stat-sub { margin: 0; font-size: 12.5px; color: var(--soft-mute); }
/* Row actions are quiet icon buttons: no pad until the pointer is on them; a danger or a
   warning keeps its coloured glyph. */
body.pt-soft :is(.pt-table, .table) td .btn-sm:is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-warning, .btn-outline-success, .btn-light) {
    --sf-btn-bg: transparent; --sf-btn-bg-h: var(--soft-fill-2);
}
body.pt-soft :is(.pt-table, .table) td .btn-sm.btn-outline-primary { --sf-btn-fg: var(--soft-blue); }
body.pt-soft :is(.pt-table, .table) td .btn-sm:is(.btn-outline-danger) { --sf-btn-bg-h: var(--soft-bad-bg); }
body.pt-soft :is(.pt-table, .table) td .btn-sm:is(.btn-outline-warning) { --sf-btn-bg-h: var(--soft-warn-bg); }
body.pt-soft :is(.pt-table, .table) td .btn-sm:is(.btn-outline-success) { --sf-btn-bg-h: var(--soft-good-bg); }
/* A person in a list: the round tile, the name, the number under it. */
body.pt-soft .sf-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.pt-soft .sf-who .sf-av { flex: none; width: 34px; height: 34px; font-size: 12.5px; }
body.pt-soft .sf-who-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
body.pt-soft .sf-who-sub { color: var(--soft-mute); font-size: 12.5px; }
body.pt-soft .sf-who ~ .small { padding-inline-start: 44px; }
html[dir="rtl"] body.pt-soft .sf-who-sub[dir="ltr"] { text-align: end; }

/* ===================================================================== the Deals board (A5) */
/* The stages share the width (four fit at 1280 beside the rail; more scroll sideways), the
   columns lose their box, and each head is a stop of the Ping line: a ring, the stage and
   its probability, the line, then the count and the value. CSS only: the drag and drop and
   the ⇄ menu read the same markup. */
body.pt-soft .dl-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 14px; }
body.pt-soft .dl-col { min-width: 0; padding: 0; border: 0; background: transparent; border-radius: 14px; min-height: 240px; }
body.pt-soft .dl-col.is-over { outline: 2px dashed var(--soft-blue); outline-offset: 4px; background: var(--soft-fill); }
body.pt-soft .dl-col-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
body.pt-soft .dl-col-head::before {
    content: ""; flex: none; width: 13px; height: 13px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--soft-blue);
}
body.pt-soft .dl-col-head b { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; font-weight: 500; }
body.pt-soft .dl-col-head b > span:first-child { font-size: 14px; color: var(--soft-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pt-soft .dl-col-head .dl-prob { font-size: 12px; font-weight: 400; color: var(--soft-mute); }
body.pt-soft .dl-col-head::after { content: ""; order: 2; flex: 1 1 12px; height: 2px; border-radius: 2px; background: var(--soft-blue-l); }
body.pt-soft .dl-col-head > span { order: 3; flex: none; font-size: 12px; color: var(--soft-mute); white-space: nowrap; }
body.pt-soft .dl-empty { padding: 18px 8px; border-radius: 12px; background: var(--soft-fill); color: var(--soft-mute); font-size: 12.5px; }
body.pt-soft .dl-card { padding: 11px 13px; margin-bottom: 10px; }
body.pt-soft .dl-title { font-weight: 500; }
body.pt-soft .dl-amount { font-weight: 500; }
body.pt-soft .dl-owner { background: var(--soft-sky); color: var(--soft-ink); font-weight: 500; }
body.pt-soft .dl-summary { color: var(--soft-mute); }
body.pt-soft .dl-summary b { font-weight: 500; }
/* The Won / Lost drop bar: sheets with the status tints, no glass. */
body.pt-soft .dl-drop { background: var(--soft-sheet); border-top: 0; box-shadow: var(--soft-pop); backdrop-filter: none; }
body.pt-soft .dl-drop > div { border: 0; border-radius: 14px; font-weight: 500; }
body.pt-soft .dl-drop .is-won { background: var(--soft-good-bg); color: var(--soft-good); }
body.pt-soft .dl-drop .is-lost { background: var(--soft-bad-bg); color: var(--soft-bad); }
body.pt-soft .dl-drop .is-over { box-shadow: inset 0 0 0 2px currentColor; }

/* ===================================================================== Billing (A5) */
/* What the plan includes: figures on one quiet band, no ruled cells; a limited one carries a
   meter (Pages/Billing/Index.cshtml, new look only). A form that is itself the sheet
   (.pt-box.pt-box-body) gets the sheet's padding. */
body.pt-soft .bill-cap { border-block: 0; gap: 4px 0; padding: 4px 6px; border-radius: 14px; background: var(--soft-fill); }
body.pt-soft .bill-cap > div, body.pt-soft .bill-cap > div:first-child { border-inline-start: 0; padding: 10px 14px; display: grid; gap: 4px; }
body.pt-soft .bill-cap .k { font-size: 12px; color: var(--soft-mute); }
body.pt-soft .bill-cap .v { font-weight: 500; }
body.pt-soft .bill-cap .v.full { color: var(--soft-warn); }
body.pt-soft .bill-cap .sf-meter { height: 6px; margin-top: 2px; }
body.pt-soft .bill-ch { gap: 12px; }
body.pt-soft .bill-ch .pt-ch { font-weight: 500; }
body.pt-soft .bill-feat { color: var(--soft-ink); }
body.pt-soft .bill-feat span.off { color: var(--soft-mute); }
body.pt-soft .pt-box.pt-box-body { padding: 16px 18px; }

/* ===================================================================== Workflows (A5) */
/* The channel filter: chips, the current one sky (it was a second main button). */
body.pt-soft .fl-chips .btn { border-radius: 999px; --sf-btn-bg: transparent; --sf-btn-bg-h: var(--soft-fill); --sf-btn-fg: var(--soft-mute); }
body.pt-soft .fl-chips .btn-primary { --sf-btn-bg: var(--soft-sky); --sf-btn-bg-h: var(--soft-sky); --sf-btn-fg: var(--soft-ink); }
/* The builder's chrome: the palette and the properties on the ground, no rules, headings
   in sentence case; items are quiet tiles. The canvas and its nodes are left alone. */
body.pt-soft .fb-palette, body.pt-soft .fb-props { background: var(--soft-ground); border: 0; }
body.pt-soft .fb-palette h3, body.pt-soft .fb-props h3 {
    font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft-ink);
}
body.pt-soft .fb-cat > span { font-size: 12px; font-weight: 500; color: var(--soft-mute); }
body.pt-soft .fb-item { border: 0; border-radius: 10px; background: var(--soft-sheet); box-shadow: var(--soft-tile); font-size: 12.5px; }
body.pt-soft .fb-item:hover { background: var(--soft-sky); transform: none; }
body.pt-soft .fb-webhook { background: var(--soft-fill); border-bottom: 0; }
body.pt-soft .fb-webhook-url code, body.pt-soft .fb-webhook-example { background: var(--soft-sheet); border: 0; }

/* ===================================================================== Home (A5) */
body.pt-soft .sf-home {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 16px; align-items: start; margin-bottom: 22px;
}
body.pt-soft .sf-home.no-guide { grid-template-columns: minmax(0, 1fr); }
body.pt-soft .sf-home.no-guide .sf-home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
body.pt-soft .sf-home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.pt-soft .sf-home > .pt-box, body.pt-soft .sf-home-side > .pt-box { padding: 16px 18px; margin: 0; }
body.pt-soft .sf-home h2 { font-size: 16px; font-weight: 500; margin: 0; }
body.pt-soft .sf-home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
body.pt-soft .sf-home-figures h2 { margin-bottom: 8px; }
body.pt-soft .sf-progress { display: flex; align-items: center; gap: 12px; }
body.pt-soft .sf-progress-text { flex: none; color: var(--soft-mute); font-size: 12.5px; }
body.pt-soft .sf-home-note { margin: 6px 0 8px; color: var(--soft-mute); font-size: 12.5px; }
body.pt-soft .sf-plan-name { margin: 0 0 12px; font-family: var(--pt-font-display); font-size: 21px; font-weight: 500; }
html[dir="rtl"] body.pt-soft .sf-plan-name { font-family: var(--pt-font); }
body.pt-soft .sf-home-kpis { padding: 12px 16px; margin-bottom: 16px; }
/* The date range's Apply is a filter, not the dashboard's main action. */
body.pt-soft .dash-filter .btn-primary { --sf-btn-bg: var(--soft-fill); --sf-btn-bg-h: var(--soft-fill-2); --sf-btn-fg: var(--soft-ink); }
body.pt-soft .dash-charts h3 { font-size: 14px; font-weight: 500; color: var(--soft-ink); }
@media (max-width: 991.98px) {
    body.pt-soft .sf-home { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    body.pt-soft .sf-line-stop { grid-template-columns: 22px minmax(0, 1fr); }
    body.pt-soft .sf-line-end { grid-column: 2; justify-self: start; }
}

/* ===================================================================== phones */
@media (max-width: 767.98px) {
    body.pt-soft .btn { padding-block: 9px; }
    body.pt-soft .btn-sm { padding-block: 7px; }
    body.pt-soft .form-control, body.pt-soft .form-select { min-height: 40px; }
    body.pt-soft .form-control-sm, body.pt-soft .form-select-sm { min-height: 36px; }
    body.pt-soft .nav-tabs .nav-link { min-height: 34px; }
    body.pt-soft .pt-tag-chip { min-height: 36px; }
}

/* Phone-only parts of the frame, out of the way on wider screens. */
body.pt-soft .sf-appbar-mark, body.pt-soft .sf-appbar-title, body.pt-soft .sf-appbar-search, body.pt-soft .sf-tabbar, body.pt-soft .sf-install-card { display: none; }
body.pt-soft .sf-tabs-top { display: contents; }
/* A screen with its own heading has the area's tabs under it (A5b, Shared/PageHead.cs); the
   top bar's copy is then the phone's only. */
body.pt-soft .sf-tabs-top.is-phone { display: none; }
body.pt-soft .sf-tabs-page { margin: -4px 0 18px; }
/* The heading block just before them is the page's title, whatever the view called it (a
   bare h2 on Channels, Campaigns, Templates…): title size, and room above the tabs. */
body.pt-soft .app-content > :has(+ .sf-tabs-page):not(.pt-head) { margin-bottom: 14px !important; }
body.pt-soft .app-content > :is(h1, h2):has(+ .sf-tabs-page),
body.pt-soft .app-content > :not(.pt-head):has(+ .sf-tabs-page) :is(h1, h2) {
    font-family: var(--pt-font-display); font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em;
}
html[dir="rtl"] body.pt-soft .app-content > :is(h1, h2):has(+ .sf-tabs-page),
html[dir="rtl"] body.pt-soft .app-content > :not(.pt-head):has(+ .sf-tabs-page) :is(h1, h2) { font-family: var(--pt-font); letter-spacing: 0; }
body.pt-soft .sf-tabs-page .sf-tabs { width: max-content; max-width: 100%; }

/* ===================================================================== the phone (A3) */
/* Below 700 px the same frame re-flows: a navy app bar (mark, title, help, bell), a second
   row only for the impersonation badge and the sender switcher, the area's tabs on the
   ground under it, and a navy tab bar at the bottom (the first four areas and "More").
   The page scrolls between the two bars. Sizes follow the installed app: 100dvh, the
   safe areas, 40 px controls, 44 px icon buttons. */
@media (max-width: 699.98px) {
    body.pt-soft .sf-shell { display: block; min-height: 100vh; min-height: 100dvh; }
    body.pt-soft .sf-rail { display: none; }
    body.pt-soft .sf-main { min-height: 100vh; min-height: 100dvh; }

    /* The app bar. */
    body.pt-soft .sf-top {
        position: sticky; top: 0; z-index: 1030;
        flex-wrap: wrap; gap: 0 2px; min-height: 0;
        padding: env(safe-area-inset-top, 0px) calc(4px + env(safe-area-inset-right, 0px)) 0 calc(4px + env(safe-area-inset-left, 0px));
        background: var(--soft-ink); color: var(--soft-sheet);
    }
    body.pt-soft .sf-top::after { content: ""; order: 5; flex-basis: 100%; }
    body.pt-soft .sf-appbar-mark {
        order: 1; flex: none; display: inline-grid; place-items: center; width: 44px; height: 48px;
    }
    body.pt-soft .sf-appbar-title {
        order: 2; flex: 1 1 0; min-width: 0; display: block; padding-inline: 2px;
        font-size: 16px; font-weight: 500; line-height: 48px; color: var(--soft-sheet);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    /* The h1 stays the heading for screen readers; the app bar shows its text. */
    body.pt-soft .sf-top > .sf-title {
        position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
        overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
    }
    body.pt-soft .sf-top > .ms-auto { display: contents !important; }
    body.pt-soft .sf-top > .ms-auto > * { order: 3; flex: none; }
    body.pt-soft .sf-top .topbar-bell, body.pt-soft .sf-top .pt-support-toggle {
        min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
        background: transparent; color: var(--soft-sky);
    }
    body.pt-soft .sf-top .topbar-bell:hover, body.pt-soft .sf-top .pt-support-toggle:hover { background: var(--soft-rail-btn); color: var(--soft-sky); }
    body.pt-soft .sf-top .pt-support-toggle.is-on { background: transparent; color: var(--soft-good-bg); }
    body.pt-soft .sf-top .topbar-bell .badge { border: 2px solid var(--soft-ink); }
    /* Search (the rail's Ctrl K button, which the phone does not show), before help and the bell. */
    body.pt-soft .sf-appbar-search {
        order: 3; flex: none; display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--soft-r-m);
        background: transparent; color: var(--soft-sky);
    }
    body.pt-soft .sf-appbar-search:hover { background: var(--soft-rail-btn); }
    body.pt-soft .sf-appbar-search .sf-ico { width: 20px; height: 20px; }
    body.pt-soft .sf-top a:focus-visible, body.pt-soft .sf-top button:focus-visible { outline-color: var(--soft-blue-l); outline-offset: -2px; }

    /* The second row: who the owner is looking at, and which number sends. */
    body.pt-soft .sf-top > .impersonation-badge, body.pt-soft .sf-top .sf-sender { order: 6; margin-bottom: 8px; }
    body.pt-soft .sf-top > .impersonation-badge {
        flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; margin-inline: 6px;
        white-space: nowrap;
    }
    body.pt-soft .sf-top > .impersonation-badge strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    body.pt-soft .sf-top > .impersonation-badge form { flex: none; }
    body.pt-soft .sf-top .sf-sender { margin-inline: 6px; }
    body.pt-soft .sf-top .sf-sender > .btn {
        --sf-btn-bg: var(--soft-rail-btn); --sf-btn-bg-h: var(--soft-rail-btn-h); --sf-btn-fg: var(--soft-sky);
        min-height: 32px; padding-block: 5px;
    }

    /* The area's tabs, on the ground under the bar; the track scrolls sideways. The copy a
       screen carries under its own heading gives way to this one. */
    body.pt-soft .sf-tabs-page { display: none; }
    body.pt-soft .sf-tabs-top, body.pt-soft .sf-tabs-top.is-phone {
        order: 9; display: block; flex: 0 0 auto;
        width: calc(100% + 8px + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
        margin-inline: calc(-4px - env(safe-area-inset-left, 0px)) calc(-4px - env(safe-area-inset-right, 0px));
        padding: 8px calc(12px + env(safe-area-inset-right, 0px)) 6px calc(12px + env(safe-area-inset-left, 0px));
        background: var(--soft-ground); color: var(--soft-ink);
    }
    body.pt-soft .sf-tabs { width: max-content; max-width: 100%; }
    body.pt-soft .sf-tab { min-height: 34px; padding: 0 13px; }

    /* Dropdowns of the bar (the bell, the sender switcher) open as bottom sheets. */
    body.pt-soft .sf-top .dropdown-menu.show {
        position: fixed !important; inset: auto 0 0 0 !important; transform: none !important; margin: 0 !important;
        width: 100%; min-width: 0 !important; max-width: none !important; max-height: 80dvh; overflow-y: auto;
        padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: var(--soft-r-l) var(--soft-r-l) 0 0;
        box-shadow: 0 0 0 100vmax var(--soft-veil), var(--soft-pop);
    }
    body.pt-soft .sf-top .dropdown-menu .dropdown-item { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
    body.pt-soft .sf-top .dropdown-menu .text-truncate { max-width: none !important; }

    /* The content: clear of the tab bar and the home indicator. */
    body.pt-soft .app-content {
        padding: 12px calc(12px + env(safe-area-inset-right, 0px)) calc(80px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
    }
    body.pt-soft.app-body { padding-left: 0; padding-right: 0; }

    /* The bottom tab bar. */
    body.pt-soft .sf-tabbar {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 1029;
        display: flex; align-items: stretch;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
        background: var(--soft-ink); color: var(--soft-sky);
    }
    body.pt-soft .sf-tabbar-item {
        flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        padding: 4px 2px; border: 0; background: transparent; color: var(--soft-sky);
        font-size: 11px; line-height: 1.15; text-decoration: none;
    }
    body.pt-soft .sf-tabbar-item:hover { color: var(--soft-sky); }
    body.pt-soft .sf-tabbar-item { position: relative; }
    /* The support queue's count on its entry, or on "More" when the entry is in the sheet. */
    body.pt-soft .sf-tabbar-count {
        position: absolute; top: 3px; inset-inline-start: calc(50% + 6px);
        min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid var(--soft-ink);
        box-sizing: content-box; background: var(--soft-bad); color: var(--soft-sheet);
        font-size: 10.5px; font-weight: 500; line-height: 18px; text-align: center;
    }
    body.pt-soft .sf-tabbar-item .sf-ico {
        width: 48px; height: 26px; padding: 4px 14px; border-radius: 999px;
        transition: background-color .18s ease-out;
    }
    body.pt-soft .sf-tabbar-item:is([aria-current="page"], .is-current) { font-weight: 500; }
    body.pt-soft .sf-tabbar-item:is([aria-current="page"], .is-current) .sf-ico,
    body.pt-soft .sf-tabbar-item:is([aria-current="page"], .is-current) .sf-tabbar-me { background: var(--soft-sky); color: var(--soft-ink); }
    body.pt-soft .sf-tabbar-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
    body.pt-soft .sf-tabbar-label.is-long { font-size: 10px; }
    html[dir="rtl"] body.pt-soft .sf-tabbar-label { letter-spacing: 0; font-size: 11.5px; }
    body.pt-soft .sf-tabbar-me {
        display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
        background: var(--soft-rail-btn); font-size: 10.5px; font-weight: 500;
    }
    body.pt-soft .sf-tabbar-item:focus-visible { outline-color: var(--soft-blue-l); outline-offset: -3px; }
    /* Typing in a field: the keyboard is up, the bar would ride on it (shell-soft.js). */
    body.pt-soft.sf-typing .sf-tabbar { display: none; }
    body.pt-soft .pt-toasts { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

    /* Sheets: modals rise from the bottom, full width, the action row pinned above the
       home indicator. */
    body.pt-soft .modal { padding: 0 !important; }
    body.pt-soft .modal-dialog, body.pt-soft .modal-dialog-centered, body.pt-soft .modal-dialog-scrollable {
        display: flex; align-items: flex-end; width: 100%; max-width: none; height: 100%; min-height: 100%; margin: 0;
    }
    body.pt-soft .modal.fade .modal-dialog { transform: translateY(100%); }
    body.pt-soft .modal.show .modal-dialog { transform: none; }
    body.pt-soft .modal-content, body.pt-soft .modal-dialog-scrollable .modal-content {
        width: 100%; max-height: 90vh; max-height: 90dvh; overflow: hidden;
        border-radius: var(--soft-r-l) var(--soft-r-l) 0 0;
    }
    body.pt-soft .modal-body { overflow-y: auto; min-height: 0; }
    body.pt-soft .modal-content > :last-child { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    body.pt-soft .modal-footer { flex: none; }
    body.pt-soft .btn-close { width: 44px; height: 44px; padding: 0; margin: -12px; background-size: 12px; }

    /* Touch sizes: chips 36, icon-only buttons 44. */
    body.pt-soft .btn-sm { min-height: 36px; }
    body.pt-soft .pt-composer-tool { min-width: 44px; min-height: 44px; }
    body.pt-soft .pt-composer-send { width: 44px; height: 44px; }

    /* Offered once on the dashboard: install the app (js/pwa.js unhides it). */
    body.pt-soft .sf-install-card:not([hidden]) {
        display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
        margin: 12px calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px));
        padding: 14px; border-radius: var(--soft-r-l); background: var(--soft-sheet); box-shadow: var(--soft-raise);
    }
    body.pt-soft .sf-install-card img { flex: none; border-radius: 10px; }
    body.pt-soft .sf-install-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--soft-mute); }
    body.pt-soft .sf-install-text strong { color: var(--soft-ink); font-size: 14px; }
    body.pt-soft .sf-install-acts { display: flex; gap: 8px; margin-inline-start: auto; }
}

/* The "More" sheet (offcanvas-bottom): the areas that did not fit the bar, then the
   person's own links. */
body.pt-soft .offcanvas-backdrop { background-color: var(--soft-ink); }
body.pt-soft .offcanvas-backdrop.show { opacity: .38; }
body.pt-soft .sf-sheet.offcanvas-bottom {
    height: auto; max-height: 90vh; max-height: 90dvh; border: 0;
    border-radius: var(--soft-r-l) var(--soft-r-l) 0 0; background: var(--soft-sheet); box-shadow: var(--soft-pop);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
body.pt-soft .sf-sheet-grip { flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 999px; background: var(--soft-line); }
body.pt-soft .sf-sheet .offcanvas-header { padding: 6px 16px 4px; }
body.pt-soft .sf-sheet .offcanvas-title { font-size: 16px; font-weight: 500; margin: 0; }
body.pt-soft .sf-sheet .offcanvas-body { padding: 6px 12px 14px; overflow-y: auto; }
body.pt-soft .sf-sheet-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-bottom: 12px; }
body.pt-soft .sf-sheet-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 4px;
    border-radius: 14px; background: var(--soft-fill); color: var(--soft-ink); font-size: 12.5px; text-align: center; text-decoration: none;
}
body.pt-soft .sf-sheet-area:hover { background: var(--soft-fill-2); color: var(--soft-ink); }
body.pt-soft .sf-sheet-area[aria-current="page"] { background: var(--soft-sky); font-weight: 500; }
body.pt-soft .sf-sheet-area .sf-ico { width: 22px; height: 22px; }
body.pt-soft .sf-sheet-area { position: relative; }
body.pt-soft .sf-sheet-count {
    position: absolute; top: 6px; inset-inline-end: 8px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--soft-bad); color: var(--soft-sheet);
    font-size: 10.5px; font-weight: 500; line-height: 18px; text-align: center;
}
body.pt-soft .sf-sheet-me .sf-me-tenant { padding: 6px 12px; }
body.pt-soft .sf-sheet-me .sf-me-user { padding: 2px 12px 10px; }
body.pt-soft .sf-sheet-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px;
    border: 0; border-radius: 12px; background: transparent; color: var(--soft-ink);
    font-size: 14px; text-align: start; text-decoration: none;
}
body.pt-soft .sf-sheet-item[hidden] { display: none; }
body.pt-soft .sf-sheet-item:hover { background: var(--soft-fill); color: var(--soft-ink); }
body.pt-soft .sf-sheet-item .bi { width: 20px; text-align: center; color: var(--soft-mute); font-size: 16px; }
body.pt-soft .sf-sheet-me .sf-me-legal { padding: 10px 12px 0; }

/* ----- the Conversations screen on a phone: one pane at a time -----
   The list; a conversation, full screen, with the reply box where the tab bar was; the
   customer, full screen over it. The pane follows the address (open, panel), so back,
   forward and reload land where they should. The page's own rules (its Styles section,
   up to 900 px) already pick between the list and the conversation. */
@media (max-width: 699.98px) {
    /* The list: the app bar already names the screen. */
    body.pt-soft .conv-head > div:first-child {
        position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
    }
    body.pt-soft .conv-head { margin-bottom: 8px; justify-content: flex-end !important; }
    body.pt-soft .conv-filters input[type="search"] { max-width: none !important; flex: 1 1 100%; }
    body.pt-soft .conv-filters { gap: 6px !important; }
    body.pt-soft .conv-item { min-height: 64px; }

    /* A conversation: the whole screen, no app bar, no tab bar. Its height follows the
       visible part of the screen (shell-soft.js sets --sf-vvh from visualViewport), so the
       reply box stays above the keyboard on an iPhone, which ignores interactive-widget. */
    body.pt-soft:has(.conv-page.has-open) .sf-top,
    body.pt-soft:has(.conv-page.has-open) .sf-tabbar { display: none !important; }
    body.pt-soft:has(.conv-page.has-open) .app-content { padding: 0 !important; }
    body.pt-soft:has(.conv-page.has-open) #main > .alert {
        position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); inset-inline: 8px; z-index: 1040; margin: 0; box-shadow: var(--soft-pop);
    }
    body.pt-soft .conv-page.has-open .conv-thread-card {
        height: var(--sf-vvh, 100dvh); min-height: 0; border-radius: 0; box-shadow: none; background: var(--soft-ground);
    }
    body.pt-soft .conv-page.has-open .conv-thread-card > .card-body { padding: 0 !important; }
    body.pt-soft .conv-page.has-open .thread { border-radius: 0; padding: 10px; background: transparent; }
    body.pt-soft .conv-page.has-open #liveReload { flex: none; margin: 6px 8px 0 !important; width: auto !important; }
    body.pt-soft .conv-page.has-open .conv-compose {
        margin: 0 !important;
        padding: 8px calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px));
        background: var(--soft-sheet); box-shadow: 0 -1px 0 var(--soft-hair);
    }
    body.pt-soft .conv-page.has-open .conv-compose .conv-modes { margin-bottom: 6px !important; }

    /* Its header: back, the customer, Take it, and "⋯" (Transfer, Hand back, Close). The
       state pills take a quiet second row when there are any. */
    body.pt-soft #convHead {
        flex-wrap: wrap; gap: 2px 4px !important;
        padding: calc(4px + env(safe-area-inset-top, 0px)) calc(4px + env(safe-area-inset-right, 0px)) 6px calc(4px + env(safe-area-inset-left, 0px)) !important;
        background: var(--soft-sheet); border-radius: 0 !important; box-shadow: 0 1px 0 var(--soft-hair);
    }
    body.pt-soft #convHead::after { content: ""; order: 5; flex-basis: 100%; }
    body.pt-soft #convHead .conv-back { order: 1; width: 44px; height: 44px; }
    body.pt-soft #convHead .pt-contact-open { order: 2; flex: 1 1 0; min-width: 0; }
    body.pt-soft #convHead .conv-actions { display: contents !important; }
    body.pt-soft #convHead .conv-actions > * { order: 6; }
    body.pt-soft #convHead .conv-actions > form { order: 3; align-self: center; }
    body.pt-soft #convHead .conv-actions > .dropdown { order: 4; align-self: center; }
    body.pt-soft #convHead .conv-actions > form[action*="handler=Close"] { display: none !important; }
    /* The AI assistant's switch (B10) is a form too, but a state: the second row, beside the
       window's badge, so the customer's name keeps the first. */
    body.pt-soft #convHead .conv-actions > form.conv-ai-form { order: 6; }
    body.pt-soft #convHead .conv-actions > .sf-ai-switch, body.pt-soft #convHead .conv-ai-form .sf-ai-switch {
        min-height: 28px; padding: 2px 10px; font-size: 11.5px; white-space: nowrap;
    }
    body.pt-soft #convHead > :is(.badge, .pt-pill), body.pt-soft #convHead .conv-actions > :is(.badge, .pt-pill) {
        order: 6; margin-inline-start: 0 !important; font-size: 11.5px;
    }
    body.pt-soft #convHead .conv-actions > form .btn { min-height: 40px; }
    /* "⋯": the Transfer menu, holding Close too on a phone. */
    body.pt-soft #convHead .conv-act-toggle { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; --sf-btn-bg: transparent; }
    body.pt-soft #convHead .conv-act-toggle::after { display: none; }
    body.pt-soft #convHead .conv-act-toggle > .bi-arrow-left-right { display: none; }
    body.pt-soft #convHead .conv-act-label {
        position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
    }
    body.pt-soft #convHead .conv-act-more.d-none { display: inline-block !important; font-size: 20px; }
    body.pt-soft #convHead .conv-menu-close.d-none { display: list-item !important; }
    body.pt-soft #convHead .dropdown-menu.show {
        position: fixed !important; inset: auto 0 0 0 !important; transform: none !important; margin: 0 !important;
        width: 100%; min-width: 0 !important; max-height: 80dvh; overflow-y: auto;
        padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px)) !important; border-radius: var(--soft-r-l) var(--soft-r-l) 0 0;
        box-shadow: 0 0 0 100vmax var(--soft-veil), var(--soft-pop);
    }
    body.pt-soft #convHead .dropdown-menu .dropdown-item { min-height: 44px; display: flex; align-items: center; gap: 8px; }

    /* The customer: a full-screen pane over the conversation, with a back arrow. */
    body.pt-soft #contactPanel.offcanvas-end { width: 100%; border: 0; }
    body.pt-soft #contactPanel .offcanvas-header {
        padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 4px 4px; justify-content: flex-start; gap: 4px; border-bottom: 0 !important;
    }
    body.pt-soft #contactPanel .offcanvas-header .btn-close { display: none; }
    body.pt-soft #contactPanel .conv-panel-back.d-none {
        display: inline-grid !important; place-items: center; width: 44px; height: 44px; padding: 0;
        border: 0; border-radius: 999px; background: transparent; color: var(--soft-ink); font-size: 1.2rem;
    }
    body.pt-soft #contactPanel .conv-panel-back:hover { background: var(--soft-fill); }
    body.pt-soft #contactPanel .offcanvas-body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ===================================================================== the installed app's sheets */
/* "Install the app" (_InstallApp): a sheet, the steps a Ping line of three stops. */
body.pt-soft .pt-install-icon { border-radius: 12px; }
body.pt-soft .pt-install-steps { position: relative; list-style: none; padding: 0; gap: 0; counter-reset: sf-step; }
body.pt-soft .pt-install-steps li {
    position: relative; min-height: 44px; padding-block: 2px 14px; padding-inline: 34px 0; counter-increment: sf-step;
}
body.pt-soft .pt-install-steps li::before {
    content: ""; position: absolute; inset-inline-start: 4px; top: 4px;
    width: 15px; height: 15px; border-radius: 999px; background: var(--soft-sheet); box-shadow: inset 0 0 0 3px var(--soft-blue);
}
body.pt-soft .pt-install-steps li:first-child::before { background: var(--soft-blue); box-shadow: none; }
body.pt-soft .pt-install-steps li::after {
    content: ""; position: absolute; inset-inline-start: 10px; top: 19px; bottom: -4px; border-inline-start: 3px solid var(--soft-blue);
}
body.pt-soft .pt-install-steps li:last-child { padding-bottom: 0; }
body.pt-soft .pt-install-steps li:last-child::after { display: none; }
body.pt-soft .pt-install-glyph { width: 28px; height: 28px; border-radius: 9px; background: var(--soft-fill); color: var(--soft-blue); }

/* ===================================================================== filter rows (A5b) */
/* A list's filters are one compact row, as the pack draws them: the search field takes the
   room, each select becomes a pill that carries its own label ("Country  All ⌄"), sky when it
   narrows the list, and Apply / Clear sit at the end of the same row. CSS only: every
   .pt-filters form keeps its fields and names (Contacts, Deals, Leads, Companies, Quotes,
   Sales reports, Clients, Products, Branches). Below 768 px the phone's layout stays, with
   "More filters" folding the selects away. */
@media (min-width: 768px) {
    body.pt-soft .pt-filters:has(> .row), body.pt-soft .pt-filters.row {
        display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    }
    body.pt-soft .pt-filters > .row, body.pt-soft .pt-filters.row {
        --bs-gutter-x: 0; --bs-gutter-y: 0; flex: 1 1 auto;
        display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0;
    }
    body.pt-soft .pt-filters.row { padding: 12px 14px !important; }
    body.pt-soft .pt-filters :is(.row, .pt-filter-more) > [class*="col"], body.pt-soft .pt-filters.row > [class*="col"] {
        flex: none; width: auto; max-width: none; margin: 0; padding: 0;
    }
    body.pt-soft .pt-filters > .d-flex { margin: 0 !important; }
    /* The search: the widest field, its label left for screen readers (the placeholder says it). */
    body.pt-soft .pt-filters [class*="col"]:has(> .form-label + input.form-control:is([type="text"], [type="search"], :not([type]))) {
        flex: 1 1 240px; max-width: 420px;
    }
    body.pt-soft .pt-filters [class*="col"] > .form-label:has(+ input.form-control:is([type="text"], [type="search"], :not([type]))) {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    body.pt-soft .pt-filters input.form-control-sm:is([type="text"], [type="search"], :not([type])) {
        min-height: 32px; border-radius: 999px; padding-inline: 14px;
    }
    /* A select or a date with its label: one pill. */
    body.pt-soft .pt-filters [class*="col"]:has(> .form-label + :is(.form-select, input[type="date"], input[type="number"])) {
        display: inline-flex; align-items: center; height: 32px; padding-inline-start: 12px;
        border-radius: 999px; background: var(--soft-fill); transition: background-color .18s ease-out;
    }
    body.pt-soft .pt-filters [class*="col"]:has(> .form-label + :is(.form-select, input[type="date"], input[type="number"])):hover { background: var(--soft-fill-2); }
    body.pt-soft .pt-filters [class*="col"] > .form-label:has(+ :is(.form-select, input[type="date"], input[type="number"])) {
        margin: 0; font-size: 12.5px; font-weight: 400; line-height: 32px; color: var(--soft-mute); white-space: nowrap;
    }
    body.pt-soft .pt-filters [class*="col"] > .form-label + :is(.form-select, input[type="date"], input[type="number"]) {
        width: auto; max-width: 220px; min-height: 32px; height: 32px; padding-block: 0; padding-inline-start: 6px;
        border-radius: 999px; background-color: transparent; font-weight: 500; color: var(--soft-ink);
    }
    body.pt-soft .pt-filters [class*="col"] > .form-label + input[type="date"] { padding-inline-end: 10px; }
    /* A pill that narrows the list is selected: sky, like a chosen chip. */
    body.pt-soft .pt-filters [class*="col"]:has(> .form-label + .form-select option:checked:not([value=""])),
    body.pt-soft .pt-filters [class*="col"]:has(> .form-label + input[type="date"][value]:not([value=""])) { background: var(--soft-sky); }
    /* A tick box in the row (Branches: "Active only"). */
    body.pt-soft .pt-filters [class*="col"] > .form-check { margin: 0 !important; padding-block: 5px; }
    /* Apply and Clear: compact, at the end of the row. */
    body.pt-soft .pt-filters .btn-sm { min-height: 32px; border-radius: 999px; padding-inline: 14px; }
    body.pt-soft .pt-filters [class*="col"].d-flex .flex-grow-1 { flex-grow: 0 !important; }
    /* Sales reports: the custom dates show only with "Custom" (the page's own rule, restated
       because the pill rule above sets display). */
    body.pt-soft .rp-filters:not([data-period="custom"]) .rp-period-custom { display: none !important; }
}

/* A table column a phone can do without (A5b: the console's Clients and Support requests).
   The views mark the cells sf-wide, a class with no meaning in the classic look. */
@media (max-width: 575.98px) {
    body.pt-soft :is(th, td).sf-wide { display: none; }
}

/* ===================================================================== figure lines (A5b) */
/* Goals & forecast (.gl-kpis, five tiles) and Sales reports (.rp-kpis, six) drew a row of
   big-number boxes, which the reviewer's rules forbid. They become one quiet band, like the
   console's .pt-kpis strip: each figure its word, the number, and its note, side by side,
   wrapping on narrow windows. CSS only; the Won figure keeps its progress bar. */
body.pt-soft :is(.gl-kpis, .rp-kpis) {
    display: flex; flex-wrap: wrap; gap: 0; padding: 4px 6px; border-radius: 14px; background: var(--soft-fill);
}
body.pt-soft :is(.gl-kpi, .rp-kpi) {
    flex: 1 1 150px; min-width: 0; padding: 10px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.pt-soft :is(.gl-kpi, .rp-kpi) .k { font-size: 12px; color: var(--soft-mute); }
body.pt-soft :is(.gl-kpi, .rp-kpi) .v {
    margin-top: 2px; font-family: var(--pt-font); font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: 0;
}
body.pt-soft :is(.gl-kpi, .rp-kpi) .v small { font-size: 12px; font-weight: 400; color: var(--soft-mute); }
body.pt-soft :is(.gl-kpi, .rp-kpi) .s { margin-top: 2px; font-size: 12px; color: var(--soft-mute); }
/* The amounts are written left to right; in Arabic they still line up with their word. */
html[dir="rtl"] body.pt-soft :is(.gl-kpi, .rp-kpi) .v[dir="ltr"] { text-align: right !important; }

/* The console's strips (Plans and payment, Revenue): the same figure size as the lines above. */
body.pt-soft .pt-kpi-value { font-family: var(--pt-font); font-size: 18px; font-weight: 500; letter-spacing: 0; }

/* ===================================================================== brand marks (A6) */
/* The Ping line across (Shared/_PingLine with Across; PingLine.cs): the stops side by side, a
   ring over each title, the line joining the rings, solid after a stop that is done and light
   after the rest. A deal's stages (Crm/Deal) and a WhatsApp number's set-up (Channels). A stop
   that is a control holds a form whose button is .sf-line-hit: the whole stop is the button.
   Too many stops for the width scroll sideways inside the line, never the page. On the page
   ground (not a sheet) the line carries .sf-line-ground so the open rings match it. */
body.pt-soft .sf-line-ground { --sf-line-bg: var(--soft-ground); }
body.pt-soft .sf-line.is-across { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
body.pt-soft .sf-line.is-across::-webkit-scrollbar { display: none; }
body.pt-soft .sf-line.is-across > .sf-line-stop {
    flex: 1 1 0; min-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0 6px 6px; border-radius: 10px; text-align: center;
}
body.pt-soft .sf-line.is-across > .sf-line-stop::before {
    top: 10px; bottom: auto; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--soft-blue-l);
}
body.pt-soft .sf-line.is-across > .sf-line-stop.is-done::before { background: var(--soft-blue); }
body.pt-soft .sf-line.is-across > .sf-line-stop:last-child::before { display: none; }
body.pt-soft .sf-line.is-across .sf-line-dot { margin: 4px 0 0; }
body.pt-soft .sf-line.is-across > .sf-line-stop:not(.is-done, .is-current) .sf-line-dot { box-shadow: inset 0 0 0 2px var(--soft-blue-l); }
body.pt-soft .sf-line.is-across .sf-line-body { align-items: center; }
body.pt-soft .sf-line.is-across .sf-line-title { font-size: 13px; font-weight: 400; color: var(--soft-mute); }
body.pt-soft .sf-line.is-across .is-done .sf-line-title { color: var(--soft-ink); }
body.pt-soft .sf-line.is-across .is-current .sf-line-title { color: var(--soft-ink); font-weight: 500; }
body.pt-soft .sf-line.is-across .sf-line-text { font-size: 12px; }
body.pt-soft .sf-line-hit { appearance: none; border: 0; padding: 0; background: none; font: inherit; cursor: pointer; }
body.pt-soft .sf-line-hit::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
body.pt-soft .sf-line-hit:focus-visible { outline: none; }
body.pt-soft .sf-line-hit:focus-visible::after { outline: 2px solid var(--soft-blue); outline-offset: 2px; }
body.pt-soft .sf-line-stop:has(> .sf-line-body .sf-line-hit:hover) { background: var(--soft-fill); }
body.pt-soft .sf-line-stop:has(> .sf-line-body .sf-line-hit:hover) .sf-line-title { color: var(--soft-ink); }
/* Where each line sits. */
body.pt-soft .dp-line { margin: 0 0 12px; }
body.pt-soft .wa-line { margin: 2px 0 12px; max-width: 560px; }
body.pt-soft .tf-line { margin: 0 0 14px; }
body.pt-soft .tf-line .sf-line-title { font-weight: 400; }
body.pt-soft .tf-line .is-current .sf-line-title { font-weight: 500; }
body.pt-soft .tf-line .sf-line-text { margin-top: 4px; }

/* The e-mail set-up (Company): three numbered steps between the fields, so the line runs down
   the side of everything from the first step to the last. Each number is its stop: filled once
   that part is saved, ringed with a halo on the first open one (is-done / is-current, written
   by the view in the new look only). */
body.pt-soft #emailForm .mail-step { position: relative; margin: 0; padding: 22px 0 12px; gap: 12px; }
body.pt-soft #emailForm .mail-step::before {
    content: ""; position: absolute; inset-inline-start: 11px; top: 0; bottom: 0; width: 2px; background: var(--soft-blue-l);
}
body.pt-soft #emailForm .mail-step:not(.mail-step ~ .mail-step)::before { top: 34px; }
body.pt-soft #emailForm .mail-step:not(:has(~ .mail-step))::before { bottom: calc(100% - 34px); }
body.pt-soft #emailForm .mail-step ~ :not(.mail-step):has(~ .mail-step) {
    margin-inline: 11px 0; margin-top: 0; margin-bottom: 0; padding-inline-start: 23px; padding-bottom: 6px;
    border-inline-start: 2px solid var(--soft-blue-l);
}
body.pt-soft #emailForm .mail-step ~ .row:has(~ .mail-step) { padding-inline-start: 16px; }
body.pt-soft #emailForm .mail-step ~ .row:not(:has(~ .mail-step)) { margin-inline-start: 29px; }
body.pt-soft #emailForm .mail-step-num {
    position: relative; z-index: 1; width: 24px; height: 24px; font-size: 12px; font-weight: 500;
    background: var(--soft-sheet); color: var(--soft-blue); box-shadow: inset 0 0 0 2px var(--soft-blue-l);
}
body.pt-soft #emailForm .mail-step.is-done .mail-step-num { background: var(--soft-blue); color: var(--soft-sheet); box-shadow: none; }
body.pt-soft #emailForm .mail-step.is-current .mail-step-num { box-shadow: inset 0 0 0 2px var(--soft-blue), 0 0 0 4px var(--soft-ring); }
body.pt-soft #emailForm .mail-step b { font-weight: 500; }

/* A channel by its name (Shared/_ChannelName): its real logo, then the name; the classic dot
   is not drawn. The Workflows list, Channels, Billing, the console's client billing, a
   company's conversations, the assistant's unanswered questions. */
body.pt-soft .pt-ch.sf-ch-named { gap: 7px; font-size: inherit; vertical-align: middle; }
body.pt-soft .pt-ch.sf-ch-named::before { display: none; }
body.pt-soft .sf-ch-named strong { font-weight: 500; }

/* Tacto, the assistant's character, beside the AI screens' title (Ai/_AiTabs), on their tab
   (_SfTabs), and in the Inbox while the assistant answers there (B10). */
body.pt-soft .sf-tacto-head { display: flex; align-items: center; gap: 10px; }
body.pt-soft .sf-tacto { flex: none; width: 26px; height: 30px; }
body.pt-soft .sf-tab-tacto { flex: none; width: 12px; height: 14px; margin-inline-end: 6px; vertical-align: -2px; }

/* Ping AI in the Inbox (B10): the points in the bar, the switch in a conversation's header,
   and the line that says why the assistant handed over. */
body.pt-soft .sf-ai-mark { flex: none; width: 11px; height: 13px; }
body.pt-soft .sf-ai-points {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px;
    border-radius: 999px; background: var(--soft-fill); color: var(--soft-mute);
    font-size: 13px; text-decoration: none; white-space: nowrap;
}
body.pt-soft .sf-ai-points strong { color: var(--soft-ink); font-weight: 600; }
body.pt-soft .sf-ai-points:hover { background: var(--soft-sky); }
body.pt-soft .sf-ai-points.is-out { background: var(--soft-warn-bg); color: var(--soft-warn); }
body.pt-soft .sf-ai-points.is-out strong { color: var(--soft-warn); }
body.pt-soft .sf-ai-switch {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px;
    border: 0; border-radius: 999px; background: var(--soft-fill); color: var(--soft-mute);
    font-size: 13px; line-height: 1.2; white-space: nowrap;
}
body.pt-soft .sf-ai-switch.is-on { background: var(--soft-sky); color: var(--soft-ink); }
body.pt-soft button.sf-ai-switch:hover { box-shadow: inset 0 0 0 1px rgba(var(--soft-blue-rgb), .35); }
body.pt-soft button.sf-ai-switch:focus-visible { outline: 2px solid var(--soft-blue); outline-offset: 2px; }
/* The switch's track and knob, drawn like the app's other switches: knob at the end when on. */
body.pt-soft .sf-ai-knob {
    position: relative; flex: none; width: 28px; height: 16px; border-radius: 999px; background: var(--soft-line);
}
body.pt-soft .sf-ai-knob::after {
    content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--soft-knob); transition: inset-inline-start .15s;
}
body.pt-soft .sf-ai-switch.is-on .sf-ai-knob { background: var(--soft-blue); }
body.pt-soft .sf-ai-switch.is-on .sf-ai-knob::after { inset-inline-start: 14px; }
body.pt-soft .sys-line.is-ai-handover span { color: var(--soft-ink); }
@media (max-width: 575.98px) {
    body.pt-soft .sf-ai-switch { white-space: normal; text-align: start; }
}

/* "Try a customer message" on Auto reply (B4, js/auto-reply-try.js): the answer under the field —
   what happens in a line, the reply as the customer's chat would show it, then the small print. */
body.pt-soft .sf-try-out { display: grid; gap: 6px; margin-top: 12px; }
body.pt-soft .sf-try-out:empty { display: none; }
body.pt-soft .sf-try-summary { font-weight: 500; color: var(--soft-ink); overflow-wrap: anywhere; }
body.pt-soft .sf-try-out.is-off .sf-try-summary { color: var(--soft-warn); }
body.pt-soft .sf-try-out.is-error .sf-try-summary { color: var(--soft-bad); }
body.pt-soft .sf-try-reply {
    justify-self: start; max-width: min(100%, 560px); padding: 8px 12px; border-radius: var(--soft-r-m);
    background: var(--soft-sky); color: var(--soft-ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
body.pt-soft .sf-try-note { font-size: 13px; color: var(--soft-mute); }

/* ===================================================================== who answers first (B5)
   Workflows: the stops a message passes on one account, as the Ping line across (.ao-line), then
   what to watch for and the test box. The line is the message's path, so every joint is the same
   light blue; a filled stop answers, a ringed one is switched on but resting now, an open grey one
   does not answer. On a phone the line stands up (vertical), so nothing scrolls sideways. */
body.pt-soft .sf-order { padding: 16px 18px; margin-bottom: 16px; }
body.pt-soft .sf-order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 4px; }
body.pt-soft .sf-order-head h3 { margin: 0; font-size: 15px; font-weight: 500; color: var(--soft-ink); }
body.pt-soft .sf-order-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--soft-mute); min-width: 0; }
body.pt-soft .sf-order-pick .form-select { max-width: 100%; }
body.pt-soft .sf-line.is-across.ao-line > .sf-line-stop::before,
body.pt-soft .sf-line.is-across.ao-line > .sf-line-stop.is-done::before { background: var(--soft-blue-l); }
body.pt-soft .sf-line.ao-line > .sf-line-stop:not(.is-done, .is-current) .sf-line-dot { box-shadow: inset 0 0 0 2px var(--soft-line); }
body.pt-soft .sf-line.ao-line .sf-line-text { overflow-wrap: anywhere; }
body.pt-soft .sf-order-warn { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
body.pt-soft .sf-order-warn li {
    display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: var(--soft-r-m);
    background: var(--soft-warn-bg); color: var(--soft-ink); font-size: 13px; overflow-wrap: anywhere;
}
body.pt-soft .sf-order-warn .bi { color: var(--soft-warn); margin-top: 2px; }
body.pt-soft .sf-order-warn a { margin-inline-start: 4px; white-space: nowrap; }
body.pt-soft .sf-order-try { margin-top: 14px; }
/* The account's own switch (B10): the Workflows engine switch's look, inside the card. */
body.pt-soft .sf-order-switch {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0;
    padding: 10px 12px; border-radius: var(--soft-r-m); background: var(--soft-fill);
}
body.pt-soft .sf-order-switch.is-on { background: var(--soft-sky); }
body.pt-soft .sf-order-switch-text { flex: 1 1 220px; min-width: 0; font-size: 13px; color: var(--soft-mute); overflow-wrap: anywhere; }
body.pt-soft .sf-order-switch-text b { display: block; font-size: 14px; font-weight: 500; color: var(--soft-ink); }
body.pt-soft .sf-order-switch .btn { margin-inline-start: auto; }
@media (max-width: 767.98px) {
    body.pt-soft .sf-order { padding: 14px; }
    body.pt-soft .sf-line.is-across.ao-line { display: block; overflow: visible; padding: 0; }
    body.pt-soft .sf-line.is-across.ao-line > .sf-line-stop {
        display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 2px 12px;
        min-width: 0; padding: 6px 0; text-align: start;
    }
    body.pt-soft .sf-line.is-across.ao-line > .sf-line-stop::before { top: 0; bottom: 0; inset-inline-start: 10px; width: 2px; height: auto; }
    body.pt-soft .sf-line.is-across.ao-line > .sf-line-stop:first-child::before { top: 16px; }
    body.pt-soft .sf-line.is-across.ao-line > .sf-line-stop:last-child::before { display: block; bottom: calc(100% - 16px); }
    body.pt-soft .sf-line.is-across.ao-line .sf-line-dot { margin: 3px 4px 0; }
    body.pt-soft .sf-line.is-across.ao-line .sf-line-body { align-items: flex-start; }
}

/* The ready-made workflows in "New workflow" (B5): each a card, the whole card the choice. The
   radio stays (keyboard, the posted field) but is drawn by the card: blue edge and sky when picked. */
body.pt-soft .fl-tpl {
    position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start;
    height: 100%; margin: 0; padding: 12px; cursor: pointer;
    border: 1px solid var(--soft-hair); border-radius: var(--soft-r-m); background: var(--soft-sheet);
}
body.pt-soft .fl-tpl:hover { background: var(--soft-fill); }
body.pt-soft .fl-tpl-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
body.pt-soft .fl-tpl:has(.fl-tpl-radio:checked) { border-color: var(--soft-blue); background: var(--soft-sky); box-shadow: inset 0 0 0 1px var(--soft-blue); }
body.pt-soft .fl-tpl:has(.fl-tpl-radio:focus-visible) { outline: 2px solid var(--soft-blue); outline-offset: 2px; }
body.pt-soft .fl-tpl-icon {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--soft-r-s);
    background: var(--soft-fill); color: var(--soft-blue); font-size: 17px;
}
body.pt-soft .fl-tpl:has(.fl-tpl-radio:checked) .fl-tpl-icon { background: var(--soft-sheet); }
body.pt-soft .fl-tpl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.pt-soft .fl-tpl-name { font-weight: 500; color: var(--soft-ink); }
body.pt-soft .fl-tpl-desc { font-size: 12.5px; color: var(--soft-mute); }

/* ===================================================================== motion */
@media (prefers-reduced-motion: reduce) {
    body.pt-soft *, body.pt-soft *::before, body.pt-soft *::after { transition: none !important; animation: none !important; }
}
