/* Rylie Marketing hub: brand tokens, dashboard tokens, components.
   The --lp-* names are inherited from the Localplus hub this was copied from;
   their values are Rylie's (Rylie-Site/src/styles/tokens): warm paper work
   area, near-black sidebar, one terracotta accent. Dashboard
   tokens (--ui-*) are derived for a dense work surface: smaller radius,
   1px borders instead of shadows, 14px body. */

@font-face { font-family: Geist; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/geist-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --lp-primary: #A94F2C;
  --lp-primaryDark: #8E4224;
  --lp-accent: #D36A40;
  --lp-accent2: #EE9670;
  --lp-bg: #F7F5F2;
  --lp-bgAlt: #EFECE7;
  --lp-card: #FFFFFF;
  --lp-ink: #1A1A18;
  --lp-ink2: rgba(26, 26, 24, .85);
  --lp-muted: rgba(26, 26, 24, .68);
  --lp-border: rgba(26, 26, 24, .12);
  --lp-good: #2F7D5A;
  --lp-radius: 20px;
  --lp-container-max: 1200px;
  --lp-container-pad: 24px;
  --fs-h2: 28px;
  --fs-h3: 22px;
  --lp-shadow-card: 0 10px 32px #1A1A181f, 0 2px 8px #1A1A180f;

  --ui-radius: 10px;
  --ui-radius-sm: 7px;
  --ui-body: 14px;
  --ui-meta: 12px;
  --ui-label: 10.5px;
  --ui-space: 8px;
  --ui-sidebar: 232px;
  --ui-rail: 56px;
  --ui-topbar: 46px;
  --ui-drawer: 400px;
  --ui-shadow-raised: 0 24px 48px -16px #1A1A182e;
  --ui-accent-ink: #944A2D;
  --ui-page-pad: 24px;
  --ry-sidebar: #1A1A18;
  --ry-sidebar-raised: #262523;
  --ry-sidebar-line: #302E2B;
  --ry-sidebar-text: #CEC9C3;
}
@media (min-width: 640px) { :root { --lp-container-pad: 32px; --fs-h2: 32px; --fs-h3: 24px; } }
@media (min-width: 1024px) { :root { --lp-container-pad: 48px; --fs-h2: 40px; --fs-h3: 28px; } }

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--lp-bg); color: var(--lp-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--ui-body); font-weight: 500; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ui-accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--lp-primaryDark); }
h1, h2, h3, h4 { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 50; }

/* ---- app frame: sidebar + work area ---- */
body.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--ui-sidebar); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--ry-sidebar); color: #fff; border-right: 1px solid #302E2B;
  display: flex; flex-direction: column; padding: 12px 8px; gap: 4px;
}
/* The head: the Localplus logo, "socials", and the Localplus workspace as an
   LP icon beside it (Isaac, 2026-10-05). */
