/* ============================================================
   SYDEKYCK — components.css  (LAYER 3 of 3)
   ONLY the Sydekyck-specific chrome that Bootstrap doesn't ship.
   Everything here is reused across screens. Buttons, forms,
   switches, tabs, cards, alerts, grid → all come from Bootstrap
   (re-skinned in tokens.css), NOT here.

   Contents: app shell + sidebar (+ collapsed rail), eyebrow/page
   heading, section header, the availability "day" rows, master-
   control cards, integration cards, and category rows.
   ============================================================ */

/* ---- App shell ---- */
.app { display: grid; grid-template-columns: 256px 1fr; height: 100vh; overflow: hidden; }
.panel { overflow-y: auto; }
.content { padding: 26px 38px 60px; max-width: 1080px; }

/* ---- Sidebar ---- */
.sb { background: var(--bg-deep); color: rgba(255,255,255,0.78); padding: 22px 16px; display: flex; flex-direction: column; overflow-y: auto; }
.sb-top { display: flex; align-items: center; gap: 11px; padding: 0 6px 6px; }
.sb-top img { width: 34px; height: 34px; }
.sb-top .wm { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.035em; color: #fff; }
.sb-collapse { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; }
.sb-collapse:hover { background: rgba(255,255,255,0.09); color: #fff; }
.sb-grp { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 20px 8px 7px; }
.sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 11px; margin: 1px 0; border-radius: 9px; color: rgba(255,255,255,0.76); text-decoration: none; font-weight: 500; font-size: 14px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; font-family: var(--font-body); transition: background-color .12s ease, color .12s ease; }
.sb-item i { width: 17px; font-size: 16px; }
.sb-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sb-item.active { background: rgba(79,195,209,0.16); color: var(--se-blue-200); font-weight: 600; }
.sb-item .pip { margin-left: auto; background: var(--se-coral); color: #3A1E14; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.sb-foot { margin-top: auto; padding-top: 18px; }
.sb-user { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.sb-user .av { width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--se-blue-300), var(--se-blue-500)); color: #052930; }
.sb-user .nm { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.sb-user .em { color: rgba(255,255,255,0.5); font-size: 11px; font-family: var(--font-mono); }
.sb-icons { display: flex; gap: 8px; margin-top: 12px; }
.sb-icons button { flex: 1; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.65); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.sb-icons button:hover { background: rgba(255,255,255,0.09); color: #fff; }
.sb-icons button.active { color: var(--se-blue-200); }

/* ---- Collapsed icon rail ---- */
.app.collapsed { grid-template-columns: 76px 1fr; }
.app.collapsed .sb { padding: 22px 14px; }
.app.collapsed .sb-top { flex-direction: column; gap: 12px; padding: 0 0 6px; }
.app.collapsed .sb-top .wm { display: none; }
.app.collapsed .sb-collapse { margin: 0; }
.app.collapsed .sb-collapse i { transform: rotate(180deg); }
.app.collapsed .sb-grp { text-align: center; padding: 18px 0 7px; font-size: 0; }
.app.collapsed .sb-grp::after { content: ''; display: block; width: 22px; height: 1px; background: rgba(255,255,255,0.12); margin: 0 auto; }
.app.collapsed .sb-item { justify-content: center; gap: 0; padding: 11px 0; font-size: 0; position: relative; }
.app.collapsed .sb-item i { font-size: 17px; width: auto; }
.app.collapsed .sb-item .pip { position: absolute; top: 5px; right: 12px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.app.collapsed .sb-foot .sb-user { justify-content: center; padding: 9px 0; }
.app.collapsed .sb-foot .sb-user > div { display: none; }
.app.collapsed .sb-icons { flex-direction: column; }
.app.collapsed .sb-item::after { content: attr(data-label); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--se-ink-900); color: var(--bg-surface); font-family: var(--font-body); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 7px; white-space: nowrap; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 50; }
.app.collapsed .sb-item:hover::after { opacity: 1; }

/* ---- Page heading ---- */
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--se-coral); font-weight: 600; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; color: var(--se-ink-900); margin: 6px 0 0; }
.page-sub { font-size: 14px; color: var(--se-ink-500); margin-top: 6px; }

/* ---- Section header inside cards ---- */
.sec-title { font-family: var(--font-sub); font-weight: 700; font-size: 18px; letter-spacing: -.015em; color: var(--se-ink-900); margin: 0; }
.sec-desc { font-size: 13.5px; color: var(--se-ink-500); margin: 6px 0 20px; }
.sub-h { font-family: var(--font-sub); font-weight: 700; font-size: 15px; color: var(--se-ink-900); margin: 24px 0 14px; }
.mono-label { display: block; font-size: 11px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--se-ink-500); margin-bottom: 6px; }

/* ---- Availability day rows ---- */
.day { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 12px; }
.day.off { opacity: .6; }
.day-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.day-h .dn { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--se-ink-900); }
.day-valid { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 13px; border-radius: var(--r); background: var(--se-sage-soft); color: var(--se-sage-700); font-size: 13px; font-weight: 600; }
[data-bs-theme="dark"] .day-valid { color: #9FD9B4; }

/* ---- Master-control card (availability defaults) ---- */
.mc-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; background: var(--bg-base); height: 100%; }
.mc-card .mc-t { font-family: var(--font-sub); font-weight: 700; font-size: 14px; color: var(--se-ink-900); margin-bottom: 14px; }

