/* ============================================================================
   Enterprise layer — loaded LAST on every shell (site, admin, portal, bare).

   app.css and appui.css are fleet files and stay byte-identical, so this file
   re-skins by override only. Every rule is scoped under `body.ent` — the class
   each layout adds to <body> — which gives it the same specificity as the
   `body.admin …` rules in appui.css; loading later then settles every tie.

   Design language: neutral slate surfaces, 1px hairlines, near-flat shadows,
   one brand accent (the client-editable palette's --blue) used sparingly, no
   decorative gradients, compact 36px controls, tabular figures. The palette
   tokens (--sky/--blue/--blue-dark/--sky-soft) are NOT redefined here, so the
   Settings → Brand colour picker keeps working.
   ========================================================================== */

:root, body.ent {
  --ink:#101828; --ink-2:#344054; --ink-3:#667085;
  --muted:#667085; --muted-2:#98a2b3;
  --line:#eaecf0; --line-2:#e4e7ec; --line-3:#d0d5dd;
  --bg:#f9fafb; --bg-2:#f2f4f7; --app-canvas:#f7f8fa;

  --radius-sm:6px; --radius:8px; --radius-lg:10px;
  --r-sm:6px; --r:8px; --r-lg:10px; --r-xl:12px;

  --el-1:0 1px 2px rgba(16,24,40,.05);
  --el-2:0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --el-3:0 16px 32px -12px rgba(16,24,40,.18), 0 4px 8px -4px rgba(16,24,40,.06);
  --shadow-sm:var(--el-1); --shadow:var(--el-2); --shadow-lg:var(--el-3);
  --sh-1:var(--el-1); --sh-2:var(--el-2); --sh-3:var(--el-3);

  --ring:0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
  --ctl:36px;
}

/* ---------------------------------------------------------------------------
   0 · Base
   ------------------------------------------------------------------------- */
