:root {
  --primary: #0b5cab;
  --primary-dark: #073b75;
  --cyan: #13a8d8;
  --orange: #f59e0b;
  --green: #15966a;
  --violet: #7553a6;
  --red: #c54754;
  --ink: #162033;
  --muted: #6d778a;
  --line: #e4eaf1;
  --background: #f4f7fb;
  --surface: #ffffff;
  --sidebar-width: 270px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--background);
  font-size: 14px;
  line-height: 1.45;
}
body.auth-required { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

[hidden] { display: none !important; }

/* Authentication gate */
.auth-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-height: 100vh;
  padding: 28px;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 82%, rgb(19 168 216 / 34%), transparent 31%),
    radial-gradient(circle at 88% 6%, rgb(73 157 232 / 26%), transparent 27%),
    linear-gradient(145deg, #073b75 0%, #075fa9 54%, #13a8d8 100%);
}
.auth-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.auth-backdrop::before {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom right, #000, transparent 70%);
  content: "";
}
.auth-orb { position: absolute; border: 1px solid rgb(255 255 255 / 16%); border-radius: 50%; }
.auth-orb-one { top: -150px; right: -100px; width: 500px; height: 500px; box-shadow: inset 0 0 80px rgb(255 255 255 / 8%); }
.auth-orb-two { bottom: -220px; left: -160px; width: 620px; height: 620px; box-shadow: inset 0 0 100px rgb(255 255 255 / 6%); }
.auth-book-stack { position: absolute; right: 7vw; bottom: 6vh; width: 180px; height: 105px; opacity: .12; transform: rotate(-8deg); }
.auth-book-stack i { position: absolute; right: 0; left: 0; height: 28px; border: 3px solid #fff; border-radius: 6px 14px 14px 6px; }
.auth-book-stack i:nth-child(1) { bottom: 0; }
.auth-book-stack i:nth-child(2) { right: 13px; bottom: 35px; left: -10px; }
.auth-book-stack i:nth-child(3) { right: -11px; bottom: 70px; left: 20px; }
.auth-shell {
  position: relative;
  display: grid;
  width: min(1080px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(390px, .85fr) 1.15fr;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgb(0 28 72 / 36%);
}
.auth-panel { position: relative; z-index: 1; padding: 48px 50px 38px; background: #fff; }
.auth-brand { display: flex; align-items: center; margin-bottom: 44px; gap: 12px; }
.auth-brand .brand-mark { width: 46px; height: 46px; color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgb(11 92 171 / 22%); }
.auth-brand > div:last-child { display: flex; flex-direction: column; }
.auth-brand strong { color: var(--primary-dark); font-size: 14px; letter-spacing: .8px; }
.auth-brand > div:last-child span { color: #718198; font-size: 9.5px; font-weight: 700; letter-spacing: .55px; }
.auth-eyebrow { margin: 0 0 7px; color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: 1.6px; }
.auth-panel h1 { margin: 0; color: #10203a; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.9px; }
.auth-intro { max-width: 420px; margin: 13px 0 28px; color: #6d778a; font-size: 13.5px; line-height: 1.65; }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; color: #293852; font-size: 12.5px; font-weight: 750; gap: 7px; }
.auth-control {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #f9fbfd;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  gap: 10px;
}
.auth-control:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgb(11 92 171 / 10%); }
.auth-control > svg { width: 18px; color: #8190a4; }
.auth-control input { min-width: 0; flex: 1; padding: 0; color: #162033; border: 0; outline: 0; background: transparent; font-size: 14px; }
.auth-control input::placeholder { color: #9aa6b6; }
.password-toggle { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: #718198; border: 0; border-radius: 8px; background: transparent; }
.password-toggle:hover { color: var(--primary); background: #eaf3fc; }
.password-toggle svg { width: 17px; }
.auth-message { display: none; margin: -5px 0 0; padding: 10px 12px; color: #a72e3d; border: 1px solid #f3ccd1; border-radius: 9px; background: #fff5f6; font-size: 12.5px; }
.auth-message.is-visible { display: block; }
.auth-submit {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b5cab, #087fc4);
  box-shadow: 0 11px 24px rgb(11 92 171 / 22%);
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  gap: 10px;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgb(11 92 171 / 27%); }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-submit svg { width: 17px; }
.auth-divider { display: flex; align-items: center; margin: 21px 0 15px; color: #9aa6b6; font-size: 11px; gap: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #e6ebf1; content: ""; }
.auth-sso {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  padding: 8px 12px;
  color: #27364e;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  gap: 11px;
}
.auth-sso:hover { border-color: #a8c5e2; background: #f7fbff; }
.auth-sso-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 9px; background: var(--primary-dark); font-size: 13px; font-weight: 900; }
.auth-sso > span:last-child { display: flex; flex-direction: column; }
.auth-sso strong { font-size: 12.5px; }
.auth-sso small { color: #8793a5; font-size: 10.5px; }
.auth-security { margin: 17px 0 0; color: #929dad; font-size: 10.5px; line-height: 1.5; text-align: center; }
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(4 37 79 / 10%), rgb(4 37 79 / 90%)),
    radial-gradient(circle at 66% 22%, rgb(245 158 11 / 80%) 0 5%, transparent 5.5%),
    radial-gradient(circle at 62% 27%, rgb(19 168 216 / 70%) 0 14%, transparent 14.5%),
    linear-gradient(145deg, #0d7ac2 0%, #073b75 64%, #052a54 100%);
}
.auth-story::before {
  position: absolute;
  top: 17%;
  right: 10%;
  width: 230px;
  height: 280px;
  border: 10px solid rgb(255 255 255 / 16%);
  border-radius: 24px;
  box-shadow: -68px 76px 0 -47px rgb(255 255 255 / 14%), -130px 128px 0 -98px rgb(245 158 11 / 55%);
  transform: rotate(5deg);
  content: "";
}
.auth-demo-pill { position: absolute; top: 35px; right: 35px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 30px; background: rgb(255 255 255 / 12%); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; backdrop-filter: blur(5px); }
.auth-story-copy { position: relative; z-index: 1; margin-bottom: 30px; }
.auth-story-copy > p { margin: 0 0 11px; color: #78ddfa; font-size: 10px; font-weight: 850; letter-spacing: 1.5px; }
.auth-story h2 { max-width: 500px; margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.16; letter-spacing: -1.2px; }
.auth-story ul { display: grid; margin: 29px 0 0; padding: 0; list-style: none; gap: 12px; }
.auth-story li { display: flex; align-items: center; color: #d8eafa; font-size: 12.5px; gap: 11px; }
.auth-story li span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; color: #fff; background: rgb(255 255 255 / 8%); font-size: 9px; font-weight: 800; }
.auth-story blockquote { position: relative; z-index: 1; margin: 0; padding-top: 19px; color: #adcae6; border-top: 1px solid rgb(255 255 255 / 15%); font-size: 11.5px; font-style: italic; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  color: #dbeaff;
  background:
    radial-gradient(circle at 12% 8%, rgb(19 168 216 / 20%), transparent 25%),
    linear-gradient(180deg, #073b75 0%, #062e5c 100%);
  box-shadow: 8px 0 30px rgb(16 41 78 / 8%);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 16px 19px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-dark);
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(0 0 0 / 12%);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-mark span::after { content: ""; display: block; width: 19px; height: 3px; margin: -2px auto 0; border-radius: 8px; background: var(--orange); }
.brand-copy { display: flex; min-width: 0; flex-direction: column; }
.brand-copy strong { color: #fff; font-size: 14px; letter-spacing: .7px; }
.brand-copy span { margin-top: 1px; color: #9ebce3; font-size: 9.5px; letter-spacing: .5px; }
.close-sidebar { display: none !important; margin-left: auto; color: #fff !important; background: rgb(255 255 255 / 10%) !important; }

.demo-label {
  display: flex;
  align-items: center;
  margin: 16px 18px 5px;
  padding: 8px 10px;
  color: #c5d9f3;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 9px;
  background: rgb(255 255 255 / 6%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  gap: 7px;
}
.demo-label span { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 3px rgb(110 231 183 / 12%); }

.side-nav { flex: 1; padding: 4px 12px; overflow: auto; }
.nav-heading { margin: 20px 12px 7px; color: #718fb8; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; }
.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  color: #b8cce6;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: .18s ease;
  gap: 11px;
}
.nav-item + .nav-item { margin-top: 3px; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item span { flex: 1; font-size: 13px; font-weight: 550; }
.nav-item b { min-width: 23px; padding: 2px 6px; color: #b8cce6; border-radius: 20px; background: rgb(255 255 255 / 9%); font-size: 10px; text-align: center; }
.nav-item:hover { color: #fff; background: rgb(255 255 255 / 7%); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, #0b65ba, #1176c9); box-shadow: 0 6px 16px rgb(0 27 68 / 22%); }
.nav-item.is-active::before { position: absolute; inset: 8px auto 8px -12px; width: 3px; border-radius: 0 4px 4px 0; background: #5ad4f6; content: ""; }
.nav-item.is-active b { color: #fff; background: rgb(255 255 255 / 16%); }

.sidebar-footer { padding: 12px 16px 18px; }
.support-card { display: flex; align-items: center; padding: 11px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 12px; background: rgb(255 255 255 / 6%); gap: 10px; }
.support-card > svg { width: 27px; height: 27px; color: #6dcff0; }
.support-card div { display: flex; flex-direction: column; }
.support-card strong { color: #fff; font-size: 11.5px; }
.support-card span { margin-top: 2px; color: #8fadd4; font-size: 9.5px; }
.back-store { display: flex; align-items: center; justify-content: center; margin-top: 12px; color: #9fbae0; font-size: 10.5px; text-decoration: none; gap: 7px; }
.back-store svg { width: 14px; height: 14px; transform: rotate(180deg); }
.back-store:hover { color: #fff; }

.main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 70px;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid #e6ebf2;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}
.menu-toggle { display: none !important; margin-right: 10px; }
.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #66758b; border: 0; border-radius: 10px; background: transparent; }
.icon-button:hover { color: var(--primary); background: #eef5fc; }
.icon-button svg { width: 19px; height: 19px; }

.global-search { display: flex; width: min(430px, 42vw); align-items: center; gap: 10px; }
.global-search svg { width: 18px; color: #8d98a9; }
.global-search input { min-width: 0; flex: 1; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--ink); }
.global-search input::placeholder { color: #9aa4b3; }
kbd { padding: 3px 7px; color: #8c96a4; border: 1px solid #dce3ec; border-radius: 6px; background: #f8fafc; box-shadow: 0 1px 1px rgb(0 0 0 / 4%); font-family: inherit; font-size: 10px; }
.top-actions { display: flex; align-items: center; margin-left: auto; gap: 13px; }
.notification-button { position: relative; }
.notification-button > span { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: #e34e5c; }
.profile { display: flex; align-items: center; padding-left: 13px; border-left: 1px solid var(--line); gap: 10px; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(145deg, var(--primary), var(--cyan)); font-size: 11px; font-weight: 800; }
.profile div:nth-child(2) { display: flex; flex-direction: column; }
.profile strong { font-size: 11.5px; }
.profile span { color: var(--muted); font-size: 9.5px; }
.profile > svg { width: 14px; height: 14px; color: #8791a0; transform: rotate(90deg); }
.profile-logout {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  padding: 0;
  place-items: center;
  color: #69778c;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.profile-logout:hover { color: #b12f40; background: #fff0f2; }
.profile-logout svg { width: 17px; }

.page-content { width: min(100%, 1550px); margin: 0 auto; padding: 28px 32px 50px; }
.view { display: none; animation: fade-in .22s ease; }
.view.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 23px; gap: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: 9px !important; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.page-title h1 { margin: 0; font-size: clamp(23px, 2vw, 29px); line-height: 1.18; letter-spacing: -.7px; }
.page-title p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: .18s ease;
  gap: 7px;
}
.button svg { width: 16px; height: 16px; stroke-width: 2; }
.button-primary { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 5px 15px rgb(11 92 171 / 17%); }
.button-primary:hover { border-color: var(--primary-dark); background: var(--primary-dark); transform: translateY(-1px); }
.button-secondary { color: #42516a; border-color: #dbe3ed; background: #fff; }
.button-secondary:hover { color: var(--primary); border-color: #a9c7e5; background: #f7fbff; }
.button-danger { color: #b52f40; border-color: #efc3c9; background: #fff5f6; }
.button-danger:hover { color: #fff; border-color: #a92d3c; background: #a92d3c; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }

.prototype-note {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid #c8e1f5;
  border-radius: 13px;
  background: linear-gradient(92deg, #edf7ff, #f8fbff);
  gap: 12px;
}
.prototype-note.compact { margin-bottom: 20px; }
.prototype-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 9px; background: var(--primary); font-size: 12px; font-weight: 800; }
.prototype-note div:nth-child(2) { flex: 1; }
.prototype-note strong { font-size: 11.5px; }
.prototype-note p { margin: 2px 0 0; color: #60758e; font-size: 10.5px; }
.prototype-note > span { padding: 4px 8px; color: #39729e; border-radius: 5px; background: #dbeefe; font-size: 8.5px; font-weight: 800; letter-spacing: .8px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; gap: 14px; }
.stat-card { position: relative; min-height: 118px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgb(35 59 88 / 4%); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; }
.stat-icon svg { width: 18px; }
.stat-icon.blue { color: var(--primary); background: #eaf4fd; }
.stat-icon.cyan { color: #078ab5; background: #e6f8fc; }
.stat-icon.orange { color: #c87b07; background: #fff4dd; }
.stat-icon.green { color: var(--green); background: #e9f8f2; }
.stat-delta { color: var(--green); font-size: 9.5px; font-weight: 700; }
.stat-delta.warn { color: #cf7d00; }
.stat-card h3 { margin: 12px 0 1px; font-size: 23px; line-height: 1; letter-spacing: -.5px; }
.stat-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.skeleton-card { border: 0; background: linear-gradient(90deg, #e9eef4 25%, #f7f9fb 50%, #e9eef4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.journey-section, .panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgb(35 59 88 / 3.5%); }
.journey-section { margin-bottom: 22px; padding: 18px; }
.section-heading, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-heading h2, .panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.2px; }
.section-heading p:not(.eyebrow), .panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: 8.5px; font-style: normal; font-weight: 750; white-space: nowrap; }
.status-pill.info { color: #087ca6; background: #e5f7fc; }
.status-pill.warning { color: #a76708; background: #fff2d5; }
.status-pill.neutral { color: #5c687a; background: #eef1f5; }
.status-pill.success { color: #117854; background: #e6f7f0; }
.status-pill.danger { color: #ae3844; background: #fdecef; }

.journey { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 15px; gap: 8px; }
.journey-step { position: relative; display: grid; min-width: 0; grid-template-columns: auto 1fr auto; align-items: center; padding: 12px 11px; border: 0; border-radius: 12px; background: #f8fafc; text-align: left; transition: .18s ease; gap: 9px; }
.journey-step:hover { background: #f0f6fc; transform: translateY(-1px); }
.step-number { position: absolute; top: 5px; right: 8px; color: #d7dee8; font-size: 15px; font-weight: 900; }
.step-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; }
.step-icon svg { width: 17px; }
.step-icon.blue { color: var(--primary); background: #e6f1fc; }
.step-icon.violet { color: var(--violet); background: #f0eafa; }
.step-icon.orange { color: #c87906; background: #fff2d9; }
.step-icon.green { color: var(--green); background: #e6f6f0; }
.journey-step div:nth-child(3) { min-width: 0; }
.journey-step strong { display: block; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.journey-step p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.step-arrow { width: 14px; height: 14px; color: #a1adbd; }
.journey-step:last-child .step-arrow { display: none; }

.dashboard-columns { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.panel { padding: 18px; }
.chart-total { display: flex; align-items: baseline; margin-top: 12px; gap: 8px; }
.chart-total strong { font-size: 21px; letter-spacing: -.5px; }
.chart-total span { color: var(--muted); font-size: 9px; }
.trend-up { color: var(--green); font-size: 10px; }
.bar-chart { display: flex; height: 135px; align-items: flex-end; margin-top: 15px; padding-top: 19px; border-bottom: 1px solid var(--line); gap: 11px; }
.bar-chart > div { position: relative; display: flex; height: 100%; flex: 1; align-items: center; flex-direction: column; justify-content: flex-end; }
.bar-chart i { width: min(24px, 75%); height: var(--value); border-radius: 5px 5px 2px 2px; background: #b9d5ed; transition: .3s ease; }
.bar-chart .today i { background: linear-gradient(180deg, var(--cyan), var(--primary)); }
.bar-chart span { margin-bottom: 3px; color: #8490a0; font-size: 7.5px; }
.bar-chart b { position: absolute; bottom: -17px; color: #7e8998; font-size: 7.5px; font-weight: 600; white-space: nowrap; }
.activity-list { display: flex; margin-top: 14px; flex-direction: column; }
.activity-item { position: relative; display: flex; padding: 8px 0 8px 30px; }
.activity-item::before { position: absolute; top: 17px; left: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot), transparent 75%); content: ""; }
.activity-item:not(:last-child)::after { position: absolute; top: 26px; bottom: -6px; left: 12px; width: 1px; background: #e2e8ef; content: ""; }
.activity-item div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.activity-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item span { overflow: hidden; margin-top: 1px; color: var(--muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item time { margin-left: 8px; color: #98a2b1; font-size: 8px; white-space: nowrap; }

.workflow-callout { display: flex; align-items: center; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #d8e7f4; border-radius: 13px; background: #f4f9fd; gap: 11px; }
.callout-number { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--primary); font-size: 11px; font-weight: 800; }
.workflow-callout > div { flex: 1; }
.workflow-callout strong { font-size: 10.5px; }
.workflow-callout p { margin: 2px 0 0; color: #65758b; font-size: 9.5px; }
.text-button { display: inline-flex; align-items: center; padding: 7px; color: var(--primary); border: 0; background: transparent; font-size: 9.5px; font-weight: 700; gap: 5px; }
.text-button svg { width: 13px; height: 13px; }

.table-panel { padding: 0; overflow: hidden; }
.table-tools { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); gap: 15px; }
.table-tools h2 { margin: 0; font-size: 14px; }
.table-tools p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: #eef2f7; }
.segmented button { padding: 7px 11px; color: #708095; border: 0; border-radius: 7px; background: transparent; font-size: 9.5px; font-weight: 650; }
.segmented button span { display: inline-grid; min-width: 16px; height: 16px; margin-left: 3px; place-items: center; border-radius: 12px; background: #dfe6ef; font-size: 8px; }
.segmented button.is-active { color: var(--primary); background: #fff; box-shadow: 0 2px 5px rgb(30 51 80 / 9%); }
.segmented button.is-active span { color: #fff; background: var(--primary); }
.table-actions { display: flex; align-items: center; gap: 8px; }
.table-search { display: flex; min-width: 220px; height: 38px; align-items: center; padding: 0 10px; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; gap: 8px; }
.table-search:focus-within { border-color: #8dbbe4; box-shadow: 0 0 0 3px rgb(11 92 171 / 8%); }
.table-search svg { width: 15px; height: 15px; color: #8995a5; }
.table-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 10.5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 13px; color: #7a8798; border-bottom: 1px solid var(--line); background: #fafbfd; font-size: 8px; font-weight: 800; letter-spacing: .45px; text-align: left; text-transform: uppercase; }
td { padding: 11px 13px; border-bottom: 1px solid #edf1f5; font-size: 9.5px; vertical-align: middle; }
tbody tr { transition: .15s ease; }
tbody tr:hover { background: #fafcfe; }
tbody tr:last-child td { border-bottom: 0; }
.book-cell { display: flex; min-width: 230px; align-items: center; gap: 10px; }
.mini-cover { position: relative; display: grid; width: 32px; height: 43px; flex: 0 0 auto; place-items: center; overflow: hidden; color: #fff; border-radius: 4px 7px 7px 4px; background: var(--cover); box-shadow: 2px 3px 6px rgb(22 32 51 / 18%); font-size: 8px; font-weight: 800; }
.mini-cover::before { position: absolute; inset: 0 auto 0 4px; width: 1px; background: rgb(255 255 255 / 25%); content: ""; }
.book-cell > div { display: flex; min-width: 0; flex-direction: column; }
.book-cell strong { display: block; max-width: 250px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.book-cell span { margin-top: 2px; color: #8994a4; font-size: 8.5px; }
.type-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; font-size: 8px; font-weight: 750; }
.type-pill.ebook { color: #087da3; background: #e8f7fb; }
.type-pill.print { color: #8a6227; background: #f8f1e5; }
.price-cell { display: flex; flex-direction: column; }
.price-cell strong { font-size: 9.5px; }
.price-cell del { margin-top: 1px; color: #9ba5b3; font-size: 7.5px; }
.access-cell { display: flex; flex-direction: column; }
.access-cell strong { font-size: 9px; }
.access-cell span { margin-top: 2px; color: #8893a2; font-size: 8px; }
.stock-low strong { color: #c87800; }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; }
.row-actions button { display: grid; width: 29px; height: 29px; padding: 0; place-items: center; color: #718095; border: 0; border-radius: 7px; background: transparent; }
.row-actions button:hover { color: var(--primary); background: #edf5fc; }
.row-actions svg { width: 14px; height: 14px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; color: #8390a1; border-top: 1px solid var(--line); background: #fafbfd; font-size: 8.5px; }
.empty-row td { padding: 42px; color: var(--muted); text-align: center; }

.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; gap: 14px; }
.package-card { position: relative; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgb(35 59 88 / 4%); }
.package-card::after { position: absolute; top: -52px; right: -52px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--accent), transparent 90%); content: ""; }
.package-card header { display: flex; align-items: flex-start; justify-content: space-between; }
.package-code { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.package-card h3 { margin: 3px 0 0; font-size: 18px; }
.package-card .menu-dots { position: relative; z-index: 1; width: 28px; height: 28px; color: #7b8797; border: 0; border-radius: 7px; background: #f4f6f9; }
.package-card .menu-dots::after { content: "•••"; letter-spacing: 1px; }
.package-card > p { min-height: 34px; margin: 10px 0 12px; color: var(--muted); font-size: 9.5px; }
.package-price { display: flex; align-items: baseline; gap: 5px; }
.package-price strong { font-size: 20px; }
.package-price span { color: var(--muted); font-size: 8.5px; }
.package-meta { display: flex; margin: 13px 0; padding: 10px 0; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }
.package-meta div { flex: 1; display: flex; flex-direction: column; }
.package-meta div + div { padding-left: 12px; border-left: 1px solid #edf1f5; }
.package-meta span { color: var(--muted); font-size: 7.5px; }
.package-meta strong { margin-top: 2px; font-size: 10px; }
.package-card footer { display: flex; align-items: center; justify-content: space-between; }
.package-card footer > span { color: var(--green); font-size: 8.5px; font-weight: 700; }
.package-card footer button { color: var(--primary); border: 0; background: transparent; font-size: 8.5px; font-weight: 700; }
.rights-panel { padding: 0; overflow: hidden; }
.rights-panel .panel-heading { padding: 16px; border-bottom: 1px solid var(--line); }
.rights-table td:not(:first-child), .rights-table th:not(:first-child) { text-align: center; }
.rights-table td:first-child { display: flex; min-width: 210px; flex-direction: column; }
.rights-table td:first-child strong { font-size: 9.5px; }
.rights-table td:first-child span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.rights-table i { font-style: normal; }
.rights-table .yes { color: var(--green); font-weight: 800; }
.rights-table .no { color: #b3bbc6; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; gap: 12px; }
.mini-stat { padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.mini-stat span { color: var(--muted); font-size: 8.5px; }
.mini-stat strong { display: block; margin-top: 4px; font-size: 17px; }
.order-code { color: var(--primary); font-size: 9.5px; font-weight: 750; }
.order-time { display: flex; flex-direction: column; }
.order-time span { color: #8994a4; font-size: 7.5px; }

.report-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 15px; }
.report-wide { grid-column: 1 / -1; }
.donut-layout { display: flex; align-items: center; justify-content: center; padding: 21px 0 12px; gap: 38px; }
.donut { display: grid; width: 154px; height: 154px; place-items: center; border-radius: 50%; background: conic-gradient(var(--primary) 0 48%, var(--cyan) 48% 79%, var(--orange) 79% 100%); }
.donut::before { position: absolute; width: 105px; height: 105px; border-radius: 50%; background: #fff; content: ""; }
.donut > div { position: relative; z-index: 1; display: flex; flex-direction: column; text-align: center; }
.donut strong { font-size: 20px; }
.donut span { color: var(--muted); font-size: 8px; }
.legend { display: flex; min-width: 155px; flex-direction: column; gap: 11px; }
.legend div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--color); }
.legend span { color: var(--muted); font-size: 9px; }
.legend strong { font-size: 9px; }
.reading-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; gap: 9px; }
.reading-metrics div { padding: 13px; border-radius: 11px; background: #f7f9fc; }
.reading-metrics span { display: block; color: var(--muted); font-size: 8px; }
.reading-metrics strong { display: inline-block; margin-top: 5px; font-size: 15px; }
.reading-metrics em { margin-left: 5px; color: var(--green); font-size: 7.5px; font-style: normal; }
.ranking-list { display: flex; margin-top: 13px; flex-direction: column; }
.ranking-list > div { display: flex; align-items: center; padding: 9px 0; border-top: 1px solid #edf1f5; gap: 12px; }
.ranking-list b { width: 18px; color: #9aa5b3; font-size: 9px; }
.ranking-list > div > span { display: grid; width: 30px; height: 39px; place-items: center; color: #fff; border-radius: 4px 6px 6px 4px; background: var(--cover); font-size: 7px; font-weight: 800; }
.ranking-list p { display: flex; min-width: 0; flex: 1; margin: 0; flex-direction: column; }
.ranking-list p strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.ranking-list em { color: var(--primary); font-size: 8.5px; font-style: normal; font-weight: 700; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.role-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; gap: 13px; }
.role-icon { display: grid; width: 42px; height: 42px; grid-row: span 2; place-items: center; border-radius: 12px; }
.role-icon svg { width: 20px; }
.role-icon.blue { color: var(--primary); background: #e7f2fc; }
.role-icon.violet { color: var(--violet); background: #f0eafa; }
.role-icon.orange { color: #c77800; background: #fff1d7; }
.role-icon.green { color: var(--green); background: #e4f6ef; }
.role-card strong { display: block; font-size: 11.5px; }
.role-card p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.role-card > span { grid-column: 2; color: #8793a3; font-size: 8px; }
.role-card > button { grid-column: 3; grid-row: 1 / span 2; padding: 6px 9px; color: var(--primary); border: 1px solid #cfe0f0; border-radius: 7px; background: #f5f9fd; font-size: 8.5px; font-weight: 700; }

.integration-warning { margin-bottom: 17px; padding: 14px 16px; color: #80530e; border: 1px solid #f1d393; border-radius: 13px; background: #fff8e8; }
.integration-warning strong { font-size: 11px; }
.integration-warning p { margin: 2px 0 0; color: #8e6a30; font-size: 9.5px; }
.integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 17px; gap: 13px; }
.integration-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; gap: 13px; }
.integration-logo { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; border-radius: 12px; font-size: 14px; font-weight: 900; }
.integration-logo.sso { background: linear-gradient(145deg, var(--primary), var(--cyan)); }
.integration-logo.lms { background: linear-gradient(145deg, #7553a6, #a273cf); }
.integration-logo.pay { background: linear-gradient(145deg, #e87520, var(--orange)); }
.integration-logo.stock { background: linear-gradient(145deg, #218567, #35b58b); }
.integration-card h3 { margin: 5px 0 0; font-size: 11.5px; }
.integration-card p { margin: 2px 0 0; color: var(--muted); font-size: 8.5px; }
.integration-card .button { min-height: 32px; padding: 0 10px; font-size: 8.5px; }
.settings-panel { padding: 0; }
.settings-panel .panel-heading { padding: 16px; border-bottom: 1px solid var(--line); }
.settings-form { display: grid; grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 15px 28px; }
.settings-form > label { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.settings-form > label > span:first-child { color: #49566a; font-size: 9.5px; font-weight: 600; }
.settings-form select, .settings-form input { min-width: 130px; height: 35px; padding: 0 9px; border: 1px solid #dae2eb; border-radius: 8px; outline: 0; background: #fff; font-size: 9px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 43px; }
.input-suffix span { position: absolute; top: 10px; right: 9px; color: #8490a0; font-size: 8px; }
.toggle { position: relative; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 20px; background: #cdd5df; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: .2s ease; }
.toggle.is-on { background: var(--primary); }
.toggle.is-on i { left: 19px; }

.button-group { display: flex; flex-wrap: wrap; gap: 8px; }
.legacy-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 11px 14px;
  color: #27577f;
  border: 1px solid #cfe1f2;
  border-radius: 11px;
  background: #f1f7fc;
  gap: 12px;
}
.legacy-note strong { font-size: 10px; }
.legacy-note span { color: #668099; font-size: 9px; text-align: right; }
.cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.order-control {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--primary);
  border: 1px solid #d4e2ef;
  border-radius: 7px;
  background: #f6fafd;
  font-weight: 800;
  letter-spacing: 4px;
}
.order-control button {
  padding: 0 3px;
  color: inherit;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}
.order-control button:disabled { color: #aeb9c6; cursor: default; }
.table-text-actions { display: flex; justify-content: flex-end; gap: 13px; }
.table-text-actions button {
  padding: 0;
  color: var(--primary);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.table-text-actions button:hover { text-decoration: underline; }
.legacy-package-table,
.legacy-settings-table { margin-top: 17px; }
.module-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.module-tabs button {
  min-height: 34px;
  padding: 0 15px;
  color: #65758b;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}
.module-tabs button.is-active { color: #fff; background: var(--primary); box-shadow: 0 5px 12px rgb(11 92 171 / 18%); }
.module-tab-panel { display: none; animation: fade-in .18s ease; }
.module-tab-panel.is-active { display: block; }
.code-chip {
  display: inline-flex;
  padding: 4px 7px;
  color: #0a568f;
  border: 1px solid #cde0f0;
  border-radius: 6px;
  background: #f0f7fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
  font-weight: 750;
}
.banner-preview {
  display: grid;
  width: 126px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}
.banner-preview.blue { background: linear-gradient(135deg, #073b75, #168dcc); }
.banner-preview.cyan { background: linear-gradient(135deg, #047b8f, #39bfd2); }
.banner-preview.orange { background: linear-gradient(135deg, #b95d09, #f59e0b); }
.permission-panel { padding: 0; overflow: hidden; }
.permission-panel .panel-heading { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.permission-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); padding: 15px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
.permission-controls label { display: flex; flex-direction: column; gap: 5px; }
.permission-controls label > span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.permission-controls select { height: 36px; padding: 0 10px; border: 1px solid #d9e1eb; border-radius: 8px; background: #fff; font-size: 9.5px; }
.permission-table td:not(:first-child),
.permission-table th:not(:first-child) { text-align: center; }
.permission-table td:not(:first-child) { color: var(--primary); font-weight: 850; }

.book-modal { width: min(760px, calc(100vw - 26px)); max-height: min(820px, calc(100vh - 30px)); padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 17px; background: #fff; box-shadow: 0 28px 90px rgb(10 30 60 / 32%); }
.book-modal::backdrop { background: rgb(10 25 46 / 58%); backdrop-filter: blur(4px); }
.book-modal form { display: flex; max-height: inherit; flex-direction: column; }
.book-modal header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }
.book-modal h2 { margin: 0; font-size: 19px; }
.book-modal header span { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.form-section + .form-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-section-title { display: flex; align-items: center; margin-bottom: 14px; gap: 9px; }
.form-section-title > span { display: grid; width: 27px; height: 27px; place-items: center; color: #fff; border-radius: 8px; background: var(--primary); font-size: 9px; font-weight: 800; }
.form-section-title div { display: flex; flex-direction: column; }
.form-section-title strong { font-size: 11px; }
.form-section-title p { margin: 1px 0 0; color: var(--muted); font-size: 8.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid > label:not(.check-label) { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.form-grid label > span { color: #46546a; font-size: 9px; font-weight: 650; }
.form-grid label > span b { color: #d34b59; }
.form-grid input:not([type="checkbox"]):not([type="color"]), .form-grid select, .form-grid textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid #d9e1eb;
  border-radius: 9px;
  outline: none;
  background: #fff;
  font-size: 10px;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #82b6e2; box-shadow: 0 0 0 3px rgb(11 92 171 / 8%); }
.form-grid input[type="color"] { width: 100%; height: 38px; padding: 4px; border: 1px solid #d9e1eb; border-radius: 9px; background: #fff; }
.span-2 { grid-column: span 2; }
.check-label { display: flex; align-items: flex-start; padding: 10px; border: 1px solid #e1e7ee; border-radius: 9px; background: #fafbfd; gap: 8px; }
.check-label input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--primary); }
.check-label > span { display: flex; flex-direction: column; }
.check-label strong { font-size: 9px; }
.check-label small { margin-top: 2px; color: var(--muted); font-size: 7.5px; font-weight: 400; }
.form-message { display: none; margin-top: 13px; padding: 10px; color: #a93643; border: 1px solid #efc0c6; border-radius: 8px; background: #fff1f3; font-size: 9px; }
.form-message.is-visible { display: block; }
.book-modal footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; border-top: 1px solid var(--line); background: #fafbfd; gap: 15px; }
.book-modal footer > span { display: flex; align-items: center; color: #7d8999; font-size: 8.5px; gap: 6px; }
.book-modal footer > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.book-modal footer > div { display: flex; gap: 8px; }

.toast-region { position: fixed; z-index: 100; top: 18px; right: 18px; display: flex; width: min(350px, calc(100vw - 36px)); flex-direction: column; gap: 8px; }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 12px; color: #fff; border-radius: 11px; background: #163754; box-shadow: 0 13px 35px rgb(7 28 50 / 25%); animation: toast-in .25s ease; gap: 9px; }
.toast.success { background: #116c50; }
.toast.error { background: #a63b48; }
.toast > span:first-child { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: rgb(255 255 255 / 15%); font-size: 10px; font-weight: 800; }
.toast strong { display: block; font-size: 10px; }
.toast p { margin: 1px 0 0; color: rgb(255 255 255 / 75%); font-size: 8.5px; }
.toast button { color: #fff; border: 0; background: transparent; font-size: 16px; }

/* Comfortable admin typography scale */
body { font-size: 16px; }
.brand-copy span { font-size: 12px; }
.demo-label { font-size: 11.5px; }
.nav-heading { font-size: 11.5px; }
.nav-item { min-height: 44px; }
.nav-item span { font-size: 15.5px; font-weight: 650; }
.nav-item b { font-size: 12px; }
.support-card strong { font-size: 14px; }
.support-card span,
.back-store { font-size: 12.5px; }
.global-search input { font-size: 14px; }
.profile strong { font-size: 14px; }
.profile span { font-size: 12px; }
.eyebrow { font-size: 12px !important; }
.page-title h1 { font-size: clamp(32px, 2.4vw, 40px); }
.page-title p:not(.eyebrow) { font-size: 16px; line-height: 1.55; }
.button { min-height: 42px; font-size: 14.5px; }
.prototype-note strong { font-size: 14px; }
.prototype-note p { font-size: 13px; }
.prototype-note > span { font-size: 11.5px; }
.stat-delta { font-size: 12.5px; }
.stat-card h3 { font-size: 29px; }
.stat-card p { font-size: 14px; }
.section-heading h2,
.panel-heading h2 { font-size: 19px; }
.section-heading p:not(.eyebrow),
.panel-heading p { font-size: 14px; line-height: 1.5; }
.status-pill { min-height: 29px; padding-inline: 11px; font-size: 12.5px; }
.journey-step strong { font-size: 14px; }
.journey-step p { font-size: 12.5px; }
.chart-total span,
.trend-up { font-size: 12.5px; }
.bar-chart span,
.bar-chart b { font-size: 11.5px; }
.activity-item strong { font-size: 14px; }
.activity-item span { font-size: 12.5px; }
.activity-item time { font-size: 11.5px; }
.workflow-callout strong { font-size: 14px; }
.workflow-callout p,
.text-button { font-size: 14px; }
.table-tools { min-height: 82px; padding: 17px 20px; }
.table-tools h2 { font-size: 18px; }
.table-tools p { font-size: 13.5px; line-height: 1.45; }
.segmented button { min-height: 38px; font-size: 13px; }
.segmented button span { font-size: 11.5px; }
.table-search { min-width: 260px; min-height: 44px; }
.table-search input { font-size: 14px; }
th { padding: 14px 16px; font-size: 12.5px; line-height: 1.35; }
td { padding: 16px; font-size: 14.5px; line-height: 1.5; }
.mini-cover { font-size: 11.5px; }
.book-cell strong { font-size: 14px; }
.book-cell span,
.cell-sub { font-size: 12.5px; }
.type-pill { font-size: 11.5px; }
.price-cell strong { font-size: 14px; }
.price-cell del { font-size: 12px; }
.access-cell strong { font-size: 13.5px; }
.access-cell span { font-size: 12.5px; }
.table-footer { font-size: 12.5px; }
.package-code { font-size: 12px; }
.package-card h3 { font-size: 22px; }
.package-card > p { font-size: 14px; }
.package-price span { font-size: 12.5px; }
.package-meta span { font-size: 11.5px; }
.package-meta strong { font-size: 14px; }
.package-card footer > span,
.package-card footer button { font-size: 12.5px; }
.rights-table td:first-child strong { font-size: 14px; }
.rights-table td:first-child span { font-size: 12.5px; }
.mini-stat { min-height: 94px; padding: 17px; }
.mini-stat span { font-size: 14px; }
.mini-stat strong { font-size: 25px; }
.order-code { font-size: 14px; }
.order-time span { font-size: 12px; }
.donut span,
.legend span,
.legend strong { font-size: 12.5px; }
.reading-metrics span { font-size: 12.5px; }
.reading-metrics strong { font-size: 20px; }
.reading-metrics em { font-size: 12px; }
.ranking-list b { font-size: 12.5px; }
.ranking-list > div > span { font-size: 11px; }
.ranking-list p strong { font-size: 14px; }
.ranking-list small,
.ranking-list em { font-size: 12.5px; }
.role-card strong { font-size: 15px; }
.role-card p,
.role-card > span { font-size: 13px; }
.role-card > button { font-size: 12.5px; }
.integration-warning strong,
.integration-card h3 { font-size: 15px; }
.integration-warning p,
.integration-card p { font-size: 13.5px; }
.integration-card .button { font-size: 12.5px; }
.settings-form > label > span:first-child { font-size: 14px; }
.settings-form select,
.settings-form input { font-size: 14px; }
.input-suffix span { font-size: 12.5px; }
.legacy-note strong { font-size: 14px; }
.legacy-note span { font-size: 13.5px; }
.module-tabs button { font-size: 14px; }
.code-chip { font-size: 12.5px; }
.banner-preview { font-size: 13.5px; }
.permission-controls label > span { font-size: 12.5px; }
.permission-controls select { font-size: 14px; }
.book-modal h2 { font-size: 25px; }
.book-modal header span { font-size: 14px; }
.form-section-title strong { font-size: 15px; }
.form-section-title p { font-size: 13px; }
.form-grid label > span { font-size: 14px; }
.form-grid input:not([type="checkbox"]):not([type="color"]),
.form-grid select,
.form-grid textarea { font-size: 15px; }
.check-label strong { font-size: 14px; }
.check-label small { font-size: 12.5px; }
.form-message,
.book-modal footer > span { font-size: 13px; }
.toast strong { font-size: 14px; }
.toast p { font-size: 12.5px; }

@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.sidebar-overlay { display: none; }

@media (max-width: 820px) {
  .auth-gate { padding: 18px; place-items: start center; }
  .auth-shell { min-height: auto; grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { padding: 36px 34px 30px; }
  .auth-brand { margin-bottom: 34px; }
}

@media (max-width: 480px) {
  .auth-gate { padding: 0; background: #fff; }
  .auth-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-panel { padding: 27px 22px 24px; }
  .auth-brand { margin-bottom: 34px; }
  .auth-panel h1 { font-size: 29px; }
  .auth-intro { margin-bottom: 24px; }
}

@media (max-width: 1180px) {
  :root { --sidebar-width: 238px; }
  .page-content { padding-right: 22px; padding-left: 22px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-step:nth-child(2) .step-arrow { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar { width: 270px; transform: translateX(-102%); transition: transform .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 25; inset: 0; background: rgb(11 24 42 / 52%); backdrop-filter: blur(2px); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .close-sidebar, .menu-toggle { display: inline-grid !important; }
  .main { margin-left: 0; }
  .topbar { padding: 0 20px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .global-search { width: min(380px, 48vw); }
  .profile div:nth-child(2), .profile > svg { display: none; }
  .integration-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { height: 62px; padding: 0 13px; }
  .global-search { width: auto; flex: 1; }
  .global-search kbd { display: none; }
  .profile { padding-left: 8px; }
  .avatar { width: 34px; height: 34px; }
  .page-content { padding: 20px 13px 40px; }
  .page-title { align-items: flex-start; margin-bottom: 17px; flex-direction: column; }
  .page-title .button { width: 100%; }
  .page-title .button-group { width: 100%; }
  .page-title .button-group .button { flex: 1; }
  .page-title h1 { font-size: 27px; }
  .prototype-note { align-items: flex-start; }
  .prototype-note > span { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 108px; padding: 13px; }
  .stat-card h3 { font-size: 19px; }
  .journey { grid-template-columns: 1fr; }
  .journey-step .step-arrow { display: block !important; transform: rotate(90deg); }
  .journey-step:last-child .step-arrow { display: none !important; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .table-actions { align-items: stretch; }
  .table-search { min-width: 0; flex: 1; }
  .segmented { align-self: flex-start; }
  .workflow-callout { align-items: flex-start; flex-wrap: wrap; }
  .workflow-callout .text-button { margin-left: 39px; }
  .package-grid, .mini-stats, .report-grid, .role-grid, .settings-form { grid-template-columns: 1fr; }
  .legacy-note { align-items: flex-start; flex-direction: column; }
  .legacy-note span { text-align: left; }
  .permission-controls { grid-template-columns: 1fr; }
  .report-wide { grid-column: auto; }
  .donut-layout { gap: 20px; }
  .integration-card { grid-template-columns: auto 1fr; }
  .integration-card .button { grid-column: 2; justify-self: start; }
  .settings-form > label { align-items: flex-start; flex-direction: column; }
  .settings-form select, .settings-form input { width: 100%; }
  .input-suffix { width: 100%; }
  .book-modal { max-height: calc(100vh - 12px); }
  .modal-body { padding: 16px; }
  .book-modal header, .book-modal footer { padding-right: 16px; padding-left: 16px; }
  .book-modal footer { align-items: stretch; flex-direction: column; }
  .book-modal footer > span { display: none; }
  .book-modal footer > div { width: 100%; }
  .book-modal footer .button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

@media (max-width: 410px) {
  .stats-grid { grid-template-columns: 1fr; }
  .table-actions .button { padding: 0 10px; font-size: 0; }
  .table-actions .button svg { margin: 0; }
  .donut-layout { flex-direction: column; }
  .role-card { grid-template-columns: auto 1fr; }
  .role-card > button { grid-column: 2; grid-row: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