/* ---- Integration card ---- */
.integ-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.integ-h h2 { font-family: var(--font-sub); font-weight: 700; font-size: 17px; color: var(--se-ink-900); margin: 0; }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--se-ink-100); color: var(--se-ink-500); }
.integ-state { text-align: center; padding: 28px 0; }
.integ-state .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--se-ink-100); color: var(--se-ink-400); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.integ-state .t { font-family: var(--font-sub); font-weight: 700; font-size: 16px; color: var(--se-ink-900); margin-top: 14px; }
.integ-note { text-align: center; font-size: 13.5px; color: var(--se-ink-500); padding: 22px 0; }

/* ---- Category row ---- */
.cat { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 11px; background: var(--bg-surface); }
.cat .dot { width: 11px; height: 11px; border-radius: 999px; flex: none; }
.cat .cm { flex: 1; min-width: 0; }
.cat .ct .nm { font-weight: 700; font-size: 14.5px; color: var(--se-ink-900); }
.cat-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-left: 9px; }
.cat-badge.system { background: var(--se-ink-100); color: var(--se-ink-600); }
.cat-badge.custom { background: var(--se-sage-soft); color: var(--se-sage-700); }
[data-bs-theme="dark"] .cat-badge.custom { color: #9FD9B4; }
.cat .cd { font-size: 12.5px; color: var(--se-ink-500); margin-top: 3px; }
.cat .cu { font-family: var(--font-mono); font-size: 11px; color: var(--se-ink-400); margin-top: 4px; }
.cat .vo { color: var(--se-ink-500); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.cat-count { font-family: var(--font-mono); font-size: 11px; color: var(--se-ink-500); margin-top: 14px; }

/* avatar block (profile) */
.avatar-lg { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg,var(--se-blue-300),var(--se-blue-500)); color: #052930; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; flex: none; }

/* ---- Avatar tones (shared across rows/cards) ---- */
.av { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex: none; border-radius: 11px; }
.av.blue { background: linear-gradient(135deg, var(--se-blue-300), var(--se-blue-500)); color: #052930; }
.av.amber { background: linear-gradient(135deg, var(--se-coral-soft), var(--se-coral)); color: var(--se-coral-700); }
.av.plum { background: linear-gradient(135deg, #C2A3DC, var(--se-plum)); color: #2D1B40; }
.av.sage { background: linear-gradient(135deg, #A5D5B8, var(--se-sage)); color: #133024; }

/* ---- Page heading row (eyebrow + title + actions) ---- */
.welcome { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 120% at 92% 0%, rgba(79,195,209,0.16), transparent 60%), radial-gradient(ellipse 50% 120% at 0% 100%, rgba(244,160,43,0.07), transparent 55%), var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: 30px 34px; display: flex; align-items: center; gap: 24px; }
.welcome .fold { position: absolute; border: 1.5px solid rgba(79,195,209,0.18); border-radius: 6px; transform: rotate(45deg); pointer-events: none; }
.welcome .fold.a { width: 150px; height: 150px; top: -56px; right: 40px; }
.welcome .fold.b { width: 96px; height: 96px; top: 24px; right: -28px; opacity: .6; }
.welcome .wbody { position: relative; flex: 1; }
.welcome h1 { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; line-height: 1.05; color: var(--se-ink-900); margin: 9px 0 0; }
.welcome p { font-size: 15px; color: var(--se-ink-600); margin: 8px 0 0; max-width: 60ch; line-height: 1.5; }
.welcome .wactions { position: relative; display: flex; flex-direction: column; gap: 10px; flex: none; }

/* ---- Card section header (title + count + link) ---- */
.sec-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.sec-head .lt { display: flex; align-items: baseline; gap: 11px; }
.sec-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--se-ink-900); margin: 0; }
.sec-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--se-ink-500); background: var(--se-ink-100); padding: 2px 9px; border-radius: 999px; }
.sec-head a { font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.sec-head a:hover { text-decoration: underline; }

/* ---- Empty state ---- */
.empty { border: 1.5px dashed var(--border); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; }
.empty .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--se-blue-50); color: var(--se-blue-600); display: inline-flex; align-items: center; justify-content: center; font-size: 23px; }
.empty .t { font-family: var(--font-sub); font-weight: 600; font-size: 16px; color: var(--se-ink-900); margin: 14px 0 0; }
.empty .d { font-size: 13.5px; color: var(--se-ink-500); margin: 5px 0 0; }
.empty .act { margin-top: 16px; }

/* ---- Session row ---- */
.sess { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--border); }
.sess:last-child { border-bottom: 0; }
.sess .date { width: 56px; height: 54px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; border-radius: var(--r); border: 1px solid var(--border); background: var(--se-ink-50); padding: 0; }
.sess .date .dow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--se-coral); font-weight: 600; line-height: 1; }
.sess .date .day { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1; color: var(--se-ink-900); white-space: nowrap; }
.sess .av { width: 38px; height: 38px; font-size: 13px; }
.sess .info { flex: 1; min-width: 0; }
.sess .info .ti { font-weight: 600; font-size: 14px; color: var(--se-ink-900); }
.sess .info .me { font-size: 12.5px; color: var(--se-ink-500); margin-top: 1px; }
.sess .when { text-align: right; flex: none; }
.sess .when .tm { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--se-ink-800); }
.sess .when .dur { font-size: 11.5px; color: var(--se-ink-500); margin-top: 1px; }
.sess .go { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--se-ink-500); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all .14s ease; }
.sess .go:hover { border-color: var(--se-blue-300); color: var(--se-blue-600); background: var(--se-blue-50); }