body.ent{
  font-size:14px; line-height:1.5; color:var(--ink);
  font-feature-settings:"cv11" 1, "ss03" 1;
  text-rendering:optimizeLegibility;
}
body.ent.site{font-size:15px;background:#fff}
body.ent :is(h1,h2,h3,h4,h5){font-weight:650;letter-spacing:-.018em;color:var(--ink)}
body.ent a{color:var(--blue)}
body.ent a:hover{color:var(--blue-dark)}
body.ent ::selection{background:color-mix(in srgb, var(--blue) 18%, transparent)}
body.ent :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
body.ent .muted{color:var(--ink-3)}
body.ent table, body.ent .stat .value, body.ent .stat-box .n, body.ent .price-row .val,
body.ent .trust-strip b, body.ent .num{font-variant-numeric:tabular-nums}

/* ---------------------------------------------------------------------------
   1 · Buttons — solid brand primary, hairline secondary, 36px tall
   ------------------------------------------------------------------------- */
body.ent .btn{
  min-height:var(--ctl); padding:0 14px; gap:7px;
  border-radius:var(--r-sm); font-size:13.5px; font-weight:600; line-height:1;
  border:1px solid transparent; box-shadow:none; letter-spacing:0;
  transition:background-color .12s, border-color .12s, color .12s, box-shadow .12s;
}
body.ent .btn i{font-size:16px}
body.ent .btn:active{transform:none}
body.ent .btn-primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:var(--el-1)}
body.ent .btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff;filter:none}
body.ent :is(.btn-secondary,.btn-light){background:#fff;border-color:var(--line-3);color:var(--ink-2);box-shadow:var(--el-1)}
body.ent :is(.btn-secondary,.btn-light):hover{background:var(--bg);color:var(--ink);border-color:var(--line-3)}
body.ent .btn-ghost{background:transparent;color:var(--ink-2)}
body.ent .btn-ghost:hover{background:var(--bg-2);color:var(--ink)}
body.ent .btn-success{background:#079455;border-color:#079455;color:#fff}
body.ent .btn-danger{background:#d92d20;border-color:#d92d20;color:#fff}
body.ent .btn-warn{background:#dc6803;border-color:#dc6803;color:#fff}
body.ent :is(.btn-success,.btn-danger,.btn-warn):hover{filter:brightness(.94);color:#fff}
/* `.btn-sm` is used on 160+ controls but was never defined anywhere, so every
   one of them rendered at full size. */
body.ent :is(.btn.sm,.btn.btn-sm){min-height:32px;padding:0 11px;font-size:13px;gap:6px}
body.ent :is(.btn.sm,.btn.btn-sm) i{font-size:15px}
body.ent .btn.lg{min-height:44px;padding:0 20px;font-size:15px}
body.ent .icon-btn{
  width:36px;height:36px;border-radius:var(--r-sm);border:1px solid var(--line-3);
  background:#fff;color:var(--ink-2);font-size:18px;box-shadow:var(--el-1)
}
body.ent .icon-btn:hover{background:var(--bg);color:var(--ink)}
body.ent .icon-btn:active{transform:none}

/* ---------------------------------------------------------------------------
   2 · Forms
   ------------------------------------------------------------------------- */
body.ent :is(input,select,textarea){
  min-height:var(--ctl); padding:7px 11px; font-size:14px; color:var(--ink);
  border:1px solid var(--line-3); border-radius:var(--r-sm); background-color:#fff;
  box-shadow:var(--el-1);
}
body.ent textarea{min-height:88px;line-height:1.5}
body.ent :is(input,select,textarea)::placeholder{color:var(--muted-2)}
body.ent :is(input,select,textarea):focus{border-color:var(--blue);box-shadow:var(--ring);outline:none}
body.ent :is(input[type=checkbox],input[type=radio]){min-height:0;box-shadow:none;accent-color:var(--blue)}
body.ent input[type=file]{padding:5px;min-height:0}
body.ent :is(.form-group,.field) label{font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:5px}
body.ent .form-group{margin-bottom:14px}
body.ent .hint{font-size:12px;color:var(--ink-3)}
/* Toggle switch: red when off, green when on — the state reads at a glance. */
/* The general input rule above gives every <input> a 1px border, 6px corners and
   padding — on a switch that drew a boxed rectangle around the pill. Undo it here. */
body.ent .tgl{-webkit-appearance:none;appearance:none;border:0;border-radius:999px;padding:0;box-shadow:none;
  min-height:0;height:22px;width:38px;flex:none;cursor:pointer;background:#f04438;transition:background-color .15s}
body.ent .tgl::after{width:18px;height:18px;top:2px;left:2px;border-radius:50%;background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.25);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
body.ent .tgl:hover{background:#d92d20}
body.ent .tgl:checked{background:#12b76a}
body.ent .tgl:checked:hover{background:#079455}
body.ent .tgl:checked::after{transform:translateX(16px)}
body.ent .tgl:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(16,24,40,.18)}
body.ent .tgl:disabled{opacity:.55;cursor:not-allowed}
/* 16px on phones — anything smaller makes iOS Safari zoom the page on focus. */
@media (max-width:720px){
  body.ent :is(input,select,textarea){font-size:16px;min-height:42px}
  body.ent :is(input[type=checkbox],input[type=radio]):not(.tgl){min-height:0}
  body.ent .btn{min-height:40px}
  body.ent :is(.btn.sm,.btn.btn-sm){min-height:36px}
  body.ent .icon-btn{width:40px;height:40px;min-width:40px;min-height:40px}
}

/* ---------------------------------------------------------------------------
   3 · Surfaces
   ------------------------------------------------------------------------- */
body.ent .card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--el-1);padding:16px
}
@media (min-width:1024px){ body.ent .card{padding:18px 20px} }
body.ent .card.lg{padding:22px;border-radius:var(--r-xl)}
body.ent :is(.card-title,.card h2){font-size:14.5px;font-weight:650;letter-spacing:-.01em}
body.ent .card h3{font-size:14px;font-weight:600}
body.ent .card .sub{font-size:13px;color:var(--ink-3);margin-bottom:12px}
body.ent a.card:hover{border-color:var(--line-3);box-shadow:var(--el-2)}
body.ent a.card:active{transform:none}
body.ent .section-title{font-size:11.5px;font-weight:600;letter-spacing:.06em;color:var(--ink-3);margin:22px 0 8px}
body.ent .divider{background:var(--line)}
body.ent .kv{border-color:var(--line);box-shadow:none;border-radius:var(--r-lg)}
body.ent .kv .v{font-weight:600}
body.ent .empty{padding:36px 16px;color:var(--ink-3);font-size:13.5px}
body.ent .empty i{font-size:28px;color:var(--muted-2);opacity:1;margin-bottom:8px}
body.ent .avatar{background:var(--bg-2);color:var(--ink-2);font-weight:600;box-shadow:none;border:1px solid var(--line)}

/* ---------------------------------------------------------------------------
   4 · Badges, pills, alerts
   ------------------------------------------------------------------------- */
body.ent .badge{
  border-radius:6px;padding:2px 8px;font-size:11.5px;font-weight:600;line-height:1.55;
  box-shadow:inset 0 0 0 1px rgba(16,24,40,.06)
}
body.ent .badge.gray{background:var(--bg-2);color:var(--ink-2)}
body.ent :is(.badge.blue,.badge.sky){background:var(--sky-soft);color:var(--blue)}
body.ent .badge.green{background:#ecfdf3;color:#067647}
body.ent .badge.amber{background:#fffaeb;color:#b54708}
body.ent .badge.red{background:#fef3f2;color:#b42318}
body.ent .due-pill{border-radius:6px;font-weight:600;padding:2px 8px}
body.ent .chip{border-radius:6px;box-shadow:none}
body.ent .msg{
  border-radius:var(--r);box-shadow:none;border:1px solid transparent;
  font-size:13.5px;padding:10px 12px;font-weight:500
}
body.ent .msg.err{background:#fef3f2;border-color:#fecdca;color:#b42318}
body.ent .msg.ok{background:#ecfdf3;border-color:#abefc6;color:#067647}
body.ent .msg.info{background:var(--sky-soft);border-color:color-mix(in srgb,var(--blue) 18%,transparent);color:var(--blue-dark)}
body.ent .msg.warn{background:#fffaeb;border-color:#fedf89;color:#b54708}
body.ent .note{border-radius:var(--r);border:1px solid color-mix(in srgb,var(--blue) 14%,transparent);font-size:13.5px}
body.ent .note.warn{border-color:#fedf89}
body.ent .note.danger{border-color:#fecdca}

/* Environment banners: a slim status strip, not a shouting colour block. */
body.ent :is(.demo-banner,.readonly-banner){
  font-size:12px;font-weight:500;padding:5px 12px;letter-spacing:.01em;border-radius:0
}
body.ent .demo-banner{background:#fffaeb;color:#93370d;border-bottom:1px solid #fedf89}
body.ent .readonly-banner{background:#fef3f2;color:#b42318;border-bottom:1px solid #fecdca}

/* ---------------------------------------------------------------------------
   5 · Metrics
   ------------------------------------------------------------------------- */
body.ent :is(.stat,.stat-box){
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--el-1);padding:14px 16px;color:var(--ink)
}
body.ent .stat .label, body.ent .stat-box .l{font-size:12px;font-weight:500;color:var(--ink-3);margin-top:0}
body.ent .stat .value{font-size:clamp(18px,11cqi,24px);font-weight:650;letter-spacing:-.02em}
body.ent .stat-box{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:6px}
body.ent .stat-box .n{font-size:22px;font-weight:650;letter-spacing:-.02em;line-height:1.15}
body.ent .stat-box.warn .n{color:#b54708}
body.ent .stat-box.danger .n{color:#b42318}
body.ent .stat-box.good .n{color:#067647}
body.ent :is(.stat.accent,.stat-box.accent){background:#fff;border:1px solid var(--line);box-shadow:var(--el-1);color:var(--ink);position:relative;overflow:hidden}
body.ent :is(.stat.accent,.stat-box.accent)::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}
body.ent .stat.accent .value, body.ent .stat-box.accent .n{color:var(--ink)}
body.ent .stat.accent :is(.label,.label i,.meta), body.ent .stat-box.accent .l{color:var(--ink-3)}
body.ent .stat-row{gap:10px}
body.ent a:is(.stat,.stat-box):hover{border-color:var(--line-3);box-shadow:var(--el-2)}
@media (max-width:560px){
  body.ent .stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ent .stat-box{padding:12px 13px}
  body.ent .stat-box .n{font-size:19px}
}

/* ---------------------------------------------------------------------------
   6 · Tables
   ------------------------------------------------------------------------- */
body.ent :is(.table-scroll,.table-wrap){border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;box-shadow:var(--el-1)}
body.ent .card :is(.table-scroll,.table-wrap){box-shadow:none}
body.ent :is(.table,.dtable){font-size:13.5px}
body.ent :is(.table,.dtable) th{
  background:var(--bg);color:var(--ink-3);font-size:11.5px;font-weight:600;
  text-transform:uppercase;letter-spacing:.04em;padding:9px 12px;border-bottom:1px solid var(--line);
  white-space:nowrap
}
body.ent :is(.table,.dtable) td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
body.ent :is(.table,.dtable) tbody tr:hover td{background:var(--bg)}
body.ent :is(.table,.dtable) tr:last-child td{border-bottom:0}
body.ent .card > :is(.table,.dtable) th:first-child, body.ent .card > .table-scroll :is(.table,.dtable) th:first-child{border-top-left-radius:0}

/* ---------------------------------------------------------------------------
   7 · Navigation primitives: tabs, chips, pagination, progress
   ------------------------------------------------------------------------- */
body.ent :is(.tabs,.subtabs){gap:2px;border-bottom:1px solid var(--line)}
body.ent :is(.tabs,.subtabs) a{font-size:13.5px;font-weight:500;color:var(--ink-3);border-radius:0;
  padding:9px 12px;border-bottom:2px solid transparent;margin-bottom:-1px;background:none}
body.ent :is(.tabs,.subtabs) a:hover{color:var(--ink)}
body.ent :is(.tabs,.subtabs) a.active{color:var(--ink);border-bottom-color:var(--blue);font-weight:600;background:none}
body.ent .filter-tabs a, body.ent :is(.lv-chip,.gs-chip,.jump-chip){
  border-radius:6px;border:1px solid var(--line-3);background:#fff;font-size:13px;font-weight:500;
  color:var(--ink-2);min-height:32px;padding:0 11px;display:inline-flex;align-items:center;gap:6px
}
body.ent .filter-tabs a.active, body.ent :is(.lv-chip,.gs-chip).on, body.ent .jump-chip.active{
  background:var(--ink);border-color:var(--ink);color:#fff
}
body.ent :is(.pagination a,.pagination span){border-radius:6px;box-shadow:none}
body.ent .progressbar{height:6px;background:var(--bg-2)}
body.ent .progressbar > span{background:var(--blue)}
body.ent .vtrack .now .dot{background:var(--blue)}
body.ent .vtrack .done .dot{background:#079455}
body.ent .gs-open{height:36px;border-color:var(--line-3);border-radius:var(--r-sm);box-shadow:var(--el-1);color:var(--ink-3)}
body.ent .gs-panel{border-radius:12px}
body.ent .list li .ic{border-radius:8px;width:32px;height:32px;font-size:16px;background:var(--bg-2);color:var(--ink-2)}

/* ============================================================================
   8 · ADMIN SHELL
   ========================================================================== */
body.ent.admin{background:var(--app-canvas)}
body.ent .admin-sidebar{width:248px;padding:12px 10px;background:#fff;border-right:1px solid var(--line);box-shadow:none}
body.ent .admin-brand{gap:10px;padding:4px 6px 12px;margin-bottom:6px;border-bottom:1px solid var(--line)}
body.ent .admin-brand .logo{width:32px;height:32px;border-radius:8px;background:var(--blue);font-size:17px;box-shadow:none}
body.ent .admin-brand h1{font-size:14px;font-weight:650;letter-spacing:-.01em;-webkit-line-clamp:1}
body.ent .admin-brand p{font-size:11.5px;color:var(--ink-3);-webkit-line-clamp:1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ent .admin-nav{gap:1px;padding-right:2px;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
body.ent .admin-nav .nav-section{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted-2);padding:14px 10px 4px}
body.ent .admin-nav a{
  min-height:34px;padding:6px 10px;gap:10px;border-radius:6px;
  font-size:13.5px;font-weight:500;color:var(--ink-2)
}
body.ent .admin-nav a .icon{font-size:17px;color:var(--ink-3)}
body.ent .admin-nav a:hover{background:var(--bg-2);color:var(--ink)}
body.ent .admin-nav a.active{background:var(--sky-soft);color:var(--blue);font-weight:600}
body.ent .admin-nav a.active .icon{color:var(--blue)}
body.ent .admin-nav a.active:before{left:-10px;width:3px;height:18px;border-radius:0 3px 3px 0}
body.ent .admin-nav a:active{transform:none}
body.ent .admin-nav a .count{background:#fef3f2;color:#b42318;font-weight:600}
body.ent .admin-user-card{border-top:1px solid var(--line);padding-top:10px;margin-top:6px}
body.ent .admin-user-card .avatar{width:30px;height:30px;font-size:12.5px}
body.ent .admin-user-card .name{font-size:13px;font-weight:600}
body.ent .admin-user-card .role{font-size:11.5px}
body.ent .admin-user-card .icon-btn{width:32px;height:32px;min-width:32px;min-height:32px;box-shadow:none;border-color:transparent}
body.ent .admin-user-card .icon-btn:hover{border-color:var(--line-3)}

/* Mobile app bar */
body.ent .admin-mobile-bar{
  height:54px;padding:0 12px;gap:10px;background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);box-shadow:none
}
body.ent .admin-mobile-bar .icon-btn{border-color:transparent;box-shadow:none;margin-left:-4px}
body.ent .mb-brand{display:flex;align-items:center;gap:9px;min-width:0;font-size:14.5px;font-weight:650;color:var(--ink)}
body.ent .mb-brand .logo{width:28px;height:28px;border-radius:7px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:15px;flex:none}
body.ent .mb-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Page header: title left, actions right; a quiet white band on desktop. */
body.ent .admin-header{padding:16px 16px 4px}
body.ent .admin-header h1{font-size:18px;font-weight:650;letter-spacing:-.02em;line-height:1.3}
body.ent .admin-header p{font-size:13px;color:var(--ink-3);margin-top:2px}
body.ent .admin-header .row.between{align-items:center;gap:12px}
body.ent .page-actions{gap:8px}
body.ent .admin-content{padding:12px 16px 40px}
@media (max-width:720px){
  body.ent .admin-header{padding:14px 14px 2px}
  body.ent .admin-header h1{font-size:17px}
  body.ent .admin-content{padding:10px 12px calc(28px + env(safe-area-inset-bottom))}
}
@media (min-width:1024px){
  body.ent .admin-main{margin-left:248px}
  body.ent .admin-header{
    position:sticky;top:0;z-index:30;padding:12px 28px;min-height:60px;
    display:flex;align-items:center;
    background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);
    border-bottom:1px solid var(--line)
  }
  body.ent .admin-header > .row{width:100%}
  body.ent .admin-content{padding:22px 28px 56px}
  body.ent .admin-header + .admin-content[style]{padding-top:18px}
}
@media (min-width:1600px){
  body.ent .admin-content{padding-left:36px;padding-right:36px}
  body.ent .admin-header{padding-left:36px;padding-right:36px}
}

/* ============================================================================
   9 · CUSTOMER PORTAL SHELL
   ========================================================================== */
body.ent.portal{background:var(--app-canvas)}
body.ent .p-header{border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px)}
body.ent .p-header-inner{height:56px;max-width:1360px;gap:10px}
body.ent .p-user .avatar{width:30px;height:30px;font-size:12.5px;background:var(--bg-2);color:var(--ink-2);border:1px solid var(--line)}
body.ent .p-user{font-size:13px;font-weight:500}
body.ent .p-header .icon-btn{box-shadow:none;border-color:transparent}
body.ent .p-header .icon-btn:hover{border-color:var(--line-3)}
body.ent .p-layout{max-width:1360px;grid-template-columns:220px minmax(0,1fr);gap:28px;padding:24px 24px 40px}
body.ent .p-rail{top:80px}
body.ent .p-rail nav{background:none;border:0;padding:0;gap:1px}
body.ent .p-rail nav a{min-height:34px;padding:6px 10px;border-radius:6px;font-size:13.5px;font-weight:500;color:var(--ink-2)}
body.ent .p-rail nav a i{font-size:17px;opacity:1;color:var(--ink-3)}
body.ent .p-rail nav a:hover{background:var(--bg-2);color:var(--ink)}
body.ent .p-rail nav a.active{background:#fff;color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px var(--line),var(--el-1)}
body.ent .p-rail nav a.active i{color:var(--blue)}
body.ent .p-rail .btn{margin-top:16px!important}
body.ent .p-head{margin-bottom:16px;align-items:center}
body.ent .p-head h1{font-size:20px;font-weight:650;letter-spacing:-.02em}
body.ent .p-head p{font-size:13.5px;margin-top:3px}
body.ent .order-row{border-color:var(--line);border-radius:var(--r-lg);box-shadow:var(--el-1)}
body.ent .order-row:hover{border-color:var(--line-3);box-shadow:var(--el-2)}
body.ent .order-row h3{font-size:14.5px;font-weight:600}
body.ent .action-card{border-left-width:3px}
@media (max-width:900px){
  body.ent .p-layout{grid-template-columns:minmax(0,1fr);padding:14px 12px calc(80px + env(safe-area-inset-bottom));gap:0}
  body.ent .filter-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-12px;margin-right:-12px;padding:0 12px 2px}
  body.ent .filter-tabs::-webkit-scrollbar{display:none}
  body.ent .filter-tabs a{flex:none}
  body.ent .p-header-inner{padding:0 12px;height:54px}
  body.ent .p-head h1{font-size:18px}
}
body.ent .tabbar{
  background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:none;
  -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);
  padding-bottom:env(safe-area-inset-bottom)
}
body.ent .tabbar a{font-size:11px;font-weight:500;color:var(--ink-3);gap:2px;min-height:54px}
body.ent .tabbar a i{font-size:20px}
body.ent .tabbar a.active{color:var(--blue);font-weight:600}

/* Brand mark shared by the public header, drawer, footer and portal header. */
body.ent .site-brand{gap:9px;font-weight:650;color:var(--ink)}
body.ent .site-brand{display:inline-flex;align-items:center;white-space:nowrap;min-width:0}
body.ent .site-brand .logo{width:32px;height:32px;border-radius:8px;background:var(--blue);font-size:17px;box-shadow:none;color:#fff;display:grid;place-items:center;flex:none}
body.ent .site-brand .name{overflow:hidden;text-overflow:ellipsis}
body.ent .site-brand .name{font-size:15px;letter-spacing:-.015em}

/* ============================================================================
   10 · PUBLIC WEBSITE
   ========================================================================== */
body.ent.site .wrap{padding:0 20px}
@media (max-width:560px){ body.ent.site .wrap{padding:0 16px} }
body.ent .eyebrow{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--blue)}

/* Header */
body.ent .site-header{border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px)}
body.ent .site-header.shrink{box-shadow:var(--el-1)}
body.ent .site-header .wrap, body.ent .site-header.shrink .wrap{height:64px;gap:14px}
body.ent .nav-link{font-size:14px;font-weight:500;color:var(--ink-2);padding:8px 11px;border-radius:6px}
body.ent .nav-link:hover{background:var(--bg-2);color:var(--ink)}
body.ent .nav-link i{font-size:15px;opacity:.5}
body.ent .site-actions{gap:6px}
body.ent .site-actions .txt-link{font-size:14px;font-weight:500;color:var(--ink-2);padding:8px 10px;border-radius:6px;white-space:nowrap}
body.ent .site-actions .txt-link:hover{background:var(--bg-2);color:var(--ink)}
body.ent .burger{font-size:22px;color:var(--ink-2);width:40px;height:40px;display:none;place-items:center;border-radius:6px;margin-left:-8px;padding:0}
@media (max-width:1200px){ body.ent .burger{display:grid} }
@media (max-width:1320px){ body.ent .site-actions .txt-link.hide-lg{display:none} }
@media (max-width:560px){
  body.ent .site-header .wrap, body.ent .site-header.shrink .wrap{height:56px;gap:8px}
  body.ent .site-brand .name{max-width:150px}
  body.ent .site-actions .btn{min-height:36px;padding:0 12px}
}

/* Mega menu */
body.ent .mega{border:1px solid var(--line);border-radius:12px;box-shadow:var(--el-3);padding:14px}
body.ent .mega-group h5{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted-2)}
body.ent .mega-links a{padding:8px 11px;border-radius:6px;font-size:13.5px}
body.ent .mega-links a:hover{background:var(--bg);color:var(--ink)}
body.ent .mega-links a span{font-weight:500}
body.ent .mega-links a small{font-size:12px;color:var(--muted-2)}
body.ent .mega-all{color:var(--blue)!important;font-weight:600!important;border-top-color:var(--line)}
body.ent .mega-promo{background:var(--bg);border:1px solid var(--line);border-radius:10px}
body.ent .mega-promo h4{font-size:14.5px}
body.ent .mega-promo .price strong{font-size:17px;color:var(--ink)}

/* Drawer */
body.ent .drawer{width:min(360px,90vw);box-shadow:var(--el-3)}
body.ent .drawer-head{height:56px;padding:0 12px 0 16px;border-bottom:1px solid var(--line)}
body.ent .drawer-head .icon-btn{box-shadow:none;border-color:transparent}
body.ent .drawer-nav{padding:6px 8px}
body.ent .drawer-nav details{border-bottom:1px solid var(--line)}
body.ent .drawer-nav summary{font-size:14.5px;font-weight:600;padding:12px 8px;min-height:48px}
body.ent .drawer-nav details a{font-size:14px;color:var(--ink-2);padding:10px 8px 10px 16px;min-height:42px;display:flex;align-items:center}
body.ent .drawer-nav a.flat{font-size:14.5px;font-weight:500;color:var(--ink);border-bottom:1px solid var(--line);min-height:48px;display:flex;align-items:center}
body.ent .drawer-foot{border-top:1px solid var(--line);display:grid;gap:8px}
body.ent .drawer-foot .row{margin-top:0!important}
body.ent .drawer-backdrop{background:rgba(16,24,40,.4)}

/* Hero — white with a faint engineering grid that fades out. */
body.ent :is(.hero,.svc-hero){position:relative;isolation:isolate;background:#fff;border-bottom:1px solid var(--line)}
body.ent :is(.hero,.svc-hero)::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:40px 40px;opacity:.55;
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 30% 0%,#000 20%,transparent 75%);
          mask-image:radial-gradient(ellipse 80% 70% at 30% 0%,#000 20%,transparent 75%)
}
body.ent .hero{padding:64px 0 56px}
body.ent .hero-grid{gap:56px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
body.ent .hero h1{font-size:clamp(30px,4.2vw,50px);font-weight:650;line-height:1.08;letter-spacing:-.035em;margin-bottom:14px}
body.ent .hero h1 .accent{background:none;-webkit-text-fill-color:currentColor;color:var(--blue)}
body.ent .hero .sub{font-size:17px;color:var(--ink-3);line-height:1.55;max-width:48ch;margin-bottom:24px}
body.ent .hero-cta{gap:10px;margin-bottom:32px}
body.ent .hero-cta .btn{min-height:44px;padding:0 18px;font-size:14.5px}
body.ent .trust-strip{gap:0;font-size:13px;color:var(--ink-3);border-top:1px solid var(--line);padding-top:18px}
body.ent .trust-strip > *{padding:0 22px;border-left:1px solid var(--line)}
body.ent .trust-strip > :first-child{padding-left:0;border-left:0}
body.ent .trust-strip b{font-size:20px;font-weight:650;letter-spacing:-.02em;color:var(--ink)}
body.ent .pill{background:#fff;border:1px solid var(--line-3);color:var(--ink-2);font-weight:500;font-size:12.5px;padding:5px 11px;box-shadow:var(--el-1)}
body.ent .pill i{color:var(--blue)}
@media (max-width:900px){
  body.ent .hero-grid{grid-template-columns:1fr;gap:28px}
  body.ent .hero{padding:36px 0 32px}
}
@media (max-width:720px){
  body.ent .hero h1{font-size:30px;letter-spacing:-.03em}
  body.ent .hero .sub{font-size:15.5px;margin-bottom:18px}
  body.ent .hero-cta{margin-bottom:22px}
  body.ent .trust-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:14px}
  body.ent .trust-strip > *{padding:0 10px}
  body.ent .trust-strip b{font-size:18px}
}

/* Lead form card */
body.ent .lead-card{border:1px solid var(--line);border-radius:12px;box-shadow:var(--el-3);padding:22px}
body.ent .lead-card h3{font-size:17px;font-weight:650}
body.ent .lead-card p.muted{font-size:13.5px;margin-bottom:14px}
body.ent .lead-card label{font-size:12.5px;font-weight:600}
body.ent .lead-card :is(input,select,textarea){font-size:14px;padding:8px 11px;min-height:40px;border-color:var(--line-3)}
body.ent .lead-note{font-size:12px;color:var(--muted-2)}
@media (max-width:720px){
  body.ent .lead-card{padding:18px;border-radius:12px}
  body.ent .lead-card :is(input,select,textarea){font-size:16px;min-height:44px}
}

/* Sections */
body.ent .section{padding:72px 0}
body.ent .section.tint{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
body.ent .section-head{max-width:640px;margin-bottom:32px}
body.ent .section-head h2{font-size:clamp(22px,2.6vw,32px);font-weight:650;letter-spacing:-.03em;line-height:1.2;margin:8px 0 8px}
body.ent .section-head p{font-size:15.5px;color:var(--ink-3);line-height:1.55}
@media (max-width:720px){
  body.ent .section{padding:40px 0}
  body.ent .section-head{margin-bottom:20px}
  body.ent .section-head h2{font-size:23px}
  body.ent .section-head p{font-size:14.5px}
}

/* Cards on the public site: flat, hairline, a quiet lift on hover. */
body.ent :is(.svc-card,.cat-card,.step,.quote,.pkg-card){
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--el-1);background:#fff
}
body.ent :is(.svc-card,.cat-card):hover{border-color:var(--line-3);box-shadow:var(--el-2);transform:none}
body.ent .svc-card{padding:18px}
body.ent :is(.svc-card,.cat-card) .ic{width:36px;height:36px;border-radius:8px;font-size:18px;margin-bottom:12px}
body.ent .cat-card > i{font-size:22px;margin-bottom:10px}
body.ent .svc-card h3{font-size:15px;font-weight:600;letter-spacing:-.01em}
body.ent .svc-card p{font-size:13.5px;color:var(--ink-3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ent .svc-card .meta{border-top:1px solid var(--line);padding-top:12px}
body.ent .svc-card .from b{font-size:16px;font-weight:650;color:var(--ink)}
body.ent .cat-card{padding:18px}
body.ent .cat-card h3{font-size:15px;font-weight:600}
body.ent .cat-card p{font-size:13px;color:var(--ink-3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ent .step{padding:22px 18px 18px}
body.ent .step:before{background:var(--blue);width:26px;height:26px;font-size:12.5px;font-weight:600;top:-13px;border-radius:7px;box-shadow:0 0 0 4px #fff}
body.ent .section.tint .step:before{box-shadow:0 0 0 4px var(--bg)}
body.ent .step h4{font-size:15px;font-weight:600}
body.ent .step p{font-size:13.5px;color:var(--ink-3)}
body.ent .quote p{font-size:14px;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
body.ent .quote .who .av{background:var(--bg-2);color:var(--ink-2);font-weight:600;border:1px solid var(--line)}
body.ent .quote .stars{color:#f79009}
body.ent .grid{gap:14px}

/* CTA band — solid, no gradient, no glow. */
body.ent .cta-band{background:var(--blue-dark);border-radius:14px;box-shadow:none;padding:40px 28px;position:relative;overflow:hidden;isolation:isolate}
body.ent .cta-band::before{content:"";position:absolute;inset:0;z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:32px 32px}
body.ent .cta-band h2{font-size:clamp(21px,2.4vw,28px);font-weight:650}
body.ent .cta-band p{font-size:15px;color:rgba(255,255,255,.75)}
body.ent .cta-band .btn-light{background:#fff;color:var(--ink);border-color:#fff}
body.ent .cta-band .btn:not(.btn-light){background:transparent;border-color:rgba(255,255,255,.35);color:#fff;box-shadow:none}
@media (max-width:720px){ body.ent .cta-band{padding:28px 18px;border-radius:12px} }

/* Service page */
body.ent .svc-hero{background:#fff}
body.ent .crumbs{font-size:13px;color:var(--ink-3)}
body.ent .rail-card{border:1px solid var(--line);border-radius:12px;box-shadow:var(--el-2)}
body.ent .pkg-tabs{background:var(--bg);border-bottom:1px solid var(--line)}
body.ent .pkg-tab{font-weight:600;color:var(--ink-3)}
body.ent .price-row{border-bottom-color:var(--line)}
body.ent .price-row.total{border-top:1px solid var(--line-3);font-weight:650}
body.ent .price-row.total .val{color:var(--ink);font-weight:650}
body.ent .faq{border-color:var(--line);border-radius:var(--r-lg)}
body.ent .docitem{border-color:var(--line);border-radius:var(--r)}
body.ent .jump-nav{top:64px;border-bottom-color:var(--line);padding:10px 0}
@media (max-width:560px){ body.ent .jump-nav{top:56px} }
body.ent .pkg-card.featured{border-color:var(--blue);box-shadow:var(--el-2)}
body.ent .pkg-price{font-weight:650;color:var(--ink)}
body.ent .pkg-flag{border-radius:6px;font-weight:600}

/* Footer — light, compact, typographic. */
body.ent .site-footer{background:var(--bg);color:var(--ink-3);border-top:1px solid var(--line);padding:48px 0 24px;margin-top:0}
body.ent .site-footer h4{color:var(--ink);font-size:13px;font-weight:600;letter-spacing:0;margin-bottom:12px}
body.ent .site-footer a{color:var(--ink-3);font-size:13.5px}
body.ent .site-footer a:hover{color:var(--ink)}
body.ent .foot-cols{grid-template-columns:1.6fr repeat(4,1fr) 1.3fr;gap:28px}
body.ent .foot-col li{margin-bottom:7px}
body.ent .foot-col.brandcol .site-brand{color:var(--ink)}
body.ent .foot-col.brandcol .muted{color:var(--ink-3);font-size:13.5px;max-width:34ch}
body.ent .socials a{background:#fff;border:1px solid var(--line);border-radius:7px;width:32px;height:32px;color:var(--ink-3)}
body.ent .socials a:hover{background:#fff;border-color:var(--line-3);color:var(--ink)}
body.ent .site-footer address{color:var(--ink-3);font-size:13.5px}
body.ent .contact li{font-size:13.5px}
body.ent .foot-band{border-top:1px solid var(--line);margin-top:32px;padding-top:22px}
body.ent .newsletter h4{margin-bottom:2px}
body.ent .newsletter p{color:var(--ink-3)}
body.ent .nl-form input[type=email]{background:#fff;color:var(--ink);border:1px solid var(--line-3);min-height:40px}
body.ent .nl-form input::placeholder{color:var(--muted-2)}
body.ent .nl-form .btn{min-height:40px}
body.ent .nl-form .consent{color:var(--ink-3);font-size:12px}
body.ent .disclaimer{color:var(--muted-2);border-left-color:var(--line-3);font-size:12px}
body.ent .legal-bar{border-top:1px solid var(--line);font-size:12.5px}
body.ent .legal-bar p{color:var(--muted-2)}
body.ent .legal-bar a{font-size:12.5px}
@media (max-width:1100px){ body.ent .foot-cols{grid-template-columns:repeat(3,1fr)} }
@media (max-width:720px){
  body.ent .site-footer{padding:32px 0 calc(20px + env(safe-area-inset-bottom))}
  body.ent .foot-cols{grid-template-columns:1fr;gap:0}
  body.ent .foot-acc > summary{border-bottom:1px solid var(--line)}
  body.ent .foot-band{margin-top:22px;padding-top:18px}
  body.ent .site .nl-form .consent, body.ent.site .nl-form .consent{font-size:13px}
}

/* Sticky mobile action bar + cookie bar */
body.ent .mobile-bar{border-top:1px solid var(--line);box-shadow:0 -4px 16px -8px rgba(16,24,40,.18)}
body.ent .mobile-bar a{font-size:11.5px;font-weight:600;min-height:54px}
body.ent .mobile-bar a.primary{background:var(--blue);color:#fff}
body.ent .cookie-banner{border:1px solid var(--line);border-radius:12px;box-shadow:var(--el-3);padding:12px 14px;gap:14px;max-width:640px}
body.ent .cookie-banner p{font-size:13px;color:var(--ink-3);margin:0}
body.ent .cookie-banner strong{display:none}
@media (max-width:720px){
  body.ent .cookie-banner{border-radius:12px 12px 0 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
}

/* Feature list (home "why us"): icon + title + one line, no card chrome. */
body.ent .feat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 32px}
body.ent .feat{display:flex;gap:14px;align-items:flex-start}
body.ent .feat .ic{width:36px;height:36px;border-radius:8px;flex:none;display:grid;place-items:center;
  background:#fff;border:1px solid var(--line);color:var(--blue);font-size:18px;box-shadow:var(--el-1)}
body.ent .feat h3{font-size:15px;font-weight:600;margin:0 0 3px}
body.ent .feat p{font-size:14px;color:var(--ink-3);line-height:1.5;margin:0}
@media (max-width:900px){ body.ent .feat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px} }
@media (max-width:560px){ body.ent .feat-grid{grid-template-columns:1fr;gap:18px} }

/* Content is visible immediately — no scroll-reveal fade on a business site. */
.js-reveal body.ent :is(.cat-card,.svc-card,.step,.quote,.ld-feature,.pkg-card){opacity:1;transform:none;transition:border-color .12s,box-shadow .12s}
body.ent :is(.hero-grid > *, .hero > .wrap > *){animation:none}

/* ============================================================================
   11 · AUTH SCREENS (bare layout)
   ========================================================================== */
body.ent.bare{background:var(--app-canvas)}

/* ============================================================================
   12 · PRINT
   ========================================================================== */
@media print{
  body.ent :is(.card,.stat,.stat-box,.table-scroll,.table-wrap){box-shadow:none!important}
  body.ent .admin-header{position:static;background:none;border:0}
}

/* ============================================================================
   13 · PHONE DENSITY — public listings
   Category tiles go two-up with the icon inline; a one-column stack of eight
   tiles was a full screen and a half of scrolling before the first service.
   ========================================================================== */
@media (max-width:640px){
  body.ent .grid:has(> .cat-card){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.ent .cat-card{padding:14px}
  body.ent .cat-card > i{font-size:20px;margin-bottom:8px}
  body.ent .cat-card h3{font-size:14px;line-height:1.3}
  body.ent .cat-card p{font-size:12.5px;margin-top:2px}
  body.ent .svc-card{padding:16px}
  body.ent .svc-card .ic{margin-bottom:10px}
  body.ent .step{padding:18px 16px 14px}
  body.ent .steps{gap:18px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ent .step h4{font-size:14px}
  body.ent .step p{font-size:13px}
}

/* ============================================================================
   14 · SIGN-IN
   ========================================================================== */
body.ent .auth-wrap{max-width:400px;margin:0 auto;min-height:100dvh;padding:48px 16px 32px;
  display:flex;flex-direction:column;justify-content:center;gap:14px}
body.ent .auth-brand{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:650;
  font-size:15px;color:var(--ink);margin-bottom:10px}
body.ent .auth-brand .logo{width:34px;height:34px;border-radius:8px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:18px}
body.ent .auth-card{padding:28px 26px}
body.ent .auth-title{font-size:20px;font-weight:650;letter-spacing:-.02em;margin:0}
body.ent .auth-sub{font-size:13.5px;color:var(--ink-3);margin:4px 0 20px}
body.ent .auth-card .btn-full{margin-top:6px}
body.ent .auth-demo{padding:0;overflow:hidden}
body.ent .auth-demo-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;
  border-bottom:1px solid var(--line);background:var(--bg);font-size:12px;font-weight:600;color:var(--ink-2);
  text-transform:uppercase;letter-spacing:.05em}
body.ent .auth-demo-head small{text-transform:none;letter-spacing:0;font-weight:500;color:var(--ink-3);font-size:12px}
body.ent .auth-demo-list{display:flex;flex-direction:column;max-height:300px;overflow-y:auto}
body.ent .auth-demo-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  padding:9px 14px;background:#fff;border:0;border-bottom:1px solid var(--line);cursor:pointer;
  font:inherit;text-align:left;color:var(--ink)}
body.ent .auth-demo-item:last-child{border-bottom:0}
body.ent .auth-demo-item:hover{background:var(--bg)}
body.ent .auth-demo-item span{display:flex;flex-direction:column;min-width:0}
body.ent .auth-demo-item b{font-size:13.5px;font-weight:600}
body.ent .auth-demo-item small{font-size:12px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ent .auth-demo-item i{color:var(--muted-2);font-size:16px}
body.ent .auth-foot{text-align:center;font-size:13px;margin-top:4px}
body.ent .auth-foot a{color:var(--ink-3)}
body.ent .auth-foot a:hover{color:var(--ink)}
@media (max-width:480px){ body.ent .auth-card{padding:22px 18px} body.ent .auth-wrap{padding-top:32px;justify-content:flex-start} }

/* ============================================================================
   15 · PANELS — flush cards with a header row, metric lists, dashboards
   ========================================================================== */
body.ent .card.flush{padding:0;overflow:hidden}
body.ent .card + .card.flush, body.ent .card.flush + .card{margin-top:14px}
body.ent .grid > .card + .card{margin-top:0}
body.ent .card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:48px;padding:10px 16px;border-bottom:1px solid var(--line)}
body.ent .card-head h2{margin:0;font-size:14px;font-weight:650}
body.ent .card-link{display:inline-flex;align-items:center;gap:2px;font-size:13px;font-weight:500;color:var(--ink-3);white-space:nowrap}
body.ent .card-link:hover{color:var(--blue)}
body.ent .card-link i{font-size:16px}
body.ent .card.flush .table-scroll{border:0;border-radius:0;box-shadow:none}
body.ent .card.flush .table-scroll table{min-width:0}
body.ent .card.flush :is(.table,.dtable) :is(th,td):first-child{padding-left:16px}
body.ent .card.flush :is(.table,.dtable) :is(th,td):last-child{padding-right:16px}
body.ent .mlist{list-style:none;margin:0;padding:2px 16px}
body.ent .mlist li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:10px 0;border-bottom:1px solid var(--line);font-size:13.5px;color:var(--ink-2)}
body.ent .mlist li:last-child{border-bottom:0}
body.ent .mlist b{font-size:15px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
body.ent .mlist .warn b{color:#b54708}
body.ent .mlist .danger b{color:#b42318}
body.ent .dash-panels{margin-top:14px;gap:14px;align-items:start}
/* Stat tiles nested inside a card read as a box inside a box — flatten them. */
body.ent .card .stat-box{background:var(--bg);box-shadow:none;border-color:transparent}
@media (min-width:1280px){ body.ent .stat-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))} }

/* Sidebar brand text must truncate inside the 248px rail. */
body.ent .admin-brand > div:last-child{min-width:0;flex:1}
body.ent .admin-brand h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}

/* Filter bars (`<form class="row">` above a list): inputs share one line on
   desktop instead of each select claiming 100% and wrapping underneath. */
body.ent form.row > :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){width:auto;flex:1 1 200px;min-width:0}
body.ent form.row > select{flex:0 1 240px}
body.ent form.row > .btn{flex:none}
@media (max-width:640px){
  body.ent form.row > select{flex:1 1 100%}
}

/* ============================================================================
   16 · PHONE — admin header + card-mode tables
   ========================================================================== */
@media (max-width:720px){
  /* Title and the icon actions share one row; page buttons wrap under it. */
  body.ent .admin-header .row.between > :first-child{flex:1 1 auto}
  body.ent .admin-header .page-actions{width:auto;flex:0 1 auto;margin-left:auto;justify-content:flex-end}
  body.ent .admin-header .page-actions > .btn{flex:1 1 auto}
}
@media (max-width:680px){
  body.ent .table-as-cards tr{border-radius:var(--r-lg);border-color:var(--line);box-shadow:var(--el-1);padding:12px 14px;row-gap:6px}
  body.ent .table-as-cards td{font-weight:500;font-size:13.5px}
  body.ent .table-as-cards td:before{font-size:11px;font-weight:500;letter-spacing:.03em}
  body.ent .table-as-cards td:first-child{font-size:14.5px;font-weight:600}
  /* Inside a card the rows are list items, not cards within a card. */
  body.ent .card .table-as-cards tr{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;padding:12px 0}
  body.ent .card.flush .table-as-cards tr{padding:12px 16px}
  body.ent .card .table-as-cards tr:last-child{border-bottom:0}
  body.ent .card.flush :is(.table,.dtable).table-as-cards :is(th,td):first-child{padding-left:0}
  body.ent .card.flush :is(.table,.dtable).table-as-cards :is(th,td):last-child{padding-right:0}
}
@media (max-width:680px){ body.ent .table-as-cards td > br{display:none} }

/* Short page heroes (listing pages) and a two-line clamp for long intros. */
body.ent .hero.page-hero{padding:44px 0 36px}
body.ent .hero.page-hero h1{font-size:clamp(26px,3.4vw,38px);margin-bottom:8px}
body.ent .hero.page-hero .sub{margin-bottom:0}
body.ent .clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ent .svc-hero{padding:32px 0 28px}
body.ent .svc-hero .sub{font-size:16px;color:var(--ink-3);line-height:1.55}
@media (max-width:720px){
  body.ent .hero.page-hero{padding:28px 0 22px}
  body.ent .svc-hero{padding:20px 0 20px}
  body.ent .jump-chip{min-height:36px}
}

/* Checkboxes/radios: app.css gives every <input> width:100%, which floats a
   checkbox in the middle of its row. Size them as the controls they are. */
body.ent :is(input[type=checkbox],input[type=radio]):not(.tgl){width:16px;height:16px;flex:none;padding:0;vertical-align:middle;cursor:pointer}
body.ent .addon :is(input[type=checkbox]):not(.tgl){width:22px;height:22px}
body.ent .addon input[type=checkbox]:checked{background:var(--blue)}
body.ent .weekday :is(input[type=checkbox],input[type=radio]):not(.tgl){width:100%;height:100%}
body.ent .consent :is(input[type=checkbox]):not(.tgl){width:18px;height:18px}
@media (max-width:720px){
  body.ent :is(input[type=checkbox],input[type=radio]):not(.tgl){width:20px;height:20px}
  body.ent .weekday :is(input[type=checkbox],input[type=radio]):not(.tgl){width:100%;height:100%}
  body.ent .addon :is(input[type=checkbox]):not(.tgl){width:22px;height:22px}
}

/* ============================================================================
   17 · ROLES & PERMISSIONS (permission matrix)
   ========================================================================== */
body.ent .perm-roles{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding-bottom:2px}
body.ent .perm-roles::-webkit-scrollbar{display:none}
body.ent .perm-role{flex:none;display:flex;flex-direction:column;gap:2px;min-width:132px;padding:9px 12px;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);color:var(--ink-2);box-shadow:var(--el-1)}
body.ent .perm-role:hover{border-color:var(--line-3);color:var(--ink)}
body.ent .perm-role.on{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset,var(--el-1);color:var(--ink)}
body.ent .perm-role-name{font-size:13.5px;font-weight:600;white-space:nowrap}
body.ent .perm-role-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-3);white-space:nowrap}
body.ent .perm-badge{font-style:normal;font-size:11px;font-weight:600;color:#b54708;background:#fffaeb;border-radius:5px;padding:0 6px}
body.ent .perm-note{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-3);margin:0 0 12px}

body.ent .perm-table{width:100%;border-collapse:collapse;font-size:13.5px}
body.ent .perm-table thead th{position:sticky;top:0;z-index:2;background:var(--bg);text-align:center;font-size:11.5px;
  font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3);padding:10px 8px;border-bottom:1px solid var(--line)}
body.ent .perm-table thead th.perm-mod{text-align:left;padding-left:16px}
body.ent .perm-group th{background:var(--bg);text-align:left;font-size:11px;font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted-2);padding:14px 16px 6px;border-bottom:1px solid var(--line)}
body.ent .perm-row th.perm-mod{text-align:left;font-weight:500;color:var(--ink);padding:10px 16px;white-space:nowrap}
body.ent .perm-row td{text-align:center;padding:8px;width:96px;border-left:1px solid transparent}
body.ent .perm-row :is(th,td){border-bottom:1px solid var(--line)}
body.ent .perm-row:hover :is(th,td){background:var(--bg)}
body.ent .perm-row td.chg{background:color-mix(in srgb,#f79009 9%,transparent)}
body.ent .perm-cell{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:32px;cursor:pointer}
body.ent .perm-na{color:var(--muted-2)}
body.ent .perm-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f79009;margin-left:8px;vertical-align:middle}

body.ent .perm-bar{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;gap:10px;margin-top:14px;
  padding:10px 12px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--el-3);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.ent .perm-status{margin-right:auto;font-size:13px;color:var(--ink-3)}
body.ent .perm-status.dirty{color:#b54708;font-weight:600}
body.ent .perm-bar .btn-primary[disabled]{opacity:.45;cursor:default}

@media (max-width:720px){
  body.ent .perm-table thead{display:none}
  body.ent .perm-table,body.ent .perm-table tbody{display:block}
  body.ent .perm-group{display:block}
  body.ent .perm-group th{display:block}
  body.ent .perm-row{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}
  body.ent .perm-row :is(th,td){border-bottom:0}
  body.ent .perm-row th.perm-mod{grid-column:1/-1;padding:12px 16px 2px;white-space:normal}
  body.ent .perm-row td{width:auto;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px 10px}
  body.ent .perm-row td::before{content:attr(data-label);font-size:11px;color:var(--ink-3)}
  body.ent .perm-bar{margin-left:-12px;margin-right:-12px;border-radius:0;border-left:0;border-right:0;
    bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  body.ent .perm-status{display:none}
  body.ent .perm-bar .btn{flex:1 1 auto}
}

/* ============================================================================
   18 · PACKAGES & PRICING
   ========================================================================== */
body.ent .pk-group{margin-bottom:14px}
body.ent .pk-row{display:flex;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line);color:var(--ink)}
body.ent .pk-row:last-child{border-bottom:0}
body.ent .pk-row:hover{background:var(--bg);color:var(--ink)}
body.ent .pk-row-name{display:flex;flex-direction:column;min-width:0;flex:1 1 240px}
body.ent .pk-row-name b{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ent .pk-row-name small{font-size:12.5px;color:var(--ink-3)}
body.ent .pk-row-tiers{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
body.ent .pk-chip{display:inline-flex;flex-direction:column;align-items:flex-start;min-width:96px;padding:5px 10px;
  border:1px solid var(--line);border-radius:var(--r);background:#fff;line-height:1.3}
body.ent .pk-chip em{font-style:normal;font-size:11.5px;color:var(--ink-3)}
body.ent .pk-chip b{font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums}
body.ent .pk-chip.rec{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
body.ent .pk-chip.rec em::after{content:" \00b7  Recommended";color:var(--blue)}
body.ent .pk-chip.off{opacity:.5;border-style:dashed}
@media (max-width:720px){
  body.ent .pk-row{flex-wrap:wrap;gap:8px}
  body.ent .pk-row-tiers{justify-content:flex-start;flex:1 1 100%;order:3}
  body.ent .pk-chip{min-width:0;flex:1 1 0}
  body.ent .pk-row .row-actions{margin-left:auto}
}

/* Editor */
body.ent .pk-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
body.ent .pk-back{display:inline-flex;align-items:center;gap:2px;font-size:13px;color:var(--ink-3)}
body.ent .pk-links{display:flex;gap:14px;flex-wrap:wrap}
body.ent .pk-links a{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--ink-2)}
body.ent .pk-links a:hover{color:var(--blue)}
body.ent .pk-tiers{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;padding:16px}
body.ent .pk-tier{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;background:#fff;
  transition:border-color .12s,box-shadow .12s}
body.ent .pk-tier:has(.pk-rec input:checked){border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
body.ent .pk-tier:has(.pk-act input:not(:checked)){background:var(--bg)}
body.ent .pk-tier .field{margin-bottom:10px}
body.ent .pk-tier-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
body.ent .pk-step{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:600;
  background:var(--bg-2);color:var(--ink-2);flex:none}
/* The recommended tier: a pill that reads as a choice, not a bare radio dot. */
body.ent .pk-rec{position:relative;display:inline-flex;cursor:pointer;margin:0}
body.ent .pk-rec input{position:absolute;opacity:0;inset:0;width:100%!important;height:100%!important;margin:0;cursor:pointer}
body.ent .pk-rec span{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid var(--line-3);
  font-size:12px;font-weight:500;color:var(--ink-3);background:#fff;transition:all .12s}
body.ent .pk-rec span i{font-size:12px;color:var(--muted-2)}
body.ent .pk-rec:hover span{border-color:var(--ink-3);color:var(--ink-2)}
body.ent .pk-rec input:checked + span{background:var(--blue);border-color:var(--blue);color:#fff}
body.ent .pk-rec input:checked + span i{color:#f5c451}
body.ent .pk-rec input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
body.ent .pk-act{margin:0 0 0 auto;display:inline-flex}
body.ent .pk-money{display:flex;align-items:stretch}
body.ent .pk-money span{display:grid;place-items:center;padding:0 10px;border:1px solid var(--line-3);border-right:0;
  border-radius:var(--r-sm) 0 0 var(--r-sm);background:var(--bg);color:var(--ink-3);font-size:13.5px}
body.ent .pk-money input{border-radius:0 var(--r-sm) var(--r-sm) 0;font-variant-numeric:tabular-nums}
body.ent .pk-tier-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:10px;
  border-top:1px solid var(--line);font-size:12.5px}
body.ent .pk-count{font-weight:600;color:var(--ink-2)}
body.ent .pk-tier-add{align-items:center;justify-content:center;gap:6px;min-height:220px;border:1.5px dashed var(--line-3);
  background:var(--bg);color:var(--ink-3);font:inherit;font-size:13.5px;font-weight:500;cursor:pointer}
body.ent .pk-tier-add:hover{border-color:var(--blue);color:var(--blue);background:#fff}
body.ent .pk-tier-add i{font-size:22px}

body.ent .pk-items{display:flex;flex-direction:column}
body.ent .pk-item{display:flex;align-items:center;gap:12px;padding:8px 16px;border-bottom:1px solid var(--line)}
body.ent .pk-item:hover{background:var(--bg)}
body.ent .pk-label{flex:1 1 auto;min-width:0;border-color:transparent;box-shadow:none;background:transparent}
body.ent .pk-label:hover{border-color:var(--line-3);background:#fff}
body.ent .pk-label:focus{background:#fff}
/* "Available from": a segmented control built from radios. */
body.ent .pk-seg{display:inline-flex;flex:none;padding:2px;border:1px solid var(--line-3);border-radius:8px;background:var(--bg);gap:2px}
body.ent .pk-seg label{position:relative;margin:0;cursor:pointer}
body.ent .pk-seg input{position:absolute;opacity:0;inset:0;width:100%!important;height:100%!important;margin:0;cursor:pointer}
body.ent .pk-seg span{display:block;padding:5px 11px;border-radius:6px;font-size:12.5px;font-weight:500;color:var(--ink-3);white-space:nowrap;transition:all .12s}
body.ent .pk-seg label:hover span{color:var(--ink)}
body.ent .pk-seg input:checked + span{background:#fff;color:var(--ink);font-weight:600;box-shadow:var(--el-2),inset 0 0 0 1px var(--line)}
body.ent .pk-seg input:focus-visible + span{outline:2px solid var(--blue);outline-offset:1px}
body.ent .pk-seg input:disabled + span{cursor:default}
body.ent .pk-del{width:32px;height:32px;min-width:32px;min-height:32px;border-color:transparent;box-shadow:none;color:var(--muted-2)}
body.ent .pk-del:hover{color:#b42318;border-color:#fecdca;background:#fef3f2}
body.ent .pk-items-empty{display:flex;align-items:center;gap:8px;justify-content:center;padding:28px 16px;color:var(--ink-3);font-size:13.5px}
body.ent .pk-items-foot{padding:12px 16px}
@media (max-width:720px){
  body.ent .pk-tiers{grid-template-columns:1fr;padding:12px}
  body.ent .pk-tier-add{min-height:64px}
  body.ent .pk-item{flex-wrap:wrap;gap:6px;padding:10px 12px}
  body.ent .pk-label{flex:1 1 calc(100% - 44px);border-color:var(--line-3);background:#fff}
  body.ent .pk-seg{order:3;flex:1 1 100%;overflow-x:auto}
  body.ent .pk-seg label{flex:1 1 0}
  body.ent .pk-seg span{text-align:center}
}

/* ============================================================================
   19 · GIFT CARDS
   ========================================================================== */
body.ent .gc-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
body.ent .gc-code{font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;background:var(--bg-2);
  padding:2px 7px;border-radius:5px;color:var(--ink)}
body.ent .gc-wrap{display:grid;grid-template-columns:minmax(0,560px) minmax(0,360px);gap:24px;align-items:start}
body.ent .gc-form{padding:22px}
body.ent .gc-amounts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
body.ent .gc-amt{border:1px solid var(--line-3);background:#fff;border-radius:999px;padding:4px 12px;font:inherit;font-size:12.5px;
  font-weight:500;color:var(--ink-2);cursor:pointer}
body.ent .gc-amt:hover{border-color:var(--ink-3);color:var(--ink)}
body.ent .gc-amt.on{background:var(--blue);border-color:var(--blue);color:#fff}
body.ent .gc-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px;padding-top:14px;border-top:1px solid var(--line)}
body.ent .gc-preview{position:sticky;top:84px}
body.ent .gc-card{position:relative;overflow:hidden;aspect-ratio:1.586;border-radius:14px;padding:20px;color:#fff;
  display:flex;flex-direction:column;background:var(--blue-dark);box-shadow:var(--el-3);isolation:isolate}
body.ent .gc-card::before{content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(120% 90% at 100% 0%,color-mix(in srgb,var(--sky) 55%,transparent) 0%,transparent 60%),
             radial-gradient(90% 80% at 0% 100%,color-mix(in srgb,var(--blue) 70%,transparent) 0%,transparent 70%)}
body.ent .gc-card-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;opacity:.9}
body.ent .gc-card-top i{font-size:22px}
body.ent .gc-card-amt{font-size:34px;font-weight:650;letter-spacing:-.02em;margin-top:auto;font-variant-numeric:tabular-nums}
body.ent .gc-card-to{font-size:14px;opacity:.85;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ent .gc-card-foot{display:flex;justify-content:space-between;margin-top:14px;font:500 11.5px/1 ui-monospace,Menlo,monospace;
  letter-spacing:.06em;opacity:.75}
body.ent .gc-preview-note{margin-top:12px;font-size:13px;color:var(--ink-3);font-style:italic;white-space:pre-line;min-height:1em}
@media (max-width:980px){
  body.ent .gc-wrap{grid-template-columns:1fr}
  body.ent .gc-preview{position:static;order:-1;max-width:360px}
}
@media (max-width:560px){
  body.ent .gc-stats{grid-template-columns:1fr 1fr}
  body.ent .gc-stats > :first-child{grid-column:1/-1}
  body.ent .gc-form{padding:16px}
  body.ent .gc-actions .btn{flex:1 1 0}
}

body.ent .gc-redeem{display:flex;gap:8px;margin-bottom:14px}
body.ent .gc-redeem-field{position:relative;flex:1;min-width:0;margin:0}
body.ent .gc-redeem-field i{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted-2);font-size:16px;pointer-events:none}
body.ent .gc-redeem-field input{padding-left:34px;text-transform:uppercase;letter-spacing:.04em;font-family:ui-monospace,Menlo,monospace}
body.ent .gc-redeem-field input::placeholder{text-transform:none;letter-spacing:0;font-family:Inter,system-ui,sans-serif}
body.ent .gc-redeem .btn{flex:none}

/* ============================================================================
   20 · ROW ACTIONS — one look for every list's action cell
   Icon buttons side by side, right-aligned, never wrapping onto a second line
   (a narrow column used to stack them vertically, as on Services and Fees).
   ========================================================================== */
body.ent td.actions{width:1%;white-space:nowrap;text-align:right}
body.ent .row-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;vertical-align:middle}
body.ent .row-actions form{display:inline-flex;margin:0}
body.ent .row-actions .icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;
  font-size:16px;border-radius:7px}
body.ent .row-actions .icon-btn.danger:hover{color:#b42318;border-color:#fecdca;background:#fef3f2}
body.ent .row-actions .row-select{width:auto;min-width:0;max-width:170px;min-height:32px;padding:4px 28px 4px 9px;font-size:13px}
/* Any other action cell built from bare icon buttons gets the same line. */
body.ent td:has(> .icon-btn){white-space:nowrap;width:1%}
body.ent td > .icon-btn{display:inline-grid;vertical-align:middle;width:32px;height:32px;min-width:32px;min-height:32px;font-size:16px}
body.ent td > .icon-btn + .icon-btn{margin-left:6px}
@media (max-width:680px){
  body.ent .table-as-cards td.actions{width:auto}
  body.ent .row-actions .icon-btn{width:36px;height:36px;min-width:36px;min-height:36px}
}

/* ============================================================================
   21 · PROMO (home page) MOTION
   Scoped to body.promo so every other page keeps the calm enterprise feel.
   Everything here is off for prefers-reduced-motion, and scroll reveals only
   start hidden once the page script adds .promo-motion to <html>.
   ========================================================================== */
body.ent.promo .hero{overflow:hidden}
body.ent.promo .hero-aurora{position:absolute;inset:-20% -10% auto -10%;height:120%;z-index:-2;pointer-events:none;filter:blur(56px);opacity:.8}
body.ent.promo .hero-aurora span{position:absolute;border-radius:50%}
body.ent.promo .hero-aurora span:nth-child(1){width:44vw;height:44vw;left:52%;top:-6%;
  background:radial-gradient(circle,color-mix(in srgb,var(--sky) 42%,transparent) 0%,transparent 68%)}
body.ent.promo .hero-aurora span:nth-child(2){width:38vw;height:38vw;left:70%;top:30%;
  background:radial-gradient(circle,color-mix(in srgb,var(--blue) 38%,transparent) 0%,transparent 68%)}
body.ent.promo .hero-aurora span:nth-child(3){width:30vw;height:30vw;left:-4%;top:42%;
  background:radial-gradient(circle,color-mix(in srgb,var(--sky) 22%,transparent) 0%,transparent 70%)}

/* Popular-services ticker */
body.ent .promo-ticker{position:relative;overflow:hidden;border-bottom:1px solid var(--line);background:#fff;padding:12px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
body.ent .promo-track{display:flex;gap:10px;width:max-content}
body.ent .promo-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border:1px solid var(--line);border-radius:999px;
  font-size:13px;font-weight:500;color:var(--ink-2);background:var(--bg);white-space:nowrap}
body.ent .promo-chip i{color:var(--blue);font-size:15px}

/* Hover life on the promo page's cards */
body.ent.promo :is(.svc-card,.cat-card){transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,border-color .25s}
body.ent.promo :is(.svc-card,.cat-card):hover{transform:translateY(-3px);box-shadow:0 14px 28px -14px rgba(16,24,40,.25)}
body.ent.promo :is(.svc-card .ic,.cat-card > i,.feat .ic){transition:transform .3s cubic-bezier(.2,.8,.2,1)}
body.ent.promo :is(.svc-card,.cat-card):hover :is(.ic,> i){transform:scale(1.12) rotate(-4deg)}
body.ent.promo .feat:hover .ic{transform:translateY(-2px)}
body.ent.promo .hero-cta .btn-primary{position:relative;overflow:hidden}
body.ent.promo .hero-cta .btn-primary::after{content:"";position:absolute;inset:0;transform:translateX(-120%);
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%)}

@media (prefers-reduced-motion:no-preference){
  /* Hero entrance — plain keyframes, so it plays without JavaScript too. */
  body.ent.promo .hero-grid > div > *{animation:promoUp .7s cubic-bezier(.16,1,.3,1) both}
  body.ent.promo .hero-grid > div > :nth-child(1){animation-delay:.05s}
  body.ent.promo .hero-grid > div > :nth-child(2){animation-delay:.12s}
  body.ent.promo .hero-grid > div > :nth-child(3){animation-delay:.2s}
  body.ent.promo .hero-grid > div > :nth-child(4){animation-delay:.28s}
  body.ent.promo .hero-grid > div > :nth-child(5){animation-delay:.36s}
  body.ent.promo .hero-grid > .lead-card{animation:promoIn .8s cubic-bezier(.16,1,.3,1) .25s both}
  body.ent.promo .hero-aurora span{animation:promoDrift 18s ease-in-out infinite alternate}
  body.ent.promo .hero-aurora span:nth-child(2){animation-duration:22s;animation-delay:-6s}
  body.ent.promo .hero-aurora span:nth-child(3){animation-duration:26s;animation-delay:-12s}
  body.ent.promo .hero-cta .btn-primary::after{animation:promoShine 3.6s ease-in-out 1.2s infinite}
  body.ent.promo .pill i{animation:promoPulse 2.4s ease-in-out infinite}
  body.ent .promo-track{animation:promoTicker 48s linear infinite}
  body.ent .promo-ticker:hover .promo-track{animation-play-state:paused}
  body.ent.promo .cta-band::before{animation:promoGrid 14s linear infinite}

  /* Scroll reveals (only once the script has confirmed it can reveal). */
  .promo-motion body.ent.promo [data-reveal]{opacity:0;transform:translateY(18px);
    transition:opacity .6s ease,transform .7s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0) * 70ms)}
  .promo-motion body.ent.promo [data-reveal].is-in{opacity:1;transform:none}
  .promo-motion body.ent.promo .step[data-reveal]:before{transform:scale(.4);transition:transform .5s cubic-bezier(.34,1.56,.64,1);
    transition-delay:calc(var(--i,0) * 70ms + .2s)}
  .promo-motion body.ent.promo .step[data-reveal].is-in:before{transform:none}
}
@keyframes promoUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes promoIn{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:none}}
@keyframes promoDrift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(-6%,5%) scale(1.08)}100%{transform:translate(5%,-4%) scale(.95)}}
@keyframes promoShine{0%,55%{transform:translateX(-120%)}80%,100%{transform:translateX(120%)}}
@keyframes promoPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@keyframes promoTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes promoGrid{from{background-position:0 0,0 0}to{background-position:32px 32px,32px 32px}}
@media (max-width:720px){
  body.ent .promo-ticker{padding:10px 0}
  body.ent .promo-chip{font-size:12.5px;padding:5px 11px}
  body.ent.promo .hero-aurora{opacity:.45}
  body.ent.promo .hero-aurora span:nth-child(1){width:90vw;height:90vw;left:30%}
}

@media (max-width:720px){
  body.ent .card-head{flex-wrap:wrap;row-gap:2px}
  body.ent .card-head > span.card-link{white-space:normal;font-size:12px;flex:1 1 100%}
}

/* ============================================================================
   22 · CHOICE CARDS (form field type 'choice') + "Price on request"
   A pick-one field shown as cards: icon, title, one line of what it does, and a
   tick on the chosen one. The radio itself is invisible but still focusable.
   ========================================================================== */
body.ent .choice-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px}
body.ent .choice-card{position:relative;display:block;margin:0;cursor:pointer}
body.ent .choice-card input{position:absolute;opacity:0;inset:0;width:100%!important;height:100%!important;margin:0;cursor:pointer}
body.ent .choice-body{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line-3);
  border-radius:var(--r-lg);background:#fff;transition:border-color .12s,box-shadow .12s,background-color .12s}
body.ent .choice-card:hover .choice-body{border-color:var(--ink-3)}
body.ent .choice-ic{width:34px;height:34px;border-radius:8px;flex:none;display:grid;place-items:center;
  background:var(--bg-2);color:var(--ink-2);font-size:18px}
body.ent .choice-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
body.ent .choice-txt b{font-size:14px;font-weight:600;color:var(--ink)}
body.ent .choice-txt small{font-size:12.5px;color:var(--ink-3);line-height:1.45;font-weight:400}
body.ent .choice-tick{width:20px;height:20px;border-radius:50%;flex:none;display:grid;place-items:center;
  border:1.5px solid var(--line-3);color:transparent;font-size:13px;transition:all .12s}
body.ent .choice-card input:checked + .choice-body{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue);background:var(--sky-soft)}
body.ent .choice-card input:checked + .choice-body .choice-ic{background:var(--blue);color:#fff}
body.ent .choice-card input:checked + .choice-body .choice-tick{background:var(--blue);border-color:var(--blue);color:#fff}
body.ent .choice-card input:focus-visible + .choice-body{outline:2px solid var(--blue);outline-offset:2px}
body.ent .from b.on-request{font-size:14px;font-weight:600;color:var(--ink-2)}
body.ent .team-table th.num, body.ent .team-table td.num{text-align:right;white-space:nowrap}
body.ent .how-box{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0 0 14px;background:var(--bg)}
body.ent .how-box summary{cursor:pointer;font-weight:600;font-size:13.5px;display:flex;gap:6px;align-items:center}
body.ent .how-box ol{margin:10px 0 4px 18px;padding:0;font-size:13.5px;display:grid;gap:6px}
body.ent .soon-card{display:flex;gap:14px;align-items:flex-start}
body.ent .soon-card .soon-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--sky-soft,#eff6ff);color:var(--blue);font-size:22px;flex:none}
body.ent .soon-card h2{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* ── Line builder (invoice builder, quotations, leads) ── */
body.ent .lb-top{display:grid;grid-template-columns:1.3fr 1fr;gap:14px;margin-bottom:14px}
body.ent .lb-field label{display:block;font-size:12.5px;font-weight:600;margin-bottom:5px}
body.ent .lb-cust-search{position:relative}
body.ent .lb-cust-results{position:absolute;z-index:30;left:0;right:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--el-3);max-height:280px;overflow:auto;margin-top:4px}
body.ent .lb-cust-results:empty{display:none}
body.ent .lb-cust-opt{display:block;width:100%;text-align:left;padding:9px 12px;border:0;background:none;border-bottom:1px solid var(--line);cursor:pointer}
body.ent .lb-cust-opt:hover{background:var(--bg)}
body.ent .lb-cust-opt b{display:block;font-size:13.5px}
body.ent .lb-cust-opt small,body.ent .lb-cust-chosen small{display:block;color:var(--muted);font-size:12px}
body.ent .lb-empty{padding:10px 12px;color:var(--muted);font-size:13px}
body.ent .lb-cust-chosen{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--bg)}
body.ent .lb-cust-chosen[hidden]{display:none}
body.ent .lb-head h3{font-size:14px;margin:6px 0 8px}
body.ent .lb-line{position:relative;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) 64px minmax(0,1.5fr) 100px 100px minmax(0,1.3fr);gap:8px;align-items:end;border:1px solid var(--line);border-radius:10px;padding:10px 44px 10px 10px;margin-bottom:8px;background:#fff}
body.ent .lb:not([data-lb*='"prices":true']) .lb-line{grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) 64px minmax(0,1.5fr)}
body.ent .lb-c{min-width:0}
body.ent .lb-c label{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-bottom:3px}
body.ent .lb-c select,body.ent .lb-c input{width:100%}
body.ent .lb-desc{grid-column:1/-1}
body.ent .lb-del{position:absolute;top:8px;right:6px}
body.ent .lb-total{text-align:right}
body.ent .lb-total b{display:block;font-size:14px}
body.ent .lb-total small{display:block;font-size:11px;color:var(--muted);line-height:1.3}
body.ent .lb-empty-lines{padding:8px 0}
body.ent .lb-totals{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;transition:opacity .15s}
body.ent .lb-totals.lb-stale{opacity:.5}
body.ent .lb-totals dl{margin:0;max-width:360px;margin-left:auto}
body.ent .lb-totals dl > div{display:flex;justify-content:space-between;padding:4px 0;font-size:13.5px}
body.ent .lb-totals dt{color:var(--ink-2)} body.ent .lb-totals dd{margin:0;font-weight:600}
body.ent .lb-totals .grand{border-top:1px solid var(--line);margin-top:6px;padding-top:8px;font-size:16px}
body.ent .lb-totals .grand dd{font-weight:800}
body.ent .lb-coupon-msg{font-size:12px;margin-top:4px} body.ent .lb-coupon-msg.bad{color:var(--red)} body.ent .lb-coupon-msg.good{color:#067647}
body.ent .ib-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
body.ent .ib-side .card{margin-bottom:12px}
body.ent .ib-h{font-size:14px;margin:0 0 10px}
body.ent .ib-radio{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;cursor:pointer}
body.ent .ib-radio input{width:16px;height:16px;margin-top:2px}
body.ent .ib-radio small{display:block;color:var(--muted);font-size:12px}
body.ent .ib-radio:has(input:checked){border-color:var(--blue);background:var(--sky-soft,#eff6ff)}
@media (max-width:1560px){ body.ent .lb[data-lb*='"prices":true'] .lb-line{grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) 64px minmax(0,1.5fr)}
  body.ent .lb-total{grid-column:span 2;text-align:right} }
@media (max-width:1100px){ body.ent .ib-grid{grid-template-columns:1fr} }
@media (max-width:640px){ body.ent .lb-top{grid-template-columns:1fr} body.ent .lb .lb-line{grid-template-columns:1fr 1fr!important}
  body.ent .lb-svc,body.ent .lb-ent,body.ent .lb-desc,body.ent .lb-total{grid-column:1/-1!important} }
body.ent .inv-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
body.ent .inv-layout{display:grid;grid-template-columns:minmax(0,840px) 320px;gap:16px;align-items:start}
body.ent .inv-layout aside .card{margin-top:0;margin-bottom:12px}
body.ent .pay-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13.5px}
body.ent .pay-row small{display:block;color:var(--muted);font-size:12px}
body.ent .pay-due{display:flex;justify-content:space-between;padding:10px 0 2px;font-size:14px}
body.ent .bulk-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;margin-bottom:10px;border:1px solid var(--blue);border-radius:10px;background:var(--sky-soft,#eff6ff)}
body.ent .bulk-bar[hidden]{display:none}
@media (max-width:1180px){ body.ent .inv-layout{grid-template-columns:1fr} }
@media print{ body.ent .inv-actions, body.ent .inv-layout aside{display:none} }

body.ent .seg-tabs{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
body.ent .seg-tabs a{padding:6px 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--ink-2);text-decoration:none;white-space:nowrap}
body.ent .seg-tabs a.on{background:#fff;color:var(--ink);font-weight:600;box-shadow:var(--el-2)}
body.ent .refund-actions{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
body.ent .refund-card summary{cursor:pointer;display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}

/* ── Reports ── */
body.ent .rep-group{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:18px 0 8px}
body.ent .rep-group:first-child{margin-top:0}
body.ent .rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
body.ent .rep-card{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;color:var(--ink);transition:border-color .12s, box-shadow .12s}
body.ent .rep-card:hover{border-color:var(--blue);box-shadow:var(--el-2)}
body.ent .rep-card b{display:block;font-size:14px} body.ent .rep-card small{display:block;color:var(--muted);font-size:12.5px;line-height:1.4;margin-top:2px}
body.ent .rep-ic{width:38px;height:38px;border-radius:10px;background:var(--sky-soft,#eff6ff);color:var(--blue);display:grid;place-items:center;font-size:19px;flex:none}
body.ent .rep-go{margin-left:auto;color:var(--muted)}
body.ent .rep-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-top:0}
body.ent .rep-filters label{display:flex;flex-direction:column;font-size:12px;font-weight:600;color:var(--muted);gap:3px}
body.ent .rep-filters label input,body.ent .rep-filters label select{min-width:140px}
body.ent .rep-presets{display:flex;gap:4px;flex-wrap:wrap;width:100%}
body.ent .rep-presets a{padding:5px 10px;border:1px solid var(--line);border-radius:999px;font-size:12.5px;color:var(--ink-2);text-decoration:none}
body.ent .rep-presets a.on{background:var(--blue);border-color:var(--blue);color:#fff}
body.ent .rep-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin-bottom:12px}
body.ent .rep-tile{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
body.ent .rep-tile span{display:block;font-size:12px;color:var(--muted)} body.ent .rep-tile b{display:block;font-size:17px;margin-top:3px;word-break:break-word}
body.ent .rep-table th.num,body.ent .rep-table td.num{text-align:right;white-space:nowrap}
body.ent .rep-table tfoot td{border-top:2px solid var(--line);background:var(--bg)}

body.ent .p-wo{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
body.ent .p-wo small{display:block;color:var(--muted);font-size:12px}

body.ent .perm-role-new{border:1px dashed var(--line-3,#cbd5e1)!important;background:transparent;cursor:pointer;text-align:left;font:inherit}
body.ent dialog.modal-dialog{border:0;border-radius:14px;padding:20px;width:min(460px,92vw);box-shadow:0 20px 60px rgba(15,23,42,.25)}
body.ent dialog.modal-dialog::backdrop{background:rgba(15,23,42,.45)}

body.ent .uf-card{max-width:1080px;margin-top:0;margin-bottom:12px}
body.ent .uf-card h3{font-size:15px;margin:0 0 10px}
body.ent .uf-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px 14px}
body.ent .uf-cats label{display:flex;gap:8px;align-items:center;font-size:13.5px}
body.ent .uf-cats input{width:16px;height:16px}
body.ent .uf .perm-bar{max-width:1080px}

/* ── Team (sub-users) ── */
body.ent .team-list{display:grid;gap:8px;margin-bottom:12px}
body.ent .team-row{border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px}
body.ent .team-row summary{display:flex;gap:10px;align-items:center;cursor:pointer;flex-wrap:wrap}
body.ent .team-av{width:34px;height:34px;border-radius:50%;background:var(--sky-soft,#eff6ff);color:var(--blue);display:grid;place-items:center;font-weight:700;flex:none}
body.ent .team-who{flex:1;min-width:160px} body.ent .team-who small{display:block;color:var(--muted);font-size:12px}
body.ent .team-tags{display:flex;gap:6px;flex-wrap:wrap}
body.ent .team-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}
body.ent .team-grid h4{font-size:12.5px;margin:0 0 6px;color:var(--ink-2)}
body.ent .team-grid label{display:flex;gap:8px;align-items:center;font-size:13.5px;padding:3px 0}
body.ent .team-grid input{width:16px;height:16px}
body.ent .team-add summary{cursor:pointer;display:flex;gap:8px;align-items:center}
@media (max-width:640px){ body.ent .team-grid{grid-template-columns:1fr} }

/* ── Customer overview ── */
body.ent .c360{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1080px;margin-top:12px}
body.ent .c360-card{margin:0}
body.ent .c360-wide{grid-column:1/-1}
body.ent .c360-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
body.ent .c360-row small{display:block;color:var(--muted);font-size:12px}
body.ent .c360-kv{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px}
@media (max-width:760px){ body.ent .c360{grid-template-columns:1fr} }

body.ent .doc-upload summary{cursor:pointer;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
/* ── Fee groups ── */
body.ent .fg-card{max-width:1180px;margin-top:0;margin-bottom:12px}
body.ent .fg-card h3{font-size:15px;margin:0 0 10px}
body.ent .fg-cond{position:relative;display:grid;grid-template-columns:1.4fr 1fr 1.6fr;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px 44px 10px 10px;margin-bottom:8px;background:var(--bg)}
body.ent .fg-cond .fg-del{position:absolute;top:8px;right:6px}
body.ent .fg-rows td{vertical-align:top;min-width:120px}
body.ent .fg-rows input,body.ent .fg-rows select{width:100%;min-width:100px}
body.ent .fg-range-cell{display:flex;gap:4px}
@media (max-width:760px){ body.ent .fg-cond{grid-template-columns:1fr} }

/* ── Section builder ── */
body.ent .se{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
body.ent .se-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:10px}
body.ent .se-head h3{font-size:15px;margin:0}
body.ent .se-head .muted{font-size:12.5px}
body.ent .se-item{border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:10px}
body.ent .se-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:var(--bg);border-bottom:1px solid var(--line);border-radius:10px 10px 0 0;font-size:13px}
body.ent .se-tools{display:flex;gap:2px}
body.ent .se-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px}
body.ent .se-f label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:3px}
body.ent .se-f:has(textarea){grid-column:1/-1}
body.ent .se-img{display:flex;gap:10px;align-items:center;margin-bottom:6px}
body.ent .se-img img{height:60px;border-radius:6px;border:1px solid var(--line)}
body.ent .se-add{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
@media (max-width:640px){ body.ent .se-fields{grid-template-columns:1fr} }

body.ent .pt-tags{margin-top:6px;border-top:1px solid var(--line);padding-top:14px}
body.ent .pt-tags h3{font-size:15px;margin:0 0 6px}
body.ent .pt-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
body.ent .pt-group > b{font-size:12px;color:var(--muted);min-width:110px}
body.ent .pt-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-size:12.5px;cursor:pointer}
body.ent .pt-chip input{width:14px;height:14px}
body.ent .pt-chip:has(input:checked){border-color:var(--blue);background:var(--sky-soft,#eff6ff)}

/* ── Review prompt (portal) ── */
body.ent .rv-quick{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-top:10px}
body.ent .rv-quick-head small{display:block;color:var(--muted);font-size:12px}
body.ent .rv-quick textarea{width:100%;margin:6px 0}
body.ent .rv-flash{animation:rvflash 1.6s ease 1}
@keyframes rvflash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 4px rgba(245,158,11,.35)}}

/* star picker (portal + public review link) */
body.ent .rv-stars{display:inline-flex;flex-direction:row-reverse;gap:2px}
body.ent .rv-stars input{position:absolute;opacity:0;width:1px;height:1px}
body.ent .rv-stars label{font-size:24px;color:#d1d5db;cursor:pointer;line-height:1}
body.ent .rv-stars.big label{font-size:38px}
body.ent .rv-stars input:checked ~ label,.rv-stars label:hover,.rv-stars label:hover ~ label{color:#f59e0b}

body.ent .req-kinds{display:flex;gap:8px;flex-wrap:wrap}
body.ent .req-kinds label{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:6px 12px;cursor:pointer;font-size:13.5px}
body.ent .req-kinds label:has(input:checked){border-color:var(--blue);background:var(--sky-soft,#eff6ff)}
body.ent .req-kinds input{width:14px;height:14px}
body.ent .tl-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:560px){ body.ent .tl-grid{grid-template-columns:1fr} }
body.ent .q-card{margin-top:0;margin-bottom:10px;max-width:980px}
body.ent .q-text{margin:8px 0;font-size:14px}
body.ent .q-answer{background:var(--bg);border-radius:10px;padding:8px 12px;font-size:13.5px;margin-top:6px}

/* ── Month calendar (admin, staff and portal) ───────────────────────── */
.cal-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.cal-layout.solo{grid-template-columns:minmax(0,1fr)}
@media (max-width:1200px){ .cal-layout{grid-template-columns:minmax(0,1fr)} }
.mc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.mc-nav{display:flex;align-items:center;gap:6px}
.mc-title{margin:0 6px;font-size:18px;min-width:9ch;text-align:center}
.mc-legend{display:flex;flex-wrap:wrap;gap:6px}
.mc-chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:4px 9px;border-radius:999px;cursor:pointer;border:1px solid transparent}
.mc-chip input{margin:0;width:13px;height:13px}
.mc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line,#e5e7eb);border-radius:10px;overflow:hidden}
.mc-dow{padding:7px 8px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3,#6b7280);background:var(--bg-2,#f8fafc);border-bottom:1px solid var(--line,#e5e7eb)}
.mc-day{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:3px;min-height:104px;padding:6px 6px 8px;border-right:1px solid var(--line,#e5e7eb);border-bottom:1px solid var(--line,#e5e7eb);cursor:pointer;min-width:0;background:#fff}
.mc-day:nth-child(7n+7){border-right:0}
.mc-day:hover{background:#f8fbff}
.mc-day:focus-visible{outline:2px solid var(--blue,#2563eb);outline-offset:-2px}
.mc-day.out{background:#fafafa}
.mc-day.out .mc-num{color:#c0c4cc}
.mc-num{font-size:12.5px;font-weight:700;color:var(--ink-2,#374151);width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
.mc-day.today .mc-num{background:var(--blue,#2563eb);color:#fff}
.mc-pill{display:block;font-size:11px;line-height:1.35;padding:2px 6px;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.mc-more{font-size:11px;color:var(--ink-3,#6b7280);padding-left:4px}
.mc-dots{display:none;gap:3px;flex-wrap:wrap;margin-top:2px}
.mc-dots i{width:7px;height:7px;border-radius:50%;display:block}
.mc-compliance{background:#e0ecff;color:#1d4ed8} .mc-dots i.mc-compliance{background:#3b82f6}
.mc-renewal{background:#fef3c7;color:#92400e} .mc-dots i.mc-renewal{background:#f59e0b}
.mc-work{background:#ede9fe;color:#5b21b6} .mc-dots i.mc-work{background:#8b5cf6}
.mc-consultation{background:#dcfce7;color:#166534} .mc-dots i.mc-consultation{background:#22c55e}
.mc-holiday{background:#fee2e2;color:#991b1b} .mc-dots i.mc-holiday{background:#ef4444}
.mc-event{background:#e0f2fe;color:#075985} .mc-dots i.mc-event{background:#0ea5e9}
.mc-dialog{border:0;border-radius:14px;padding:0;width:min(520px,calc(100vw - 32px));box-shadow:0 20px 50px rgba(15,23,42,.25)}
.mc-dialog::backdrop{background:rgba(15,23,42,.35)}
.mc-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line,#e5e7eb);margin:0}
.mc-dialog-head h3{margin:0;font-size:15px}
.mc-list{list-style:none;margin:0;padding:8px 10px 14px;max-height:60vh;overflow:auto}
.mc-list li>a,.mc-list li>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:9px 8px;border-radius:8px;color:inherit;text-decoration:none}
.mc-list li>a:hover{background:#f5f8ff}
.mc-list .mc-sub{flex-basis:100%;color:var(--ink-3,#6b7280)}
.mc-list .mc-empty{padding:16px;color:var(--ink-3,#6b7280);text-align:center}
.mc-tag{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em}
@media (max-width:760px){
  .mc-day{min-height:58px;padding:4px}
  .mc-pill,.mc-more{display:none}
  .mc-dots{display:flex}
  .mc-dow{padding:6px 2px;text-align:center;font-size:10.5px}
  .mc-title{font-size:16px}
}
.ren-add{margin:14px 0;padding:14px;border:1px dashed var(--line-2,#d1d5db);border-radius:10px;background:var(--bg-2,#f8fafc)}
.mc-list b{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}
.mc-dialog{overflow-x:hidden}
.chk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 14px;font-size:13.5px}
.chk-grid label{display:flex;gap:7px;align-items:center;font-weight:500}

/* ============================================================================
   DASHBOARD · gap-free card flow + insight cards (bars, search, lookups)
   ========================================================================== */
/* No script: CSS columns. With script: cards dealt into .dash-col stacks. */
body.ent .dash-masonry{margin-top:14px;columns:3 340px;column-gap:14px}
body.ent .dash-masonry > .card{display:inline-block;width:100%;break-inside:avoid;vertical-align:top}
/* Beats the generic "card + card" top margin, which would double the gap. */
body.ent .dash-masonry > .card, body.ent .dash-masonry > .card + .card.flush, body.ent .dash-masonry > .card.flush + .card{margin:0 0 14px}
body.ent .dash-masonry.is-dealt{columns:auto;display:flex;align-items:flex-start;gap:14px}
body.ent .dash-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:14px}
body.ent .dash-col > .card, body.ent .dash-col > .card + .card.flush, body.ent .dash-col > .card.flush + .card{display:block;width:auto;margin:0}
body.ent .dash-masonry + .dash-wide{margin-top:14px}

body.ent .mlist-v{display:inline-flex;align-items:baseline;gap:10px}
body.ent .mlist-go{font-size:12px;font-weight:500;color:var(--ink-3)}
body.ent .mlist-go:hover{color:var(--blue)}
body.ent .mlist-sm li{padding:7px 0;font-size:13px}
body.ent .mlist-sm b{font-size:13.5px}
body.ent .dash-note{margin:0;padding:10px 16px 12px;border-top:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--ink-3)}
body.ent .dash-empty{margin:0;padding:16px;font-size:13.5px;color:var(--ink-3)}
body.ent .dash-sub{padding:10px 16px 0;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-2);border-top:1px solid var(--line)}

body.ent .dash-search{display:flex;align-items:center;gap:8px;margin:0;padding:10px 16px;border-bottom:1px solid var(--line);position:relative}
body.ent .mlist + .dash-search{border-top:1px solid var(--line);border-bottom:0}
body.ent .dash-search > i{color:var(--muted-2);font-size:16px;flex:none}
body.ent .dash-search input{flex:1 1 auto;min-width:0;width:auto;height:34px;padding:6px 10px;border:1px solid var(--line-2);border-radius:var(--r);font:inherit;font-size:13.5px;background:#fff}
body.ent .dash-search .btn{flex:none}
body.ent .dash-search-x{color:var(--ink-3);font-size:18px;display:inline-flex}
body.ent .dash-search-x:hover{color:var(--ink)}

body.ent .score-pill{display:inline-block;min-width:34px;padding:2px 8px;border-radius:999px;background:var(--sky-soft);color:var(--blue);font-weight:650;font-size:12.5px;text-align:center;font-variant-numeric:tabular-nums}
body.ent .dtable th.num, body.ent .dtable td.num{text-align:right;white-space:nowrap}

/* Horizontal bar chart (users by role). Long role names get the left column. */
body.ent .hbars{list-style:none;margin:0;padding:8px 16px 10px;display:grid;gap:9px}
body.ent .hbars li{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(60px,1fr) auto;align-items:center;gap:10px;font-size:13px;color:var(--ink-2)}
body.ent .hbar-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ent .hbar-track{height:10px;border-radius:999px;background:var(--bg-2);overflow:hidden}
body.ent .hbar-fill{display:block;height:100%;border-radius:999px;background:var(--blue)}
body.ent .hbars li.is-portal .hbar-fill{background:var(--teal)}
body.ent .hbar-val{display:inline-flex;align-items:baseline;gap:6px;min-width:64px;justify-content:flex-end;font-variant-numeric:tabular-nums}
body.ent .hbar-val b{font-size:14px;font-weight:650;color:var(--ink)}
body.ent .hbar-val small{font-size:11.5px;color:var(--ink-3);min-width:34px;text-align:right}
body.ent .key{display:inline-block;width:9px;height:9px;border-radius:3px;vertical-align:-1px;margin-right:3px}
body.ent .key-staff{background:var(--blue)}
body.ent .key-portal{background:var(--teal)}

body.ent .conv-bar{display:block;width:72px;height:5px;margin:5px 0 0 auto;border-radius:999px;background:var(--bg-2);overflow:hidden}
body.ent .conv-bar span{display:block;height:100%;background:var(--green);border-radius:999px}
body.ent .conv-table tr.conv-total td{background:var(--bg)}

body.ent .gc-hit{margin:0 16px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg)}
body.ent .gc-hit code{font-size:13.5px;font-weight:650;letter-spacing:.04em;color:var(--ink)}
body.ent .gc-hit dl{display:grid;grid-template-columns:auto 1fr;gap:5px 14px;margin:10px 0 0;font-size:13px}
body.ent .gc-hit dt{color:var(--ink-3)}
body.ent .gc-hit dd{margin:0;color:var(--ink);font-weight:500;text-align:right;min-width:0;overflow-wrap:anywhere}
@media (max-width:480px){
  body.ent .hbars li{grid-template-columns:minmax(0,1fr) 70px auto}
}

/* ============================================================================
   CALENDAR HUB · tabs, shared filters, month / week / agenda, centred popup
   (the popup is a bottom sheet on phones; the month grid gains an agenda there)
   ============================================================================ */
body.ent .cal-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin:0 0 14px;scrollbar-width:none}
body.ent .cal-tabs::-webkit-scrollbar{display:none}
body.ent .cal-tabs a{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;font-size:13.5px;font-weight:600;color:var(--ink-3);border-bottom:2px solid transparent;white-space:nowrap;text-decoration:none;margin-bottom:-1px}
body.ent .cal-tabs a:hover{color:var(--ink)}
body.ent .cal-tabs a.on{color:var(--blue,#2563eb);border-bottom-color:var(--blue,#2563eb)}
body.ent .cal-filters{margin:0 0 14px;padding:0}
body.ent .cal-filters>summary{display:flex;align-items:center;gap:8px;padding:11px 16px;cursor:pointer;font-weight:600;font-size:13.5px;list-style:none}
body.ent .cal-filters>summary::-webkit-details-marker{display:none}
body.ent .cal-fcount{background:var(--blue,#2563eb);color:#fff;border-radius:999px;font-size:11px;padding:1px 7px;line-height:1.5}
body.ent .cal-fclear{margin-left:auto;font-size:12.5px;font-weight:500}
body.ent .cal-fform{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;padding:0 16px 14px;align-items:end}
body.ent .cal-fform label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--ink-3);min-width:0;margin:0}
body.ent .cal-fform select{width:100%;min-width:0}
body.ent .cal-fbtns{display:flex;gap:8px}
body.ent .cal-stats{margin-bottom:14px}
body.ent .mc-views{flex-wrap:wrap}
body.ent .mc-views a{display:inline-flex;align-items:center;gap:5px}
body.ent .mc-legend{margin:-4px 0 12px}
body.ent .mc-pill.done,body.ent .mc-ev.done{opacity:.6;text-decoration:line-through}
body.ent .mc-ev.late{box-shadow:inset 3px 0 0 #ef4444}

body.ent .mc-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden}
body.ent .mc-wday{border-right:1px solid var(--line);min-height:260px;display:flex;flex-direction:column;min-width:0;background:#fff}
body.ent .mc-wday:last-child{border-right:0}
body.ent .mc-whead{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:8px;border-bottom:1px solid var(--line);background:var(--bg-2);cursor:pointer}
body.ent .mc-whead:focus-visible{outline:2px solid var(--blue,#2563eb);outline-offset:-2px}
body.ent .mc-wdow{font-size:11.5px;font-weight:700;text-transform:uppercase;color:var(--ink-3)}
body.ent .mc-wday.today .mc-num{background:var(--blue,#2563eb);color:#fff}
body.ent .mc-witems{display:flex;flex-direction:column;gap:5px;padding:6px;min-width:0}
body.ent .mc-wnone{color:#c0c4cc;font-size:12px;padding:2px 4px}
body.ent .mc-ev{border:0;margin:0;font:inherit;text-align:left;-webkit-appearance:none;appearance:none;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;padding:6px 8px;border-radius:7px;cursor:pointer;min-width:0;font-size:12.5px;line-height:1.35}
body.ent .mc-ev:hover{filter:brightness(.97)}
body.ent .mc-ev:focus-visible{outline:2px solid var(--blue,#2563eb);outline-offset:1px}
body.ent .mc-ev-title{font-weight:600;overflow-wrap:anywhere}
body.ent .mc-ev-time,body.ent .mc-ev-sub{font-size:11.5px;opacity:.85;overflow-wrap:anywhere}

body.ent .mc-agenda{display:flex;flex-direction:column}
body.ent .mc-aday{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line)}
body.ent .mc-aday:first-child{border-top:0}
body.ent .mc-ahead{all:unset;box-sizing:border-box;display:flex;align-items:flex-start;gap:10px;cursor:pointer;align-self:start}
body.ent .mc-ahead:focus-visible{outline:2px solid var(--blue,#2563eb);outline-offset:2px;border-radius:8px}
body.ent .mc-anum{font-size:18px;font-weight:700;line-height:1;width:38px;height:38px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--bg-2);color:var(--ink)}
body.ent .mc-aday.today .mc-anum{background:var(--blue,#2563eb);color:#fff}
body.ent .mc-adow{display:flex;flex-direction:column;font-weight:600;font-size:13px}
body.ent .mc-adow small{color:var(--ink-3);font-weight:500}
body.ent .mc-acount{display:none}
body.ent .mc-aitems{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px;min-width:0}
body.ent .mc-agenda-empty{text-align:center;color:var(--ink-3);padding:30px 10px}
body.ent .mc-agenda-empty i{font-size:28px;display:block;margin-bottom:6px}
body.ent .mc-agenda-m{display:none;margin-top:14px}

body.ent dialog.mc-dialog{position:fixed;inset:0;margin:auto;height:fit-content;max-height:min(86vh,760px);width:min(560px,calc(100vw - 32px));max-width:none;padding:0;flex-direction:column;overflow:hidden}
body.ent dialog.mc-dialog[open]{display:flex}
body.ent .mc-dialog-head{flex:none;align-items:flex-start;gap:10px}
body.ent .mc-dialog-head small{color:var(--ink-3);font-size:12.5px;display:block;margin-top:2px}
body.ent .mc-dialog .mc-list{flex:1 1 auto;max-height:none;overflow:auto;min-height:0}
body.ent .mc-dialog-foot{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--line);padding-bottom:max(12px,env(safe-area-inset-bottom))}
body.ent .mc-item{border:1px solid var(--line);border-radius:10px;margin:6px 0;overflow:hidden}
body.ent .mc-item-head{all:unset;box-sizing:border-box;width:100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:10px 12px;cursor:pointer}
body.ent .mc-item-head:hover{background:#f8fbff}
body.ent .mc-item-head:focus-visible{outline:2px solid var(--blue,#2563eb);outline-offset:-2px}
body.ent .mc-item-head b{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}
body.ent .mc-item-head .mc-time{color:var(--ink-2);font-weight:600}
body.ent .mc-item-head .mc-sub{flex-basis:100%;color:var(--ink-3);order:3}
body.ent .mc-caret{margin-left:auto;color:var(--ink-3);transition:transform .15s}
body.ent .mc-item.open .mc-caret{transform:rotate(180deg)}
body.ent .mc-item-body{display:none;padding:0 12px 12px}
body.ent .mc-item.open .mc-item-body{display:block}
body.ent .mc-item.done b{text-decoration:line-through;opacity:.7}
body.ent .mc-item.late{border-color:#fecaca}
body.ent .mc-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:0 0 10px;font-size:13px}
body.ent .mc-dl dt{color:var(--ink-3)}
body.ent .mc-dl dd{margin:0;overflow-wrap:anywhere}
body.ent .mc-acts{display:flex;flex-wrap:wrap;gap:6px}
body.ent .mc-acts form{margin:0;display:inline-flex}
body.ent .mc-danger{color:var(--red,#dc2626)!important}
body.ent dialog.ev-dialog{width:min(640px,calc(100vw - 32px))}
body.ent dialog.ev-dialog>form{display:flex;flex-direction:column;min-height:0;max-height:inherit;margin:0;width:100%}
body.ent .ev-body{padding:14px 16px 4px;overflow:auto;flex:1 1 auto;min-height:0}
body.ent .ev-set{border:1px solid var(--line);border-radius:10px;padding:10px 12px 2px;margin:0 0 14px;min-width:0}
body.ent .ev-set legend{font-size:12.5px;font-weight:700;padding:0 6px;color:var(--ink-2)}

@media (max-width:900px){
  body.ent .mc-week{grid-template-columns:minmax(0,1fr)}
  body.ent .mc-wday{border-right:0;border-bottom:1px solid var(--line);min-height:0;flex-direction:row}
  body.ent .mc-wday:last-child{border-bottom:0}
  body.ent .mc-whead{flex-direction:column;width:64px;flex:none;border-bottom:0;border-right:1px solid var(--line);justify-content:center}
  body.ent .mc-witems{flex:1}
}
@media (max-width:760px){
  body.ent .mc-v-month .mc-agenda-m{display:flex}
  body.ent .mc-aday{grid-template-columns:minmax(0,1fr);gap:6px}
  body.ent .mc-aitems{grid-template-columns:minmax(0,1fr)}
  body.ent .mc-views{width:100%;display:flex}
  body.ent .mc-views a{flex:1;justify-content:center}
}
@media (max-width:640px){
  body.ent dialog.mc-dialog{inset:auto 0 0 0;margin:0;width:100%;max-height:88vh;border-radius:16px 16px 0 0}
  body.ent dialog.mc-dialog[open]{animation:mcSheet .2s ease-out}
  body.ent .cal-fform{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@keyframes mcSheet{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){ body.ent dialog.mc-dialog[open]{animation:none} }

/* ── Support desk (tickets: queue, ticket, setup, analytics, portal) ── */
body.ent a.stat-box{color:inherit;text-decoration:none}
body.ent a.stat-box:hover{border-color:var(--blue)}
body.ent .tk-views{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px}
body.ent .tk-views a{padding:6px 11px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--ink-2);text-decoration:none;white-space:nowrap}
body.ent .tk-views a.on{background:var(--blue);border-color:var(--blue);color:#fff}
body.ent .tk-count{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--bg-2);color:var(--ink-2);font-size:11px;font-weight:700;text-align:center}
body.ent .tk-views a.on .tk-count{background:rgba(255,255,255,.25);color:#fff}
body.ent .tk-filters{margin-bottom:12px}
body.ent .tk-search{display:flex;gap:8px;align-items:center;border:1px solid var(--line-2);border-radius:10px;padding:4px 4px 4px 12px;background:#fff}
body.ent .tk-search i{color:var(--muted)}
body.ent .tk-search input{flex:1;min-width:0;border:0;outline:0;font:inherit;padding:6px 0;background:transparent;box-shadow:none}
body.ent .tk-more{margin-top:8px}
body.ent .tk-more summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2);display:inline-flex;gap:6px;align-items:center}
body.ent .tk-more .rep-filters{margin-top:10px}
body.ent .tk-scope{font-size:13px;margin:0 0 10px;color:var(--ink-2)}
body.ent .tk-table td{vertical-align:top}
body.ent .tk-subj{min-width:240px;max-width:460px}
body.ent .tk-subj small{display:block;font-size:12px;margin-top:2px}
body.ent .tk-subj .tk-last{color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}
body.ent .tk-table tr.tk-over td:first-child{box-shadow:inset 3px 0 0 var(--red,#d92d20)}
body.ent .tk-bad{color:var(--red,#d92d20)!important;font-weight:600}
body.ent .tk-wait{white-space:nowrap}
body.ent .tk-table td.muted{white-space:nowrap}
body.ent .tk-table .tk-st{white-space:normal}
body.ent .tk-wait small{display:block;font-size:12px}
body.ent .tk-st{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--bg-2);color:var(--ink-2)}
body.ent .tk-st-open{background:#eff8ff;color:#175cd3}
body.ent .tk-st-pending_staff{background:#fef6ee;color:#b93815}
body.ent .tk-st-pending_customer{background:#fffaeb;color:#b54708}
body.ent .tk-st-resolved{background:#ecfdf3;color:#067647}
body.ent .tk-st-closed{background:var(--bg-2);color:var(--muted)}
body.ent .tk-bulk-grp{display:inline-flex;gap:4px;align-items:center}
body.ent .tk-bulk select{height:30px;font-size:13px}

body.ent .tk-top{margin-bottom:12px;gap:8px;flex-wrap:wrap}
body.ent .tk-back{font-size:13px;display:inline-flex;align-items:center;gap:2px}
body.ent .tk-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
body.ent .tk-main .card,body.ent .tk-side .card{margin-top:0;margin-bottom:12px}
body.ent .tk-head h2{font-size:18px;margin:8px 0 2px}
body.ent .tk-head .sub{margin:0}
body.ent .tk-chips{display:flex;gap:6px;flex-wrap:wrap}
body.ent .tk-presence{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
body.ent .tk-presence[hidden],body.ent .tk-newmsg[hidden]{display:none}
body.ent .tk-pp{display:inline-flex;gap:5px;align-items:center;padding:3px 10px;border-radius:999px;background:#eff8ff;color:#175cd3;font-size:12.5px;font-weight:600}
body.ent .tk-pp.typing{background:#fffaeb;color:#b54708}
body.ent .tk-newmsg{margin-top:10px;padding:8px 12px;border-radius:8px;background:#fffaeb;color:#b54708;font-size:13px}
body.ent .tk-conv{display:flex;flex-direction:column;gap:12px;max-height:68vh;overflow-y:auto}
body.ent .tk-msg{display:flex;gap:10px;align-items:flex-start;max-width:92%}
body.ent .tk-msg.from-staff{margin-left:auto;flex-direction:row-reverse}
body.ent .tk-av{width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;font-size:13px;background:var(--bg-2);color:var(--ink-2)}
body.ent .tk-msg.from-staff .tk-av{background:var(--sky-soft,#eff6ff);color:var(--blue)}
body.ent .tk-bub{border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:#fff;min-width:0}
body.ent .tk-msg.from-staff .tk-bub{background:var(--sky-soft,#eff6ff);border-color:transparent}
body.ent .tk-msg.internal .tk-bub{background:#fffaeb;border:1px dashed #fec84b}
body.ent .tk-bub header{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;font-size:12.5px;margin-bottom:4px}
body.ent .tk-bub header small{color:var(--muted)}
body.ent .tk-bub header time{margin-left:auto;color:var(--muted);font-size:12px}
body.ent .tk-body{font-size:14px;line-height:1.55;overflow-wrap:anywhere}
body.ent .tk-mention{background:#eff8ff;color:#175cd3;border-radius:4px;padding:0 3px;font-weight:600}
body.ent .tk-note-tag{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#b54708}
body.ent .tk-att{display:inline-flex;gap:4px;align-items:center;margin-top:6px;font-size:13px}
body.ent .tk-compose textarea{width:100%;padding:11px 13px;border:1px solid var(--line-2);border-radius:8px;font:inherit;resize:vertical}
body.ent .tk-compose.is-note textarea{background:#fffcf2;border-color:#fec84b}
body.ent .tk-tabs{display:flex;gap:2px;margin-bottom:10px;border-bottom:1px solid var(--line)}
body.ent .tk-tabs button{border:0;background:none;padding:8px 12px;font:inherit;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;display:inline-flex;gap:6px;align-items:center}
body.ent .tk-tabs button.on{color:var(--ink);border-bottom-color:var(--blue)}
body.ent .tk-saved{display:flex;gap:8px;align-items:center;margin-bottom:8px}
body.ent .tk-saved select{flex:1;min-width:0;max-width:360px}
body.ent .tk-handle{border:1px solid var(--line);background:#fff;border-radius:999px;padding:1px 8px;font-size:12px;cursor:pointer;margin:2px 2px 0 0;color:#175cd3}
body.ent .tk-compose-foot{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
body.ent .tk-compose-foot .btn{margin-left:auto}
body.ent .tk-file{display:inline-flex;gap:4px;align-items:center;font-size:13px;color:var(--ink-2);max-width:100%}
body.ent .tk-file input{font-size:12.5px;max-width:220px}
body.ent .tk-side h3{font-size:14px;margin:0 0 10px}
body.ent .tk-cust{margin:0 0 8px}
body.ent .tk-cust small{display:block;color:var(--ink-2);font-size:12.5px;margin-top:3px;overflow-wrap:anywhere}
body.ent .tk-links{display:flex;gap:12px;flex-wrap:wrap;font-size:13px}
body.ent .tk-props label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:8px}
body.ent .tk-props select{margin-top:3px;font-size:13.5px}
body.ent .tk-rel{display:flex;gap:8px;align-items:center;padding:8px 10px;border-radius:8px;background:var(--sky-soft,#eff6ff);color:inherit;text-decoration:none;margin-bottom:6px}
body.ent .tk-rel > span:first-of-type{flex:1;min-width:0}
body.ent .tk-rel small{display:block;color:var(--muted);font-size:12px}
body.ent .tk-time{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13px}
body.ent .tk-time small{display:block;color:var(--muted);font-size:12px}
body.ent .tk-time form{margin:0}
body.ent .tk-time-form{display:grid;grid-template-columns:60px 70px 1fr;gap:6px;margin-top:10px}
body.ent .tk-time-form input{min-width:0}
body.ent .tk-time-form input[name=note]{grid-column:1/-1}
body.ent .tk-time-form .btn{grid-column:1/-1;justify-self:start}
body.ent .tk-watchers{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
body.ent .tk-wchip{padding:2px 9px;border-radius:999px;background:var(--bg-2);font-size:12.5px}
body.ent .tk-wchip small{color:var(--muted)}
body.ent .tk-activity summary{cursor:pointer}
body.ent .tk-activity ul{list-style:none;margin:10px 0 0;padding:0}
body.ent .tk-activity li{padding:6px 0;border-bottom:1px solid var(--line);font-size:13px}
body.ent .tk-activity li small{display:block;color:var(--muted);font-size:12px}
@media (max-width:1100px){ body.ent .tk-layout{grid-template-columns:1fr} body.ent .tk-msg{max-width:100%} }

body.ent .tk-new{max-width:1000px}
body.ent .tk-new .card{margin-top:0;margin-bottom:12px}
body.ent .tk-new h3,body.ent .tk-setup h3{font-size:15px;margin:0 0 10px}
body.ent .tk-setup{max-width:1180px;margin-top:0;margin-bottom:12px}
body.ent .tk-setup h3:not(:first-child){margin-top:18px}
body.ent .tk-sla{display:grid;grid-template-columns:repeat(4,minmax(0,160px));gap:10px}
body.ent .tk-sla label{font-size:12px;font-weight:600;color:var(--muted)}
body.ent .tk-sla label span{display:flex;gap:6px;align-items:center;color:var(--ink-2);font-weight:500}
body.ent .tk-sla input{width:100%}
body.ent .tk-inline{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:13.5px}
body.ent .tk-cfg input:not([type=checkbox]),body.ent .tk-cfg select{min-width:110px}
body.ent .tk-cfg .row-actions{display:inline-flex;gap:4px;align-items:center}
body.ent .tk-cfg .row-actions form{margin:0}
body.ent .tk-addrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line-3)}
body.ent .tk-addrow input[name=name],body.ent .tk-addrow input[name=keywords]{flex:1;min-width:180px}
body.ent .tk-addrow label{display:inline-flex;gap:6px;align-items:center;font-size:13px}
body.ent .tk-sr{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:8px}
body.ent .tk-sr summary{cursor:pointer;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.ent .tk-sr form{margin-top:10px}
body.ent .tk-sr-body{margin-top:8px;font-size:13.5px;color:var(--ink-2)}
body.ent .tk-reply-form textarea{width:100%}
@media (max-width:640px){ body.ent .tk-sla{grid-template-columns:1fr 1fr} }

body.ent .tk-legend{display:inline-flex;gap:6px;align-items:center;font-size:12.5px;color:var(--muted)}
body.ent .tk-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-left:6px}
body.ent .tk-legend i.c,body.ent .tk-bar .c{background:var(--blue,#2563eb)}
body.ent .tk-legend i.r,body.ent .tk-bar .r{background:#12b76a}
body.ent .tk-bars{display:grid;grid-template-columns:repeat(var(--n),minmax(2px,1fr));gap:2px;height:160px;align-items:end;margin-top:8px;border-bottom:1px solid var(--line)}
body.ent .tk-bar{display:flex;gap:1px;align-items:flex-end;height:100%}
body.ent .tk-bar span{flex:1;min-height:0;border-radius:2px 2px 0 0}
body.ent .tk-bars-axis{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);margin-top:4px}
body.ent .tk-breakdowns{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-bottom:12px}
body.ent .tk-breakdowns .card{margin:0}
body.ent .tk-breakdowns h3{font-size:14px;margin:0 0 10px}
body.ent .tk-hbar{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 36px;gap:8px;align-items:center;font-size:13px;padding:3px 0}
body.ent .tk-hbar .k{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ent .tk-hbar .t{height:8px;background:var(--bg-2);border-radius:4px;overflow:hidden}
body.ent .tk-hbar .t i{display:block;height:100%;background:var(--blue,#2563eb);border-radius:4px}
body.ent .tk-hbar b{text-align:right}
body.ent .tk-heat{display:grid;grid-template-columns:38px repeat(24,minmax(14px,1fr));gap:3px;min-width:560px;margin-top:8px}
body.ent .tk-heat .hh{font-size:10.5px;color:var(--muted);text-align:center}
body.ent .tk-heat .dd{font-size:12px;color:var(--ink-2);align-self:center}
body.ent .tk-heat .cell{aspect-ratio:1;border-radius:3px;background:var(--bg-2)}
body.ent .tk-heat .cell.l1{background:#d1e9ff}
body.ent .tk-heat .cell.l2{background:#84caff}
body.ent .tk-heat .cell.l3{background:#2e90fa}
body.ent .tk-heat .cell.l4{background:#175cd3}

body.ent .tk-ptools{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
body.ent .tk-psearch{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
body.ent .tk-psearch input[type=search]{min-width:180px}
body.ent .tk-plist li.tk-need{background:#fffcf2}
body.ent .tk-pmsgs{max-height:480px;overflow-y:auto;margin-bottom:14px}
body.ent .dash-masonry :is(.due-pill,.badge,.score-pill){white-space:nowrap}

/* ---- catalogue: package editor (empty state, bundled services, picker) ---- */
body.ent .pk-items-empty[hidden]{display:none}
body.ent .pk-bundle{background:linear-gradient(90deg,rgba(21,112,239,.05),transparent 60%)}
body.ent .pk-bundle-txt{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13.5px}
body.ent .pk-bundle-txt small{flex:1 1 100%;color:var(--ink-3);font-size:12px;line-height:1.45}
body.ent .pk-items-foot{display:flex;gap:8px;flex-wrap:wrap}
body.ent .pk-picker{margin:0 16px 16px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
body.ent .pk-picker>p{margin:0 0 10px;font-size:13px}
body.ent .pk-picker-row{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}
body.ent .pk-picker-items ul{list-style:none;margin:4px 0 10px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px;font-size:13px}
body.ent .pk-picker-items li i{color:#12b76a}
body.ent .pk-pick-warn{color:#b54708;font-size:13px;margin:4px 0 10px}
body.ent .pk-picker-foot{display:flex;gap:8px}
body.ent .pk-picker-note{margin:10px 0 0;font-size:12px}
@media (max-width:640px){ body.ent .pk-picker-row{grid-template-columns:1fr} }

/* ---- catalogue: publishing strip, services list, carousel order ---- */
body.ent .pub-strip{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin:-4px 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
body.ent .pub-strip.pub-pending_approval{border-color:#fedf89;background:#fffaeb}
body.ent .pub-strip.pub-draft,body.ent .pub-strip.pub-unpublished{border-style:dashed}
body.ent .pub-why{flex:1;min-width:220px;font-size:13px;color:var(--ink-2);line-height:1.5}
body.ent .pub-acts{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-start}
body.ent form.inline{display:inline}
body.ent .pub-reject{position:relative;display:inline-block}
body.ent .pub-reject>summary{list-style:none;cursor:pointer}
body.ent .pub-reject>summary::-webkit-details-marker{display:none}
body.ent .pub-reject[open]>form{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:280px;padding:12px;background:var(--surface,#fff);
  border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px -12px rgba(16,24,40,.3);display:flex;flex-direction:column;gap:8px;font-size:13px}
body.ent .svc-status-tabs{margin-bottom:12px;flex-wrap:wrap}
body.ent .seg-n{display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--line);font-size:11px;font-weight:600;text-align:center;color:var(--ink-2)}
body.ent .svc-list .svc-name{font-weight:600;color:var(--ink);text-decoration:none}
body.ent .svc-list .svc-name:hover{text-decoration:underline}
body.ent .svc-list small{display:block;font-size:12px}
body.ent .svc-list .svc-note{color:#b42318}
body.ent .svc-row-pending td{background:#fffaeb}
body.ent .svc-acts{display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
body.ent .d-block{display:block}
body.ent .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* A switch that is a real button (posts on click), drawn like the .tgl checkbox. */
body.ent .tgl-btn{position:relative;display:inline-block;width:38px;height:22px;border:0;border-radius:999px;padding:0;cursor:pointer;background:#d0d5dd;transition:background-color .15s;vertical-align:middle}
body.ent .tgl-btn span{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.25);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
body.ent .tgl-btn.on{background:#12b76a}
body.ent .tgl-btn.on span{transform:translateX(16px)}
body.ent .tgl-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(16,24,40,.18)}
body.ent .car-list{list-style:none;counter-reset:car;margin:0;padding:0 16px 8px}
body.ent .car-list li{counter-increment:car;display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13.5px}
body.ent .car-list li::before{content:counter(car);flex:none;width:24px;height:24px;border-radius:50%;background:var(--bg);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--ink-2)}
body.ent .car-name{flex:1;min-width:0}
body.ent .car-move{display:flex;gap:2px}
body.ent .car-foot{padding:10px 16px 16px}

/* ---- catalogue: slab calculator on a fee row ---- */
body.ent .fg-amt{display:flex;flex-direction:column;gap:6px;min-width:150px}
body.ent .fg-calc-tr>td{background:var(--bg);padding:12px}
body.ent .fg-calc{display:flex;flex-direction:column;gap:10px}
body.ent .fg-calc-top{display:flex;flex-wrap:wrap;gap:10px}
body.ent .fg-calc-top label,body.ent .fg-test label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--ink-2);min-width:150px}
body.ent .fg-calc-top label.wide{flex:1;min-width:240px}
body.ent .fg-slabs{min-width:620px}
body.ent .fg-slabs td{padding:4px 6px}
body.ent .fg-slabs input,body.ent .fg-slabs select{width:100%;min-width:90px}
body.ent .fg-calc-warn{margin:0;font-size:12.5px;color:#b54708}
body.ent .fg-test{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding-top:10px;border-top:1px dashed var(--line)}
body.ent .fg-test-out{flex:1 1 100%;font-size:13px}
body.ent .fg-test-err{color:#b42318}
body.ent .fg-test-table{width:100%;max-width:620px;border-collapse:collapse}
body.ent .fg-test-table td{padding:4px 6px;border-bottom:1px solid var(--line)}
body.ent .fg-test-table td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
body.ent .fg-test-table tfoot td{font-weight:700;border-bottom:0}

/* ---- catalogue: government fees overview ---- */
body.ent .gfo-table td small{display:block;color:var(--ink-3);font-size:12px}
body.ent .tk-ptools .seg-tabs{max-width:100%;overflow-x:auto;scrollbar-width:none}
@media (max-width:640px){ body.ent .tk-psearch{width:100%} body.ent .tk-psearch input[type=search]{flex:1;min-width:0} body.ent .tk-views{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none} }

/* ── Money at checkout: coins, checkout fields editor, portal wallet ─────── */
body.ent .coin-bal{display:flex;flex-wrap:wrap;gap:8px}
body.ent .coin-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg-2,#f8fafc);font-size:12.5px;line-height:1.3}
body.ent .coin-pill b{font-size:17px;color:#92400e;font-variant-numeric:tabular-nums}
body.ent .coin-pill.neg b{color:#b91c1c}
body.ent .coin-pill small{color:var(--muted)}
body.ent .coin-adjust{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
body.ent .coin-adjust .coin-row{display:grid;grid-template-columns:1.2fr 1.3fr 90px;gap:8px}
body.ent .coin-adjust select,body.ent .coin-adjust input{min-width:0;width:100%}
body.ent .coin-adjust .btn{align-self:flex-start}
body.ent .coin-search{padding:12px 14px;border-bottom:1px solid var(--line)}
body.ent .coin-search input{width:100%;max-width:360px}
body.ent .coin-stats{margin-bottom:14px}
body.ent .coin-alloc-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px 12px;align-items:start}
body.ent .coin-alloc-form .form-group{margin:0}
body.ent .coin-pack{padding:12px 0;border-top:1px solid var(--line)}
body.ent .coin-pack:first-of-type{border-top:0}
body.ent .coin-pack-rows{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
body.ent .coin-pack-row input{max-width:160px}
body.ent .coin-edit{display:inline-block;text-align:left}
body.ent .coin-edit[open]{display:block;margin:6px 0}
body.ent .coin-edit-form{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
body.ent .coin-edit-form input{flex:1 1 120px;min-width:0}
body.ent .cf-sec{padding-bottom:10px}
body.ent .cf-list{list-style:none;margin:0;padding:0;min-height:38px}
body.ent .cf-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:var(--surface,#fff)}
body.ent .cf-item.off{opacity:.62}
body.ent .cf-item.dragging{opacity:.4;outline:2px dashed var(--blue,#2563eb)}
body.ent .cf-grip{cursor:grab;color:var(--muted);font-size:18px}
body.ent .cf-main{flex:1;min-width:0}
body.ent .cf-main small{display:block;margin-top:2px;overflow-wrap:anywhere}
body.ent .cf-acts{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
body.ent .cf-acts form{margin:0}
body.ent .cf-empty{padding:10px;font-size:13px;border:1px dashed var(--line);border-radius:10px}
body.ent .cf-form select[multiple]{height:auto;width:100%}
body.ent .wl-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
body.ent .wl-top .stat-box small{display:block;margin-top:4px;font-size:12px}
body.ent .wl-how ul{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.6}
body.ent .wl-how li{margin-bottom:4px}
@media (max-width:760px){
  body.ent .wl-top{grid-template-columns:1fr}
  body.ent .coin-adjust .coin-row{grid-template-columns:1fr 1fr}
  body.ent .coin-adjust .coin-row input{grid-column:1/-1}
  body.ent .cf-item{flex-wrap:wrap}
  body.ent .cf-acts{width:100%;justify-content:flex-start}
}
body.ent .gf-h{font-size:15px;margin:0 0 10px}
/* ---- catalogue: bundle work orders on an order page ---- */
body.ent .bundle-card{margin-bottom:16px}
body.ent .bundle-kids{list-style:none;margin:10px 0 0;padding:0}
body.ent .bundle-kids li{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:4px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
body.ent .bundle-kids li small{grid-column:1;font-size:12px}
body.ent .bundle-kids li a{grid-column:1;color:var(--ink);text-decoration:none}
body.ent .bundle-kids li a:hover{text-decoration:underline}
body.ent .bundle-prog{grid-column:2;grid-row:1/span 2;height:6px;border-radius:999px;background:var(--line);overflow:hidden}
body.ent .bundle-prog i{display:block;height:100%;background:#12b76a}
body.ent .bundle-kids li>.chip,body.ent .bundle-kids li>span:last-child{grid-column:3;grid-row:1/span 2}
@media (max-width:560px){ body.ent .bundle-kids li{grid-template-columns:minmax(0,1fr) auto} body.ent .bundle-prog{grid-column:1/-1;grid-row:auto} }
/* ---- catalogue: questions inbox, filing an answer as an FAQ ---- */
body.ent .q-faq{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:end;margin-top:8px}
body.ent .q-faq .form-group{margin:0}
body.ent .q-faq-q{grid-column:1/-1}
body.ent .q-faq-tick{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:500;padding-bottom:8px}
body.ent .q-later>summary{list-style:none;cursor:pointer;display:inline-flex}
body.ent .q-later>summary::-webkit-details-marker{display:none}
body.ent .q-later[open]>form{margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
@media (max-width:640px){ body.ent .q-faq{grid-template-columns:1fr} }

/* ═══ Consultations: day / week / month calendar + insights (admin) ═══ */
body.ent .bkc-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
body.ent .bkc-nav h2{font-size:16px;margin:0 6px}
body.ent .bkc-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
body.ent .bkc-col{background:var(--bg);border:1px solid var(--line);border-radius:10px;min-height:160px;padding:8px;display:flex;flex-direction:column;gap:6px}
body.ent .bkc-col.today{border-color:var(--blue);box-shadow:0 0 0 2px var(--sky-soft)}
body.ent .bkc-col.off{background:repeating-linear-gradient(135deg,var(--bg),var(--bg) 6px,var(--bg-2) 6px,var(--bg-2) 12px)}
body.ent .bkc-dh{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:var(--ink-3);text-transform:uppercase;letter-spacing:.04em}
body.ent .bkc-dh a{font-size:15px;font-weight:800;color:var(--ink);text-transform:none;letter-spacing:0}
body.ent .bkc-ev{display:block;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.35;background:#fff;border:1px solid var(--line);border-left:3px solid var(--blue);color:var(--ink);overflow:hidden}
body.ent .bkc-ev b{display:block;font-size:12px}
body.ent .bkc-ev small{color:var(--ink-3)}
body.ent .bkc-ev.requested{border-left-color:#f79009}
body.ent .bkc-ev.completed{border-left-color:#12b76a}
body.ent .bkc-ev.no_show{border-left-color:#f04438}
body.ent .bkc-ev.cancelled{border-left-color:#98a2b3;opacity:.6;text-decoration:line-through}
body.ent .bkc-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
body.ent .bkc-month .dow{font-size:11.5px;font-weight:700;color:var(--ink-3);text-transform:uppercase;padding:6px 8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg)}
body.ent .bkc-cell{min-height:104px;padding:6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:4px;min-width:0}
body.ent .bkc-cell.out{background:var(--bg)}
body.ent .bkc-cell.out .bkc-num{color:var(--ink-3)}
body.ent .bkc-cell.today .bkc-num{background:var(--blue);color:#fff;border-radius:999px;padding:0 7px}
body.ent .bkc-num{font-size:12.5px;font-weight:700;color:var(--ink);align-self:flex-start}
body.ent .bkc-cell .bkc-ev{padding:3px 6px;font-size:11.5px;white-space:nowrap;text-overflow:ellipsis}
body.ent .bkc-more{font-size:11.5px;color:var(--blue);font-weight:600}
body.ent .bkc-day{display:grid;gap:8px}
body.ent .bkc-day .bkc-ev{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;font-size:13px}
body.ent .bkc-day .bkc-ev b{font-size:13.5px}
body.ent .bkc-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--ink-3);margin-top:10px}
body.ent .bkc-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:-1px}
@media (max-width:1180px){
  body.ent .bkc-week{grid-template-columns:minmax(0,1fr)}
  body.ent .bkc-col{min-height:0}
  body.ent .bkc-col .bkc-ev{display:grid;grid-template-columns:minmax(0,1fr);}
}
@media (max-width:900px){
  body.ent .bkc-month{grid-template-columns:repeat(7,minmax(0,1fr))}
  body.ent .bkc-cell{min-height:64px;padding:4px}
  body.ent .bkc-cell .bkc-ev{display:none}
  body.ent .bkc-cell.has::after{content:attr(data-n);font-size:11px;font-weight:700;color:#fff;background:var(--blue);border-radius:999px;padding:1px 6px;align-self:flex-start}
  body.ent .bkc-day .bkc-ev{grid-template-columns:minmax(0,1fr)}
}
body.ent .bk-pop{position:relative;display:inline-block}
body.ent .bk-pop > summary{list-style:none;cursor:pointer}
body.ent .bk-pop > summary::-webkit-details-marker{display:none}
body.ent .bk-pop[open] > div{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:300px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px -18px rgba(16,24,40,.28);text-align:left}
body.ent .bk-pop label{display:block;font-size:12px;font-weight:700;color:var(--ink-2);margin:8px 0 4px}
body.ent .bk-pop input,body.ent .bk-pop select,body.ent .bk-pop textarea{width:100%;padding:7px 9px;border:1px solid var(--line-2);border-radius:8px;font:inherit;font-size:13px}
body.ent .bk-answers{font-size:12px;color:var(--ink-3);margin-top:3px}
body.ent .bk-answers b{color:var(--ink-2);font-weight:600}
body.ent .bki-bars{display:flex;align-items:flex-end;gap:6px;height:204px;padding:8px 4px 24px;overflow-x:auto;overflow-y:hidden;background:linear-gradient(var(--line-2),var(--line-2)) left calc(100% - 24px)/100% 1px no-repeat}
body.ent .bki-bar{flex:1 0 26px;max-width:64px;display:flex;flex-direction:column;justify-content:flex-end;height:100%;position:relative}
body.ent .bki-bar span{display:block;width:100%}
body.ent .bki-bar span:first-child{border-radius:4px 4px 0 0}
body.ent .bki-bar .lbl{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:10.5px;color:var(--ink-3);white-space:nowrap}
body.ent .bki-bar .tot{font-size:10.5px;color:var(--ink-2);text-align:center;font-weight:700;margin-bottom:2px}
body.ent .bki-axis{height:4px}
body.ent .bki-key{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-2);margin-top:6px}
body.ent .bki-key i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
body.ent .bki-c-completed{background:#12b76a} body.ent .bki-c-confirmed{background:var(--blue)} body.ent .bki-c-requested{background:#f79009}
body.ent .bki-c-no_show{background:#f04438} body.ent .bki-c-cancelled{background:#98a2b3}
body.ent .bki-hbar{height:8px;border-radius:999px;background:var(--bg-2);overflow:hidden;min-width:80px}
body.ent .bki-hbar span{display:block;height:100%;background:var(--blue);border-radius:999px}
body.ent .fg-amt [hidden],body.ent .fg-slab [hidden],body.ent .fg-calc-tr[hidden],body.ent .pk-picker[hidden],body.ent .q-faq-q[hidden]{display:none}

/* ==== AFFILIATES, MULTI-ROLE & SUB-ACCOUNTS ==================================== */
/* users form: additional roles */
body.ent .uf-roles{border:1px solid var(--line);border-radius:10px;padding:12px 14px 10px;margin:10px 0 0;min-width:0}
body.ent .uf-roles legend{font-weight:600;font-size:13.5px;padding:0 4px}
body.ent .uf-role-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 14px}
body.ent .uf-role-opt{display:flex;gap:8px;align-items:center;font-size:13.5px;padding:5px 0;cursor:pointer}
body.ent .uf-role-opt input{width:16px;height:16px;flex:none}
body.ent .uf-role-opt.is-primary{opacity:.55;cursor:default}
body.ent .uf-role-opt.is-primary span::after{content:" (primary)";color:var(--ink-3);font-size:12px}
/* roles screen: portal roles */
body.ent .perm-role-portal{border-style:dashed}
body.ent .perm-table{width:100%;border-collapse:collapse;font-size:13.5px}
body.ent .perm-table th,body.ent .perm-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
body.ent .perm-table th{font-size:12px;color:var(--ink-2);font-weight:600;background:var(--bg)}
body.ent .perm-table .perm-fixed td{color:var(--ink-2)}
body.ent .perm-yes{color:#12b76a;font-size:18px} body.ent .perm-no{color:var(--ink-3);font-size:18px}
body.ent .perm-chip{display:inline-block;font-size:11.5px;padding:2px 8px;border-radius:999px;background:var(--bg-2);color:var(--ink-2);white-space:nowrap}
/* refer & earn: affiliate dashboard */
body.ent .aff-share{background:linear-gradient(135deg,#f5f8ff,#fff 60%);border-color:#dbe4ff}
body.ent .aff-share-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-end}
body.ent .aff-eyebrow{display:block;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
body.ent .aff-code{font-size:28px;font-weight:800;letter-spacing:.08em;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2;word-break:break-all}
body.ent .aff-terms{margin:0;font-size:13px;color:var(--ink-2);max-width:420px}
body.ent .aff-link-row{display:flex;gap:8px;margin:12px 0 0;flex-wrap:wrap}
body.ent .aff-link-row input{flex:1 1 220px;min-width:0;padding:10px 12px;border:1px solid var(--line-2);border-radius:8px;font:inherit;font-size:13.5px;background:#fff}
body.ent .aff-share-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:flex-start}
body.ent .aff-wa i{color:#25d366}
body.ent .aff-qr > summary{list-style:none} body.ent .aff-qr > summary::-webkit-details-marker{display:none}
body.ent .aff-qr-box{margin-top:8px;padding:10px;background:#fff;border:1px solid var(--line-2);border-radius:10px;width:180px;text-align:center}
body.ent .aff-qr-box small{display:block;color:var(--ink-3);font-size:11.5px;margin-top:4px}
body.ent .aff-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
body.ent .aff-kpi{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;min-width:0}
body.ent .aff-kpi .l{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--ink-2);font-weight:500}
body.ent .aff-kpi b{display:block;font-size:22px;margin:4px 0 2px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.ent .aff-kpi small{color:var(--ink-3);font-size:11.5px}
body.ent .aff-kpi.accent{border-color:#c7d7fe;background:#f5f8ff} body.ent .aff-kpi.accent b{color:var(--blue)}
body.ent .aff-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
body.ent .aff-grid > .card{margin-top:0}
body.ent .aff-states{display:grid;gap:8px;margin-top:8px}
body.ent .aff-states > div{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;font-size:13.5px;padding:6px 0;border-bottom:1px dashed var(--line)}
body.ent .aff-states b{font-variant-numeric:tabular-nums}
body.ent .aff-states .dot{width:10px;height:10px;border-radius:50%}
body.ent .dot.pending{background:#f79009} body.ent .dot.approved{background:var(--blue)} body.ent .dot.requested{background:#7a5af8} body.ent .dot.paid{background:#12b76a}
body.ent .aff-bars{display:flex;align-items:flex-end;gap:8px;height:150px;padding-top:8px}
body.ent .aff-bar{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;min-width:0}
body.ent .aff-bar-col{flex:1;width:100%;max-width:38px;display:flex;align-items:flex-end;gap:3px}
body.ent .aff-bar-col span{flex:1;border-radius:4px 4px 0 0;min-height:2px}
body.ent .aff-bar-col .clk,body.ent .aff-legend i.clk{background:#c7d7fe} body.ent .aff-bar-col .sgn,body.ent .aff-legend i.sgn{background:var(--blue)}
body.ent .aff-bar small{font-size:11px;color:var(--ink-3);margin-top:4px}
body.ent .aff-bar em{font-style:normal;font-size:10.5px;color:#12b76a;font-weight:600;min-height:14px;white-space:nowrap}
body.ent .aff-legend{display:flex;gap:14px;font-size:12px;color:var(--ink-2);margin:8px 0 0}
body.ent .aff-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
body.ent .aff-how ol{margin:6px 0 0;padding-left:20px;display:grid;gap:6px;font-size:13.5px;color:var(--ink-2)}
@media (max-width:860px){ body.ent .aff-kpis{grid-template-columns:repeat(2,minmax(0,1fr))} body.ent .aff-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:420px){ body.ent .aff-code{font-size:23px} body.ent .aff-kpi b{font-size:19px} body.ent .aff-link-row .btn{flex:1 1 100%} }
/* team & sub-accounts */
body.ent .team-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
body.ent .team-kpi{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;color:inherit;text-decoration:none;min-width:0}
body.ent .team-kpi b{display:block;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere} body.ent .team-kpi b small{font-size:13px;color:var(--ink-3);font-weight:500}
body.ent .team-kpi span{font-size:12px;color:var(--ink-2)}
body.ent .team-kpi.warn{border-color:#fedf89;background:#fffaeb}
body.ent .team-awaiting h2{display:flex;gap:6px;align-items:center}
body.ent .team-awaiting-row,body.ent .appr-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line);color:inherit;text-decoration:none;flex-wrap:wrap}
body.ent .team-awaiting-row small,body.ent .appr-main small{display:block;color:var(--ink-3);font-size:12px}
body.ent .team-awaiting-row .amt,body.ent .appr-end{display:flex;gap:8px;align-items:center;font-variant-numeric:tabular-nums;white-space:nowrap}
body.ent .team-help summary{cursor:pointer;font-weight:600;display:flex;gap:6px;align-items:center}
body.ent .team-help ul{margin:8px 0;padding-left:18px;display:grid;gap:4px;font-size:13.5px}
body.ent .team-row.is-off{background:var(--bg);opacity:.85}
body.ent .team-spend{font-size:12px;color:var(--ink-2);background:var(--bg-2);border-radius:999px;padding:2px 9px;white-space:nowrap}
body.ent .team-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px;margin-top:12px;align-items:start}
body.ent .team-profile .form-group{margin-bottom:6px;min-width:0}
body.ent .team-profile select{width:100%}
body.ent .team-check{grid-column:1/-1;display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);cursor:pointer}
body.ent .team-check input{width:16px;height:16px;margin-top:2px;flex:none}
body.ent .team-check small{display:block;color:var(--ink-3);font-size:12px;font-weight:400}
body.ent .team-billing{margin-top:8px;border-top:1px dashed var(--line);padding-top:8px}
body.ent .team-billing summary{cursor:pointer;font-size:13px;font-weight:600}
body.ent .team-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
body.ent .team-actions .team-remove{color:var(--red);margin-left:auto}
body.ent .view-as-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;margin:0 0 14px;border-radius:10px;background:#1e3a5f;color:#fff;font-size:13.5px}
body.ent .view-as-bar form{margin:0}
/* approvals */
body.ent .appr-list .appr-row:first-child{border-top:0}
body.ent .appr-total{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:13.5px}
body.ent .appr-total b{font-size:19px;font-variant-numeric:tabular-nums}
body.ent .appr-buttons{display:flex;gap:8px;flex-wrap:wrap}
body.ent .appr-decide textarea{width:100%}
/* orders: who placed it */
body.ent .placed-by{font-size:12.5px;color:var(--ink-2);margin-top:3px}
body.ent .placed-by i{color:var(--ink-3)}
body.ent .placer-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-4px 0 12px;font-size:13px}
body.ent .placer-filter select{max-width:100%;min-width:0}
/* cart */
body.ent .cart-for{margin:12px 0 4px} body.ent .cart-for select{width:100%} body.ent .cart-for small{display:block;margin-top:4px;font-size:12px}
body.ent .cart-approval{margin-top:12px;font-size:13px} body.ent .cart-approval textarea{display:block;width:100%;margin-top:8px;font:inherit;font-size:13px;padding:8px;border:1px solid var(--line-2);border-radius:8px}
/* admin customers: account-type filter */
body.ent .msg.cust-filters{display:flex;flex-direction:column;gap:8px;align-items:stretch;background:#fff}
body.ent .msg.cust-filters > i{display:none}
body.ent .cust-filter{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:13px}
body.ent .cust-member-search{display:flex;gap:8px;flex-wrap:wrap;margin:0}
body.ent .cust-member-search input{flex:1 1 260px;min-width:0}
@media (max-width:720px){
  body.ent .team-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ent .team-profile{grid-template-columns:minmax(0,1fr)}
  body.ent .team-row summary{align-items:flex-start}
  body.ent .team-tags{width:100%}
  body.ent .team-actions .btn{flex:1 1 calc(50% - 8px)}
  body.ent .team-actions .team-remove{margin-left:0}
}
/* ==== /AFFILIATES, MULTI-ROLE & SUB-ACCOUNTS ==================================== */
/* ==== portal "more sections" grid (phones; the side rail is hidden there) ==== */
body.ent .p-more{display:none}
@media (max-width:900px){
  body.ent .p-more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
  body.ent .p-more a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;padding:10px 6px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink-2);text-decoration:none;font-size:12px;font-weight:500;text-align:center;line-height:1.25}
  body.ent .p-more a i{font-size:21px;color:var(--blue)}
}
@media (max-width:360px){ body.ent .p-more{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* ==== /portal "more sections" grid ==== */
body.ent .bk-filters input,body.ent .bk-filters select{width:auto;min-width:0;flex:0 1 auto;max-width:100%}
body.ent .bk-filters input[type=search]{flex:1 1 200px}