.sidebar-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand-text { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; }
.brand-word { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-plus { color: var(--lp-accent); }
.brand-sub { font-weight: 500; font-size: 13px; color: #F7F5F299; }
.brand-lp { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 7px; background: #fff;
            color: var(--lp-primary); font-size: 10px; font-weight: 700; display: inline-flex;
            align-items: center; justify-content: center; text-decoration: none;
            box-shadow: 0 0 0 0 transparent; transition: box-shadow .12s ease; }
.brand-lp:hover { color: var(--lp-primary); box-shadow: 0 0 0 2px #ffffff40; }
.brand-lp.is-active { box-shadow: 0 0 0 2px var(--lp-accent); }
/* The Rylie hub's flat sidebar: the sections, Team, the account. */
.sidebar-ry .sidebar-head { padding: 6px 8px 18px; }
.sidebar-ry .brand-mark { width: 28px; height: 28px; }
.sidebar-ry .brand-word { font-family: Geist, Inter, sans-serif; font-size: 17px; letter-spacing: -.03em; }
.sidebar-ry .brand-sub { color: var(--ry-sidebar-text); opacity: .7; }
.ry-nav { gap: 2px; flex: 1; }
.ry-item { gap: 10px; padding: 8px 10px; font-size: 13.5px; color: var(--ry-sidebar-text); }
.ry-item:hover { background: var(--ry-sidebar-raised); color: #fff; }
.ry-item.is-active { background: var(--ry-sidebar-raised); color: #fff; box-shadow: inset 2px 0 0 #D36A40; }
.ry-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4;
          stroke-linecap: round; stroke-linejoin: round; }
.ry-item.is-active .ry-ico { stroke: #EE9670; }
.ry-item-team { margin-top: 14px; position: relative; }
.ry-item-team::before { content: ""; position: absolute; left: 10px; right: 10px; top: -8px; border-top: 1px solid var(--ry-sidebar-line); }
.sidebar-ry .sidebar-foot { border-top-color: var(--ry-sidebar-line); }
.sidebar-ry .me:hover, .sidebar-ry .me.is-active { background: var(--ry-sidebar-raised); }
.sidebar-ry .me .person-avatar { background: #262523; color: #EE9670; box-shadow: inset 0 0 0 1px #3D3A36; }
.sidebar-ry .me-text span, .sidebar-ry .me-logout .button-text { color: var(--ry-sidebar-text); }
.ry-topbar-mark { width: 26px; height: 26px; display: block; }
.topbar-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin-right: auto; }
.ws-label { font-size: var(--ui-label); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ws-list { display: flex; flex-direction: column; gap: 1px; flex: 1; min-height: 0; }
/* The clients scroll; Enrol, Start a trial and Team stay in view. */
.ws-scroll { display: flex; flex-direction: column; gap: 1px; flex: 1; min-height: 0; overflow-y: auto;
             margin: 0 -2px; padding: 0 2px; scrollbar-width: thin; scrollbar-color: #ffffff2e transparent; }
.ws-group-actions { flex: none; }
.ws-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 7px;
           color: #F7F5F2cc; text-decoration: none; font-weight: 500; font-size: 13px; min-height: 30px; }
.sidebar .avatar { width: 20px; height: 20px; border-radius: 6px; font-size: 8.5px; }
.sidebar .avatar-home svg { width: 12px; height: 12px; }
/* Ultimate, Pro and Trials fold: many clients fit (Isaac, 2026-10-05). */
.ws-toggle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 8px 4px; margin: 0;
             background: none; border: 0; border-radius: 6px; color: #F7F5F299; cursor: pointer; text-align: left;
             font: inherit; }
.ws-toggle:hover { color: #fff; }
.ws-toggle:focus-visible { outline: 2px solid #ffffff66; outline-offset: -2px; }
.ws-count { font-size: 11px; font-weight: 600; color: #F7F5F266; font-variant-numeric: tabular-nums; }
.ws-chevron { margin-left: auto; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6;
              stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.ws-toggle[aria-expanded="false"] .ws-chevron { transform: rotate(-90deg); }
.ws-members { display: flex; flex-direction: column; gap: 1px; }
.ws-group.is-collapsed .ws-members { display: none; }
.ws-item:hover { background: #ffffff14; color: #fff; }
.ws-item.is-active { background: #ffffff1f; color: #fff; }
.ws-item.is-paused { opacity: .55; }
.ws-item.ws-enrol { color: #F7F5F299; }
.sidebar span.avatar:not(.avatar-lp):not(.avatar-plus) { box-shadow: inset 0 0 0 1px #ffffff2e; }
.ws-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-group { display: flex; flex-direction: column; gap: 2px; }
.ws-group-actions { margin-top: 8px; padding-top: 6px; border-top: 1px solid #ffffff14; }
.ws-empty { color: #F7F5F299; font-size: var(--ui-meta); padding: 6px 8px; margin: 0; }
.sidebar-foot { margin-top: auto; padding: 10px 2px 0; border-top: 1px solid #ffffff14;
                display: flex; align-items: center; gap: 2px; }
.sidebar .button-text { color: #F7F5F299; }
.sidebar .button-text:hover { color: #fff; }
.me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px;
      color: #F7F5F2cc; text-decoration: none; }
.me:hover, .me.is-active { background: #ffffff14; color: #fff; }
.me .person-avatar { width: 28px; height: 28px; background: #F7F5F2; color: var(--lp-primary); box-shadow: none; }
.me .person-avatar.role-superadmin { background: var(--lp-accent2); color: #3B1A0B; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-text b { color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { color: #F7F5F299; font-size: 11px; }
.me-logout .button-text { font-size: 11.5px; padding: 4px 6px; white-space: nowrap; }
.avatar-plus svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5;
                   stroke-linecap: round; stroke-linejoin: round; }

.work { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px; height: var(--ui-topbar);
  padding: 0 var(--ui-page-pad); background: var(--lp-card); border-bottom: 1px solid var(--lp-border);
}
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; height: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; height: 100%; color: var(--lp-muted); font-weight: 500;
       text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--lp-ink); }
.tab.is-active { color: var(--lp-ink); border-color: var(--lp-accent); font-weight: 600; }
.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.page { padding: 18px var(--ui-page-pad) 40px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 19px; }
.page-sub { color: var(--lp-muted); font-size: var(--ui-meta); margin: 3px 0 0; }
.nav-toggle, .nav-close, .topbar-ws { display: none; }
/* sub-nav: a segmented control under a grouped tab (the client Social tab) */
.subnav { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 16px; border-radius: 10px;
          background: var(--lp-bgAlt); border: 1px solid var(--lp-border); }
.subtab { padding: 5px 14px; border-radius: 7px; font-size: var(--ui-meta); font-weight: 600;
          color: var(--lp-muted); text-decoration: none; }
.subtab:hover { color: var(--lp-ink); }
.subtab.is-active { background: var(--lp-card); color: var(--lp-ink); box-shadow: 0 1px 2px #1A1A181f; }
.scrim { display: none; position: fixed; inset: 0; background: #1A1A1866; z-index: 20; }
body.nav-open .scrim, body.drawer-open .scrim { display: block; }

/* ---- avatars ---- */
.avatar { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; object-fit: cover;
          display: inline-flex; align-items: center; justify-content: center;
          font-size: 10px; font-weight: 700; color: #fff; background: var(--lp-primary); }
.avatar-lg { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; }
.avatar-lp { background: #fff; color: var(--lp-primary); }
.avatar-plus { background: transparent; border: 1px dashed #F7F5F280; color: #F7F5F299; }
.avatar-home { background: #ffffff1a; color: #F7F5F2; }
.avatar-home svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ws-home { margin-bottom: 2px; }
/* A logo fits inside its square instead of being cropped (a wide logo read
   "stainable B"). */
img.avatar { background: #fff; padding: 2px; object-fit: contain; }

/* ---- cards, grids, tables ---- */
.card { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: var(--ui-radius);
        padding: 12px 14px; }
.card h3 { font-size: var(--ui-label); text-transform: uppercase; letter-spacing: .07em;
           color: var(--lp-muted); font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; }
.card h3 a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: var(--ui-meta); }
.card + .card { margin-top: 12px; }
.grid > .card + .card, .stats > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 12px; margin-bottom: 12px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat b { display: block; font-weight: 700; letter-spacing: -.02em; font-size: 24px; line-height: 1.1; }
.stat span { font-size: var(--ui-label); font-weight: 600; letter-spacing: .08em;
             text-transform: uppercase; color: var(--lp-muted); }
.table-wrap { background: var(--lp-card); border: 1px solid var(--lp-border);
              border-radius: var(--ui-radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 9px 12px; font-size: var(--ui-label); font-weight: 600;
     letter-spacing: .07em; text-transform: uppercase; color: var(--lp-muted);
     border-bottom: 1px solid var(--lp-border); }
td { padding: 10px 12px; border-bottom: 1px solid var(--lp-border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.cell-name { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: flex-start; gap: 10px; background: var(--lp-card);
       border: 1px solid var(--lp-border); border-radius: var(--ui-radius); padding: 10px 12px; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.list label.row { cursor: pointer; gap: 12px; align-items: center; }
.list label.row input[type="radio"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }

/* ---- chips ---- */
.chip { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 7px;
        border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.chip-ready { background: #D36A401f; color: var(--ui-accent-ink); }
.chip-posted, .chip-live, .chip-ok, .chip-published { background: #2F7D5A1f; color: var(--lp-good); }
.chip-scheduled, .chip-producing, .chip-publishing, .chip-syncing { background: #A94F2C14; color: var(--lp-primary); }
.chip-failed { background: #D36A402e; color: var(--ui-accent-ink); }
.chip-dismissed, .chip-paused, .chip-discarded { background: #1A1A1814; color: var(--lp-muted); }
.chip-no, .chip-never { background: #1A1A180d; color: var(--lp-muted); }
/* tier and stage chips: one hue per tier, stages read as progress */
.chip-tier { letter-spacing: .02em; }
.chip-tier-ultimate { background: #D36A401f; color: var(--ui-accent-ink); }
.chip-tier-pro { background: #A94F2C17; color: var(--lp-primary); }
.chip-tier-trial { background: transparent; color: var(--lp-muted); box-shadow: inset 0 0 0 1px #1A1A1833; }
.chip-stage { background: #1A1A180d; color: var(--lp-ink2); }
.chip-stage-live, .chip-stage-delivered, .chip-stage-converted { background: #2F7D5A1f; color: var(--lp-good); }
.chip-stage-mockup_review, .chip-stage-brand_review, .chip-stage-site_review,
.chip-stage-launch_pending { background: #D36A401f; color: var(--ui-accent-ink); }
.chip-stage-expired { background: #1A1A1814; color: var(--lp-muted); }
.dots span { display: inline-block; width: 8px; height: 8px; border-radius: 99px;
             margin-right: 4px; background: #1A1A1826; }
.dots span.on { background: var(--lp-good); }

/* ---- buttons, forms ---- */
button, .button { background: var(--lp-primary); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 12px; cursor: pointer; font: inherit; font-size: var(--ui-meta); font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  white-space: nowrap; transition: background-color .15s ease; }
button:hover, .button:hover { background: var(--lp-primaryDark); color: #fff; }
/* Rylie: white on #D36A40 fails AA; #A94F2C is the brand's button rest colour. */
.primary, button.primary { background: #A94F2C; }
.primary:hover, button.primary:hover { background: #8E4224; }
.secondary, button.secondary { background: #fff; color: var(--lp-ink); border: 1px solid var(--lp-border); }
.secondary:hover, button.secondary:hover { background: var(--lp-bgAlt); color: var(--lp-ink); }
.button-text, button.button-text { background: none; color: var(--lp-primary); padding: 4px 6px; min-height: 0; }
.button-text:hover { background: none; text-decoration: underline; }
.icon-button { background: none; border: 1px solid var(--lp-border); color: var(--lp-ink);
               width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
button[disabled], .button[disabled] { opacity: .5; cursor: not-allowed; }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
input, select, textarea { padding: 8px 10px; border: 1px solid var(--lp-border);
  border-radius: 8px; font: inherit; font-size: var(--ui-body); background: #fff;
  color: var(--lp-ink); width: 100%; }
textarea { resize: vertical; }
/* One dropdown look in every browser: a thin chevron of our own instead of
   each browser's (Chrome's heavy arrow, Safari's double one). */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235B6B64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
input[type="checkbox"] { width: auto; }
.field { display: block; margin: 0 0 14px; }
.field > span.label { display: block; font-weight: 600; margin-bottom: 5px; font-size: var(--ui-meta); }
.field .req { color: var(--lp-accent); margin-left: 6px; font-weight: 600; font-size: 11px; }
.field small { display: block; color: var(--lp-muted); margin-top: 4px; font-size: var(--ui-meta); font-weight: 500; }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 180px; margin: 0; }
form.inline { display: inline; }
.card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px;
                border-top: 1px solid var(--lp-border); }
details.advanced { margin-top: 12px; }
details.advanced summary { cursor: pointer; font-size: var(--ui-meta); font-weight: 600; color: var(--lp-muted); }
details.advanced[open] summary { margin-bottom: 10px; }
.msg { border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; font-size: var(--ui-meta); font-weight: 600; }
.msg-ok { background: #2F7D5A1f; color: var(--lp-good); }
.msg-err { background: #D36A401f; color: var(--ui-accent-ink); }
.msg-note { background: var(--lp-bgAlt); color: var(--lp-ink); }
.msg-detail { display: block; margin-top: 3px; font-weight: 500; opacity: .85; overflow-wrap: anywhere; }
.muted { color: var(--lp-muted); font-size: var(--ui-meta); }
.error { color: var(--ui-accent-ink); }
.ok { color: var(--lp-good); }
.notice { border: 1px dashed var(--lp-border); border-radius: 8px; padding: 10px 12px;
          font-size: var(--ui-meta); color: var(--lp-muted); background: var(--lp-card); }

/* ---- filter chips (links) ---- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter { border: 1px solid var(--lp-border); border-radius: 999px; padding: 4px 10px;
          font-size: var(--ui-meta); font-weight: 600; color: var(--lp-muted);
          text-decoration: none; background: #fff; min-height: 28px; display: inline-flex; align-items: center; }
.filter:hover { color: var(--lp-ink); border-color: var(--lp-ink); }
.filter.is-active { background: var(--lp-primary); color: #fff; border-color: var(--lp-primary); }

/* ---- drawer ---- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: var(--ui-drawer); max-width: 100vw; z-index: 30; }
.drawer[hidden] { display: none; }
.drawer-panel { height: 100%; background: var(--lp-card); border-left: 1px solid var(--lp-border);
                box-shadow: var(--ui-shadow-raised); display: flex; flex-direction: column; }
.drawer-close { position: absolute; top: 10px; right: 10px; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.drawer-body h2 { font-size: 16px; padding-right: 40px; }
.drawer-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px;
               border-top: 1px solid var(--lp-border); }
.drawer-body pre { white-space: pre-wrap; font: inherit; margin: 0; background: var(--lp-bg);
                   border-radius: 8px; padding: 10px 12px; }

/* ---- tier choice (enrol drawer) ---- */
.tier-pick { border: 0; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.tier-pick legend { font-weight: 600; font-size: var(--ui-meta); margin-bottom: 6px; padding: 0; }
.tier-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--lp-border);
            border-radius: 9px; background: #fff; cursor: pointer; }
.tier-opt:has(input:checked) { border-color: var(--lp-primary); box-shadow: inset 0 0 0 1px var(--lp-primary); }
.tier-opt input { width: auto; margin: 3px 0 0; accent-color: var(--lp-primary); }
.tier-opt b { display: block; font-weight: 600; }
.tier-opt small { display: block; color: var(--lp-muted); font-size: var(--ui-meta); font-weight: 500; }

/* ---- clients list: the work queue ---- */
.wl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.wl-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.wl-search svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px;
                 fill: none; stroke: var(--lp-muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
/* Every control in the bar is one height (2026-10-05). */
.wl-search input, .wl-select select, .wl-bar .wl-go { height: 36px; min-height: 36px; }
.wl-search input { padding-left: 32px; font-size: 13.5px; }
.wl-select select { padding: 0 30px 0 11px; width: auto; max-width: 220px; font-size: 13px; }
.wl-bar .wl-go { padding: 0 14px; font-size: 13px; }
.wl-clear { font-size: 13px; }
.wl-status { margin-bottom: 4px; }
.wl-status .filter { gap: 6px; }
.wl-status .filter span { color: var(--lp-muted); font-weight: 600; }
.wl-status .filter.is-active span { color: #ffffffb3; }
.wl-status .filter i, .wl-head i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #1A1A1833; }
.wl-status .filter-needs i, .wl-needs .wl-head i { background: var(--lp-accent); }
.wl-status .filter-waiting i, .wl-waiting .wl-head i { background: #A94F2C73; }
.wl-status .filter-ok i, .wl-ok .wl-head i { background: var(--lp-good); }
.wl-status .filter.is-active i { box-shadow: 0 0 0 1.5px #fff; }
.wl-group { margin-top: 18px; }
.wl-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--ui-label); font-weight: 700;
           letter-spacing: .08em; text-transform: uppercase; color: var(--lp-ink2); }
.wl-head span { color: var(--lp-muted); font-weight: 600; }
.wl-list { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: var(--ui-radius); overflow: hidden; }
.wl-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr) 132px; gap: 16px; align-items: center;
          padding: 12px 16px; border-top: 1px solid var(--lp-border); }
.wl-row:first-child { border-top: 0; }
.wl-needs .wl-row { box-shadow: inset 3px 0 0 var(--lp-accent); }
.wl-client { display: flex; align-items: center; gap: 11px; min-width: 0; }
.wl-client .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.wl-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wl-name { color: var(--lp-ink); font-weight: 650; font-size: 14px; text-decoration: none; overflow: hidden;
           text-overflow: ellipsis; white-space: nowrap; }
.wl-name:hover { color: var(--lp-primary); text-decoration: underline; }
.wl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: var(--ui-meta); color: var(--lp-muted); }
.wl-next { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wl-action { font-weight: 600; color: var(--lp-ink2); line-height: 1.35; }
a.wl-action { color: var(--lp-primary); text-decoration: none; }
a.wl-action:hover { text-decoration: underline; }
.wl-waiting .wl-action, .wl-ok .wl-action, .wl-paused .wl-action { font-weight: 500; color: var(--lp-muted); }
.wl-issue { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ui-meta); font-weight: 600;
            color: var(--ui-accent-ink); }
.wl-issue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lp-accent); }
.wl-team { display: flex; justify-content: flex-end; align-items: center; gap: 3px; }
.wl-team .person-avatar { width: 26px; height: 26px; font-size: 9.5px; }
.wl-more { margin-left: 6px; font-size: var(--ui-meta); color: var(--lp-muted); font-weight: 600; }
.wl-unassigned { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ui-meta); font-weight: 500;
                 color: var(--lp-muted); text-decoration: none; white-space: nowrap; }
.wl-unassigned::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed #1A1A1840; }
.wl-unassigned:hover { color: var(--lp-primary); }
.wl-unassigned:hover::before { border-color: var(--lp-primary); }
.wl-paused .wl-row { opacity: .7; }
@media (max-width: 639px) {
  /* Search and Filter share row one; the selects (and Clear) share row two. */
  .wl-search { flex: 1 1 200px; max-width: none; }
  .wl-go { order: 1; min-height: 36px; }
  .wl-select { order: 2; flex: 1 1 38%; min-width: 0; }
  .wl-select select { width: 100%; max-width: none; }
  .wl-clear { order: 3; }
  .wl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 12px 14px; }
  .wl-next { grid-column: 1 / -1; grid-row: 2; padding-left: 43px; }
  .wl-team { grid-column: 2; grid-row: 1; }
}

/* ---- first-login welcome ---- */
.welcome { position: relative; overflow: hidden; margin: 0 0 20px; padding: 22px 24px; border-radius: 14px;
           color: #F7F5F2; background: radial-gradient(130% 150% at 100% 0%, #3B2A21 0%, #201F1D 46%, #141412 100%);
           box-shadow: 0 18px 40px -22px #1A1A1899; }
.welcome .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ui-label); font-weight: 600;
                    letter-spacing: .14em; text-transform: uppercase; color: #F7F5F2b8; }
.welcome .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent2); box-shadow: 0 0 0 4px #EE967029; }
.welcome h2 { margin: 8px 0 6px; font-size: 22px; letter-spacing: -.024em; color: #fff; }
.welcome-head p { margin: 0; color: #F7F5F2d6; font-weight: 400; font-size: 14px; }
.welcome-steps { list-style: none; counter-reset: step; margin: 18px 0 0; padding: 0; display: grid;
                 grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.welcome-steps li { counter-increment: step; position: relative; padding: 14px 14px 14px 46px; border-radius: 11px;
                    background: #ffffff12; box-shadow: inset 0 0 0 1px #ffffff1a; display: flex; flex-direction: column; gap: 3px; }
.welcome-steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 22px; height: 22px;
                            border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
                            background: var(--lp-accent2); color: #3B1A0B; }
.welcome-steps b { color: #fff; font-weight: 600; }
.welcome-steps span { color: #F7F5F2c7; font-size: 13px; font-weight: 400; line-height: 1.45; text-wrap: pretty; }
.welcome-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.welcome-foot .button.secondary { background: #ffffff1a; color: #fff; border-color: #ffffff2e; }
.welcome-foot .button.secondary:hover { background: #ffffff29; }
@media (max-width: 1023px) { .welcome-steps { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .welcome { padding: 18px 16px; } .welcome h2 { font-size: 19px; } }

/* ---- empty state ---- */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--lp-border);
         border-radius: var(--ui-radius); background: var(--lp-card); }
.empty svg { width: 56px; height: 56px; stroke: var(--lp-primary); fill: none; stroke-width: 1.5; margin-bottom: 10px; }
.empty h2 { font-size: 16px; margin-bottom: 4px; }
.empty p { color: var(--lp-muted); margin: 0 0 14px; }

/* ---- auth pages: login, invite, reset, set password, dead links ---- */
body.auth { min-height: 100vh; background: var(--lp-bg); }
.auth-shell { display: grid; grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
              gap: 40px; padding: 34px 48px 30px; color: #F7F5F2;
              background: radial-gradient(120% 80% at 100% 0%, #3B2A21 0%, #201F1D 46%, #141412 100%); }
.auth-brand::before { content: ""; position: absolute; width: 520px; height: 520px; right: -250px; top: -250px;
                      border-radius: 50%; border: 1px solid #ffffff12;
                      box-shadow: 0 0 0 70px #ffffff04, 0 0 0 140px #ffffff03, 0 0 0 210px #ffffff02; pointer-events: none; }
.auth-brand::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
                     background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent2) 60%, transparent); opacity: .9; }
.auth-mark { position: relative; display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none;
             font-weight: 700; font-size: 16px; letter-spacing: -.02em; align-self: flex-start; }
.auth-mark:hover { color: #fff; }
.auth-mark-tile { width: 32px; height: 32px; border-radius: 9px; background: #F7F5F2; color: var(--lp-primary);
                  display: grid; place-items: center; font-size: 12.5px; font-weight: 800; letter-spacing: -.04em;
                  box-shadow: 0 6px 18px -6px #0000004d; }
.auth-mark-sub { color: #F7F5F29e; font-weight: 500; }
/* Rylie's login panel: near-black with a terracotta glow and Rylie herself. */
.auth-brand-ry { background: radial-gradient(90% 70% at 85% 75%, #3B2A21 0%, #1F1E1C 52%, #161614 100%); }
.auth-brand-ry::before { display: none; }
.auth-ry-mark { width: 34px; height: 34px; }
.auth-brand-ry .auth-mark { font-family: Geist, Inter, sans-serif; font-size: 18px; letter-spacing: -.03em; }
.auth-brand-ry .auth-pitch, .auth-brand-ry .auth-foot, .auth-brand-ry .auth-mark { z-index: 1; }
.auth-brand-ry .auth-pitch h2 { font-size: 40px; max-width: 12ch; }
.auth-brand-ry .auth-line { max-width: 300px; }
.auth-portrait { position: absolute; right: -70px; bottom: 0; width: 360px; height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(0deg, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(0deg, transparent 0, #000 22%);
  mask-composite: intersect; opacity: .9; }
.auth-pitch { position: relative; max-width: 420px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: var(--ui-label); font-weight: 600;
                letter-spacing: .14em; text-transform: uppercase; color: #F7F5F2b8; }
.auth-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent2); box-shadow: 0 0 0 4px #EE967029; }
.auth-pitch h2 { margin: 14px 0 34px; font-size: 38px; line-height: 1.08; letter-spacing: -.035em; color: #fff; max-width: 13ch; }
.auth-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.auth-line li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px 34px; }
.auth-line li:last-child { padding-bottom: 0; }
.auth-line li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
                        box-sizing: border-box; border: 2px solid #F7F5F240; background: #141412; z-index: 1; }
.auth-line li::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 2px; border-radius: 2px;
                       background: #F7F5F224; }
.auth-line li:last-child::after { display: none; }
.auth-line li.is-done::before { background: #6FCFA0; border-color: #6FCFA0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.1 2.1 4.7-4.8' fill='none' stroke='%23163A2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat; }
.auth-line li.is-done::after { background: #6FCFA080; }
.auth-line li.is-current::before { border-color: var(--lp-accent2); box-shadow: 0 0 0 5px #EE967026;
  background: radial-gradient(circle, var(--lp-accent2) 0 3.5px, #141412 4.5px); }
.auth-line b { color: #fff; font-weight: 600; font-size: 14px; }
.auth-line span { color: #F7F5F2a6; font-size: 12.5px; font-weight: 500; }
.auth-line li:not(.is-done):not(.is-current) b { color: #F7F5F2b3; }
.auth-foot { position: relative; margin: 0; font-size: var(--ui-meta); color: #F7F5F280; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 28px; }
.auth-card { width: 100%; max-width: 384px; }
.auth-card h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.032em; }
.auth-lede { margin: 10px 0 26px; color: var(--lp-muted); font-size: 15px; line-height: 1.55; font-weight: 500; }
.auth-card .msg { font-size: 13px; padding: 10px 12px; margin-bottom: 18px; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .field > span.label { font-size: 13px; margin-bottom: 6px; color: var(--lp-ink); }
.auth-form input { height: 46px; padding: 10px 13px; font-size: 15px; border-radius: 10px; border-color: #1A1A1829;
                   box-shadow: 0 1px 0 #1A1A180a; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-form input:hover { border-color: #1A1A1859; }
.auth-form input:focus { outline: none; border-color: var(--lp-primary); box-shadow: 0 0 0 4px #A94F2C1f; }
.auth-form input[readonly] { background: var(--lp-bgAlt); color: var(--lp-ink2); border-color: transparent; box-shadow: none; }
.auth-form .field small { font-size: 12.5px; }
.auth-form button.primary, .auth-button { width: 100%; justify-content: center; min-height: 48px; margin-top: 6px;
                                          font-size: 15px; border-radius: 10px; box-shadow: 0 10px 22px -12px #D36A40a6; }
.auth-lede, .auth-help, .drawer-lede, .member-note, .ov-empty { text-wrap: pretty; }
.auth-card h1, .auth-pitch h2 { text-wrap: balance; }
.auth-help { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--lp-border); color: var(--lp-muted);
             font-size: 13px; line-height: 1.6; }
form.auth-help { border-top: 0; padding-top: 0; margin-top: 12px; }
form.auth-help .button-text { padding: 0; color: var(--lp-muted); font-size: 13px; font-weight: 600; }

@media (min-width: 761px) and (max-width: 1100px) {
  .auth-shell { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .auth-brand { padding: 30px 32px 26px; }
  .auth-pitch h2 { font-size: 30px; max-width: 12ch; }
  .auth-main { padding: 48px 32px; }
}
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { padding: 20px 22px 24px; gap: 18px; }
  .auth-brand::before { width: 360px; height: 360px; right: -200px; top: -200px; }
  .auth-pitch h2 { font-size: 24px; margin: 10px 0 0; max-width: 22ch; }
  .auth-line, .auth-foot, .auth-portrait { display: none; }
  .auth-main { align-items: flex-start; padding: 30px 22px 48px; }
  .auth-card h1 { font-size: 26px; }
  .auth-lede { margin-bottom: 22px; }
}

/* ---- people: avatars, role chips, rows ---- */
.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
                 font-size: 11px; font-weight: 700; letter-spacing: -.02em; color: var(--lp-primary);
                 background: #A94F2C17; box-shadow: inset 0 0 0 1px #A94F2C1f; }
.person-avatar.role-superadmin { background: #D36A4024; color: var(--ui-accent-ink); box-shadow: inset 0 0 0 1px #D36A4033; }
.person-avatar.role-admin { background: var(--lp-primary); color: #fff; box-shadow: none; }
.person-lg .person-avatar { width: 44px; height: 44px; font-size: 15px; }
.person-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.person-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-role { letter-spacing: .02em; }
.chip-role-superadmin { background: #D36A401f; color: var(--ui-accent-ink); }
.chip-role-admin { background: #A94F2C17; color: var(--lp-primary); }
.chip-role-specialist { background: transparent; color: var(--lp-ink2); box-shadow: inset 0 0 0 1px #1A1A1833; }
.person-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--lp-border);
              color: var(--lp-ink); text-decoration: none; font-weight: 600; }
.person-row:hover { color: var(--lp-primary); }
.account-clients { margin-top: 18px; }
.account-grid { align-items: start; }
.account-grid .person-lg { margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- team page ---- */
.team-table tr.is-off td:not(.cell-actions) { opacity: .55; }
.team-table .cell-actions { text-align: right; white-space: nowrap; width: 1%; }
.team-table .cell-actions form + form { margin-left: 2px; }
.team-clients a { color: var(--lp-ink); font-weight: 500; text-decoration: none; }
.team-clients a:hover { color: var(--lp-primary); text-decoration: underline; }
@media (max-width: 639px) {
  /* A person is one compact card: who and Manage, then role and status, then clients. */
  table.stack.team-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px;
                               align-items: center; padding: 12px 14px; }
  table.stack.team-table td { padding: 0; display: flex; align-items: center; gap: 6px; width: auto; }
  table.stack.team-table td::before { display: none; }
  table.stack.team-table td:first-child { grid-column: 1; grid-row: 1; }
  table.stack.team-table td.cell-actions { grid-column: 2; grid-row: 1; padding: 0; width: auto; justify-content: flex-end; }
  table.stack.team-table td[data-label="Role"] { grid-column: 1; grid-row: 2; padding-left: 41px; }
  table.stack.team-table td[data-label="Status"] { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  table.stack.team-table td[data-label="Clients"], table.stack.team-table td[data-label="Last login"],
  table.stack.team-table td[data-label="Invited"], table.stack.team-table td[data-label="Expires"] {
    grid-column: 1 / -1; padding-left: 41px; font-size: var(--ui-meta); }
  table.stack.team-table td[data-label="Last login"]::before, table.stack.team-table td[data-label="Expires"]::before,
  table.stack.team-table td[data-label="Invited"]::before {
    display: inline; content: attr(data-label) " "; flex: none; font-size: var(--ui-meta); text-transform: none;
    letter-spacing: 0; padding: 0; font-weight: 500; }
  table.stack.team-table td[data-label="Invited"]::before { content: "Invited "; }
  table.stack.team-table td[data-label="Expires"]::before { content: "Link expires "; }
}
.you { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--lp-muted);
       background: var(--lp-bgAlt); border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px; }
.person-avatar.is-pending { background: transparent; color: var(--lp-muted); box-shadow: none;
                            outline: 1.5px dashed #1A1A1859; outline-offset: -1.5px; }
.drawer-lede { margin: 0; line-height: 1.5; }
.drawer-sub { margin: 14px 0 0; font-weight: 700; font-size: 13px; color: var(--lp-ink); }
.repo-pick { display: flex; flex-direction: column; min-width: 0; }
.repo-pick b { font-weight: 600; }
.repo-pick small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-person { padding-right: 40px; }
.drawer-person .person-text b { font-size: 16px; }
.drawer-section { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--lp-border);
                  display: flex; flex-direction: column; gap: 10px; }
.drawer-section form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.drawer-section p { margin: 0; }
.drawer-h { font-size: 13.5px; }
.drawer-danger .drawer-h { color: var(--ui-accent-ink); }
button.danger { background: #fff; color: var(--ui-accent-ink); border: 1px solid #D36A4066; }
button.danger:hover { background: #D36A4014; color: var(--ui-accent-ink); }
.role-pick { width: 100%; }
.check-line { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 2px 0; }
.check-line input { width: auto; margin: 3px 0 0; accent-color: var(--lp-primary); }
.check-line b { display: block; font-weight: 600; }
.check-line small { display: block; color: var(--lp-muted); font-size: var(--ui-meta); font-weight: 500; }
.check-fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.check-fieldset legend { font-weight: 600; font-size: var(--ui-meta); margin-bottom: 6px; padding: 0; }
.check-fieldset legend .muted { font-weight: 500; }
.check-list { width: 100%; max-height: 264px; overflow-y: auto; border: 1px solid var(--lp-border);
              border-radius: 9px; background: #fff; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--lp-border);
             cursor: pointer; }
.check-row:first-child { border-top: 0; }
.check-row:hover { background: var(--lp-bg); }
.check-row input { width: auto; margin: 0; accent-color: var(--lp-primary); }
.check-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-form { display: flex; flex-direction: column; }
.drawer-form .role-pick { margin-bottom: 12px; }
.drawer-form .drawer-foot { margin-top: 18px; }
.link-done { display: flex; flex-direction: column; gap: 12px; }
.link-done h2 { padding-right: 40px; }
.link-done .drawer-lede { color: var(--lp-ink2); font-size: 13.5px; font-weight: 500; }
.link-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
              background: #2F7D5A1f; color: var(--lp-good); }
.link-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
                  stroke-linecap: round; stroke-linejoin: round; }
.link-done .link-status { margin: 0; font-size: 13px; padding: 10px 12px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--lp-bg); }

/* ---- client brand page ---- */
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 66px; font-size: 10px; }
.swatch i { display: block; height: 34px; border-radius: 6px; border: 1px solid var(--lp-border); }
.swatch b { display: block; font-weight: 600; margin-top: 3px; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch span { color: var(--lp-muted); font-family: ui-monospace, Menlo, monospace; }
.gradient-bar { height: 22px; border-radius: 6px; margin-top: 10px; }
.specimen-display { font-size: 24px; line-height: 1.1; font-weight: 800; margin: 0 0 6px; }
.specimen-body { margin: 0 0 6px; }
.logo-tiles { display: flex; gap: 8px; }
.logo-tiles div { flex: 1; height: 64px; border-radius: 6px; border: 1px solid var(--lp-border);
                  display: flex; align-items: center; justify-content: center; padding: 8px; }
.logo-tiles img { max-width: 100%; max-height: 100%; }
.logo-tiles img.favicon { width: 28px; height: 28px; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: var(--ui-meta); }
dl.facts dt { color: var(--lp-muted); } dl.facts dd { margin: 0; }
.voice { margin: 0 0 6px; font-size: var(--ui-meta); line-height: 1.45; }
.file-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--lp-border); font-size: var(--ui-meta); }
.file-row:first-of-type { border-top: 0; }
.file-row .kind { font-size: 9.5px; font-weight: 700; background: #A94F2C14; color: var(--lp-primary); padding: 2px 5px; border-radius: 4px; min-width: 34px; text-align: center; }
.file-row .muted:last-child { margin-left: auto; }
.styletile .toc { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--ui-meta); font-weight: 600; margin-bottom: 6px; }
.prose { max-width: 760px; line-height: 1.6; font-weight: 400; }
.prose h2 { font-size: var(--fs-h3); margin-top: 32px; } .prose img { max-width: 100%; border-radius: 16px; }
.table-scroll { overflow-x: auto; }

/* ---- social accounts (Settings) ---- */
.socials { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
                margin-bottom: 10px; }
.section-head .page-sub { margin-top: 2px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subsection-title { font-size: 15px; margin: 22px 0 0; }
.social-list { padding: 0; }
.social-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 14px;
              align-items: center; padding: 14px 16px; border-top: 1px solid var(--lp-border); }
.social-row:first-child { border-top: 0; }
.social-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.social-avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid;
                 place-items: center; background: var(--lp-bgAlt); }
.social-avatar img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.social-badge { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 6px;
                background: var(--lp-card); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--lp-card); }
.social-name { display: flex; flex-direction: column; min-width: 0; }
.social-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-name .muted { font-size: var(--ui-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-state { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.social-reason { font-size: var(--ui-meta); color: var(--lp-muted); line-height: 1.35; }
.social-needs_reconnect .social-reason { color: var(--ui-accent-ink); }
.social-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.social-actions form { margin: 0; }
.socials-form { margin-top: 8px; }
.socials-form .grid { margin-bottom: 4px; }
.confirm-comment { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--lp-bgAlt);
                   font-size: var(--ui-meta); }
.confirm-comment .label { display: block; font-size: var(--ui-label); font-weight: 600; letter-spacing: .07em;
                          text-transform: uppercase; color: var(--lp-muted); margin-bottom: 2px; }
.draft-note { flex-basis: 100%; margin: 0 0 4px; }
@media (max-width: 720px) {
  .social-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .social-state { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-left: 52px; }
  .social-actions { justify-content: flex-start; padding-left: 52px; }
  .social-actions:empty { display: none; }
}

/* ---- feed platform avatars ---- */
.platform-reddit { background: #FF4500; } .platform-instagram { background: #E4405F; }
.platform-facebook { background: #1877F2; } .platform-linkedin { background: #0A66C2; }
.platform-youtube { background: #FF0000; } .platform-web { background: var(--lp-primary); }

/* ---- ready cards ---- */
.ready-card { display: flex; flex-direction: column; gap: 8px; }
.ready-card > .chip { align-self: flex-start; }
.ready-card .title a { color: var(--lp-ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.ready-card .title a:hover { text-decoration: underline; }
.icon-row { display: flex; gap: 6px; }
.ready-hint { margin: 0; font-size: var(--ui-meta); }
.icon-btn { position: relative; background: #fff; border: 1px solid var(--lp-border); border-radius: 8px;
            padding: 6px 7px 4px; cursor: pointer; line-height: 0; min-height: 0; }
.icon-btn:hover { background: var(--lp-bgAlt); border-color: var(--lp-ink); }
.mini-dot { position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%;
            background: var(--lp-border); border: 2px solid var(--lp-card); }
.mini-dot.posted { background: var(--lp-good); }
.card-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--lp-border); }
.platform-head { display: flex; align-items: center; gap: 8px; padding-right: 44px; }
.platform-head h2 { flex: 1; }

/* ---- a page's one pending decision (Website tab: a build at a gate) ---- */
.callout-action { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; padding: 14px 16px;
                  background: var(--lp-card); border: 1px solid #D36A4040; border-left: 3px solid var(--lp-accent);
                  border-radius: var(--ui-radius); }
.callout-action-text { flex: 1; min-width: 0; }
.callout-action h2 { font-size: 15px; margin: 0 0 3px; }
.callout-action p { margin: 0; font-size: 13px; color: var(--lp-ink2); }
.callout-action p.muted { margin-top: 4px; font-size: var(--ui-meta); color: var(--lp-muted); overflow-wrap: anywhere; }
.callout-action .button { flex: none; }
@media (max-width: 639px) {
  .callout-action { flex-direction: column; align-items: stretch; }
  .callout-action .button { justify-content: center; }
}

/* ---- section titles ---- */
.section-title { font-size: 15px; margin: 18px 0 10px; }

/* ---- articles ---- */
.brief { max-width: 760px; }
.field.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.field.check input { width: auto; }
.stage-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.stage-log { list-style: none; padding: 0; margin: 0; font-size: var(--ui-meta); }
.stage-log li { padding: 4px 0; border-top: 1px solid var(--lp-border); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1023px) { .review-grid { grid-template-columns: 1fr; } }
.review-side .card + .card { margin-top: 12px; }
.callout { background: var(--lp-bgAlt); border: 1px solid var(--lp-border); border-left: 3px solid var(--lp-primary); border-radius: var(--ui-radius); padding: 12px 20px; margin: 20px 0; }
.callout.tip { border-left-color: var(--lp-good); } .callout.warning { border-left-color: var(--lp-accent); }
.callout-label { display: block; font-size: var(--ui-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-muted); }
.rail { font-size: var(--ui-meta); margin: 6px 0; }
.creative img { width: 100%; border-radius: 8px; margin: 8px 0; }
.creative pre { white-space: pre-wrap; font-size: 12px; max-height: 240px; overflow: auto; }
.creative form { display: flex; gap: 8px; margin: 6px 0; } .creative form input { flex: 1; }

/* ---- client articles ---- */
.idea { display: flex; flex-direction: column; gap: 6px; }
.idea .title { font-weight: 600; line-height: 1.3; }
.pr-block { margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.pr-block form { display: inline; }

/* ---- client overview ---- */
.ov-hero { position: relative; overflow: hidden; background: var(--lp-card); border: 1px solid var(--lp-border);
           border-radius: 14px; padding: 22px 24px 20px; --brand: var(--lp-primary);
           background-image: radial-gradient(520px 180px at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 72%); }
.ov-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); }
.ov-id { display: flex; align-items: center; gap: 16px; }
.ov-id .avatar-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 19px;
                    box-shadow: 0 6px 16px -6px #1A1A1840; }
.ov-id-text { min-width: 0; }
.ov-id h1 { font-size: 26px; line-height: 1.12; letter-spacing: -.028em; overflow-wrap: anywhere; }
.ov-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 7px 0 0;
          color: var(--lp-muted); font-size: 13px; }
.ov-sub a { color: var(--lp-ink2); text-decoration: none; font-weight: 600; }
.ov-sub a:hover { color: var(--lp-primary); text-decoration: underline; }

.stepper { list-style: none; margin: 20px 0 0; padding: 18px 0 2px; border-top: 1px solid var(--lp-border);
           display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.step::before { content: ""; position: absolute; top: 11px; left: calc(-50% + 15px); right: calc(50% + 15px);
                height: 2px; border-radius: 2px; background: #1A1A181f; }
.step:first-child::before { display: none; }
.step.is-done::before, .step.is-current::before, .step.is-expired::before,
.step.is-complete::before { background: var(--lp-good); }
.step-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
            background: var(--lp-card); border: 2px solid #1A1A1829; }
.step-dot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step.is-done .step-dot { background: var(--lp-good); border-color: var(--lp-good); color: #fff; }
.step.is-current .step-dot { border-color: var(--lp-accent); box-shadow: 0 0 0 5px #D36A4021; }
.step.is-current .step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent); }
.step.is-complete .step-dot { background: var(--lp-good); border-color: var(--lp-good); color: #fff;
                             box-shadow: 0 0 0 5px #2F7D5A24; }
.step.is-expired .step-dot { background: #EFECE7; border-color: #1A1A1840; color: var(--lp-muted); }
/* the current step, stopped by its build: waiting on a person, or failed */
.step.is-attention::before, .step.is-problem::before { background: var(--lp-good); }
.step.is-attention .step-dot { background: var(--lp-card); border-color: var(--lp-accent); color: var(--lp-accent);
                               box-shadow: 0 0 0 5px #D36A4021; }
.step.is-attention .step-dot svg { stroke-width: 2.4; }
.step.is-problem .step-dot { background: var(--ui-accent-ink); border-color: var(--ui-accent-ink); color: #fff;
                             box-shadow: 0 0 0 5px #944A2D24; }
.step.is-attention .step-label, .step.is-problem .step-label { color: var(--lp-ink); font-weight: 700; }
.step-flag { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
             color: var(--ui-accent-ink); }
.step-flag-inline { font-weight: 700; color: var(--ui-accent-ink); }
.step-sub { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--lp-primary); }
.seg i.is-attention { background: var(--lp-accent); }
.seg i.is-problem { background: var(--ui-accent-ink); }
.step-label { font-size: 11.5px; line-height: 1.25; color: var(--lp-muted); max-width: 12ch; }
.step.is-done .step-label { color: var(--lp-ink2); }
.step.is-current .step-label, .step.is-expired .step-label,
.step.is-complete .step-label { color: var(--lp-ink); font-weight: 700; }
.stepper-compact { display: none; }
.seg { display: flex; gap: 3px; }
.seg i { flex: 1; height: 5px; border-radius: 3px; background: #1A1A181a; }
.seg i.is-done, .seg i.is-complete { background: var(--lp-good); }
.seg i.is-current { background: var(--lp-accent); }
.seg i.is-expired { background: #1A1A1859; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 16px; align-items: start; margin-top: 16px; }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-grid .card + .card { margin-top: 0; }
.ov-card { padding: 16px 18px; border-radius: 12px; }
.ov-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ov-card-head h3 { margin: 0; }
.ov-card-head .muted, .ov-card-head .card-link { margin-left: auto; }
.card-link { font-size: var(--ui-meta); font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.ov-empty { margin: 2px 0 0; color: var(--lp-muted); font-size: 13px; line-height: 1.5; }

.ov-action { position: relative; overflow: hidden; border-radius: 14px; padding: 24px 26px 24px;
             color: #F7F5F2; background: radial-gradient(130% 150% at 100% 0%, #3B2A21 0%, #201F1D 46%, #141412 100%);
             box-shadow: 0 18px 40px -22px #1A1A1899, inset 0 1px 0 #ffffff14; }
.ov-action::after { content: ""; position: absolute; width: 220px; height: 220px; right: -96px; top: -128px;
                    border-radius: 50%; border: 1px solid #ffffff14;
                    box-shadow: 0 0 0 38px #ffffff05, 0 0 0 76px #ffffff03; pointer-events: none; }
.ov-action .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ui-label); font-weight: 600;
                      letter-spacing: .14em; text-transform: uppercase; color: #F7F5F2b8; }
.ov-action .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent2);
                        box-shadow: 0 0 0 4px #EE967029; }
.ov-action.tone-wait .eyebrow i { animation: pulse 2s ease-in-out infinite; }
.ov-action.tone-done .eyebrow i { background: #6FCFA0; box-shadow: 0 0 0 4px #6FCFA029; }
.ov-action.tone-paused { background: linear-gradient(135deg, #3D3A36, #262523); }
.ov-action.tone-paused .eyebrow i { background: #C9C3B8; box-shadow: none; }
.ov-action h2 { position: relative; font-size: 23px; line-height: 1.2; letter-spacing: -.024em; margin: 10px 0 8px; color: #fff; }
.ov-action p { position: relative; margin: 0; max-width: 60ch; font-size: 14px; line-height: 1.55; color: #F7F5F2d6; font-weight: 400; }
.ov-action .ov-action-detail { margin-top: 10px; font-size: 12.5px; color: #F7F5F2a6;
                              overflow-wrap: anywhere; }
.ov-action .button { position: relative; margin-top: 18px; min-height: 38px; padding: 8px 16px; font-size: 13px; }
.ov-action .button + .button { margin-left: 8px; }
.ov-action .button span { transition: transform .15s ease; }
.ov-action .button:hover span { transform: translateX(2px); }
.button.on-dark { background: #ffffff1a; color: #fff; box-shadow: inset 0 0 0 1px #ffffff2e; }
.button.on-dark:hover { background: #ffffff29; color: #fff; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ov-action .eyebrow i, .pulse { animation: none !important; } }

.job-wait { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 9px;
            background: var(--lp-bg); font-size: 13px; color: var(--lp-ink2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--lp-primary);
         box-shadow: 0 0 0 4px #A94F2C1f; animation: pulse 2s ease-in-out infinite; }

.deliv { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lp-border); }
.ov-card-head + .deliv { border-top: 0; padding-top: 2px; }
.doc { position: relative; flex: 0 0 auto; width: 32px; height: 40px; border-radius: 5px 9px 5px 5px; display: grid; place-items: end center;
       padding-bottom: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; background: #1A1A180f; color: var(--lp-muted); }
.doc::after { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 9px; border-bottom-left-radius: 3px;
              background: #1A1A181a; }
.doc-pdf { background: #D36A401f; color: var(--ui-accent-ink); } .doc-pdf::after { background: #D36A4040; }
.doc-html { background: #A94F2C17; color: var(--lp-primary); } .doc-html::after { background: #A94F2C33; }
.deliv-text { display: flex; flex-direction: column; min-width: 0; }
.deliv-label { font-weight: 600; color: var(--lp-ink); text-decoration: none; overflow-wrap: anywhere; }
a.deliv-label:hover { color: var(--lp-primary); text-decoration: underline; }
.deliv-open { margin-left: auto; font-size: var(--ui-meta); font-weight: 600; text-decoration: none; padding: 5px 10px;
              border-radius: 7px; border: 1px solid var(--lp-border); color: var(--lp-ink); background: #fff; }
.deliv-open:hover { border-color: var(--lp-ink); color: var(--lp-ink); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px;
               align-items: start; padding: 8px 0; }
.timeline li::before { content: ""; position: absolute; left: 8.5px; top: 25px; bottom: -9px; width: 1px; background: var(--lp-border); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 10px; height: 10px; margin: 5px 4px 0; border-radius: 50%; background: var(--lp-primary);
          box-shadow: 0 0 0 3px var(--lp-card), 0 0 0 4px #1A1A181f; }
.tl-dot-job { background: #1A1A1840; }
.timeline li:first-child .tl-dot-job { background: var(--lp-primary); }
.tl-title { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tl-title a { color: var(--lp-ink); text-decoration: none; }
.tl-title a:hover { color: var(--lp-primary); text-decoration: underline; }
.tl-meta { display: block; color: var(--lp-muted); font-size: 11.5px; font-weight: 500; }
.tl-age { color: var(--lp-muted); font-size: var(--ui-meta); white-space: nowrap; padding-top: 1px; }
.timeline-compact li { padding: 6px 0; }
.timeline-compact .tl-title { font-weight: 500; }

dl.ov-facts { margin: 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px 12px; font-size: 13px; }
dl.ov-facts dt { color: var(--lp-muted); font-size: 12.5px; }
dl.ov-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
dl.ov-facts .dd-sub { display: block; font-weight: 500; color: var(--lp-muted); }
dl.ov-facts dd a { color: var(--lp-ink); text-decoration: none; }
dl.ov-facts dd a:hover { color: var(--lp-primary); text-decoration: underline; }

.soc { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--lp-border); }
.ov-card-head + .soc { border-top: 0; padding-top: 2px; }
.soc-glyph { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
             color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: -.02em; }
.soc.is-none .soc-glyph { filter: grayscale(1); opacity: .35; }
.soc-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.soc-name { font-weight: 600; }
.soc-text .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- assigned team (Overview) ---- */
.member { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--lp-border); }
.ov-card-head + .member { border-top: 0; padding-top: 2px; }
.member.is-off { opacity: .55; }
.member .person-text b { font-size: 13.5px; }
.member-remove { width: 28px; height: 28px; font-size: 15px; color: var(--lp-muted); border-color: transparent; }
.member-remove:hover { background: var(--lp-bgAlt); color: var(--ui-accent-ink); border-color: var(--lp-border); }
.member-add { display: flex; gap: 8px; margin-top: 12px; }
.member-add select { flex: 1; min-width: 0; padding: 7px 10px; font-size: 13px; }
.member-note { margin: 8px 0 0; color: var(--lp-muted); font-size: 12px; line-height: 1.45; }

/* ---- responsive ---- */
@media (max-width: 1023px) {
  .sidebar { width: var(--ui-rail); padding: 12px 6px; }
  .sidebar .ws-name, .sidebar .ws-empty, .sidebar .brand-text, .sidebar .ws-toggle { display: none; }
  .sidebar-head { flex-direction: column; justify-content: center; padding: 4px 0 12px; gap: 10px; }
  .brand-lp { margin-left: 0; }
  .ws-group.is-collapsed .ws-members { display: flex; }
  .ws-item { justify-content: center; padding: 6px 0; }
  .sidebar-foot { justify-content: center; padding: 8px 0 0; }
  .me { flex: 0 0 auto; padding: 4px; }
  .me-text, .me-logout { display: none; }
  .ws-group + .ws-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff1f; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --ui-page-pad: 18px; }
  /* one flow: the build status follows the next action, side cards pair up at the end */
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-main, .ov-side { display: contents; }
  .ov-action, .ov-job, #deliverables, .ov-activity, .ov-span { grid-column: 1 / -1; }
  .ov-action { order: 1; } .ov-job { order: 2; } #deliverables { order: 3; } .ov-activity { order: 4; }
  .ov-socials { order: 5; } .ov-team { order: 6; } .ov-details { order: 7; }
}
@media (max-width: 639px) {
  .sidebar { position: fixed; left: 0; top: 0; width: var(--ui-sidebar); transform: translateX(-100%);
             transition: transform .18s ease; z-index: 25; padding: 14px 10px; }
  body.nav-open .sidebar { transform: none; }
  .sidebar .ws-name, .sidebar .ws-empty { display: initial; }
  .sidebar .brand-text { display: inline-flex; } .sidebar .ws-toggle { display: flex; }
  .sidebar-head { flex-direction: row; padding: 2px 6px 12px; gap: 8px; }
  .brand-lp { margin-left: auto; }
  .ws-group.is-collapsed .ws-members { display: none; }
  .ws-item { justify-content: flex-start; padding: 4px 8px; }
  .sidebar-foot { justify-content: flex-start; padding: 10px 2px 0; }
  .me { flex: 1; padding: 6px; }
  .me-text { display: flex; } .me-logout { display: block; }
  .ws-group + .ws-group { margin-top: 0; padding-top: 0; border-top: 0; }
  .ws-group-actions { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffffff14; }
  .nav-toggle, .nav-close { display: inline-flex; }
  .topbar { gap: 12px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat b { font-size: 20px; }
  .drawer { width: 100vw; }
  .drawer-panel { border-left: 0; }
  .hide-sm { display: none !important; }
  :root { --ui-page-pad: 14px; }
  .ov-hero { padding: 18px 16px 16px; }
  .ov-id { gap: 12px; }
  .ov-id .avatar-lg { width: 46px; height: 46px; border-radius: 12px; font-size: 16px; }
  .ov-id h1 { font-size: 21px; }
  .stepper, .ov-flag { display: none; }
  .stepper-compact { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lp-border); }
  .stepper-compact p { margin: 9px 0 0; font-size: 13px; }
  .ov-action { padding: 20px 18px; }
  .ov-action h2 { font-size: 20px; }
  .ov-action .button { width: 100%; justify-content: center; }
  .ov-action .button + .button { margin: 8px 0 0; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-card { padding: 14px; }
  /* Phone header: row one says where you are (menu, the client, the page's
     action); row two holds every tab, spread to fit 390px without scrolling. */
  .topbar { flex-wrap: wrap; height: auto; gap: 0 8px; padding: 0 10px; }
  .nav-toggle { width: 34px; height: 34px; margin: 6px 0; }
  .topbar-ws { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; height: 46px;
               color: var(--lp-ink); font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-decoration: none; }
  .topbar-ws span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-ws .avatar { width: 26px; height: 26px; border-radius: 7px; }
  .actions { margin-left: 0; }
  .actions .button, .actions button { min-height: 32px; padding: 6px 11px; }
  .tabs { order: 3; flex: 1 0 100%; height: 38px; gap: 6px; justify-content: space-between;
          border-top: 1px solid var(--lp-border); margin: 0 -10px; padding: 0 12px; }
  .tabs-single { display: none; }
  .tab { padding: 0 1px; font-size: 13px; }
  /* tables become stacked cards; the header row is read from data-label */
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border-bottom: 1px solid var(--lp-border); padding: 6px 0; }
  table.stack td { border: 0; padding: 4px 12px; display: flex; gap: 10px; }
  table.stack td.cell-actions { justify-content: flex-start; align-items: center; gap: 8px; width: 100%;
                                text-align: left; padding-top: 8px; }
  table.stack td.cell-actions::before { display: none; }
  table.stack td::before { content: attr(data-label); flex: 0 0 90px; color: var(--lp-muted);
                           font-size: var(--ui-label); text-transform: uppercase; letter-spacing: .07em;
                           font-weight: 600; padding-top: 3px; }
}

.share-thumb { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; align-self: flex-start;
               object-fit: contain; border-radius: var(--ui-radius); margin: 10px 0 6px;
               border: 1px solid var(--lp-border); }
.post-meta { font-size: var(--ui-meta); color: var(--lp-muted); margin: 0; }

/* ---- public connect page (/connect/<token>): what a client sees first ---- */
body.connect { min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center;
               background: radial-gradient(1200px 520px at 50% -140px, #A94F2C1c, transparent 70%) no-repeat, var(--lp-bg);
               color: var(--lp-ink); padding: 0 16px env(safe-area-inset-bottom); }
.cx-top { width: 100%; max-width: 560px; padding: 22px 0 14px; }
.cx-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px;
           letter-spacing: -.01em; color: var(--lp-primary); }
.cx-mark-tile { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
                background: var(--lp-primary); color: #F7F5F2; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.cx-main { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.cx-card { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 22px;
           box-shadow: 0 18px 44px -28px #1A1A1866, 0 2px 6px #1A1A180d; overflow: hidden; }
.cx-hero { padding: 26px 22px 20px; }
.cx-brands { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cx-brand { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
            font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.cx-brand-lp { background: var(--lp-primary); color: #F7F5F2; }
.cx-brand-client { background: #fff; object-fit: contain; padding: 4px; box-shadow: inset 0 0 0 1px var(--lp-border); }
.cx-initials { background: var(--lp-bgAlt); color: var(--lp-primary); padding: 0; }
.cx-x { width: 14px; height: 14px; position: relative; opacity: .45; }
.cx-x::before, .cx-x::after { content: ""; position: absolute; left: 6px; top: 0; width: 2px; height: 14px;
                              border-radius: 2px; background: var(--lp-ink); transform: rotate(45deg); }
.cx-x::after { transform: rotate(-45deg); }
.cx-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
              color: var(--lp-accent); }
.cx-hero h1 { margin: 0; font-size: 27px; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.cx-lede { margin: 10px 0 0; color: var(--lp-muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.cx-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.cx-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--lp-bgAlt); overflow: hidden; }
.cx-bar i { display: block; height: 100%; border-radius: 6px; background: var(--lp-good); transition: width .3s ease; }
.cx-progress-text { font-size: 13px; font-weight: 600; color: var(--lp-muted); white-space: nowrap; }
.cx-alert { display: flex; gap: 12px; align-items: flex-start; margin: 0 16px 14px; padding: 12px 14px;
            border-radius: 14px; font-size: 14px; line-height: 1.5; }
.cx-alert p { margin: 0; }
.cx-alert-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
                 font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.cx-ok { background: #2F7D5A14; color: #1f5c41; }
.cx-ok .cx-alert-icon { background: var(--lp-good); }
.cx-err { background: #D36A4017; color: #7a3413; }
.cx-err .cx-alert-icon { background: var(--lp-accent); }
.cx-err .cx-btn-small { margin-top: 10px; }
.cx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lp-border); }
.cx-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--lp-border); }
.cx-row:first-child { border-top: 0; }
.cx-icon { position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid;
           place-items: center; background: var(--lp-bg); box-shadow: inset 0 0 0 1px var(--lp-border); }
.cx-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-text b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.cx-sub { font-size: 13.5px; color: var(--lp-muted); line-height: 1.35; overflow-wrap: anywhere; }
.cx-good { color: var(--lp-good); font-weight: 600; }
.cx-warn { color: #9a4418; font-weight: 600; }
.cx-action { flex: none; display: flex; align-items: center; gap: 12px; }
.cx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
          border-radius: 12px; border: 0; background: var(--lp-accent); color: #fff; font: inherit; font-weight: 650;
          font-size: 15px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px -14px #D36A40; }
.cx-btn:hover { background: #c35c30; color: #fff; }
.cx-btn:focus-visible, .cx-link:focus-visible, .cx-option:focus-within { outline: 3px solid #A94F2C55; outline-offset: 2px; }
.cx-btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.cx-btn-wide { width: 100%; min-height: 50px; font-size: 16px; }
.cx-link { color: var(--lp-muted); font-size: 13.5px; font-weight: 600; text-decoration: underline;
           text-underline-offset: 3px; }
.cx-link:hover { color: var(--lp-primary); }
.cx-done { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%;
           display: grid; place-items: center; background: var(--lp-good); color: #fff;
           box-shadow: 0 0 0 3px var(--lp-card); }
.cx-active .cx-icon { box-shadow: inset 0 0 0 1px #2F7D5A40; background: #2F7D5A0d; }
.cx-trust { padding: 18px 20px; border-radius: 18px; background: #A94F2C0d; border: 1px solid #A94F2C14; }
.cx-trust h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 700;
               color: var(--lp-primary); letter-spacing: 0; }
.cx-trust ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.cx-trust li { font-size: 13.5px; line-height: 1.5; color: var(--lp-ink2); }
.cx-foot { width: 100%; max-width: 560px; padding: 22px 4px 34px; text-align: center; font-size: 13px;
           color: var(--lp-muted); }
.cx-foot p { margin: 0 0 4px; }
.cx-legal { font-size: 12px; opacity: .8; }
.cx-pick { padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.cx-pick fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cx-option { position: relative; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
             background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-border); cursor: pointer; }
.cx-option:hover { box-shadow: inset 0 0 0 1px #A94F2C55; }
.cx-option input { position: absolute; opacity: 0; pointer-events: none; }
.cx-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--lp-primary); background: #A94F2C08; }
.cx-option-art { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
                 background: var(--lp-bg); overflow: hidden; }
.cx-option-art img { width: 42px; height: 42px; object-fit: cover; }
.cx-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-option-text b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-option-text span { font-size: 13px; color: var(--lp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #1A1A1840; }
.cx-option:has(input:checked) .cx-radio { box-shadow: inset 0 0 0 6px var(--lp-primary); }
.cx-back { align-self: center; margin-top: 4px; }
.cx-problem { padding: 34px 24px 30px; text-align: center; }
.cx-problem h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.cx-problem-icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
                   background: var(--lp-bgAlt); color: var(--lp-primary); }
.lp-pick .cx-pick { padding: 4px 0; max-width: 520px; }
@media (min-width: 640px) {
  .cx-top { padding-top: 44px; }
  .cx-hero { padding: 34px 32px 24px; }
  .cx-hero h1 { font-size: 32px; }
  .cx-row { padding: 18px 28px; }
  .cx-alert { margin: 0 24px 16px; }
  .cx-pick { padding: 4px 28px 26px; }
  .cx-trust { padding: 20px 26px; }
}
@media (max-width: 380px) {
  .cx-row { gap: 10px; padding: 14px 14px; }
  .cx-icon { width: 40px; height: 40px; }
  .cx-btn { padding: 0 14px; }
}

/* ---- connect link card (client Settings) and Overview socials ---- */
.invite-card { margin-bottom: 12px; padding: 14px 16px; }
.invite-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.invite-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.invite-head b { font-weight: 600; }
.invite-head .muted { font-size: var(--ui-meta); }
.invite-link { display: flex; gap: 8px; margin-top: 12px; }
.invite-link input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
                     background: var(--lp-bgAlt); border-color: transparent; color: var(--lp-ink2); }
.invite-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 10px; }
.invite-foot p { margin: 0; font-size: var(--ui-meta); line-height: 1.45; max-width: 62ch; }
.invite-foot form { margin: 0; flex: none; }
.invite-mail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lp-border); }
.invite-mail form { margin: 0; }
.invite-mail-label { display: block; font-weight: 600; font-size: var(--ui-meta); margin-bottom: 6px; }
.invite-mail-row { display: flex; gap: 8px; max-width: 600px; }
.invite-mail-row input { flex: 1; min-width: 0; }
.invite-mail-row button { flex: none; }
.invite-mail-status { margin: 8px 0 0; font-size: var(--ui-meta); line-height: 1.45; color: var(--lp-muted); max-width: 72ch; }
.invite-mail-status.is-ok { color: var(--lp-good); font-weight: 600; }
.invite-mail-status.is-err { color: var(--ui-accent-ink); font-weight: 600; }
.invite-mail-status.is-note { color: var(--lp-ink); font-weight: 600; }
.soc-avatar { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
.soc-invite { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--lp-border); font-size: var(--ui-meta); }
@media (max-width: 639px) {
  .invite-link, .invite-mail-row { flex-direction: column; }
  .invite-foot { flex-direction: column; gap: 6px; }
}

/* ---- deleting a client: the confirm page, Settings' danger zone, Deleted clients on /clients ----
   Calm on purpose: plain cards and a clear account of what goes and what stays.
   Destructive red belongs to the final button only. */
:root { --ui-destructive: #B42318; --ui-destructive-dark: #912018; }
button.destructive { background: var(--ui-destructive); color: #fff; }
button.destructive:hover { background: var(--ui-destructive-dark); color: #fff; }
button.destructive[disabled] { background: #B4231833; color: #fff; opacity: 1; }
.del { max-width: 980px; }
.del-head { margin: 2px 0 16px; }
.del-back { display: inline-flex; gap: 6px; font-size: var(--ui-meta); font-weight: 600; color: var(--lp-muted);
            text-decoration: none; margin-bottom: 10px; }
.del-back:hover { color: var(--lp-primary); }
.del-head h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
.del-lede { margin: 6px 0 0; color: var(--lp-ink2); max-width: 62ch; line-height: 1.5; }
.del-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
             margin: 0 0 14px; padding: 12px 14px; border-radius: var(--ui-radius); background: var(--lp-bgAlt);
             border: 1px solid var(--lp-border); }
.del-block p { margin: 0; }
.del-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.del-grid > .card + .card { margin-top: 0; }
.del-card { padding: 18px 20px; }
.del-card h2 { font-size: 15px; margin: 0 0 12px; }
.del-part + .del-part { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lp-border); }
.del-part h3 { margin: 0 0 6px; }
.del-part p { margin: 0; line-height: 1.5; }
.del-note { color: var(--lp-muted); font-size: 13px; }
.del-warn { font-size: 13px; font-weight: 600; color: var(--ui-accent-ink); }
/* Two columns that read downwards, most important first. */
.del-counts { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 18px; }
.del-counts li { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 3px 0;
                 break-inside: avoid; }
.del-counts b { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 2.2ch; text-align: right; }
.del-counts span { color: var(--lp-ink2); overflow-wrap: anywhere; }
.del-total { margin-top: 10px !important; font-size: var(--ui-meta); color: var(--lp-muted); }
.del-accounts { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.del-accounts li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.del-accounts svg { flex: none; }
.del-accounts span { display: flex; flex-direction: column; min-width: 0; }
.del-accounts b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.del-accounts small { color: var(--lp-muted); font-size: var(--ui-meta); }
.del-stays { background: var(--lp-bgAlt); }
.del-kept { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.del-kept li { display: flex; flex-direction: column; gap: 2px; padding-left: 22px; position: relative; }
.del-kept li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px;
                       border-left: 2px solid var(--lp-good); border-bottom: 2px solid var(--lp-good);
                       transform: rotate(-45deg); }
.del-kept b { font-weight: 600; }
.del-kept span { color: var(--lp-ink2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.del-confirm { margin-top: 12px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
               gap: 8px 12px; align-items: end; }
.del-type { grid-column: 1 / -1; font-size: 13px; font-weight: 500; color: var(--lp-ink2); }
.del-type b { color: var(--lp-ink); font-weight: 700; }
.del-confirm input { max-width: 420px; }
.del-confirm input[disabled] { background: var(--lp-bgAlt); cursor: not-allowed; }
.del-actions { display: flex; gap: 8px; justify-content: flex-end; }
.del-actions .button, .del-actions button { min-height: 36px; padding: 8px 14px; }
@media (max-width: 760px) {
  .del-grid { grid-template-columns: 1fr; }
  .del-confirm { grid-template-columns: 1fr; }
  .del-confirm input { max-width: none; }
  .del-actions { flex-direction: column-reverse; }
  .del-actions .button, .del-actions button { width: 100%; justify-content: center; white-space: normal; }
}
@media (max-width: 480px) { .del-counts { columns: 1; } }

.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px;
               border-color: #D36A4040; }
.danger-zone h3 { color: var(--ui-accent-ink); }
.danger-zone p { margin: 0; color: var(--lp-ink2); font-size: 13px; line-height: 1.5; max-width: 68ch; }
.danger-zone .button { flex: none; background: #fff; color: var(--ui-accent-ink); border: 1px solid #D36A4066; }
.danger-zone .button:hover { background: #D36A4014; color: var(--ui-accent-ink); }
@media (max-width: 639px) {
  .danger-zone { flex-direction: column; align-items: stretch; }
  .danger-zone .button { justify-content: center; }
}

.deleted-clients { margin-top: 28px; }
.deleted-clients summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
                           font-size: var(--ui-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
                           color: var(--lp-muted); padding: 4px 0; }
.deleted-clients summary::-webkit-details-marker { display: none; }
.deleted-clients summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
                                   border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
                                   transition: transform .15s ease; margin-right: 2px; }
.deleted-clients[open] summary::before { transform: rotate(45deg); }
.deleted-clients summary:hover { color: var(--lp-ink2); }
.deleted-clients summary span { font-weight: 600; }
.deleted-lede { margin: 6px 0 10px; font-size: var(--ui-meta); color: var(--lp-muted); max-width: 72ch; }
.deleted-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
               border-top: 1px solid var(--lp-border); }
.deleted-row:first-child { border-top: 0; }
.deleted-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deleted-id b { font-weight: 600; color: var(--lp-ink2); overflow-wrap: anywhere; }
.deleted-id span { font-size: var(--ui-meta); color: var(--lp-muted); }
.deleted-id .deleted-again { color: var(--ui-accent-ink); font-weight: 600; }
.deleted-row form { margin: 0; flex: none; }
.deleted-hand { font-size: var(--ui-meta); color: var(--lp-muted); flex: none; }

/* Send the trial (job page) */
.send-trial-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.send-trial-form .field { flex: 1 1 240px; margin: 0; }
.send-trial-form button { min-height: 38px; padding: 8px 16px; }
/* The builder's checks and folded notes, inside the job's status card (dark or light tone) */
.job-status .job-checks { margin-top: 12px; padding: 12px 14px; border-radius: var(--ui-radius);
                          background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); max-width: 68ch; }
.job-status .job-checks b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
                            opacity: .85; margin-bottom: 6px; }
.job-status .job-checks ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.job-status .job-checks li { line-height: 1.45; }
.job-status .job-notes { margin-top: 10px; max-width: 68ch; }
.job-status .job-notes summary { cursor: pointer; font-size: 13px; font-weight: 600; opacity: .85; }
.job-status .job-notes p { margin-top: 8px; font-size: 13px; line-height: 1.5; opacity: .9; }
.send-trial-note { margin: 8px 0 0; font-size: 12.5px; }

/* Engage from the Ready card (Isaac, 2026-09-29) */
.ready-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ready-card .engage-btn { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.engage-test { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--ui-radius); background: var(--lp-bgAlt);
               border: 1px solid var(--lp-border); font-size: 13px; color: var(--lp-ink2); }
.engage-rows { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.engage-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--lp-border); }
.engage-row:first-child { border-top: 0; padding-top: 4px; }
.engage-head { display: flex; align-items: center; gap: 8px; }
.engage-head b { font-weight: 600; }
.engage-open { margin-left: auto; font-size: 13px; font-weight: 600; }
.engage-plan { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--lp-ink2); }
.engage-state { margin: 0; font-size: 13.5px; }
.engage-state.engage-go, form.engage-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
form.engage-state { justify-content: flex-start; }
.engage-state button { min-height: 32px; padding: 6px 14px; }
.engage-answer { margin: 0; font-size: 13px; color: var(--lp-ink2); }
.engage-foot { margin-top: 10px; font-size: 12.5px; }

/* One-click connect link email on the Overview (Isaac, 2026-10-05) */
.soc-resend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.soc-resend form { margin: 0; }
.soc-resend button { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.soc-resend .muted { font-size: 12.5px; }
.topbar-ws:has(.ry-topbar-mark) { flex: none; }