/* ---- Action-item row ---- */
.ai { display: flex; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid var(--border); }
.ai:last-child { border-bottom: 0; }
.ai .av { width: 36px; height: 36px; font-size: 13px; }
.ai .ti { font-weight: 600; font-size: 14px; color: var(--se-ink-900); }
.ai .me { font-size: 12.5px; color: var(--se-ink-500); margin-top: 1px; }
.ai .due { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--se-ink-500); }

/* ---- Badge pill (status, soft tint + deep text) ---- */
.badge-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 11px; font-weight: 600; border-radius: 999px; }
.badge-pill.amber { background: var(--se-coral-soft); color: var(--se-coral-700); }
.badge-pill.sage { background: var(--se-sage-soft); color: var(--se-sage-700); }
.badge-pill.blue { background: var(--se-blue-50); color: var(--se-blue-700); }
.badge-pill.plum { background: var(--se-plum-soft); color: var(--se-plum-700); }
[data-bs-theme="dark"] .badge-pill.sage { color: #9FD9B4; }
[data-bs-theme="dark"] .badge-pill.blue { color: var(--se-blue-200); }

/* ---- Status dot (haloed) ---- */
.sdot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; box-shadow: 0 0 0 3px currentColor; }
.sdot.live { background: var(--se-success); color: rgba(43,174,106,0.18); }
.sdot.pending { background: var(--se-marigold); color: rgba(232,155,31,0.18); }
.sdot.paused { background: var(--se-ink-500); color: rgba(107,120,132,0.18); }

/* ============================================================
   ROSTER / TABLE / TOOLBAR  (Clients, Sessions, Action Items)
   ============================================================ */

/* page header */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.page-head .ph-l { flex: 1; min-width: 300px; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.03em; line-height: 1.05; color: var(--se-ink-900); margin: 8px 0 0; }
.page-head p { font-size: 14.5px; color: var(--se-ink-500); margin: 6px 0 0; }

/* stat tiles */
.stat-tile { padding: 16px 18px; }
.stat-tile .l { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--se-ink-500); }
.stat-tile .l .ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.stat-tile .l .ico.blue { background: var(--se-blue-50); color: var(--se-blue-600); }
.stat-tile .l .ico.sage { background: var(--se-sage-soft); color: var(--se-sage-700); }
.stat-tile .l .ico.amber { background: var(--se-coral-soft); color: var(--se-coral-700); }
.stat-tile .l .ico.plum { background: var(--se-plum-soft); color: var(--se-plum-700); }
.stat-tile .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--se-ink-900); margin-top: 10px; }
.stat-tile .ft { font-size: 12px; color: var(--se-ink-500); margin-top: 6px; }

/* toolbar + search */
.toolbar { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.search-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 240px; }
.search-wrap > i { position: absolute; left: 14px; color: var(--se-ink-400); font-size: 16px; pointer-events: none; z-index: 2; }
.search-wrap .form-control { padding-left: 42px; }
.countline { font-size: 13px; color: var(--se-ink-500); margin: 22px 2px 0; font-family: var(--font-mono); letter-spacing: .04em; }

/* segmented control (card/list toggle) */
.seg { display: inline-flex; gap: 4px; background: var(--se-ink-100); padding: 4px; border-radius: var(--r); border: 1px solid var(--border); }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 13px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; color: var(--se-ink-600); font-family: var(--font-body); cursor: pointer; }
.seg button.active { background: var(--bg-surface); color: var(--se-blue-700); box-shadow: var(--shadow-1); }
[data-bs-theme="dark"] .seg button.active { color: var(--se-blue-200); }
.seg button i { font-size: 15px; }
/* radio-backed seg (Bootstrap .btn-check + <label>) — keep JS hooks, kit look */
.seg label { display: inline-flex; align-items: center; gap: 7px; margin: 0; border: 0; background: transparent; padding: 8px 13px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; color: var(--se-ink-600); font-family: var(--font-body); cursor: pointer; }
.seg .btn-check:checked + label, .seg label.active { background: var(--bg-surface); color: var(--se-blue-700); box-shadow: var(--shadow-1); }
[data-bs-theme="dark"] .seg .btn-check:checked + label, [data-bs-theme="dark"] .seg label.active { color: var(--se-blue-200); }

