/*
  fiscal50 Bookkeeper Workspace design system, matching the fiscal50 app.
  Colours are literal hex values on purpose (no custom properties, no double hyphens).
  Brand blue #1E4DB7, nav sky #199BFC, gold #E8BA06, tint #E6F4FF, text #12142D, muted #767E89, lines #ECF0F2.
*/

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-400-normal.a220a32881ae.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-500-normal.aa952242481d.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-600-normal.c64569e0302e.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-700-normal.9508ec8af518.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-800-normal.b8e1dfb5365b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-400-italic.2fd9b6a05eae.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-ext-400-normal.2de1b6603b8a.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-ext-600-normal.d9e578aec5e6.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-ext-700-normal.012ddb63c13d.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #12142D;
  background: #F7F9FC;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #1E4DB7; text-decoration: none; }
a:hover { color: #163A8F; }
h1, h2, h3, h4 { color: #12142D; margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0 0 10px; }
small, .small { font-size: 12.5px; }
hr { border: 0; border-top: 1px solid #ECF0F2; margin: 18px 0; }
img { max-width: 100%; }
code, .mono { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: #767E89; }
.faint { color: #A3A9B3; }
.ink { color: #12142D; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: #CFE6FF; }
:focus-visible { outline: 2px solid #199BFC; outline-offset: 2px; border-radius: 8px; }

/* ==== Masthead: white header + sky-blue navigation bar ==== */
.masthead { position: sticky; top: 0; z-index: 40; }
.topbar {
  display: flex; align-items: center; gap: 18px;
  height: 74px; padding: 0 28px;
  background: #FFFFFF; border-bottom: 1px solid #ECF0F2;
}
.brand { display: flex; align-items: center; gap: 14px; color: #12142D; flex: none; }
.brand:hover { color: #12142D; }
.brand .logo { height: 34px; width: auto; display: block; }
.brand .brand-sub {
  padding-left: 14px; border-left: 1px solid #ECF0F2; line-height: 1.15;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #767E89;
}
.brand .brand-sub b { display: block; font-size: 13px; letter-spacing: 0.01em; text-transform: none; color: #12142D; font-weight: 700; }
.topbar .menu-toggle { display: none; }

.searchbar { position: relative; flex: 1; max-width: 520px; margin-left: 12px; }
.searchbar input {
  width: 100%; height: 44px; padding: 0 64px 0 44px;
  border: 1px solid #ECF0F2; border-radius: 12px; background: #F6F8FB;
  font: inherit; font-size: 14px; color: #12142D; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.searchbar input::placeholder { color: #9AA1AB; }
.searchbar input:focus { outline: none; background: #FFFFFF; border-color: #8CC8FD; box-shadow: 0 0 0 4px rgba(25, 155, 252, 0.12); }
.searchbar > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9AA1AB; font-size: 18px; }
.searchbar kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
kbd { font-family: inherit; font-size: 11px; color: #767E89; background: #FFFFFF; border: 1px solid #E3E8EE; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 0; background: transparent; color: #5A6270; cursor: pointer; font-size: 20px;
}
.icon-btn:hover { background: #F0F6FF; color: #1E4DB7; }
.icon-btn .count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #FC4A6C; color: #FFFFFF; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #FFFFFF;
}
.year-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 10px; background: #DDEBFF; color: #1E4DB7; font-weight: 600; font-size: 13.5px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 14px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; }
.user-chip:hover { background: #F4F7FB; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip .who b { font-size: 14px; color: #12142D; font-weight: 700; }
.user-chip .who b span { color: #767E89; font-weight: 500; }
.user-chip .who small { font-size: 12px; color: #767E89; }

.mainnav { background: #199BFC; }
.mainnav-inner { display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 28px; }
.mn-item { position: relative; height: 100%; display: flex; align-items: center; }
.mn-link, .mn-home {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 10px;
  color: #FFFFFF; font-weight: 500; font-size: 15px; white-space: nowrap; background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.mn-link i { font-size: 19px; opacity: 0.95; }
.mn-link .caret { font-size: 16px; margin-left: 0; opacity: 0.85; }
.mn-link:hover, .mn-item:hover > .mn-link, .mn-item.open > .mn-link { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.mn-home { width: 52px; padding: 0; justify-content: center; font-size: 21px; }
.mn-home:hover { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.mn-home.on, .mn-item.on > .mn-link, .mn-link.on { background: #1E4DB7; color: #FFFFFF; box-shadow: 0 6px 16px rgba(18, 54, 140, 0.25); }
.mn-link .mn-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #FFFFFF; color: #1E4DB7; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.mn-spacer { flex: 1; }
.mn-menu {
  position: absolute; left: 0; top: calc(100% - 4px); min-width: 250px; z-index: 60;
  background: #FFFFFF; border: 1px solid #ECF0F2; border-radius: 16px; padding: 8px;
  box-shadow: 0 18px 44px rgba(18, 20, 45, 0.16); display: none;
}
.mn-item.right .mn-menu { left: auto; right: 0; }
.mn-item:hover > .mn-menu, .mn-item:focus-within > .mn-menu, .mn-item.open > .mn-menu { display: block; }
.mn-menu a {
  display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 10px;
  color: #12142D; font-size: 14px; font-weight: 500;
}
.mn-menu a i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E6F4FF; color: #1E4DB7; font-size: 17px; flex: none; }
.mn-menu a small { display: block; color: #767E89; font-size: 12px; font-weight: 400; }
.mn-menu a:hover { background: #F4F8FE; color: #1E4DB7; }
.mn-menu a.on { background: #EEF6FF; color: #1E4DB7; }
.mn-menu .mn-n { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #1E4DB7; background: #DDEBFF; border-radius: 999px; padding: 1px 8px; }
.mn-menu .sep { height: 1px; background: #ECF0F2; margin: 6px 4px; }

/* ==== Shell ==== */
.shell { display: block; min-height: calc(100vh - 134px); }
.main { min-width: 0; }
.page { padding: 28px 32px 64px; max-width: 1640px; margin: 0 auto; }
.page-narrow { max-width: 1100px; }

/* Side menu layout (user setting) */
.sidebar { display: none; }
body.nav-side .mainnav { display: none; }
body.nav-side .shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: calc(100vh - 74px); }
body.nav-side .sidebar {
  display: flex; flex-direction: column; position: sticky; top: 74px; height: calc(100vh - 74px); overflow-y: auto;
  padding: 20px 16px; background: #FFFFFF; border-right: 1px solid #ECF0F2;
}
body.nav-side .page { margin: 0; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #A3A9B3; padding: 0 12px; margin: 16px 0 6px; }
.nav-label:first-child { margin-top: 0; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px;
  border-radius: 12px; color: #3A3F55; font-weight: 500; font-size: 14.5px;
}
.nav a i { font-size: 19px; color: #767E89; width: 22px; text-align: center; }
.nav a:hover { background: #F4F8FE; color: #12142D; }
.nav a.active { background: #1E4DB7; color: #FFFFFF; font-weight: 600; box-shadow: 0 6px 16px rgba(30, 77, 183, 0.22); }
.nav a.active i { color: #FFFFFF; }
.nav a .badge-count { margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: #E6F4FF; color: #1E4DB7; font-size: 11.5px; font-weight: 700; text-align: center; }
.nav a.active .badge-count { background: #FFFFFF; color: #1E4DB7; }
.nav a .lock { margin-left: auto; font-size: 13px; color: #B9BFC8; }
.portfolio-mini { margin-top: 18px; padding: 16px 12px 4px; border-top: 1px solid #ECF0F2; }
.portfolio-mini .avatars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sidebar-foot { margin-top: auto; padding: 16px 4px 0; }
.plan-card { border-radius: 16px; padding: 16px; background: #1E4DB7; color: #DDE7FB; }
.plan-card b { display: block; font-size: 15px; color: #FFFFFF; }
.plan-card small { color: #C7D6F6; }
.plan-card .btn { margin-top: 12px; width: 100%; background: #FFFFFF; color: #1E4DB7; }

/* ==== Page head ==== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #199BFC; margin-bottom: 6px; }
.page-head p.lead { color: #767E89; margin: 6px 0 0; font-size: 15px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #767E89; margin-bottom: 8px; }
.breadcrumb a { color: #767E89; }
.breadcrumb a:hover { color: #1E4DB7; }

/* ==== Grid helpers ==== */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); }
.g-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); }
.g-side-main { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 20px; } .mb-24 { margin-bottom: 28px; }
.ml-auto { margin-left: auto; }
.w-100 { width: 100%; }
.flex-1 { flex: 1; min-width: 0; }

/* ==== Cards ==== */
.card { background: #FFFFFF; border: 1px solid #ECF0F2; border-radius: 20px; }
.card-pad { padding: 24px 26px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 26px 0; }
.card-head h2 { font-size: 19px; }
.card-head p { margin: 4px 0 0; color: #767E89; font-size: 14px; }
.card-body { padding: 18px 26px 22px; }
.card-foot { padding: 14px 26px; border-top: 1px solid #ECF0F2; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #767E89; font-size: 13px; }
.card-flush { overflow: hidden; overflow: clip; }  /* clip: rounded corners without breaking sticky bulk bars (bk-37) */
.card-flush:has(.table-menus) { overflow: visible; }
.card-accent { border-top: 3px solid #1E4DB7; }
.card-soft { background: #F8FBFF; }
.card-link { display: block; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card-link:hover { color: inherit; border-color: #CFE3FB; box-shadow: 0 14px 34px rgba(18, 20, 45, 0.08); transform: translateY(-2px); }
.card-tint { background: #E6F4FF; border-color: #E6F4FF; }
.card-blue { background: #1E4DB7; border-color: #1E4DB7; color: #DCE6FB; }
.card-blue h2, .card-blue h3, .card-blue b, .card-blue .stat-value { color: #FFFFFF; }
.card-blue .muted, .card-blue p { color: #C9D7F6; }
.card-sky { background: #0DB1FB; border-color: #0DB1FB; color: #E9F8FF; }
.card-sky h2, .card-sky h3, .card-sky b { color: #FFFFFF; }

/* ==== Stat tiles (fiscal50 app style: tinted circle icon, big number, muted label) ==== */
.stat { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat .stat-label { font-size: 14px; font-weight: 500; color: #767E89; letter-spacing: 0; text-transform: none; }
.stat .stat-value { font-size: 30px; font-weight: 700; color: #12142D; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .stat-sub { font-size: 13px; color: #767E89; }
.stat .stat-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: none; }
.stat a.stretched::after { content: ""; position: absolute; inset: 0; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-strip > .stat { border-right: 1px solid #ECF0F2; }
.stat-strip > .stat:last-child { border-right: 0; }
.stat-strip a.stat { color: inherit; transition: background 0.15s; }
.stat-strip a.stat:hover { background: #F8FBFF; }
.stat-strip > .stat:first-child { border-radius: 20px 0 0 20px; }
.stat-strip > .stat:last-child { border-radius: 0 20px 20px 0; }
.hero-stat { position: relative; overflow: hidden; padding: 26px 28px; }
.hero-stat .hs-title { font-size: 17px; font-weight: 700; color: #12142D; }
.hero-stat .hs-value { font-size: 34px; font-weight: 700; color: #1E4DB7; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.1; }
.hero-stat .hs-sub { color: #767E89; font-size: 14px; margin-top: 4px; }
.hero-stat .hs-icon { position: absolute; top: 22px; right: 24px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1E4DB7; color: #FFFFFF; font-size: 26px; }
.hero-stat .hs-deco1 { position: absolute; right: 70px; bottom: -14px; width: 70px; height: 70px; border-radius: 14px; background: #1E4DB7; opacity: 0.09; transform: rotate(18deg); }
.hero-stat .hs-deco2 { position: absolute; right: 30px; bottom: 26px; width: 22px; height: 22px; border-radius: 5px; background: #E8BA06; opacity: 0.9; }
.card-blue.hero-stat .hs-title { color: #FFFFFF; }
.card-blue.hero-stat .hs-value { color: #FFFFFF; }
.card-blue.hero-stat .hs-sub { color: #C9D7F6; }
.card-blue.hero-stat .hs-icon { background: #199BFC; }
.tone-blue { background: #E6F4FF; color: #1E4DB7; }
.tone-sky { background: #E6F4FF; color: #199BFC; }
.tone-red { background: #FFEDF1; color: #FC4A6C; }
.tone-amber { background: #FFF3E5; color: #F59E0B; }
.tone-green { background: #EBFAF1; color: #38CB7F; }
.tone-violet { background: #F2EEFC; color: #7F56D9; }
.tone-gold { background: #FFF7D6; color: #B48F00; }
.tone-gray { background: #F2F4F7; color: #5A6270; }
.tone-navy { background: #DDEBFF; color: #1E4DB7; }

/* ==== Buttons ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 17px; }
.btn-primary { background: #1E4DB7; color: #FFFFFF; box-shadow: 0 6px 14px rgba(30, 77, 183, 0.20); }
.btn-primary:hover { background: #18409C; color: #FFFFFF; }
.btn-sky { background: #199BFC; color: #FFFFFF; }
.btn-sky:hover { background: #0B87E6; color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; color: #12142D; border-color: #E1E6EC; }
.btn-secondary:hover { background: #F7FAFD; border-color: #C9D6E4; color: #12142D; }
.btn-soft { background: #E6F4FF; color: #1E4DB7; }
.btn-soft:hover { background: #D5ECFF; color: #163A8F; }
.btn-ghost { background: transparent; color: #4B5263; }
.btn-ghost:hover { background: #F2F5F9; color: #12142D; }
.btn-danger { background: #FFFFFF; color: #D92D52; border-color: #FFC9D5; }
.btn-danger:hover { background: #FFF4F6; color: #B9203F; }
.btn-danger-solid { background: #FC4A6C; color: #FFFFFF; }
.btn-danger-solid:hover { background: #E53A5C; color: #FFFFFF; }
.btn-gold { background: #E8BA06; color: #2E2300; }
.btn-gold:hover { background: #D6AB00; color: #2E2300; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-sm i { font-size: 15px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn[disabled], .btn.disabled { opacity: 0.55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #1E4DB7; cursor: pointer; font-weight: 600; }
.link-btn:hover { color: #163A8F; text-decoration: underline; }

/* ==== Pills, badges, dots ==== */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1;
}
.pill i { font-size: 14px; }
.pill-blue { background: #DDEBFF; color: #1E4DB7; }
.pill-sky { background: #E6F4FF; color: #0B7FD6; }
.pill-violet { background: #F2EEFC; color: #6941C6; }
.pill-green { background: #EBFAF1; color: #1F9D5C; }
.pill-amber { background: #FFF3E5; color: #C26A00; }
.pill-red { background: #FFEDF1; color: #D92D52; }
.pill-gray { background: #F2F4F7; color: #5A6270; }
.pill-gold { background: #FFF7D6; color: #8C6D00; }
.pill-outline { background: #FFFFFF; border: 1px solid #E1E6EC; color: #4B5263; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: #38CB7F; } .dot-amber { background: #F59E0B; } .dot-red { background: #FC4A6C; }
.dot-gray { background: #B9BFC8; } .dot-blue { background: #1E4DB7; } .dot-sky { background: #199BFC; } .dot-violet { background: #7F56D9; }
.status-line { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.t-green { color: #1F9D5C; } .t-amber { color: #C26A00; } .t-red { color: #D92D52; } .t-blue { color: #1E4DB7; } .t-gray { color: #767E89; } .t-violet { color: #6941C6; } .t-sky { color: #0B7FD6; }

/* ==== Avatars ==== */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 12.5px; font-weight: 700; flex: none; letter-spacing: 0.01em;
}
.avatar-sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 60px; height: 60px; font-size: 20px; }
.avatar-round { border-radius: 50%; }
.av-1 { background: #DDEBFF; color: #1E4DB7; }
.av-2 { background: #E6F4FF; color: #0B7FD6; }
.av-3 { background: #F2EEFC; color: #6941C6; }
.av-4 { background: #FFF7D6; color: #8C6D00; }
.av-5 { background: #EBFAF1; color: #1F9D5C; }
.av-6 { background: #FFEDF1; color: #D92D52; }
.av-7 { background: #F2F4F7; color: #4B5263; }
.av-8 { background: #FFF3E5; color: #C26A00; }
.av-me { background: #1E4DB7; color: #FFFFFF; }

/* ==== Tables ==== */
.table-wrap { width: 100%; overflow-x: auto; }
/* a table whose rows open dropdown menus: let the menus show past the table (scrolls sideways again on phones) */
.table-wrap.table-menus { overflow: visible; }
@media (max-width: 760px) { .table-wrap.table-menus { overflow-x: auto; } }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  text-align: left; font-size: 13.5px; font-weight: 600; color: #12142D;
  padding: 13px 16px; background: #FFFFFF; border-bottom: 1px solid #ECF0F2; white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.table th:first-child { padding-left: 26px; }
.table th:last-child { padding-right: 26px; }
.table td { padding: 14px 16px; border-bottom: 1px solid #ECF0F2; vertical-align: middle; color: #12142D; white-space: nowrap; }
.table th.right, .table td.right { text-align: right; }
.table th.center, .table td.center { text-align: center; }
.table td.wrap { white-space: normal; min-width: 220px; }
.table td.wrap-sm { white-space: normal; min-width: 150px; }
.table td:first-child { padding-left: 26px; }
.table td:last-child { padding-right: 26px; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: #F8FBFF; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.is-selected { background: #EEF6FF; }
.table .cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table .cell-main .t { font-weight: 600; color: #12142D; }
.table .cell-main .s { font-size: 12.5px; color: #767E89; }
.table a.row-link { color: #12142D; font-weight: 600; }
.table a.row-link:hover { color: #1E4DB7; }
.table .chev { color: #B9BFC8; font-size: 18px; }
.table-compact td { padding: 10px 16px; }
.table th.sortable a { color: #12142D; display: inline-flex; align-items: center; gap: 3px; }
.table th.sortable a:hover { color: #1E4DB7; }
.table td.actions { text-align: right; white-space: nowrap; }
.table input[type="checkbox"] { width: 17px; height: 17px; accent-color: #1E4DB7; cursor: pointer; }
.table tfoot td { font-weight: 700; background: #F8FBFF; border-top: 1px solid #ECF0F2; }

/* ==== Toolbar, chips, segmented ==== */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid #ECF0F2; }
.toolbar .search { position: relative; min-width: 240px; flex: 1; max-width: 380px; }
.toolbar .search input { padding-left: 38px; }
.toolbar .search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9AA1AB; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: #F2F5F9; color: #3A3F55; font-size: 13px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.chip:hover { background: #E9EEF5; color: #12142D; }
.chip.on { background: #E6F4FF; color: #1E4DB7; border-color: #BFE0FE; }
.chip .n { font-size: 11.5px; color: #767E89; font-weight: 700; }
.chip.on .n { color: #1E4DB7; }
.seg { display: inline-flex; background: #F0F4F9; padding: 4px; border-radius: 12px; gap: 2px; }
.seg a, .seg button, .seg label {
  height: 34px; padding: 0 15px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
  color: #4B5263; font-weight: 600; font-size: 13px; border: 0; background: transparent; cursor: pointer; font-family: inherit;
}
.seg a:hover, .seg button:hover, .seg label:hover { color: #12142D; }
.seg .on, .seg input:checked + span { background: #FFFFFF; color: #1E4DB7; box-shadow: 0 2px 6px rgba(18, 20, 45, 0.10); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 9px; }
.seg label { padding: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid #ECF0F2; margin-bottom: 22px; overflow-x: auto; }
.tabs a {
  padding: 12px 16px; color: #767E89; font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent;
  margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.tabs a:hover { color: #12142D; }
.tabs a.on { color: #1E4DB7; border-bottom-color: #1E4DB7; }
.tabs a .n { font-size: 11.5px; background: #F2F4F7; color: #5A6270; border-radius: 999px; padding: 1px 8px; }
.tabs a.on .n { background: #DDEBFF; color: #1E4DB7; }

/* ==== Forms ==== */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .label { font-size: 13.5px; font-weight: 600; color: #2A2E45; }
.field .req { color: #FC4A6C; }
.input, .select, .textarea, .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="tel"], .field input[type="number"], .field input[type="date"], .field input[type="url"], .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid #DFE5EF; border-radius: 11px; background: #FFFFFF;
  font: inherit; font-size: 14.5px; color: #12142D; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:disabled, .field input:disabled, .select:disabled { background: #F4F6F9; color: #767E89; cursor: not-allowed; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #A3A9B3; }
.textarea, .field textarea { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select, .field select {
  appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23767E89'%3E%3Cpath d='M12 15.6l-5.3-5.3 1.4-1.4 3.9 3.9 3.9-3.9 1.4 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #199BFC; box-shadow: 0 0 0 4px rgba(25, 155, 252, 0.13);
}
.input-sm, .select-sm { height: 38px; font-size: 13.5px; border-radius: 10px; }
.field .help { font-size: 12.5px; color: #767E89; }
.field .error, .errorlist { font-size: 12.5px; color: #D92D52; margin: 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #FFA9B7; }
.input-group { display: flex; }
.input-group .input { border-radius: 11px 0 0 11px; }
.input-group .btn { border-radius: 0 11px 11px 0; height: 46px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: #2A2E45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1E4DB7; flex: none; }
.check .muted { display: block; font-size: 13px; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice {
  position: relative; display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid #DFE5EF;
  background: #FFFFFF; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.choice:hover { border-color: #A9D5FD; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none; }
.choice b { display: block; font-size: 15px; color: #12142D; }
.choice span.muted { font-size: 13px; }
.choice.on, .choice:has(input:checked) { border-color: #1E4DB7; background: #F5FAFF; box-shadow: 0 0 0 3px rgba(30, 77, 183, 0.10); }
.choice .tick { position: absolute; top: 14px; right: 14px; color: #1E4DB7; font-size: 20px; display: none; }
.choice.on .tick, .choice:has(input:checked) .tick { display: block; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(30, 77, 183, 0.28); }
.choice.off { background: #F7F9FC; border-style: dashed; cursor: default; }
.choice.off:hover { border-color: #DFE5EF; }
.choice.off b { color: #767E89; }
.lic-pick { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.lic-pick legend { font-size: 13.5px; font-weight: 600; color: #2A2E45; margin: 0 0 8px; padding: 0; }
.lic-pick-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lic-card { flex-direction: column; gap: 0; padding: 16px; }
.lic-card .lic-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lic-card .lic-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lic-card .lic-card-top b { display: inline; }
.lic-card .tick { position: static; font-size: 19px; }
.lic-card .lic-card-feat { font-size: 12.5px; color: #767E89; line-height: 1.4; }
.lic-card .lic-card-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.lic-card .lic-card-next { font-size: 12.5px; color: #4A5165; }
.lic-card .lic-card-buy { font-size: 13px; font-weight: 600; color: #1E4DB7; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.lic-card .lic-card-buy:hover { text-decoration: underline; }
@media (max-width: 760px) { .lic-pick-grid { grid-template-columns: minmax(0, 1fr); } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: #D7DEE8; position: relative; transition: background 0.15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(18, 20, 45, 0.25); transition: transform 0.15s; }
.switch input:checked + .track { background: #1E4DB7; }
.switch input:checked + .track::after { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.form-grid .span-2 { grid-column: 1 / 3; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 6px; }
.stepper-qty { display: inline-flex; align-items: center; border: 1px solid #DFE5EF; border-radius: 11px; overflow: hidden; background: #FFFFFF; }
.stepper-qty button { width: 38px; height: 40px; border: 0; background: #F4F8FE; font-size: 17px; cursor: pointer; color: #1E4DB7; }
.stepper-qty button:hover { background: #E6F4FF; }
.stepper-qty input { width: 54px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; color: #12142D; }
.stepper-qty input:focus { outline: none; }

/* ==== Callouts & empty states ==== */
.callout { display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 14px; border: 1px solid transparent; align-items: flex-start; }
.callout i { font-size: 19px; flex: none; margin-top: 1px; }
.callout b { color: inherit; }
.callout-info { background: #EEF7FF; border-color: #D2E9FE; color: #13407F; }
.callout-warn { background: #FFF7EC; border-color: #FFE3BF; color: #7A4500; }
.callout-danger { background: #FFF3F5; border-color: #FFD3DD; color: #9B1C38; }
.callout-success { background: #EFFBF4; border-color: #CDEFDB; color: #146B42; }
.callout-gold { background: #FFFAE6; border-color: #F6E3A1; color: #5E4700; }
.empty { text-align: center; padding: 48px 24px; color: #767E89; }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 28px; background: #E6F4FF; color: #1E4DB7; }
.empty h3 { margin-bottom: 6px; }
.empty p { max-width: 440px; margin: 0 auto 18px; }

/* ==== Progress ==== */
.progress { height: 8px; border-radius: 999px; background: #EEF2F6; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: #1E4DB7; }
.progress.sky > span { background: #199BFC; }
.progress.green > span { background: #38CB7F; }
.progress.amber > span { background: #F59E0B; }
.progress.violet > span { background: #7F56D9; }
.progress.red > span { background: #FC4A6C; }
.progress.gold > span { background: #E8BA06; }
.progress-lg { height: 11px; }
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .ring-label b { font-size: 26px; font-weight: 700; color: #12142D; letter-spacing: -0.02em; }
.ring .ring-label small { display: block; font-size: 11.5px; color: #767E89; margin-top: -4px; }

/* ==== Health score ==== */
.health { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.health .bar { width: 50px; height: 7px; border-radius: 999px; background: #EEF2F6; overflow: hidden; }
.health .bar span { display: block; height: 100%; border-radius: 999px; }
.hs-a { color: #1F9D5C; } .hs-a .bar span { background: #38CB7F; }
.hs-b { color: #1E4DB7; } .hs-b .bar span { background: #1E4DB7; }
.hs-c { color: #C26A00; } .hs-c .bar span { background: #F59E0B; }
.hs-d { color: #D92D52; } .hs-d .bar span { background: #FC4A6C; }
.hs-none { color: #A3A9B3; }

/* ==== Lists ==== */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid #ECF0F2; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #F8FBFF; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; color: #12142D; }
.list-item .li-sub { font-size: 13px; color: #767E89; }
.list-item a.li-title:hover { color: #1E4DB7; }
.kv { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr); gap: 12px 18px; font-size: 14px; }
.kv dt { color: #767E89; }
.kv dd { margin: 0; color: #12142D; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 42px; }
.timeline li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 1px; background: #ECF0F2; }
.timeline li:last-child::before { display: none; }
.timeline .tl-icon { position: absolute; left: 0; top: 0; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: #E6F4FF; color: #1E4DB7; }
.timeline .tl-text { font-size: 14px; color: #12142D; }
.timeline .tl-time { font-size: 12px; color: #A3A9B3; }

/* ==== Priority rows (overview) ==== */
.prio { display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid #ECF0F2; }
.prio:last-child { border-bottom: 0; }
.prio:hover { background: #F8FBFF; }
.prio .prio-rank { width: 24px; font-size: 12px; font-weight: 700; color: #A3A9B3; text-align: center; }
.prio .prio-main { flex: 1; min-width: 0; }
.prio .prio-title { font-weight: 600; color: #12142D; font-size: 14.5px; }
.prio .prio-why { font-size: 13px; color: #767E89; }

/* ==== Dropdown menus ==== */
.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; z-index: 60;
  background: #FFFFFF; border: 1px solid #ECF0F2; border-radius: 16px; padding: 8px;
  box-shadow: 0 18px 44px rgba(18, 20, 45, 0.16); display: none;
}
.menu.open { display: block; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; border-radius: 10px;
  color: #2A2E45; font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left;
}
.menu a:hover, .menu button:hover { background: #F4F8FE; color: #1E4DB7; }
.menu a i, .menu button i { font-size: 17px; color: #767E89; }
.menu a:hover i, .menu button:hover i { color: #1E4DB7; }
.menu .menu-head { padding: 12px 12px 10px; border-bottom: 1px solid #ECF0F2; margin-bottom: 6px; }
.menu .sep { height: 1px; background: #ECF0F2; margin: 6px 0; }
.menu-wide { width: 390px; padding: 0; }
.menu-title { padding: 14px 16px; border-bottom: 1px solid #ECF0F2; }
.notif-all { justify-content: center; color: #1E4DB7; font-weight: 600; }
.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #F1F4F7; color: #12142D; }
.notif:hover { background: #F8FBFF; color: #12142D; }
.notif .ni { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #E6F4FF; color: #1E4DB7; flex: none; }
.notif.unread .nt::after { content: ""; display: inline-block; width: 7px; height: 7px; background: #199BFC; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.notif .nt { font-weight: 600; font-size: 13.5px; }
.notif .nb { font-size: 12.5px; color: #767E89; }

/* ==== Dialogs ==== */
dialog.modal {
  border: 0; padding: 0; border-radius: 22px; width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  box-shadow: 0 30px 80px rgba(18, 20, 45, 0.28); color: #12142D;
}
dialog.modal-lg { width: min(780px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(18, 20, 45, 0.45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 26px 4px; }
.modal-head h2 { font-size: 19px; }
.modal-head p { margin: 4px 0 0; color: #767E89; font-size: 14px; }
.modal-body { padding: 16px 26px 6px; overflow-y: auto; max-height: calc(100vh - 200px); }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 26px 22px; }

/* ==== Toasts ==== */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; min-width: 300px; max-width: 430px; padding: 14px 16px;
  background: #12142D; color: #F1F4F9; border-radius: 14px; box-shadow: 0 18px 44px rgba(18, 20, 45, 0.28);
  font-size: 14px; animation: toastIn 0.22s ease-out;
}
.toast i { font-size: 19px; flex: none; }
.toast.success i { color: #5EDC9B; } .toast.error i { color: #FF8CA2; } .toast.warning i { color: #FFC857; } .toast.info i { color: #7CC4FF; }
.toast button { margin-left: auto; background: none; border: 0; color: #A3A9B3; cursor: pointer; font-size: 16px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==== Bulk bar ==== */
.bulkbar {
  position: sticky; bottom: 18px; z-index: 20; margin: 16px auto 0; width: fit-content; max-width: 100%;
  display: none; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 16px;
  background: #12142D; color: #FFFFFF; box-shadow: 0 18px 44px rgba(18, 20, 45, 0.3); flex-wrap: wrap;
}
.bulkbar.show { display: flex; }
.bulkbar .btn-secondary { background: #24274A; color: #E6E9F2; border-color: #353964; }
.bulkbar .btn-secondary:hover { background: #2E3260; color: #FFFFFF; }
.bulkbar select { height: 34px; border-radius: 9px; border: 1px solid #353964; background: #24274A; color: #E6E9F2; font: inherit; font-size: 13px; padding: 0 8px; }

/* ==== Pagination ==== */
.pager { display: flex; align-items: center; gap: 4px; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; color: #4B5263; }
.pager a:hover { background: #F2F5F9; color: #12142D; }
.pager .on { background: #1E4DB7; color: #FFFFFF; }

/* ==== Client header / context bar ==== */
.client-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.client-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.context-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; margin-bottom: 20px; border-radius: 14px;
  background: #1E4DB7; color: #DCE6FB; font-size: 13.5px;
}
.context-bar b { color: #FFFFFF; }
.context-bar .pill { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.signal { padding: 16px 18px; border-radius: 16px; border: 1px solid #ECF0F2; background: #FFFFFF; }
.signal .sl { font-size: 13px; color: #767E89; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.signal .sl i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #E6F4FF; color: #1E4DB7; font-size: 15px; }
.signal .sv { font-size: 24px; font-weight: 700; color: #12142D; margin-top: 8px; font-variant-numeric: tabular-nums; }
.signal .ss { font-size: 12.5px; color: #767E89; }
.signal.bad { border-color: #FFD3DD; background: #FFF8FA; }
.signal.bad .sl i { background: #FFEDF1; color: #FC4A6C; }
.signal.warn { border-color: #FFE3BF; background: #FFFCF7; }
.signal.warn .sl i { background: #FFF3E5; color: #F59E0B; }
.signal.good { border-color: #CDEFDB; background: #FBFEFC; }
.signal.good .sl i { background: #EBFAF1; color: #38CB7F; }

/* ==== Close board ==== */
.close-steps { display: flex; gap: 3px; }
.close-steps span { width: 14px; height: 14px; border-radius: 4px; background: #EEF2F6; }
.close-steps span.done { background: #38CB7F; }
.close-steps span.blocked { background: #FC4A6C; }
.close-steps span.na { background: #CDD3DB; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 26px; border-bottom: 1px solid #ECF0F2; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ck {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid #CDD3DB; display: grid; place-items: center;
  background: #FFFFFF; cursor: pointer; flex: none; color: transparent; font-size: 16px; margin-top: 1px;
}
.checklist .ck:hover { border-color: #1E4DB7; }
.checklist li.done .ck { background: #38CB7F; border-color: #38CB7F; color: #FFFFFF; }
.checklist li.blocked .ck { border-color: #FC4A6C; color: #FC4A6C; }
.checklist li.done .ck-title { color: #767E89; text-decoration: line-through; text-decoration-color: #B9BFC8; }
.checklist .ck-title { font-weight: 600; color: #12142D; }
.checklist .ck-help { font-size: 13px; color: #767E89; }

/* ==== Threads (requests) ==== */
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; max-width: 780px; }
.msg .bubble { background: #F4F7FB; border-radius: 4px 16px 16px 16px; padding: 12px 16px; font-size: 14px; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine .bubble { background: #E6F4FF; border-radius: 16px 4px 16px 16px; }
.msg.system .bubble { background: #FFFFFF; border: 1px dashed #DFE5EF; color: #767E89; font-size: 13px; }
.msg .meta { font-size: 12px; color: #A3A9B3; margin-top: 4px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; border: 1px solid #E1E6EC; background: #FFFFFF; font-size: 13px; color: #12142D; margin: 6px 6px 0 0; }
.file-chip i { color: #1E4DB7; font-size: 17px; }
.dropzone { border: 2px dashed #BFDDFB; border-radius: 16px; padding: 24px; text-align: center; color: #767E89; background: #F8FBFF; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone:hover, .dropzone.drag { border-color: #199BFC; background: #EEF7FF; color: #1E4DB7; }
.dropzone i { font-size: 28px; display: block; margin-bottom: 6px; }

/* ==== Public pages (sign in, registration, client pages) ==== */
.public { min-height: 100vh; background: #F7F9FC; }
.public-split { display: grid; grid-template-columns: minmax(460px, 0.95fr) minmax(0, 1fr); min-height: 100vh; }
.public-split .public-aside { order: -1; }
.public-aside {
  position: relative; overflow: hidden; padding: 44px 56px; color: #DCE6FB;
  background: #1E4DB7; display: flex; flex-direction: column;
}
.public-aside::before {
  content: ""; position: absolute; right: -90px; top: 120px; width: 360px; height: 360px; border-radius: 48px;
  background: #2A5BC6; transform: rotate(14deg);
}
.public-aside::after {
  content: ""; position: absolute; right: 72px; top: 54px; width: 46px; height: 46px; border-radius: 10px;
  background: #E8BA06; transform: rotate(14deg);
}
.public-aside > * { position: relative; z-index: 1; }
.public-aside .logo-chip { align-self: flex-start; display: inline-flex; padding: 12px 18px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 10px 24px rgba(9, 32, 89, 0.22); }
.public-aside .logo { height: 32px; width: auto; display: block; }
.public-aside h1 { color: #FFFFFF; font-size: 38px; letter-spacing: -0.025em; margin: auto 0 16px; max-width: 540px; line-height: 1.12; }
.public-aside h1 em { font-style: normal; color: #E8BA06; }
.public-aside p { color: #C9D7F6; font-size: 16px; max-width: 500px; }
.public-aside .proof { display: grid; gap: 14px; margin-top: 28px; }
.public-aside .proof div { display: flex; gap: 14px; align-items: flex-start; color: #E9EFFC; font-size: 14.5px; }
.public-aside .proof i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; flex: none; font-size: 17px; }
.public-aside .foot { margin-top: 34px; font-size: 12.5px; color: #A9BFEE; }
.public-main { display: flex; flex-direction: column; justify-content: center; padding: 44px 60px; background: #FFFFFF; }
.public-main .inner { width: 100%; max-width: 450px; margin: 0 auto; }
.public-main .logo-sm { height: 30px; width: auto; margin-bottom: 28px; display: none; }
.public-main h2 { font-size: 28px; letter-spacing: -0.02em; }
.public-main .sub { color: #767E89; margin: 8px 0 26px; font-size: 15px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px;
  background: transparent; color: #767E89; cursor: pointer; display: grid; place-items: center; font-size: 18px; padding: 0;
}
.pw-eye:hover { background: #F2F5F9; color: #1E4DB7; }
.pw-eye:focus-visible { outline: 2px solid #1E4DB7; outline-offset: 1px; }
.caps-hint { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: #C26A00; margin-top: 6px; }
.caps-hint.on { display: flex; }
.signin-opts .check { align-items: center; font-size: 14px; }
.signin-opts .check input { margin: 0; }
.signin-note { display: flex; gap: 6px; align-items: flex-start; justify-content: center; text-align: left; }
.signin-note i { margin-top: 2px; }
.divider { display: flex; align-items: center; gap: 12px; color: #A3A9B3; font-size: 12.5px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #ECF0F2; }
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 74px; background: #FFFFFF; border-bottom: 1px solid #ECF0F2; position: sticky; top: 0; z-index: 30; }
.public-top .logo { height: 32px; width: auto; display: block; }
.public-top .brand-sub { padding-left: 14px; border-left: 1px solid #ECF0F2; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #767E89; }
.public-wrap { max-width: 1180px; margin: 0 auto; padding: 36px 24px 72px; }
.code-input { display: flex; gap: 10px; justify-content: space-between; }
.code-input input { width: 56px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; border: 1px solid #DFE5EF; border-radius: 14px; font-family: inherit; color: #12142D; background: #FFFFFF; }
.code-input input:focus { outline: none; border-color: #199BFC; box-shadow: 0 0 0 4px rgba(25, 155, 252, 0.14); }
.method-list { display: grid; gap: 10px; }
.method-list a, .method-list button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #ECF0F2; background: #FFFFFF; color: #12142D; font: inherit; font-weight: 600; cursor: pointer; text-align: left; width: 100%; }
.method-list a:hover, .method-list button:hover { border-color: #A9D5FD; background: #F8FBFF; color: #1E4DB7; }
.method-list i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #E6F4FF; color: #1E4DB7; font-size: 17px; flex: none; }
.method-list small { display: block; font-weight: 400; color: #767E89; font-size: 12.5px; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px; border-radius: 14px; background: #F6F8FB; border: 1px solid #ECF0F2; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0.04em; text-align: center; }
.recovery-grid span { padding: 6px; border-radius: 8px; background: #FFFFFF; border: 1px solid #ECF0F2; }

/* Registration wizard */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #FFFFFF; border: 1px solid #ECF0F2; color: #767E89; font-size: 13px; font-weight: 600; }
.steps .st .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #F2F4F7; color: #767E89; font-size: 11.5px; font-weight: 700; }
.steps .st.done { color: #1E4DB7; }
.steps .st.done .n { background: #DDEBFF; color: #1E4DB7; }
.steps .st.on { background: #1E4DB7; border-color: #1E4DB7; color: #FFFFFF; }
.steps .st.on .n { background: #FFFFFF; color: #1E4DB7; }
.summary { position: sticky; top: 98px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.summary .line.total { border-top: 1px solid #ECF0F2; margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 16px; color: #12142D; }
.summary .line .d { color: #1F9D5C; }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; border: 1px solid #DFE5EF;
  background: #FFFFFF; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.plan:hover { border-color: #A9D5FD; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input[name=plan]:checked) { border-color: #1E4DB7; box-shadow: 0 0 0 3px rgba(30, 77, 183, 0.12); background: #F8FBFF; }
.plan .plan-name { font-weight: 700; font-size: 17px; color: #12142D; }
.plan .plan-price { font-size: 34px; font-weight: 700; color: #1E4DB7; letter-spacing: -0.02em; margin-top: 10px; }
.plan .plan-price small { font-size: 14px; font-weight: 500; color: #767E89; letter-spacing: 0; }
.plan .plan-tag { font-size: 13px; color: #767E89; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 13.5px; color: #2A2E45; }
.plan ul li { display: flex; gap: 8px; }
.plan ul li i { color: #1E4DB7; }
.plan .ribbon { position: absolute; top: -11px; right: 18px; background: #E8BA06; color: #2E2300; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lic-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #ECF0F2; }
.lic-row:last-child { border-bottom: 0; }
.tier-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tier-strip div { padding: 10px; border-radius: 12px; background: #F6F8FB; text-align: center; font-size: 12px; color: #767E89; border: 1px solid transparent; }
.tier-strip div b { display: block; font-size: 15px; color: #12142D; }
.tier-strip div.on { background: #E6F4FF; border-color: #BFE0FE; color: #1E4DB7; }
.tier-strip div.on b { color: #1E4DB7; }

/* Portal */
.portal-head { background: #FFFFFF; border-bottom: 1px solid #ECF0F2; }
.portal-head .inner { max-width: 980px; margin: 0 auto; padding: 0 24px; height: 74px; display: flex; align-items: center; gap: 14px; }
.portal-head .logo { height: 30px; width: auto; }
.portal-wrap { max-width: 980px; margin: 0 auto; padding: 32px 24px 72px; }

/* ==== Charts ==== */
.chart-box { position: relative; height: 250px; }
.chart-box.sm { height: 200px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #767E89; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

/* ==== Locked feature ==== */
.locked { position: relative; }
.locked-overlay { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 52px 24px; }
.locked-overlay .empty-icon { background: #FFF7D6; color: #B48F00; }

/* ==== Welcome checklist ==== */
.onboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.onboard .ob { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid #ECF0F2; background: #FFFFFF; }
.onboard .ob .obi { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex: none; background: #E6F4FF; color: #1E4DB7; }
.onboard .ob.done { background: #F8FDFA; border-color: #D3F1E0; }
.onboard .ob.done .obi { background: #38CB7F; color: #FFFFFF; }
.onboard .ob b { display: block; color: #12142D; font-size: 14.5px; }
.onboard .ob p { font-size: 13px; color: #767E89; margin: 2px 0 8px; }

/* ==== Appearance choices (profile) ==== */
.layout-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.layout-choice label { position: relative; display: block; padding: 14px; border-radius: 16px; border: 1px solid #DFE5EF; cursor: pointer; background: #FFFFFF; }
.layout-choice label:has(input:checked) { border-color: #1E4DB7; box-shadow: 0 0 0 3px rgba(30, 77, 183, 0.10); background: #F8FBFF; }
.layout-choice input { position: absolute; opacity: 0; }
.layout-choice .mini { height: 92px; border-radius: 10px; border: 1px solid #ECF0F2; background: #FFFFFF; overflow: hidden; display: grid; margin-bottom: 10px; }
.layout-choice .mini.top { grid-template-rows: 16px 12px 1fr; }
.layout-choice .mini.side { grid-template-rows: 16px 1fr; }
.layout-choice .mini .h { background: #FFFFFF; border-bottom: 1px solid #ECF0F2; }
.layout-choice .mini .n { background: #199BFC; }
.layout-choice .mini .b { background: #F7F9FC; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 8px; }
.layout-choice .mini .b span { background: #FFFFFF; border: 1px solid #ECF0F2; border-radius: 5px; }
.layout-choice .mini .sb { display: grid; grid-template-columns: 40px 1fr; }
.layout-choice .mini .sb .s { background: #FFFFFF; border-right: 1px solid #ECF0F2; padding: 6px; display: grid; gap: 4px; align-content: start; }
.layout-choice .mini .sb .s i { display: block; height: 6px; border-radius: 3px; background: #DDEBFF; }
.layout-choice .mini .sb .s i:first-child { background: #1E4DB7; }
.layout-choice b { font-size: 14px; }

/* ==== Responsive ==== */
/* ==== Workspace pricing page (the page body itself uses static/pricing/bkp.css) ==== */
body.pricing-page { background: #FFFFFF; }
.pricing-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 32px; border-top: 1px solid #ECF0F2; color: #767E89; font-size: 13.5px; background: #FFFFFF; }
.pricing-foot a { color: #4B5263; }
@media (max-width: 720px) { .pricing-nav .hide-sm { display: none; } .pricing-foot { padding: 20px 16px; } }

.mb-4 { margin-bottom: 4px; } .mb-20 { margin-bottom: 20px; } .gap-8 { gap: 8px; } .pt-0 { padding-top: 0; } .min-w-0 { min-width: 0; }
.wrap-row { flex-wrap: wrap; }
a.plain { color: inherit; }
a.plain:hover { color: #1E4DB7; }
.pill-xs { padding: 1px 7px; font-size: 11px; margin-left: 4px; }

.dash-head h1 { font-size: 28px; letter-spacing: -0.02em; }
.dash-row { align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 16px; border-right: 1px solid #ECF0F2; color: inherit; position: relative; min-width: 0; }
.kpi:last-child { border-right: 0; }
a.kpi { transition: background 0.15s; }
a.kpi:hover { background: #F8FBFF; color: inherit; }
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #767E89; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-label i { font-size: 16px; color: #1E4DB7; }
.kpi-value { font-size: 28px; font-weight: 700; color: #12142D; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-foot { font-size: 12.5px; color: #8A919C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-bar { display: block; height: 4px; border-radius: 999px; background: #EEF2F6; overflow: hidden; margin: 2px 0 2px; }
.kpi-bar > span { display: block; height: 100%; background: #1E4DB7; border-radius: 999px; }
.kpi-alert::before, .kpi-warn::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.kpi-alert::before { background: #FC4A6C; }
.kpi-warn::before { background: #F59E0B; }
.kpi-alert .kpi-label i { color: #E0324F; }
.kpi-warn .kpi-label i { color: #C27803; }

.mixbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #EEF2F6; gap: 2px; }
.mixbar .mseg { display: block; height: 100%; min-width: 6px; }
.ms-green, .sw-green { background: #38CB7F; }
.ms-blue, .sw-blue { background: #1E4DB7; }
.ms-sky, .sw-sky { background: #199BFC; }
.ms-amber, .sw-amber { background: #F59E0B; }
.ms-red, .sw-red { background: #FC4A6C; }
.ms-gray, .sw-gray { background: #B9BFC8; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13.5px; color: #4B5263; }
.mix-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mix-legend b { color: #12142D; margin-left: 2px; }
.mix-legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.close-sum .ring { width: 104px; height: 104px; }
.close-big { display: block; font-size: 17px; margin-bottom: 2px; }
.ring .ring-track { stroke: #EEF2F6; }
.ai-sum { margin: 14px 26px 0; }
.prio-what { font-weight: 600; color: #12142D; font-size: 14px; }
.load-row { margin-bottom: 14px; }
.load-row:last-child { margin-bottom: 0; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-table th { font-size: 12px; font-weight: 600; color: #8A919C; text-align: left; padding: 0 0 6px; }
.mini-table td { padding: 8px 0; border-top: 1px solid #F1F4F7; color: #12142D; }
.mini-table .right { text-align: right; }
.step-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; }
.step-link:hover { color: inherit; }
.step-link:hover b { color: #1E4DB7; }
.step-link b { display: block; font-size: 14px; }
.step-link .small { display: block; }
.step-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex: none; background: #E6F4FF; color: #1E4DB7; }

.help-list { display: flex; flex-direction: column; }
.help-item { display: flex; gap: 14px; padding: 16px 26px; border-top: 1px solid #F1F4F7; }
.help-list .help-item:first-child { border-top: 0; }
.help-item.compact { padding: 10px 0; border-top: 0; border-bottom: 1px solid #F1F4F7; }
.help-item.compact:last-of-type { border-bottom: 0; }
.help-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex: none; background: #E6F4FF; color: #1E4DB7; }
.help-title { font-weight: 600; color: #12142D; font-size: 14px; }
.guide-link { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 13.5px; font-weight: 500; color: #1E4DB7; }
.guide-link i { font-size: 14px; flex: none; position: relative; top: 2px; }
.guide-link .faint { margin-left: auto; font-size: 12px; font-weight: 400; white-space: nowrap; padding-left: 10px; }
.guide-link:hover { color: #163A8F; text-decoration: underline; }
.guide-link.guide-sub { padding: 0 0 6px 22px; font-size: 12.5px; font-weight: 500; color: #4B5263; }
.guide-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.guide-modules h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.tile-link { padding: 16px 18px; border-radius: 14px; }
.cert-card { background: #FFFAE6; border-color: #F6E3A1; }
.cert-card i { color: #B08600; font-size: 20px; }
.link-btn i { margin-right: 4px; }
.person-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 3px 0; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F1F4F7; }
.person-row:last-child { border-bottom: 0; }
.person-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mod-details { margin-top: 6px; }
.mod-details summary { cursor: pointer; color: #1E4DB7; list-style: revert; }
.mod-details > div { padding: 2px 0; }
.rep-list { display: flex; flex-direction: column; }
.rep-form { margin: 0; }
.rep-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: #12142D; cursor: pointer; text-align: left; }
.rep-item:hover { background: #F4F8FE; color: #1E4DB7; }
.rep-item .help-icon { width: 32px; height: 32px; font-size: 16px; }
.rep-view .select-sm, .rep-pick .select-sm { width: auto; }
.rep-pick .select-sm { min-width: 190px; max-width: 100%; }
.help-menu .menu-head { margin: 0; padding: 14px 16px; }
.help-menu > a { border-radius: 0; padding: 10px 16px; align-items: flex-start; }
.help-menu > a small, .help-menu > button small { display: block; font-size: 12px; margin-top: 1px; }
.help-menu > button { border-radius: 0; padding: 10px 16px; align-items: flex-start; text-align: left; }
.help-menu .sep { margin: 0; }

.page-wide { max-width: none; }
.tabs a .n.n-red { background: #FFE4EA; color: #C21F43; }
.card-alert { border-color: #FFD3DD; }
.crumbs { display: flex; align-items: center; gap: 4px; color: #767E89; margin-bottom: 4px; }
.crumbs a { color: #4B5263; }
.crumbs a:hover { color: #1E4DB7; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CFE3FB; border-top-color: #1E4DB7; display: inline-block; animation: bkspin 0.8s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }

.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rv-title { font-size: 24px; margin: 0; }
.rv-head .select-sm { width: auto; max-width: 240px; }
.rv-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.rv-list { padding: 14px 10px; max-height: calc(100vh - 210px); overflow-y: auto; position: sticky; top: 90px; }
.rv-group { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8A919C; padding: 12px 10px 6px; }
.rv-group:first-child { padding-top: 2px; }
.rv-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: #2A2E45; font-size: 13.5px; font-weight: 500; }
.rv-item i { color: #767E89; font-size: 16px; }
.rv-item:hover { background: #F4F8FE; color: #1E4DB7; }
.rv-item.on { background: #E6F4FF; color: #1E4DB7; font-weight: 600; }
.rv-item.on i { color: #1E4DB7; }
.rv-frame { position: relative; overflow: hidden; min-height: calc(100vh - 210px); }
.rv-frame iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 560px; border: 0; background: #FFFFFF; }
.rv-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #4B5263; font-weight: 600; background: #FFFFFF; z-index: 2; }
.rv-loading.hide { display: none; }
.rv.full { position: fixed; inset: 0; z-index: 90; background: #F7F9FC; padding: 14px 18px; }
.rv.full .rv-body { grid-template-columns: minmax(0, 1fr); }
.rv.full .rv-list { display: none; }
.rv.full .rv-frame, .rv.full .rv-frame iframe { height: calc(100vh - 96px); min-height: 0; }
body.rv-embed { background: #FFFFFF; padding: 40px 20px; }

.recon-years .select-sm { width: auto; }
.recon-grid th, .recon-grid td { padding-left: 6px; padding-right: 6px; }
.recon-grid th:first-child, .recon-grid td:first-child { padding-left: 26px; min-width: 240px; }
.rc { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 15px; font-style: normal; vertical-align: middle; }
.rc-done { background: #E3F7EC; color: #1F9D5C; }
.rc-changed { background: #FFE4EA; color: #D92D52; }
.rc-open { background: #FFF1D6; color: #C26A00; }
.rc-missing { background: #F1F4F7; color: #9AA1AB; }
.rc-current { background: #E6F4FF; color: #199BFC; }
.rc-future { background: transparent; border: 1px dashed #DFE5EF; }
.recon-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.recon-legend span { display: inline-flex; align-items: center; gap: 6px; }
.recon-legend .rc { width: 20px; height: 20px; font-size: 12px; border-radius: 6px; }

@media (max-width: 1360px) {
  .mn-link { padding: 0 11px; font-size: 14px; }
  .mn-link i:first-child { display: none; }
}
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { border-bottom: 1px solid #ECF0F2; }
  .kpi:nth-child(3n) { border-right: 0; }
  .kpi:nth-last-child(-n+3) { border-bottom: 0; }
  .g-4, .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > .stat { border-bottom: 1px solid #ECF0F2; border-radius: 0; }
  .stat-strip > .stat:nth-child(2n) { border-right: 0; }
  .stat-strip > .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .g-main-side { grid-template-columns: minmax(0, 1fr); }
  .g-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .searchbar { max-width: 360px; }
}
@media (max-width: 1080px) {
  .rv-body { grid-template-columns: minmax(0, 1fr); }
  .rv-list { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .rv-group { width: 100%; }
  .mainnav { display: none; }
  .g-hero { grid-template-columns: minmax(0, 1fr); }
  body.nav-side .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar, body.nav-side .sidebar {
    display: flex; flex-direction: column; position: fixed; left: 0; top: 74px; bottom: 0; width: 290px; z-index: 50; height: auto; overflow-y: auto;
    padding: 20px 16px; background: #FFFFFF; border-right: 1px solid #ECF0F2;
    transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 0 20px 60px rgba(18, 20, 45, 0.2);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 74px 0 0 0; background: rgba(18, 20, 45, 0.35); z-index: 45; }
  .topbar .menu-toggle { display: inline-grid; }
  .brand .brand-sub { display: none; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .public-split { grid-template-columns: minmax(0, 1fr); }
  .public-aside { display: none; }
  .public-main .logo-sm { display: block; }
  .g-side-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .page { padding: 20px 16px 52px; }
  .topbar { padding: 0 12px; gap: 8px; height: 66px; }
  .brand .logo { height: 26px; }
  .searchbar { display: none; }
  .user-chip .who { display: none; }
  .topbar-actions { gap: 2px; }
  .user-chip { padding: 4px; }
  .user-chip > .ri-arrow-down-s-line { display: none; }
  .year-pill { display: none; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 14px 12px; border-right: 1px solid #ECF0F2; border-bottom: 1px solid #ECF0F2; }
  .kpi:nth-child(3n) { border-right: 1px solid #ECF0F2; }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-last-child(-n+3) { border-bottom: 1px solid #ECF0F2; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .kpi-value { font-size: 22px; }
  .guide-modules { grid-template-columns: minmax(0, 1fr); }
  .help-item { padding: 14px 16px; }
  .dash-head h1 { font-size: 23px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 16px; }
  .stat .stat-value { font-size: 24px; }
  .stat .stat-label { font-size: 12.5px; }
  .stat .row { flex-wrap: wrap; row-gap: 2px; }
  .stat .stat-icon { width: 42px; height: 42px; font-size: 19px; }
  .topbar-actions > .btn { display: none; }
  .g-3.stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats-row .stat { padding: 12px; }
  .stats-row .stat-sub, .stats-row .stat-icon { display: none; }
  .stats-row .stat-label { font-size: 10.5px; line-height: 1.3; }
  .callout { flex-wrap: wrap; }
  .callout > form { width: 100%; justify-content: flex-end; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  h1 { font-size: 24px; }
  .public-main { padding: 28px 18px; }
  .public-wrap { padding: 20px 16px 52px; }
  .public-top { padding: 0 16px; }
  .public-top .brand-sub { display: none; }
  .card-pad { padding: 18px; }
  .card-head, .card-body { padding-left: 18px; padding-right: 18px; }
  .table th:first-child, .table td:first-child { padding-left: 18px; }
  .list-item, .prio { padding-left: 18px; padding-right: 18px; }
  .code-input input { width: 46px; height: 54px; font-size: 22px; }
  .tier-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-wide { width: calc(100vw - 24px); right: -60px; }
  .hero-stat .hs-value { font-size: 28px; }
  .layout-choice { grid-template-columns: minmax(0, 1fr); }
  body.nav-open::after, .sidebar, body.nav-side .sidebar { top: 66px; }
}
@media print {
  .masthead, .sidebar, .page-head .actions, .bulkbar, .toasts { display: none !important; }
  body.nav-side .shell { display: block; }
  .card { box-shadow: none; }
}

/* Connect code (option 3: the business enters it in fiscal50) */
.connect-code { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px dashed #1E4DB7; border-radius: 12px; background: #F3F6FD; white-space: nowrap; }
.connect-code-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B6385; }
.connect-code-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: #1E4DB7; letter-spacing: .08em; }
.connect-code .icon-btn { width: 30px; height: 30px; }


/* ==== bk-13: services, onboarding, CRM, close review, insights, directory ==== */
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid #DFE5EF; border-right: 0; border-radius: 11px 0 0 11px; background: #F4F6F9; color: #767E89; font-size: 14px; }
.input-group .addon + .input { border-radius: 0 11px 11px 0; }
.tabs-scroll { overflow-x: auto; scrollbar-width: thin; }
.tabs-scroll a { white-space: nowrap; }
.tabs-bar { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid #ECF0F2; margin-bottom: 22px; }
.tabs-bar .tabs { border-bottom: 0; margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.tabs-more { flex: 0 0 auto; }
.tabs-more .tm {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; margin-bottom: -1px; border: 0;
  border-bottom: 3px solid transparent; background: none; color: #767E89; font: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer; white-space: nowrap;
}
.tabs-more .tm:hover { color: #12142D; }
.tabs-more .tm.on { color: #1E4DB7; border-bottom-color: #1E4DB7; }
.tabs-more .menu { min-width: 200px; }
.tiny { font-size: 11.5px; }
.is-muted td { opacity: 0.55; }
.checklist li.na .ck-title { text-decoration: line-through; color: #9AA1AB; }

/* CRM board */
.crm-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.crm-col { background: #F4F7FB; border: 1px solid #ECF0F2; border-radius: 16px; padding: 10px; min-height: 160px; }
.crm-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 6px 10px; }
.crm-card { display: block; background: #FFFFFF; border: 1px solid #ECF0F2; border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; color: #12142D; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.crm-card:hover { border-color: #A9D5FD; box-shadow: 0 4px 14px rgba(18, 20, 45, 0.06); }
.crm-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-stages button, .crm-stages span { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #DFE5EF; background: #FFFFFF; color: #4B5263; font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; cursor: pointer; }
.crm-stages button:disabled { cursor: default; }
.crm-stages .on { background: #E6F4FF; border-color: #BFE0FE; color: #1E4DB7; }
.crm-stages span.won.on { background: #EBFAF1; border-color: #CDEFDB; color: #1F9D5C; }
@media (max-width: 1080px) { .crm-board { grid-template-columns: repeat(4, 240px); } }

/* Month-end close & quality review */
.close-pickers { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.close-pickers .picker { display: flex; flex-direction: column; gap: 2px; background: #FFFFFF; border: 1px solid #ECF0F2; border-radius: 14px; padding: 8px 14px; min-width: 220px; }
.close-pickers .picker span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #767E89; }
.close-pickers .picker select { border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 700; color: #12142D; padding: 2px 0; cursor: pointer; }
.close-pickers .picker select:focus { outline: none; }
.readiness { display: flex; gap: 28px; align-items: center; }
.readiness-l { min-width: 150px; }
.readiness-pct { font-size: 30px; font-weight: 760; color: #12142D; margin-top: 4px; font-variant-numeric: tabular-nums; }
.close-table .group-row td { background: #F7F9FC; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #767E89; padding-top: 8px; padding-bottom: 8px; }
.close-table tr.is-done .strong { color: #4B5263; }
.ck-mini { width: 30px; height: 26px; border-radius: 8px; border: 1px solid #DFE5EF; background: #F4F6F9; color: #9AA1AB; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800; cursor: pointer; padding: 0; }
.ck-mini.on { background: #EBFAF1; border-color: #CDEFDB; color: #1F9D5C; }
.owner-pick { width: auto; max-width: 160px; height: 32px; border-color: #ECF0F2; background-color: #FFFFFF; }
.rnote { display: flex; gap: 12px; border: 1px solid #ECF0F2; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #FFFFFF; }
.rn-dot { width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; background: #E6F4FF; }
.rn-dot::after { content: ""; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #1E4DB7; }
.rn-dot.amber { background: #FFF3E5; }
.rn-dot.amber::after { background: #C26A00; }
.rn-dot.red { background: #FFEDF1; }
.rn-dot.red::after { background: #D92D52; }
.pkg-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-steps span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #F4F6F9; color: #9AA1AB; font-size: 13px; font-weight: 600; }
.pkg-steps span.done { background: #EBFAF1; color: #1F9D5C; }

/* Practice assistant */
.ask-box { font-size: 16px; font-weight: 600; background: #F0F6FF; border-color: #DCE6FB; min-height: 64px; }
.answer-box { border: 1px solid #DFE5EF; border-radius: 14px; padding: 16px 18px; background: #F7FAFD; line-height: 1.6; margin-bottom: 12px; }
.evidence { display: flex; align-items: center; gap: 12px; border: 1px solid #ECF0F2; border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; background: #FFFFFF; }
.evidence input[type="checkbox"] { width: 17px; height: 17px; accent-color: #1E4DB7; flex: none; }
.ra { display: flex; gap: 12px; border: 1px solid #ECF0F2; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.ra .stat-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }

/* Practice metrics */
.metric-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .metric-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .metric-groups { grid-template-columns: minmax(0, 1fr); } }

/* Client relationship card */
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rel-grid > div { border: 1px solid #ECF0F2; border-radius: 14px; padding: 12px 14px; background: #F7FAFD; min-width: 0; }
.rel-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #767E89; margin-bottom: 4px; }
.rel-v { font-size: 14px; font-weight: 650; color: #12142D; }
.rel-s { font-size: 12.5px; color: #767E89; margin-top: 2px; }
@media (max-width: 900px) { .rel-grid { grid-template-columns: minmax(0, 1fr); } }

/* Timeline extras */
.timeline li.pinned .tl-text b { color: #1E4DB7; }

/* Directory (public) */
.directory-page { background: #F7F9FC; }
.dir-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; }
.portal-head .firm-brand { display: inline-flex; align-items: center; gap: 14px; }
@media (max-width: 760px) { .readiness { flex-direction: column; align-items: stretch; gap: 12px; } .close-pickers .picker { min-width: 0; flex: 1; } }

/* ==== bk-16: My books, header categories ==== */
.topbar-form { display: inline-flex; margin: 0; }
.steps-list { margin: 12px 0 0 20px; padding: 0; display: grid; gap: 14px; }
.steps-list li { padding-left: 4px; }
.year-pill { white-space: nowrap; }
@media (max-width: 1320px) {
  .year-pill { display: none; }
}
@media (max-width: 1240px) {
  .mn-link { padding: 0 9px; font-size: 13.5px; gap: 6px; }
}

/* ==== bk-17: font choice ==== */
.font-picks { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.theme-menu .font-pick { padding: 7px 11px; font-size: 14px; }
.font-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.font-choice label { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid #DFE5EF; border-radius: 14px; cursor: pointer; }
.font-choice label:has(input:checked) { border-color: #1E4DB7; box-shadow: 0 0 0 3px rgba(30, 77, 183, 0.12); }
.font-choice input { position: absolute; opacity: 0; }
.font-choice b { font-size: 15px; }
.font-choice .font-sample { font-size: 13.5px; color: #4B5263; }
html[data-theme="dark"] .font-choice label { border-color: #273147; }
html[data-theme="dark"] .font-choice .font-sample { color: #B8C1D3; }
@media (max-width: 760px) { .font-choice { grid-template-columns: minmax(0, 1fr); } }

/* Close checklist editor (bk-27) */
.cte-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cte-main { min-width: 0; }
.cte-card { margin-bottom: 18px; }
.cte-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cte-card-head h2 { margin: 2px 0 2px; display: flex; align-items: center; gap: 8px; }
.cte-card-head p { margin: 0; }
.cte-badge { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #1E4DB7; color: #FFFFFF; font-weight: 700; font-size: 14px; }
.cte-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: #E6F4FF; color: #1E4DB7; font-size: 12.5px; font-weight: 700; }
.cte-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 16px; }
.cte-default { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #E1E6EC; border-radius: 14px; background: #F8FBFF; cursor: pointer; }
.cte-default input { margin-top: 3px; width: 17px; height: 17px; accent-color: #1E4DB7; flex: none; }
.cte-default b { display: block; color: #12142D; font-size: 14px; }
.cte-default small { display: block; color: #767E89; font-size: 12.5px; margin-top: 2px; }
.cte-steps { display: grid; gap: 12px; }
.cte-step { border: 1px solid #E1E6EC; border-left: 4px solid #1E4DB7; border-radius: 16px; background: #FFFFFF; padding: 14px 16px 16px; }
.cte-step.cte-new { border-left-color: #E8BA06; box-shadow: 0 0 0 3px #FFF3C4; }
.cte-step-head { display: flex; gap: 12px; align-items: flex-end; }
.cte-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #F0F6FF; color: #1E4DB7; font-weight: 700; margin-bottom: 6px; }
.cte-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cte-title .input { font-weight: 600; }
.cte-tools { display: flex; gap: 2px; margin-bottom: 6px; }
.cte-tools .icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.cte-tools .cte-del:hover { background: #FFEDF1; color: #D92D52; }
.cte-lbl { font-size: 12.5px; font-weight: 600; color: #4B5263; display: flex; align-items: center; gap: 6px; }
.cte-lbl .req { color: #FC4A6C; }
.cte-k { flex: none; width: 18px; height: 18px; border-radius: 6px; display: inline-grid; place-items: center; background: #1E4DB7; color: #FFFFFF; font-size: 11px; font-weight: 700; }
.cte-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E1E6EC; }
.cte-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cte-field .select { width: 100%; min-width: 0; }
.cte-area-pick { position: relative; }
.cte-area-pick i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #1E4DB7; font-size: 16px; pointer-events: none; }
.cte-area-pick .select { padding-left: 36px; }
.cte-explain { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.cte-explain i { font-size: 16px; line-height: 1.2; }
.cte-explain.cte-live { background: #EEF4FF; color: #1E3A7B; }
.cte-explain.cte-live i { color: #1E4DB7; }
.cte-explain.cte-off { background: #FFF7D6; color: #6B5300; }
.cte-explain.cte-off i { color: #A3A9B3; }
.cte-explain.cte-manual { background: #F4F6F9; color: #4B5263; }
.cte-note { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.cte-empty { text-align: center; padding: 26px 16px; border: 1px dashed #D6DEE8; border-radius: 16px; color: #767E89; }
.cte-empty i { font-size: 28px; color: #A3A9B3; }
.cte-empty p { margin: 6px 0 0; }
.cte-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.cte-lib { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.cte-lib i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #C49A00; pointer-events: none; }
.cte-lib .select { padding-left: 36px; width: 100%; }
.cte-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; background: #F7F9FC; border-top: 1px solid #E1E6EC; }
.cte-sticky { position: sticky; top: 90px; }
.cte-guide { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.cte-guide li { display: flex; gap: 10px; align-items: flex-start; }
.cte-guide .cte-k { margin-top: 1px; }
.cte-guide b { display: block; font-size: 13.5px; color: #12142D; }
.cte-guide small { display: block; color: #767E89; font-size: 12.5px; line-height: 1.4; }
.cte-guide small b { display: inline; font-size: 12.5px; }
.cte-legend { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #F8FBFF; font-size: 12.5px; color: #4B5263; }
.cte-legend div { display: flex; gap: 8px; align-items: flex-start; }
.cte-legend i { font-size: 15px; }
.cte-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cte-sum div { text-align: center; padding: 10px 4px; border-radius: 12px; background: #F4F6F9; }
.cte-sum b { display: block; font-size: 20px; color: #12142D; }
.cte-sum span { font-size: 12px; color: #767E89; }
.cte-areas { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cte-areas li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #4B5263; }
.cte-areas li i { color: #1E4DB7; }
.cte-areas li span { flex: 1; }
.cte-areas li b { color: #12142D; }
@media (max-width: 1100px) {
  .cte-layout { grid-template-columns: minmax(0, 1fr); }
  .cte-sticky { position: static; }
  .cte-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cte-about { grid-template-columns: minmax(0, 1fr); }
  .cte-fields { grid-template-columns: minmax(0, 1fr); }
  .cte-step-head { flex-wrap: wrap; }
  .cte-tools { margin-left: auto; }
}

/* Close checklists, board and client close (bk-28): compact, one row per item */
.avatar-xs { width: 22px; height: 22px; font-size: 9px; flex: none; }
.pill-sm { padding: 2px 8px; font-size: 11.5px; gap: 4px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.cte-due { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 0 16px; align-items: start; margin-bottom: 14px; }
.cte-due-input { display: flex; align-items: center; gap: 10px; }
.cte-due-input .input { width: 90px; text-align: center; font-weight: 700; }
.cte-due-input span { color: #4B5263; font-size: 13.5px; white-space: nowrap; }
.cte-due-example { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #F0F6FF; margin-top: 24px; }
.cte-due-example i { color: #1E4DB7; font-size: 18px; margin-top: 1px; }
.cte-due-example b { display: block; color: #12142D; font-size: 14px; }
.cte-due-example small { display: block; color: #767E89; font-size: 12.5px; margin-top: 2px; line-height: 1.4; }

.cx-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.cx-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; }
.cx-title .avatar { width: 40px; height: 40px; font-size: 14px; flex: none; }
.cx-title-text { min-width: 0; }
.cx-title h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.cx-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #4B5263; font-size: 13px; margin-top: 2px; }
.cx-pick { display: flex; gap: 6px; }
.cx-pick .select-sm { height: 34px; width: auto; max-width: 220px; }
.cx-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cx-actions form { margin: 0; }

.cx-bar { display: flex; flex-wrap: wrap; margin-bottom: 12px; overflow: hidden; }
.cx-bar-item { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-right: 1px solid #ECF0F2; font-size: 13.5px; min-height: 46px; }
.cx-bar-item:last-child { border-right: 0; }
.cx-bar-item b { color: #12142D; }
.cx-bar-item.is-late { background: #FFF5F7; }
.cx-bar-progress { flex: 1 1 260px; }
.cx-bar-progress .progress { flex: 1; min-width: 80px; }
.cx-k { color: #767E89; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.cx-k-gap { margin-left: 8px; }
.cx-edit { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: #F0F6FF; color: #1E4DB7; cursor: pointer; padding: 0; font-size: 13px; }
.cx-edit:hover { background: #DDEBFF; }

.cx-note { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 13.5px; }
.cx-note > span { flex: 1; }
.cx-note form { margin: 0; }
.cx-note-info { background: #F0F6FF; color: #1E3A7A; }
.cx-note-warn { background: #FFF6E8; color: #7A4A00; }

.cx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.cx-main { min-width: 0; }
.cx-side { display: grid; gap: 12px; }
.cx-panel h3 { margin: 0; font-size: 15px; }
.cx-tabs { margin-bottom: 12px; }

.cx-table { table-layout: fixed; font-size: 13.5px; }
.cx-table th { padding-top: 9px; padding-bottom: 9px; }
.cx-table td { padding: 7px 10px; height: 44px; }
.cx-table th { padding-left: 10px; padding-right: 10px; }
.cx-table td:first-child, .cx-table th:first-child { padding-left: 16px; }
.cx-table td:last-child, .cx-table th:last-child { padding-right: 12px; }
.cx-table .c-tick { width: 52px; }
.cx-table .c-f50 { width: 220px; }
.cx-table .c-owner { width: 150px; }
.cx-table .c-status { width: 128px; }
.cx-table .c-act { width: 78px; }
.cx-table .c-client { width: 22%; }
.cx-table .c-list { width: 15%; }
.cx-table .c-prog { width: 150px; }
.cx-table .c-due { width: 118px; }
.cx-table .c-go { width: 64px; }
.cx-table .c-n { width: 86px; }
.cx-table .c-tact, .cx-table .c-tact2 { width: 150px; }
.cx-table .c-num { width: 48px; }
.cx-table .c-check { width: 220px; }
.cx-table .c-who { width: 110px; }
.cx-table .c-opens { width: 180px; }
.cx-group td { height: auto; padding-top: 7px; padding-bottom: 7px; background: #F6F8FB; color: #12142D; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cx-group td i { color: #1E4DB7; margin-right: 6px; font-size: 14px; vertical-align: -2px; }
.cx-table tbody tr.cx-group:hover { background: transparent; }
.cx-group-n { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #E6EEF9; color: #1E4DB7; font-size: 11px; letter-spacing: 0; }
.cx-group-n.is-done { background: #EBFAF1; color: #1F9D5C; }
.cx-step { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-step > * { vertical-align: middle; }
.cx-step .avatar-xs { display: inline-grid; margin-right: 8px; }
.cx-step-t { font-weight: 600; color: #12142D; }
a.cx-step-t:hover { color: #1E4DB7; }
.cx-step-x { margin-left: 8px; color: #4B5263; font-size: 12.5px; }
.cx-step-x i { margin-right: 3px; }
.cx-step .pill-sm { margin-left: 6px; }
.cx-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #F2F4F7; color: #4B5263; font-size: 11px; font-weight: 600; }
.cx-row.is-done .cx-step-t { color: #767E89; text-decoration: line-through; text-decoration-color: #C3CAD3; }
.cx-row.is-blocked { background: #FFF8F9; }
.cx-row.is-na { opacity: 0.55; }
.cx-row.is-late td:first-child { box-shadow: inset 3px 0 0 #D92D52; }
.cx-row:target { background: #F0F6FF; }
.cx-row td form { margin: 0; }
.cx-tick { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #C9D2DE; background: #FFFFFF; color: transparent; display: grid; place-items: center; font-size: 15px; cursor: pointer; padding: 0; }
.cx-tick:hover { border-color: #1E4DB7; color: #9DB6E8; }
.cx-tick.on { background: #1E4DB7; border-color: #1E4DB7; color: #FFFFFF; }
.cx-tick.is-static { cursor: default; }
.cx-row.is-na .cx-tick { color: #767E89; }
.cx-f50 { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #F2F4F7; color: #4B5263; font-size: 12px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-f50.is-ok { background: #E6F0FF; color: #1E4DB7; }
.cx-f50.is-no { background: #FFF3E5; color: #C26A00; }
.cx-f50.is-off { background: #FFF7D6; color: #8C6D00; }
.cx-owner { width: 100%; height: 30px; padding: 0 22px 0 8px; border: 1px solid transparent; border-radius: 8px; background-color: transparent; color: #12142D; font: inherit; font-size: 13px; cursor: pointer; text-overflow: ellipsis; }
.cx-owner:hover, .cx-owner:focus { border-color: #DDE3EA; background-color: #FFFFFF; }
.cx-act { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.cx-act .icon-btn { width: 30px; height: 30px; }
.cx-open { color: #1E4DB7; }
.cx-prog { display: flex; align-items: center; gap: 8px; }
.cx-prog .progress { flex: 1; height: 6px; }
.cx-late, .cx-soon { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.cx-late { background: #FFEDF1; color: #D92D52; }
.cx-soon { background: #FFF3E5; color: #C26A00; }
.cx-rnote { padding: 8px 0; border-bottom: 1px solid #ECF0F2; }
.cx-rnote:last-of-type { border-bottom: 0; }
.cx-feed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cx-feed li { display: flex; gap: 8px; align-items: flex-start; }
.cx-feed li > i { color: #1E4DB7; margin-top: 2px; }
.cx-feed .small { line-height: 1.35; }
@media (max-width: 1100px) {
  .cx-layout { grid-template-columns: minmax(0, 1fr); }
  .cx-side { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .cx-table { table-layout: auto; }
  .cx-table td.cx-step { max-width: 220px; }
  .cx-steps th:nth-child(3), .cx-steps td:nth-child(3), .cx-steps th:nth-child(4), .cx-steps td:nth-child(4) { display: none; }
  .cx-steps .cx-group td { display: table-cell; }
  .cx-steps td.cx-step { max-width: 170px; }
  .cx-bar-item { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid #ECF0F2; }
  .cx-pick { width: 100%; }
  .cx-pick .select-sm { flex: 1; max-width: none; }
  .cte-due { grid-template-columns: minmax(0, 1fr); }
  .cte-due-example { margin-top: 0; }
}
.cx-bar-grow { flex: 1 1 280px; }
.cx-names { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #12142D; font-weight: 600; }
.cx-assign-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.cx-assign-tools .input { flex: 1; }
.cx-assign { max-height: 320px; overflow-y: auto; border: 1px solid #E1E6EC; border-radius: 12px; }
.cx-assign-row { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #F0F3F6; cursor: pointer; font-size: 13.5px; }
.cx-assign-row:last-child { border-bottom: 0; }
.cx-assign-row:hover { background: #F8FBFF; }
.cx-assign-row input { width: 16px; height: 16px; accent-color: #1E4DB7; flex: none; }
.cx-assign-name { flex: 1; min-width: 0; font-weight: 600; color: #12142D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-assign-now { color: #767E89; font-size: 12px; white-space: nowrap; }
.cx-f50.is-auto { background: #F0F6FF; color: #1E4DB7; }
.cx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cx-legend i { margin-right: 3px; }
.cx-why { color: #B45309; font-weight: 500; }
.cx-why.is-cant { color: #767E89; font-weight: 400; }
.cx-step.has-why { white-space: normal; }
.cx-step.has-why .cx-step-t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-step.has-why .cx-why { display: block; margin: 1px 0 0; font-size: 12px; line-height: 1.35; }
.cb-table .cx-step-x.cx-why { margin-left: 0; }

/* ==== Page help (bk-35): ? button, guide panel, All help guides ==== */
.hg-fab {
  position: fixed !important; right: 24px; bottom: 24px !important; top: auto !important; left: auto !important; margin: 0 !important;
  z-index: 2147483000; width: 48px; height: 48px; border-radius: 50%; border: 0; float: none; transform: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: #1E4DB7; color: #FFFFFF; font-size: 24px; box-shadow: 0 10px 26px rgba(30, 77, 183, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.hg-fab:hover { background: #173E96; transform: translateY(-2px); }
.hg-fab:focus-visible { outline: 3px solid #E8BA06; outline-offset: 3px; }
.hg-fab.on { background: #12142D; }
body.has-help .toasts { bottom: 86px; right: 84px; }
.hg-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147482000; width: 600px; max-width: 100%;
  display: flex; flex-direction: column; background: #FFFFFF; border-left: 1px solid #E3E7EE;
  box-shadow: -18px 0 44px rgba(18, 20, 45, 0.16); animation: hgIn 0.18s ease-out;
}
.hg-panel[hidden], .hg-back[hidden] { display: none; }
@keyframes hgIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.help-open .hg-fab { right: 624px; }
.hg-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #E3E7EE; }
.hg-eyebrow { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1E4DB7; }
.hg-eyebrow i { font-size: 16px; }
.hg-body { flex: 1; overflow-y: auto; padding: 18px 22px 22px; }
.hg-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 22px; border-top: 1px solid #E3E7EE; font-size: 13px; }
.hg-foot a { display: inline-flex; align-items: center; gap: 5px; color: #1E4DB7; font-weight: 600; text-decoration: none; }
.hg-foot a:hover { text-decoration: underline; }
.hg-loading { display: flex; align-items: center; gap: 8px; color: #767E89; font-size: 14px; padding: 18px 0; }
.hg-loading i { font-size: 18px; animation: hgSpin 1s linear infinite; }
.hg-loading.hg-error i { animation: none; color: #D13854; }
@keyframes hgSpin { to { transform: rotate(360deg); } }
.hg-title { font-size: 20px; line-height: 1.3; margin: 0 0 6px; outline: none; }
.hg-summary { margin: 0 0 14px; color: #5B6385; font-size: 14.5px; line-height: 1.5; }
.hg-text { font-size: 14px; line-height: 1.6; color: #2A2F45; }
.hg-text h3 { font-size: 14.5px; margin: 18px 0 6px; color: #12142D; }
.hg-text p { margin: 0 0 10px; }
.hg-text ul, .hg-text ol { margin: 0 0 12px; padding-left: 20px; }
.hg-text li { margin: 0 0 5px; }
.hg-text ol.hg-ol { list-style: none; counter-reset: hgstep; padding-left: 0; }
.hg-text ol.hg-ol li { counter-increment: hgstep; position: relative; padding-left: 32px; min-height: 22px; }
.hg-text ol.hg-ol li::before {
  content: counter(hgstep); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #EAF0FC; color: #1E4DB7; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hg-note { display: flex; gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: #FFF8E1; border: 1px solid #F5DE8C; color: #5C4A00; font-size: 13.5px; }
.hg-note i { color: #B08A00; font-size: 17px; flex: none; }
.hg-group { margin-top: 18px; }
.hg-k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #767E89; margin: 0 0 6px; }
.hg-link {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 0 4px; border-radius: 10px;
  border: 1px solid #E3E7EE; background: #FFFFFF; color: #12142D; text-align: left; font: inherit; font-size: 13.5px;
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.hg-link:hover { border-color: #1E4DB7; background: #F3F6FD; }
.hg-link > i { color: #1E4DB7; font-size: 17px; flex: none; }
.hg-link span { flex: 1; min-width: 0; }
.hg-link small { display: block; font-weight: 400; color: #767E89; font-size: 12.5px; margin-top: 1px; }
.hg-link .hg-go { color: #A3A9B3; }
.hg-text h4 { font-size: 13.5px; margin: 14px 0 6px; color: #2A2F45; }
.hg-toc { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #E3E7EE; border-radius: 12px; background: #F8FAFD; }
.hg-toc ol { margin: 0; padding-left: 20px; font-size: 13.5px; columns: 2; column-gap: 20px; }
.hg-toc li { margin: 0 0 4px; break-inside: avoid; }
.hg-toc a { color: #1E4DB7; text-decoration: none; }
.hg-toc a:hover { text-decoration: underline; }
.hg-fig { margin: 12px 0 10px; position: relative; }
.hg-panel .hg-fig { margin-left: -12px; margin-right: -12px; }
.hg-fig a::after { content: "Click to enlarge"; position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(18, 20, 45, 0.72); color: #FFFFFF; font-size: 11.5px; opacity: 0; transition: opacity 0.15s ease; }
.hg-fig a:hover::after { opacity: 1; }
.hg-panel.hg-wide { width: min(1120px, 94vw); }
body.help-open.help-wide .hg-fab { display: none; }
.hg-fig a { display: block; border: 1px solid #E3E7EE; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #F2F4F8; }
.hg-fig img { display: block; width: 100%; height: auto; }
.hg-fig figcaption { margin-top: 6px; font-size: 12.5px; color: #767E89; text-align: center; }
.hg-text ol.hg-callouts { list-style: none; padding-left: 0; margin: 0 0 14px; }
.hg-callouts li { display: flex; gap: 10px; margin: 0 0 7px; }
.hg-cn {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E8BA06; color: #12142D; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.hg-faqs { margin: 4px 0 12px; }
.hg-faq { border: 1px solid #E3E7EE; border-radius: 10px; margin: 0 0 6px; background: #FFFFFF; }
.hg-faq summary { cursor: pointer; padding: 9px 12px; font-weight: 600; color: #12142D; }
.hg-faq[open] summary { border-bottom: 1px solid #E3E7EE; }
.hg-faq div { padding: 9px 12px; }
.hg-tablewrap { overflow-x: auto; margin: 6px 0 12px; }
.hg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hg-table th { text-align: left; background: #F3F6FD; color: #12142D; font-weight: 700; padding: 7px 10px; border: 1px solid #E3E7EE; }
.hg-table td { padding: 7px 10px; border: 1px solid #E3E7EE; vertical-align: top; }
.hg-zoom { position: fixed; inset: 0; z-index: 2147483600; background: rgba(18, 20, 45, 0.82); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.hg-zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #FFFFFF; }
.hg-zoom[hidden] { display: none; }
.hg-edit { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: #767E89; }
.hg-index { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.hg-list { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow-y: auto; }
.hg-area { margin: 0 0 14px; }
.hg-area[hidden], .hg-item[hidden] { display: none; }
.hg-item { display: block; padding: 6px 10px; border-radius: 8px; color: #2A2F45; font-size: 13.5px; text-decoration: none; }
.hg-item:hover { background: #F3F6FD; color: #1E4DB7; }
.hg-item.on { background: #EAF0FC; color: #1E4DB7; font-weight: 600; }
.hg-show { min-height: 320px; }
.hg-show .hg-title { font-size: 24px; }
.hg-show .hg-text { max-width: none; font-size: 15px; }
.hg-show .hg-text > :not(.hg-fig):not(.hg-tablewrap) { max-width: 820px; }
.hg-show .hg-fig { max-width: 1180px; }
@media (max-width: 900px) {
  .hg-index { grid-template-columns: 1fr; }
  .hg-list { position: static; max-height: none; }
}
@media (max-width: 1100px) {
  .hg-panel { width: 480px; }
  body.help-open .hg-fab { right: 504px; }
}
@media (max-width: 640px) {
  .hg-toc ol { columns: 1; }
  .hg-panel { width: 100%; }
  .hg-fab { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 22px; }
  body.help-open .hg-fab { display: none; }
  body.has-help .toasts { right: 16px; left: 16px; bottom: 72px; }
}
@media print {
  .hg-fab, .hg-panel { display: none !important; }
}

/* My clients: the whole row fits a 1366 px screen, Log in included (bk-37) */
.cl-table td, .cl-table th { padding-left: 10px; padding-right: 10px; }
.cl-table td:first-child, .cl-table th:first-child { padding-left: 18px; }
.cl-table td:last-child, .cl-table th:last-child { padding-right: 18px; }
.cl-table td.actions { width: 1%; }
.cl-table .status-line { white-space: normal; }
.cl-table td.wrap-sm { min-width: 120px; }
@media (max-width: 1500px) {
  .cl-table .cl-login { display: none; }
  .cl-table .btn-primary.btn-sm { padding-left: 9px; padding-right: 9px; }
}

/* Add a client: live fiscal50 e-mail check (bk-38) */
.email-check { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; font-size: 13px; line-height: 1.45; color: #5B6385; }
.email-check[hidden] { display: none; }
.email-check i { font-size: 16px; flex: none; margin-top: 1px; }
.email-check.is-ok { color: #1F7A4D; }
.email-check.is-warn, .email-check.is-missing { color: #8A6100; }
.email-check.is-taken { color: #B42343; }
.email-check.is-checking i { animation: hgSpin 1s linear infinite; }
.email-check-go { margin-left: 6px; font-weight: 600; white-space: nowrap; color: #1E4DB7; }
input[aria-invalid="true"] { border-color: #D13854; }
/* bk-39: a menu item the plan doesn't include */
.mn-link .mn-lock { font-size: 14px; margin-left: 4px; opacity: 0.75; }

/* bk-41: Team invite and member pages hide these with the hidden attribute */
[data-member-only][hidden], [data-admin-only][hidden], [data-all-note][hidden] { display: none !important; }
/* bk-52 CRM */
.crm-card[draggable="true"] { cursor: grab; }
.crm-card.dragging { opacity: 0.45; }
.crm-col.drop { border-color: #1E4DB7; background: #EAF1FE; }
.crm-col-cards { min-height: 60px; }
.crm-view-toggle { display: inline-flex; border: 1px solid #DFE5EF; border-radius: 999px; overflow: hidden; }
.crm-view-toggle a { padding: 5px 12px; font-size: 13px; font-weight: 600; color: #4B5263; text-decoration: none; }
.crm-view-toggle a.on { background: #E6F4FF; color: #1E4DB7; }
.crm-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: #F2F4F7; color: #475467; font-size: 11px; font-weight: 600; text-decoration: none; }
.crm-bars { display: flex; flex-direction: column; gap: 8px; }
.crm-bar-row { display: grid; grid-template-columns: 90px 1fr 110px; gap: 10px; align-items: center; font-size: 13px; }
.crm-bar-track { height: 12px; border-radius: 999px; background: #F2F4F7; overflow: hidden; }
.crm-bar-fill { height: 100%; border-radius: 999px; background: #1E4DB7; min-width: 2px; }
.crm-bar-fill.gold { background: #E8BA06; }
.crm-quote-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #ECF0F2; }
.crm-quote-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 8px; }
.crm-embed { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 760px) { .crm-bar-row { grid-template-columns: 70px 1fr 80px; } }
/* bk-53 Learning & help */
.lx-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 22px; background: #F2F5F9; border: 1px solid #E6EBF2; border-radius: 14px; }
.lx-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; color: #4B5263; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.lx-tabs a i { font-size: 17px; }
.lx-tabs a:hover { color: #12142D; background: #E9EEF5; }
.lx-tabs a.on { background: #FFFFFF; color: #1E4DB7; box-shadow: 0 1px 3px rgba(18, 20, 45, 0.10); }
.lx-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; overflow: hidden; margin-bottom: 20px; }
.lx-hero-main { display: flex; gap: 24px; align-items: center; padding: 26px 28px; }
.lx-hero-next { padding: 26px 28px; background: linear-gradient(135deg, #1E4DB7 0%, #2B63D9 100%); color: #FFFFFF; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.lx-hero-next .eyebrow { color: #C9D8FA; }
.lx-hero-next h3 { color: #FFFFFF; font-size: 20px; margin: 0; }
.lx-hero-next p { color: #DCE6FB; margin: 0; font-size: 14px; }
.lx-hero-next .btn-light { background: #FFFFFF; color: #1E4DB7; border-color: #FFFFFF; }
.lx-hero-next .btn-light:hover { background: #EEF3FE; }
.lx-hero-next .lx-link { color: #FFFFFF; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lx-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.lx-ring-in { width: 86px; height: 86px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; text-align: center; }
.lx-ring-in b { font-size: 24px; color: #12142D; line-height: 1; font-variant-numeric: tabular-nums; }
.lx-ring-in span { font-size: 11px; color: #767E89; }
.lx-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lx-mini div { background: #F6F8FB; border-radius: 12px; padding: 10px 12px; }
.lx-mini dt { font-size: 12px; color: #767E89; margin: 0; }
.lx-mini dd { font-size: 16px; font-weight: 700; color: #12142D; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.lx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.lx-section-head h2 { margin: 0; }
.lx-section-head p { margin: 2px 0 0; font-size: 13px; color: #767E89; }
.lx-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.lx-issue { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.lx-issue-top { display: flex; align-items: center; gap: 12px; }
.lx-chip-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: #EAF1FE; color: #1E4DB7; }
.lx-chip-icon.gold { background: #FFF6D6; color: #8A6500; }
.lx-count { margin-left: auto; font-size: 12px; font-weight: 700; color: #B42318; background: #FEF0EF; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.lx-row-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #F6F8FB; color: #12142D; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.lx-row-link:hover { background: #EAF1FE; color: #1E4DB7; }
.lx-row-link .faint { margin-left: auto; font-weight: 500; }
.lx-row-link > i:last-child { color: #A0A8B4; }
.lx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.lx-tile { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.lx-tile:hover { border-color: #A9D5FD; box-shadow: 0 6px 18px rgba(18, 20, 45, 0.07); transform: translateY(-1px); }
.lx-tile b { color: #12142D; font-size: 14.5px; }
.lx-tile .small { flex: 1; }
.lx-tile-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #767E89; }
.lx-tile-foot i { color: #1E4DB7; font-size: 16px; }
.lx-search { position: relative; min-width: 220px; max-width: 300px; flex: 0 1 300px; }
.lx-search input { width: 100%; padding-left: 36px; }
.lx-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9AA1AB; pointer-events: none; }
.lx-module { margin-bottom: 10px; }
.lx-module summary { list-style: none; display: grid; grid-template-columns: 1fr 160px 70px 20px; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.lx-module summary::-webkit-details-marker { display: none; }
.lx-module summary b { color: #12142D; }
.lx-module summary .chev { transition: transform 0.15s; color: #A0A8B4; }
.lx-module[open] summary .chev { transform: rotate(90deg); }
.lx-module[open] summary { border-bottom: 1px solid #ECF0F2; }
.lx-guide { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #F2F4F7; }
.lx-guide:last-child { border-bottom: 0; }
.lx-guide .t { flex: 1; font-size: 14px; color: #12142D; }
.lx-guide .t i { color: #1E4DB7; margin-right: 6px; }
.lx-done { color: #1F9D5C; }
.lx-side-card { padding: 20px; }
.lx-filter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.lx-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: inherit; text-decoration: none; border: 1px solid #ECF0F2; transition: border-color 0.15s, box-shadow 0.15s; }
.lx-stat:hover { border-color: #A9D5FD; }
.lx-stat.on { border-color: #1E4DB7; box-shadow: 0 0 0 3px rgba(30, 77, 183, 0.12); }
.lx-stat-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #767E89; }
.lx-stat-top i { font-size: 18px; }
.lx-stat b { font-size: 26px; color: #12142D; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lx-stat span.sub { font-size: 12px; color: #767E89; }
.lx-person { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.lx-person + .lx-person { border-top: 1px dashed #ECF0F2; }
.lx-person .who { min-width: 0; flex: 1; }
.lx-person .who b { display: block; font-size: 13.5px; color: #12142D; font-weight: 600; }
.lx-person .progress { width: 90px; height: 6px; margin-top: 4px; }
.lx-issue-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 3px 0; }
.lx-issue-line i { color: #1E4DB7; margin-top: 2px; }
@media (max-width: 1100px) { .lx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lx-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .lx-hero { grid-template-columns: 1fr; } .lx-issues, .lx-tiles { grid-template-columns: 1fr; } .lx-module summary { grid-template-columns: 1fr 70px 20px; } .lx-module summary .progress { display: none; } .lx-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lx-hero-main { flex-direction: column; align-items: flex-start; } .lx-mini { grid-template-columns: 1fr 1fr; } .lx-tabs a { padding: 0 12px; } .lx-head, .lx-section-head { flex-wrap: wrap; } .lx-search { flex: 1 1 100%; max-width: none; min-width: 0; } }

/* bk-59 Partner program: payouts with Stripe */
.gp-box{border:1px solid #DCE5F7;background:#F7F9FE;border-radius:12px;padding:12px 14px}
.gp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}

/* bk-60 login page line and the cookie banner */
.signin-new{font-size:15.5px;line-height:1.6}
.cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:1200;padding:12px 16px;pointer-events:none}
.cookie-bar-in{pointer-events:auto;max-width:880px;margin:0 auto;display:flex;align-items:center;gap:14px;background:#FFFFFF;border:1px solid #DCE5F7;border-radius:14px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:14px 16px}
.cookie-bar-in p{margin:0;flex:1;font-size:13.5px;line-height:1.55;color:#344054}
.cookie-bar-in p a{color:#1E4DB7;font-weight:600}
.cookie-bar-icon{width:36px;height:36px;border-radius:10px;background:#EEF3FD;color:#1E4DB7;display:flex;align-items:center;justify-content:center;font-size:18px;flex:0 0 auto}
.cookie-bar form{margin:0;flex:0 0 auto}
html[data-theme="dark"] .cookie-bar-in,html[data-theme="navy"] .cookie-bar-in{background:#1B2333;border-color:#2C3850}
html[data-theme="dark"] .cookie-bar-in p,html[data-theme="navy"] .cookie-bar-in p{color:#D0D5DD}
@media (max-width:1040px){.cookie-bar{padding-right:84px}}
@media (max-width:640px){.cookie-bar{padding-right:16px;bottom:72px}.cookie-bar-in{flex-wrap:wrap}.cookie-bar form{width:100%}.cookie-bar form .btn{width:100%}}