/* status pill */
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: -.005em; }
.stat-pill .d { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.stat-pill.sage { background: var(--se-sage-soft); color: var(--se-sage-700); }
.stat-pill.amber { background: var(--se-coral-soft); color: var(--se-coral-700); }
.stat-pill.blue { background: var(--se-blue-50); color: var(--se-blue-700); }
.stat-pill.plum { background: var(--se-plum-soft); color: var(--se-plum-700); }
.stat-pill.ink { background: var(--se-ink-100); color: var(--se-ink-700); }
[data-bs-theme="dark"] .stat-pill.sage { color: #9FD9B4; }
[data-bs-theme="dark"] .stat-pill.blue { color: var(--se-blue-200); }

/* avatar (rounded-square, tones reuse .blue/.amber/.sage/.plum/.ink) */
.avatar { border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.avatar.blue { background: linear-gradient(135deg, var(--se-blue-300), var(--se-blue-500)); color: #052930; }
.avatar.amber { background: linear-gradient(135deg, var(--se-coral-soft), var(--se-coral)); color: var(--se-coral-700); }
.avatar.sage { background: linear-gradient(135deg, #A5D5B8, var(--se-sage)); color: #133024; }
.avatar.plum { background: linear-gradient(135deg, #C2A3DC, var(--se-plum)); color: #2D1B40; }
.avatar.ink { background: var(--se-ink-300); color: var(--se-ink-800); }

/* roster card */
.client-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 20px; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.client-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--se-blue-200); }
.cc-top { display: flex; align-items: flex-start; gap: 14px; }
.cc-top .avatar { width: 52px; height: 52px; font-size: 18px; }
.cc-id { flex: 1; min-width: 0; }
.cc-id .nm { font-family: var(--font-sub); font-weight: 700; font-size: 16.5px; color: var(--se-ink-900); letter-spacing: -.01em; }
.cc-id .em { font-family: var(--font-mono); font-size: 12px; color: var(--se-ink-500); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-menu { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--se-ink-400); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.cc-menu:hover { background: var(--se-ink-100); color: var(--se-ink-700); }
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.cc-tags .prog { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--se-ink-600); }
.cc-tags .prog i { color: var(--se-ink-400); font-size: 13px; }
.cc-sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 16px 0 0; padding: 15px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cc-sessions .s { text-align: center; }
.cc-sessions .s .n { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--se-ink-900); line-height: 1; }
.cc-sessions .s .n.accent { color: var(--se-blue-600); }
.cc-sessions .s .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--se-ink-500); margin-top: 5px; }
.cc-next { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--se-ink-600); }
.cc-next i { color: var(--se-ink-400); font-size: 14px; }
.cc-next.none { color: var(--se-ink-400); }
.cc-actions { display: flex; gap: 9px; margin-top: 16px; }
.cc-actions .btn { flex: 1; }

/* data table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--se-ink-500); font-weight: 500; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl thead th.center { text-align: center; }
.tbl tbody td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .12s ease; cursor: pointer; }
.tbl tbody tr:hover { background: var(--se-ink-50); }
.tcell-name { display: flex; align-items: center; gap: 12px; }
.tcell-name .avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 11px; }
.tcell-name .nm { font-weight: 700; font-size: 14px; color: var(--se-ink-900); }
.tcell-name .em { font-family: var(--font-mono); font-size: 11.5px; color: var(--se-ink-500); margin-top: 1px; }
.tbl .mono { font-family: var(--font-mono); font-size: 13px; }
.row-actions { display: flex; gap: 6px; justify-content: center; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--se-ink-500); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .14s ease; }
.icon-btn:hover { border-color: var(--se-blue-300); color: var(--se-blue-600); background: var(--se-blue-50); }

/* ============================================================
   GENERIC MODAL (scrim + card)  — opened/closed via app.js helpers
   ============================================================ */
.scrim { position: fixed; inset: 0; background: rgba(15,26,34,0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; z-index: 100; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.scrim.open { opacity: 1; visibility: visible; }
/* position + display reset Bootstrap's own .modal { position: fixed; left: 0; display: none }
   (class-name collision) so our scrim can show & center the card as a normal flex item */
.scrim .modal { display: block; position: relative; width: 100%; max-width: 560px; margin: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-3); transform: translateY(8px) scale(.99); transition: transform .2s ease; }
.scrim.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.modal-head .eyebrow { margin-bottom: 5px; }
.modal-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -.025em; color: var(--se-ink-900); margin: 0; }
.modal-close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--se-ink-500); cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.modal-close:hover { background: var(--se-ink-50); color: var(--se-ink-900); }
.modal-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--border); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.info-note { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r); background: var(--se-blue-50); border: 1px solid rgba(31,142,156,0.16); color: var(--se-blue-700); font-size: 13px; line-height: 1.5; font-weight: 500; }
.info-note i { font-size: 16px; margin-top: 1px; flex: none; }
[data-bs-theme="dark"] .info-note { color: var(--se-blue-200); border-color: rgba(123,210,220,0.22); }

/* ============================================================
   SESSIONS surface (session cards, status, multiselect, filters)
   ============================================================ */
.filters-bar { display: grid; grid-template-columns: 210px 210px 1fr 170px; gap: 16px; align-items: end; padding: 20px 22px; }
@media (max-width: 1080px) { .filters-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .filters-bar { grid-template-columns: 1fr; } }
.fl-lab { display: block; font-size: 12.5px; font-weight: 600; color: var(--se-ink-700); margin-bottom: 7px; }

.sessions { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.session-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 20px 22px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.session-card:hover { box-shadow: var(--shadow-2); border-color: var(--se-blue-200); }
.sc-top { display: flex; align-items: flex-start; gap: 16px; }
.sc-date { width: 58px; flex: none; text-align: center; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--se-ink-50); }
.sc-date .mo { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--se-ink-700); padding: 3px 0; }
.sc-date .dy { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1; color: var(--se-ink-900); padding: 7px 0; }
.sc-when { flex: 1; min-width: 0; }
.sc-when .d { font-weight: 700; font-size: 15px; color: var(--se-ink-900); }
.sc-when .t { font-family: var(--font-mono); font-size: 12.5px; color: var(--se-ink-600); margin-top: 3px; }
.sc-when .dur { color: var(--se-ink-400); }
.sstatus { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; font-family: var(--font-mono); }
.sstatus .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.sstatus.scheduled { background: var(--se-blue-50); color: var(--se-blue-700); }
.sstatus.progress { background: var(--se-sage-soft); color: var(--se-sage-700); }
.sstatus.completed { background: var(--se-ink-100); color: var(--se-ink-600); }
.sstatus.cancelled { background: var(--se-coral-soft); color: var(--se-coral-700); }
.sstatus.overdue { background: var(--se-marigold-soft); color: var(--se-marigold-700); }
.sstatus.deleted { background: var(--se-ink-100); color: var(--se-ink-500); }
[data-bs-theme="dark"] .sstatus.cancelled { color: var(--se-coral); }
[data-bs-theme="dark"] .sstatus.overdue { color: #F5CB76; }
[data-bs-theme="dark"] .sstatus.scheduled { color: var(--se-blue-200); }
[data-bs-theme="dark"] .sstatus.progress { color: #9FD9B4; }
.sc-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--se-ink-900); margin: 16px 0 0; }
.sc-info { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 9px; font-size: 13.5px; color: var(--se-ink-600); }
.sc-info .it { display: inline-flex; align-items: center; gap: 7px; }
.sc-info .it i { color: var(--se-ink-400); font-size: 15px; }
.sc-info .it b { color: var(--se-ink-800); font-weight: 600; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.sc-tools { margin-left: auto; display: flex; gap: 8px; }
.sc-tools .icon-btn { width: 36px; height: 36px; }
.icon-btn.danger:hover { border-color: var(--se-danger); color: var(--se-danger); background: rgba(229,83,83,0.08); }

/* large empty state */
.empty-lg { border: 1.5px dashed var(--border); border-radius: var(--r-lg); padding: 64px 24px; text-align: center; margin-top: 18px; }
.empty-lg .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--se-blue-50); color: var(--se-blue-600); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.empty-lg .t { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--se-ink-900); margin: 18px 0 0; }
.empty-lg .d { font-size: 14.5px; color: var(--se-ink-500); margin: 7px 0 0; }
.empty-lg .act { margin-top: 20px; }

/* pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.pager .pos { font-family: var(--font-mono); font-size: 12.5px; color: var(--se-ink-500); }

/* client multiselect */
.ms { position: relative; }
.ms-trigger { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--bg-surface); color: var(--se-ink-900); font-family: var(--font-body); font-size: 14px; cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.ms-trigger:hover { border-color: var(--se-ink-300); }
.ms-trigger .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-trigger .chev { color: var(--se-ink-400); font-size: 13px; transition: transform .15s ease; }
.ms.open .ms-trigger { border-color: var(--se-blue-400); box-shadow: 0 0 0 4px var(--halo); }
.ms.open .ms-trigger .chev { transform: rotate(180deg); }
.ms-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--bg-surface); border: 1.5px solid var(--se-blue-400); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 8px; display: none; }
.ms.open .ms-panel { display: block; }
.ms-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r); cursor: pointer; }
.ms-opt:hover { background: var(--se-ink-50); }
.ms-opt input { width: 18px; height: 18px; accent-color: var(--se-blue-400); cursor: pointer; flex: none; }
.ms-opt .nm { flex: 1; font-size: 14px; font-weight: 600; color: var(--se-ink-900); }
.ms-opt .ct { font-family: var(--font-mono); font-size: 12px; color: var(--se-ink-400); }
.ms-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px 4px 3px; margin-top: 5px; border-top: 1px solid var(--border); }

/* ============================================================
   ACTION ITEMS surface (tabs, quick pills, priority, ai-cards)
   ============================================================ */
.ph-title { display: flex; align-items: center; gap: 13px; }
.ph-title .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--se-blue-50); color: var(--se-blue-600); display: flex; align-items: center; justify-content: center; font-size: 21px; flex: none; }
.ph-title h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; color: var(--se-ink-900); margin: 0; }

.tabbar { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-top: 22px; padding: 22px 4px 0; }
.tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 6px; margin-bottom: -1px; font-size: 15px; font-weight: 600; color: var(--se-ink-500); border-bottom: 2px solid transparent; cursor: pointer; background: 0; border-top: 0; border-left: 0; border-right: 0; font-family: var(--font-body); }
.tab:hover { color: var(--se-ink-800); }
.tab.active { color: var(--se-ink-900); border-bottom-color: var(--se-blue-400); }
.tab .ct { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--se-ink-100); color: var(--se-ink-600); }
.tab.active .ct { background: var(--se-blue-100); color: var(--se-blue-700); }
[data-bs-theme="dark"] .tab.active .ct { color: var(--se-blue-200); background: rgba(79,195,209,0.16); }

.qpills { display: flex; flex-wrap: wrap; gap: 10px; }
.qpill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--se-ink-600); font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: var(--font-body); transition: all .14s ease; }
.qpill:hover { border-color: var(--se-blue-300); color: var(--se-ink-900); }
.qpill .ct { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--se-ink-100); color: var(--se-ink-600); }
.qpill.active { background: var(--se-blue-400); color: var(--primary-on); border-color: transparent; }
.qpill.active .ct { background: rgba(3,50,58,0.16); color: var(--primary-on); }
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.view-row { margin-top: 18px; }

.prio { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prio .d { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.prio.high { background: var(--se-coral-soft); color: var(--se-coral-700); }
.prio.medium { background: var(--se-marigold-soft); color: var(--se-marigold-700); }
.prio.low { background: var(--se-sage-soft); color: var(--se-sage-700); }
[data-bs-theme="dark"] .prio.medium { color: var(--se-marigold); }
[data-bs-theme="dark"] .prio.low { color: #9FD9B4; }

.astat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.astat.pending { background: var(--se-blue-50); color: var(--se-blue-700); }
.astat.progress { background: var(--se-marigold-soft); color: var(--se-marigold-700); }
.astat.done { background: var(--se-sage-soft); color: var(--se-sage-700); }
[data-bs-theme="dark"] .astat.pending { color: var(--se-blue-200); }
[data-bs-theme="dark"] .astat.progress { color: var(--se-marigold); }
[data-bs-theme="dark"] .astat.done { color: #9FD9B4; }

/* custom rounded checkbox */
.chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--se-ink-300); background: var(--bg-surface); cursor: pointer; flex: none; appearance: none; -webkit-appearance: none; position: relative; transition: all .14s ease; }
.chk:hover { border-color: var(--se-blue-400); }
.chk:checked { background: var(--se-blue-400); border-color: var(--se-blue-400); }
.chk:checked::after { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--primary-on); font-size: 13px; }

.ai-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 18px 20px; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.ai-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--se-blue-200); }
.aic-top { display: flex; align-items: center; gap: 12px; }
.aic-due { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--se-ink-500); }
.aic-title { font-family: var(--font-sub); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--se-ink-900); margin: 15px 0 0; }
.aic-desc { font-size: 13.5px; color: var(--se-ink-500); margin: 5px 0 0; line-height: 1.45; }
.aic-meta { display: flex; flex-direction: column; gap: 10px; margin: 15px 0 0; padding: 15px 0 0; border-top: 1px solid var(--border); }
.aic-meta .mr { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--se-ink-600); }
.aic-meta .mr i { width: 16px; font-size: 14px; color: var(--se-ink-400); }
.aic-meta .mr a { color: var(--link); font-weight: 600; text-decoration: none; }
.aic-meta .mr a:hover { text-decoration: underline; }
.aic-meta .mr b { color: var(--se-ink-800); font-weight: 600; }
.aic-actions { display: flex; gap: 9px; margin-top: 16px; }
.aic-actions .btn { flex: 1; }

/* action-item table cells */
.tcell-title .t { font-weight: 700; font-size: 14.5px; color: var(--se-ink-900); }
.tcell-title .s { font-size: 12.5px; color: var(--se-ink-500); margin-top: 2px; }
.tcell-due .d { font-weight: 700; font-size: 13.5px; color: var(--se-ink-900); }
.tcell-due .s { font-family: var(--font-mono); font-size: 11px; color: var(--se-ink-500); margin-top: 2px; }
.tcell-sess a { color: var(--link); font-weight: 600; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tcell-sess a:hover { text-decoration: underline; }

/* ============================================================
   CLIENT PROFILE surface
   ============================================================ */
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--se-ink-500); font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--se-ink-900); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 14px; }
.title-row .tr-l { min-width: 240px; flex: 1 1 300px; }
.title-row h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; color: var(--se-ink-900); margin: 0; }
.title-row .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.profile { margin-top: 18px; padding: 26px 28px; display: flex; gap: 24px; }
@media (max-width: 720px) { .profile { flex-direction: column; gap: 18px; } }
.profile .avatar-xl { width: 84px; height: 84px; border-radius: 22px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 30px; background: linear-gradient(135deg, var(--se-blue-300), var(--se-blue-500)); color: #052930; }
.profile .pbody { flex: 1; min-width: 0; }
.profile .pname { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile .pname h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.025em; color: var(--se-ink-900); margin: 0; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; margin-top: 20px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
.pf .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--se-ink-500); }
.pf .v { font-size: 14px; color: var(--se-ink-900); margin-top: 5px; font-weight: 500; }
.pf .v.mono { font-family: var(--font-mono); font-size: 13px; }
.pf .v.empty { color: var(--se-ink-400); font-weight: 400; }
.pf .v a { color: var(--link); text-decoration: none; }
.pf .v a:hover { text-decoration: underline; }

.stiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .stiles { grid-template-columns: repeat(2, 1fr); } }
.stile { padding: 18px 20px; text-align: center; }
.stile .n { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1; color: var(--se-ink-900); }
.stile .n.accent { color: var(--se-blue-600); }
.stile .n.empty { color: var(--se-ink-400); }
.stile .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--se-ink-500); margin-top: 8px; }

.tabpanel { display: none; }
.tabpanel.active { display: block; }
.sec-h { font-family: var(--font-sub); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--se-ink-900); margin: 28px 0 14px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.pill.scheduled { background: var(--se-blue-50); color: var(--se-blue-700); }
.pill.cat { background: var(--se-plum-soft); color: var(--se-plum-700); }
.pill.done { background: var(--se-sage-soft); color: var(--se-sage-700); }
[data-bs-theme="dark"] .pill.scheduled { color: var(--se-blue-200); }
[data-bs-theme="dark"] .pill.cat { color: #C2A3DC; }
[data-bs-theme="dark"] .pill.done { color: #9FD9B4; }

.psess { padding: 18px 20px; margin-bottom: 14px; }
.psess-top { display: flex; align-items: flex-start; gap: 12px; }
.psess-top .ti { font-family: var(--font-sub); font-weight: 700; font-size: 16px; color: var(--se-ink-900); }
.psess-top .tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.psess-top .view { margin-left: auto; }
.psess-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.psess-meta .it { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--se-ink-700); }
.psess-meta .it i { color: var(--se-ink-400); font-size: 15px; }
.psess-meta .it .mono { font-family: var(--font-mono); font-size: 13px; }

.note { padding: 18px 20px; margin-bottom: 14px; }
.note .nh { display: flex; align-items: center; gap: 10px; }
.note .nh .av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; background: linear-gradient(135deg, var(--se-blue-300), var(--se-blue-500)); color: #052930; }
.note .nh .who { font-weight: 700; font-size: 13.5px; color: var(--se-ink-900); }
.note .nh .when { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--se-ink-400); }
.note .body { font-size: 14px; line-height: 1.55; color: var(--se-ink-700); margin-top: 12px; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .addr-grid { grid-template-columns: 1fr; } }
.addr { padding: 18px 20px; }
.addr .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--se-coral); font-weight: 600; }
.addr .lines { font-size: 14px; color: var(--se-ink-800); line-height: 1.55; margin-top: 8px; }
.ai-row { display: flex; align-items: center; gap: 13px; padding: 14px 20px; margin-bottom: 12px; }
.ai-row .ti { font-weight: 600; font-size: 14px; color: var(--se-ink-900); }
.ai-row .me { font-size: 12px; color: var(--se-ink-500); margin-top: 2px; }
.ai-row .prio { margin-left: auto; }

/* ============================================================
   EDIT CLIENT PROFILE / form surface
   ============================================================ */
.edit-card { margin-top: 18px; padding: 30px 34px; }
.edit-grid { display: grid; grid-template-columns: 200px 1fr; gap: 36px; }
@media (max-width: 820px) { .edit-grid { grid-template-columns: 1fr; gap: 24px; } }
.avcol { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avcol .avatar-photo { width: 110px; height: 110px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 38px; background: linear-gradient(135deg, var(--se-blue-300), var(--se-blue-500)); color: #052930; position: relative; }
.avcol .cam { position: absolute; bottom: 2px; right: 2px; width: 32px; height: 32px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--se-ink-500); display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: var(--shadow-1); }
.avcol .change { color: var(--link); font-size: 13.5px; font-weight: 600; margin-top: 16px; cursor: not-allowed; white-space: nowrap; }
.avcol .soon { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--se-ink-400); margin-top: 6px; white-space: nowrap; }
.fsec + .fsec { margin-top: 32px; }
.fsec-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.fsec-head h3 { font-family: var(--font-sub); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--se-ink-900); margin: 0; }
.fsec-head .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--se-blue-50); color: var(--se-blue-600); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.addr-block { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; background: var(--bg-base); margin-bottom: 14px; }
.addr-block .ah { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.addr-block .ah .lab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--se-coral); font-weight: 600; }
.addr-block .remove { background: 0; border: 0; color: var(--se-ink-400); cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body); }
.addr-block .remove:hover { color: var(--se-danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.form-foot .note { font-size: 12.5px; color: var(--se-ink-500); display: inline-flex; align-items: center; gap: 7px; }
.form-foot .note i { color: var(--se-ink-400); }
.form-foot .acts { display: flex; gap: 12px; margin-left: auto; }

/* ============================================================
   FORMS surface (custom dropdown, form-list cards, templates)
   ============================================================ */
/* custom checkmark dropdown (filter menus) */
.dd { position: relative; }
.dd-trigger { display: inline-flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--bg-surface); color: var(--se-ink-800); font-family: var(--font-body); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .14s ease; }
.dd-trigger:hover { border-color: var(--se-ink-300); }
.dd-trigger .chev { color: var(--se-ink-400); font-size: 12px; transition: transform .16s ease; margin-left: auto; }
.dd.open .dd-trigger { border-color: var(--se-blue-400); box-shadow: 0 0 0 4px var(--halo); }
.dd.open .dd-trigger .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-3); padding: 6px; z-index: 40; display: none; white-space: nowrap; }
.dd.open .dd-menu { display: block; }
.dd-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; border: 0; background: transparent; border-radius: 8px; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--se-ink-800); cursor: pointer; text-align: left; }
.dd-menu button:hover { background: var(--se-ink-50); color: var(--se-ink-900); }
.dd-menu button .ck { width: 16px; flex: none; color: var(--se-blue-600); font-size: 13px; }
.dd-menu button.on { color: var(--se-blue-700); font-weight: 600; }
[data-bs-theme="dark"] .dd-menu button.on, [data-bs-theme="dark"] .dd-menu button.on .ck { color: var(--se-blue-200); }

.list-sec-h { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; }
.list-sec-h h2 { font-family: var(--font-sub); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--se-ink-900); margin: 0; }
.list-sec-h .ct { font-family: var(--font-mono); font-size: 12px; color: var(--se-ink-500); }

.form-list { display: flex; flex-direction: column; gap: 14px; }
.form-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 20px 22px; transition: box-shadow .2s ease, border-color .2s ease; }
.form-card:hover { box-shadow: var(--shadow-2); border-color: var(--se-blue-200); }
.fc-main { flex: 1; min-width: 0; }
.fc-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc-title .nm { font-family: var(--font-sub); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; color: var(--se-ink-900); }
.fc-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.fc-status .d { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.fc-status.draft { background: var(--se-marigold-soft); color: var(--se-marigold-700); }
.fc-status.published { background: var(--se-sage-soft); color: var(--se-sage-700); }
.fc-status.archived { background: var(--se-ink-100); color: var(--se-ink-600); }
[data-bs-theme="dark"] .fc-status.draft { color: var(--se-marigold); }
[data-bs-theme="dark"] .fc-status.published { color: #9FD9B4; }
.fc-type { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--se-ink-400); margin-left: auto; flex: none; }
.fc-desc { font-size: 13.5px; color: var(--se-ink-600); margin-top: 8px; line-height: 1.5; }
.fc-meta { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.fc-meta .m { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--se-ink-500); }
.fc-meta .m i { color: var(--se-ink-400); font-size: 14px; }
.fc-acts { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.fc-acts .link { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; font-size: 13.5px; text-decoration: none; padding: 7px 4px; background: 0; border: 0; cursor: pointer; font-family: var(--font-body); }
.fc-acts .link:hover { color: var(--se-blue-700); }
.fc-acts .link.mut { color: var(--se-ink-500); }
.fc-acts .link.mut:hover { color: var(--se-ink-900); }
.fc-acts .more { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--se-ink-400); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.fc-acts .more:hover { background: var(--se-ink-100); color: var(--se-ink-700); }
.fc-acts .spacer { margin-left: auto; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tpl { padding: 22px; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.tpl:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--se-blue-200); }
.tpl .tico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.tpl .tico.blue { background: var(--se-blue-50); color: var(--se-blue-600); }
.tpl .tico.sage { background: var(--se-sage-soft); color: var(--se-sage-700); }
.tpl .tico.plum { background: var(--se-plum-soft); color: var(--se-plum-700); }
.tpl h3 { font-family: var(--font-sub); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; color: var(--se-ink-900); margin: 14px 0 0; }
.tpl p { font-size: 13.5px; color: var(--se-ink-500); margin: 6px 0 0; line-height: 1.45; flex: 1; }
.tpl .meta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--se-ink-500); margin-top: 16px; }
.tpl .acts { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.tpl .acts .preview { color: var(--link); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.tpl .acts .preview:hover { text-decoration: underline; }
.tpl .acts .btn { margin-left: auto; }

/* ---- a11y skip-link (off-screen until focused) — for kit pages that carry
   <a class="skip-to-main">; the legacy sheet that hid it is no longer loaded ---- */
.skip-to-main { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: 10px 16px; background: var(--se-blue-400); color: var(--primary-on); border-radius: 0 0 var(--r) 0; font-weight: 600; text-decoration: none; }
.skip-to-main:focus { left: 0; }
