/* SYNCOM license portal — visual system based on the supplied Bisoft screens */
:root {
  --navy: #0f1f3d;
  --navy-2: #1a3461;
  --blue: #2f6bff;
  --blue-hover: #1d53e0;
  --blue-pale: #eaf1ff;
  --bg: #f4f7fc;
  --surface: #fff;
  --surface-soft: #f8fafe;
  --text: #28344a;
  --muted: #8692a6;
  --line: #e6ebf3;
  --green: #159a6e;
  --green-pale: #e5f8f0;
  --orange: #e8912f;
  --orange-pale: #fdf1e2;
  --red: #e0505f;
  --red-pale: #fdedef;
  --purple: #7a5cf0;
  --purple-pale: #f0edff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 42, 84, .05), 0 10px 24px -8px rgba(21, 42, 84, .12);
  --shadow-lift: 0 2px 4px rgba(21, 42, 84, .06), 0 18px 34px -12px rgba(21, 42, 84, .18);
  --shadow-blue: 0 6px 16px -4px rgba(47, 107, 255, .4);
  --grad-blue: linear-gradient(135deg, #3f7bff, #2457e6);
  --ease: 180ms ease;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg) radial-gradient(1200px 500px at 85% -120px, #e7effe 0%, transparent 60%); color: var(--text); font-size: 13px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Persistent Bisoft navigation, sized to match the reference capture. */
.top {
  position: sticky; top: 0; z-index: 30; min-height: 66px;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  padding: 0 clamp(16px, 2.5vw, 38px); background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(21, 42, 84, .04), 0 6px 20px -10px rgba(21, 42, 84, .12);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; color: var(--navy); }
.brand-logo { display: block; width: auto; height: clamp(34px, 4vw, 44px); object-fit: contain; }

.brand-symbol { display: none; }
.brand-symbol::before { display: none; }

.brand-caption { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 1.3px; }
.portal-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.portal-nav::-webkit-scrollbar { display: none; }
.portal-nav a { position: relative; flex: 0 0 auto; padding: 9px 13px; border-radius: 9px; color: #6b7a93; font-size: 10px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color var(--ease), background var(--ease), box-shadow var(--ease); }
.portal-nav a:hover { color: var(--navy); background: #f1f4fa; }
.portal-nav a.active { background: var(--grad-blue); color: #fff; font-weight: 750; box-shadow: var(--shadow-blue); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.global-search { position: relative; display: flex; align-items: center; gap: 7px; width: clamp(145px, 17vw, 225px); height: 33px; padding: 0 9px; border: 1px solid transparent; border-radius: 17px; background: #f2f5fa; color: #7588a5; }
.global-search:focus-within { border-color: #c7d8fa; background: #fff; }
.global-search > span { font-size: 19px; line-height: 1; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.global-search input::placeholder { color: #8d9bb0; }
.search-count { position: absolute; z-index: 2; top: calc(100% + 4px); right: 0; padding: 4px 7px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 9px; white-space: nowrap; }
.search-count:empty { display: none; }
.icon-button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: #60728e; text-decoration: none; font-size: 17px; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: -4px; right: -5px; min-width: 15px; height: 15px; padding: 0 3px; border: 2px solid #fff; border-radius: 9px; background: var(--red); color: #fff; font-size: 8px; font-weight: 800; line-height: 11px; text-align: center; }
.profile { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-blue); box-shadow: var(--shadow-blue); color: #fff; font-size: 9px; font-weight: 800; }
.profile b, .profile small { display: block; }
.profile b { color: var(--navy); font-size: 9px; }
.profile small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.logout-form { margin: 0; }
.logout-button { border: 0; background: none; color: var(--muted); font-size: 9px; }

/* Page layout and shared headings. */
.content { width: min(1500px, 100%); margin: 0 auto; padding: 25px clamp(14px, 2.4vw, 36px) 48px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 18px; }
.heading .eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.heading h1 { margin: 0; color: var(--navy); font-size: 25px; line-height: 1.2; letter-spacing: -.7px; }
.heading .muted { margin: 5px 0 0; font-size: 10px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.muted { color: var(--muted); font-size: 11px; line-height: 1.55; }
.small { font-size: 10px; }
.secure { padding: 6px 9px; border-radius: 16px; background: var(--green-pale); color: #348265; font-size: 9px; font-weight: 650; white-space: nowrap; }
.panel { min-width: 0; margin: 0 0 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow var(--ease); }
.panel h2 { margin: 0 0 13px; color: var(--navy); font-size: 14px; letter-spacing: -.2px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.panel-heading h2 { margin: 0; }
.panel-heading .eyebrow { margin: 0 0 4px; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.panel-heading .muted { margin: 5px 0 0; font-size: 9px; }
.text-link { color: var(--blue); font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--blue-hover); }

/* Dashboard cards and operational lists. */
.dashboard { margin-bottom: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.stat-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 90px; padding: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); transition: transform var(--ease), box-shadow var(--ease); }
.stat-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-blue); opacity: 0; transition: opacity var(--ease); }
.stat-card:hover::before { opacity: 1; }
.stat-card > div { display: grid; gap: 3px; }
.stat-card span:not(.metric-icon) { color: #74849d; font-size: 9px; font-weight: 650; }
.stat-card strong { color: var(--navy); font-size: 25px; font-weight: 800; line-height: 1.05; letter-spacing: -.7px; }
.stat-card small { color: #95a2b4; font-size: 8px; }
.metric-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; color: #fff; }
.metric-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.metric-icon.blue { background: linear-gradient(135deg, #5a8dff, #2457e6); box-shadow: 0 6px 14px -4px rgba(47, 107, 255, .5); }
.metric-icon.green { background: linear-gradient(135deg, #2fc090, #0e8362); box-shadow: 0 6px 14px -4px rgba(21, 154, 110, .45); }
.metric-icon.violet { background: linear-gradient(135deg, #9a82ff, #6240e0); box-shadow: 0 6px 14px -4px rgba(122, 92, 240, .45); }
.metric-icon.orange { background: linear-gradient(135deg, #f3ab5c, #d9780f); box-shadow: 0 6px 14px -4px rgba(232, 145, 47, .45); }
.alert-strip { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 12px; border: 1px solid #f5dfe2; border-radius: var(--radius-sm); background: #fffafa; color: var(--text); text-decoration: none; }
.alert-symbol { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red-pale); color: var(--red); font-weight: 800; }
.alert-strip > span:nth-child(2) { display: grid; gap: 2px; }
.alert-strip b { color: #a34d58; font-size: 9px; }
.alert-strip small { color: var(--muted); font-size: 8px; }
.alert-link { margin-left: auto; color: var(--blue); font-size: 9px; font-weight: 700; white-space: nowrap; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr); gap: 13px; }
.dashboard-panel { margin: 0; padding: 15px; }
.renewal-list, .activity-list { display: grid; }
.renewal-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px 1px; border-bottom: 1px solid #edf1f7; }
.renewal-row:last-child, .activity-item:last-child { border-bottom: 0; }
.product-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--blue-pale); color: var(--blue); font-size: 10px; font-weight: 800; }
.renewal-customer b, .renewal-date b { display: block; color: var(--text); font-size: 9px; }
.renewal-customer small, .renewal-date small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.renewal-date { text-align: right; }
.renewal-row .quiet-light { padding: 6px 8px; border-color: #dce9fb; color: var(--blue); }
.activity-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf1f7; }
.activity-dot { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #8fa3bf; box-shadow: 0 0 0 3px #f0f4fa; }
.activity-dot.success, .activity-dot.active { background: var(--green); }
.activity-dot.revoked, .activity-dot.failed, .activity-dot.error { background: var(--red); }
.activity-item b { display: block; color: var(--text); font-size: 9px; }
.activity-item small, .activity-item time { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.activity-item time { white-space: nowrap; }
.empty-state { display: flex; align-items: center; gap: 10px; padding: 19px 3px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-weight: 800; }
.empty-state b { color: var(--text); font-size: 9px; }
.empty-state p { margin: 3px 0 0; font-size: 8px; }

/* Buttons, forms and expandable create panels. */
.primary, .quiet, .danger, .key-box button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 8px 12px; border: 0; border-radius: 8px; font-size: 10px; font-weight: 700; text-decoration: none; transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(47, 107, 255, .55); }
.primary:active { transform: translateY(0); }
.quiet { background: #e9f2ff; color: var(--blue); }
.quiet:hover { background: #dce9ff; }
.danger { background: var(--red-pale); color: #b34552; }
.danger:hover { background: #fbdde1; }
.create-panel { margin: 0 0 12px; border: 1px solid #dbe7f5; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.create-panel summary { display: flex; align-items: center; min-height: 43px; padding: 0 14px; color: var(--blue); font-size: 10px; font-weight: 750; cursor: pointer; list-style: none; }
.create-panel summary::-webkit-details-marker { display: none; }
.create-panel summary::after { content: "+"; margin-left: auto; color: var(--blue); font-size: 18px; font-weight: 400; }
.create-panel[open] summary { border-bottom: 1px solid var(--line); }
.create-panel[open] summary::after { content: "−"; }
.create-panel > form, .create-panel > .grid { padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 5px; color: #5b6d87; font-size: 9px; font-weight: 650; }
.stack input, .stack textarea, .stack select, .client-create input, .client-create textarea, .client-create select, .license-issue-form input, .license-issue-form select { width: 100%; min-width: 0; min-height: 34px; padding: 8px 9px; border: 1px solid #dbe4f0; border-radius: 6px; outline: 0; background: #fff; color: var(--text); font-size: 10px; }
.stack input:focus, .stack textarea:focus, .stack select:focus, .client-create input:focus, .client-create textarea:focus, .client-create select:focus, .license-issue-form input:focus, .license-issue-form select:focus { border-color: #8db8f6; box-shadow: 0 0 0 3px #e9f2ff; }
.stack textarea, .client-create textarea { min-height: 64px; resize: vertical; }
.stack textarea[name="features"], .stack textarea[name="limits"] { font: 10px/1.5 Consolas, monospace; }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.issue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.issue button { grid-column: 1 / -1; justify-self: start; }
.issue .primary { white-space: nowrap; }
.client-create { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.client-create h3, .client-create label:nth-of-type(5), .client-create label:nth-of-type(7), .client-create button { grid-column: 1 / -1; }
.client-create h3, .app-create h3 { margin: 0; color: var(--navy); font-size: 12px; }
.app-create { display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 14px; }
.app-create h3, .app-create label:nth-of-type(3), .app-create button { grid-column: 1 / -1; }
.offer-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer-create-grid .panel { margin: 0; box-shadow: none; background: var(--surface-soft); }
.license-issue-form select[multiple] { height: 74px; }

/* Data grids and statuses. */
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 9px; }
th, td { padding: 11px; border-bottom: 1px solid #eef2f8; text-align: left; vertical-align: middle; }
th { background: #f7faff; color: #72839d; font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--line); }
td { color: #435570; }
tbody tr { transition: background var(--ease), box-shadow var(--ease); }
tbody tr:hover { background: #f8faff; box-shadow: inset 3px 0 0 var(--blue); }
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--navy-2); font-size: 9px; }
td small { display: block; max-width: 300px; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.table-wrap tr[hidden] { display: none !important; }
.state { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid transparent; border-radius: 12px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.state.on { background: var(--green-pale); border-color: #c7ecdd; color: #1c7a57; }
.state.off { background: var(--red-pale); border-color: #f6d2d7; color: #b84d59; }
.state.warn { background: var(--orange-pale); border-color: #f5ddb8; color: #a9671c; }

.row-avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 4px 10px -3px rgba(21, 42, 84, .35); color: #fff; font-size: 9px; font-weight: 800; }
.name-cell { display: flex; align-items: center; gap: 9px; }
.name-cell > div { min-width: 0; }
.row-avatar.c0 { background: linear-gradient(135deg, #5a8dff, #2457e6); }
.row-avatar.c1 { background: linear-gradient(135deg, #f3ab5c, #d9780f); }
.row-avatar.c2 { background: linear-gradient(135deg, #9a82ff, #6240e0); }
.row-avatar.c3 { background: linear-gradient(135deg, #2fc090, #0e8362); }
.row-avatar.c4 { background: linear-gradient(135deg, #f17b8a, #d1354a); }
.row-avatar.c5 { background: linear-gradient(135deg, #3ec3d2, #0b8793); }
.quiet-light { padding: 6px 8px; border: 1px solid #dfe8f3; border-radius: 6px; background: #fff; color: #58708f; font-size: 8px; font-weight: 650; cursor: pointer; }
.quiet-light:hover { border-color: #a9c9f2; background: #f5f9ff; color: var(--blue); }
.danger { min-height: 27px; padding: 6px 8px; font-size: 8px; }
.app-catalog, .client-layout { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.5fr); gap: 16px; }
.app-page, .client-page { display: grid; gap: 11px; }
.app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.app-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.app-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-pale); color: var(--blue); font-size: 12px; font-weight: 800; }
.app-row b, .app-row small { display: block; }
.app-row b { color: var(--navy); font-size: 9px; }
.app-row small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.app-row form { grid-column: 2 / -1; }
.app-tag { display: block; width: max-content; margin: 0 0 4px; padding: 3px 6px; border-radius: 4px; background: #eff5fd; color: #587293; font-size: 7px; font-weight: 750; }
.inline-edit { display: flex; flex-wrap: wrap; gap: 4px; }
.inline-edit input, .inline-edit select { width: auto; max-width: 105px; min-width: 66px; min-height: 27px; padding: 5px 6px; border: 1px solid #dce5f0; border-radius: 5px; background: #fff; color: var(--text); font-size: 8px; }
.inline-edit button { min-height: 27px; padding: 5px 7px; font-size: 8px; }
.license-controls { display: grid; gap: 4px; min-width: 125px; margin-bottom: 5px; }
.license-controls input, .license-controls select { width: 100%; min-width: 0; min-height: 26px; padding: 5px; border: 1px solid #dce5f0; border-radius: 5px; background: #fff; color: var(--text); font-size: 8px; }
.license-controls button { justify-self: start; }

/* Notices and sign in. */
.alert, .success, .key-box { margin: 0 0 13px; padding: 11px 13px; border-radius: 8px; font-size: 10px; }
.alert { background: var(--red-pale); color: #a64350; }
.success { background: var(--green-pale); color: #347c60; }
.key-box { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px 14px; background: #fff7df; color: #67552a; }
.key-box b { grid-column: 1 / -1; }
.key-box code { min-width: 0; padding: 10px; border: 1px solid #efdfa9; border-radius: 5px; background: #fff; color: var(--navy); font-size: 11px; overflow-wrap: anywhere; user-select: all; }
.key-box button { min-height: 38px; padding: 9px 16px; background: #ead99b; color: #57471a; white-space: nowrap; }
.key-box button[data-copy-state="success"] { background: #d9f2e4; color: #17643a; }
.key-box button[data-copy-state="error"] { background: #e6edf8; color: var(--navy); }
.info { background: var(--surface-soft); }
.info p { color: var(--muted); font-size: 9px; line-height: 1.7; }
.info code { overflow-wrap: anywhere; }
.login { width: min(410px, calc(100% - 28px)); margin: 9vh auto; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 2px 6px rgba(21,42,84,.05), 0 30px 60px -16px rgba(21, 42, 84, .22); }
.login .primary { box-shadow: var(--shadow-blue); }
.login h1 { margin: 0; color: var(--navy); font-size: 24px; }
.login .muted { margin: 8px 0 20px; }
.login .stack { gap: 14px; }
.login .stack label { font-size: 10px; }
.login .primary { width: 100%; }

@media (max-width: 1180px) {
  .top { gap: 12px; padding-right: 15px; padding-left: 15px; }
  .portal-nav a { padding: 8px 9px; font-size: 9px; }
  .top-actions { gap: 7px; }
  .global-search { width: 155px; }
  .profile > span:last-child { display: none; }
}
@media (max-width: 900px) {
  .top { min-height: 62px; flex-wrap: wrap; gap: 3px 12px; padding-top: 7px; padding-bottom: 7px; }
  .brand { min-height: 34px; }
  .top-actions { margin-left: auto; }
  .portal-nav { order: 3; flex: 0 0 100%; width: 100%; }
  .portal-nav a { padding: 7px 10px; }
  .content { padding-top: 20px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr); }
  .app-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .top { padding-right: 11px; padding-left: 11px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { min-height: 74px; padding: 10px; }
  .stat-card strong { font-size: 20px; }
  .metric-icon { flex-basis: 31px; width: 31px; height: 31px; }
  .heading { align-items: flex-start; }
  .heading h1 { font-size: 21px; }
  .heading-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
  .heading-actions .primary { min-height: 29px; padding: 7px 9px; font-size: 8px; }
  .global-search { width: 33px; height: 31px; border-color: transparent; background: #f2f6fc; }
  .global-search input { position: absolute; top: 39px; right: 0; display: none; width: min(270px, calc(100vw - 22px)); height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
  .global-search:focus-within input { display: block; }
  .profile { display: none; }
  .content { padding: 16px 11px 30px; }
  .panel { padding: 13px; }
  .panel-heading { align-items: flex-start; }
  .offer-create-grid { grid-template-columns: 1fr; }
  .client-create { grid-template-columns: 1fr; }
  .client-create > * { grid-column: 1 / -1; }
  .app-create { grid-template-columns: 1fr; }
  .app-create > * { grid-column: 1 / -1; }
  .issue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .renewal-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; }
  .renewal-row .quiet-light { grid-column: 2 / -1; justify-self: start; }
  .table-wrap table { min-width: 680px; }
  .key-box { grid-template-columns: 1fr; }
  .key-box code { width: 100%; box-sizing: border-box; }
  .key-box button { justify-self: start; }
}
@media (max-width: 390px) {
  .brand-logo { height: 30px; }
  .portal-nav a { padding: 7px 8px; font-size: 8px; }
  .heading .secure { display: none; }
  .issue { grid-template-columns: 1fr; }
  .issue button { grid-column: auto; }
  .alert-strip { align-items: flex-start; }
  .alert-link { font-size: 8px; }
}
.dashboard-analytics{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(270px,1fr);gap:13px;margin:0 0 13px}.analytics-panel{margin:0;padding:15px}.analytics-panel .panel-heading{margin-bottom:9px}.usage-chart,.state-chart{display:grid;gap:9px}.usage-row,.state-row{display:grid;grid-template-columns:minmax(88px,1fr) minmax(90px,2fr) 25px;align-items:center;gap:9px}.usage-name,.state-row>span{overflow:hidden;color:#657793;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.usage-row>b,.state-row>b{color:var(--navy);font-size:8px;text-align:right}.usage-track,.state-track{height:7px;overflow:hidden;border-radius:6px;background:#edf3fb;box-shadow:inset 0 1px 2px rgba(21,42,84,.08)}.usage-track i,.state-track i{display:block;height:100%;min-width:2px;border-radius:inherit;background:linear-gradient(90deg,#5a8dff,#2457e6)}.state-track i.green{background:linear-gradient(90deg,#2fc090,#0e8362)}.state-track i.orange{background:linear-gradient(90deg,#f3ab5c,#d9780f)}.state-track i.red{background:linear-gradient(90deg,#f17b8a,#d1354a)}.state-track i.gray{background:linear-gradient(90deg,#b2bdcf,#8a97ad)}@media(max-width:760px){.dashboard-analytics{grid-template-columns:1fr}}
.search-results{position:absolute;top:calc(100% + 6px);left:auto;right:-1px;width:min(350px,calc(100vw - 24px));z-index:45;display:none;max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(16,35,77,.14)}.search-results.visible{display:block}.search-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-bottom:1px solid #edf1f7;color:var(--text);text-decoration:none}.search-result:last-child{border-bottom:0}.search-result:hover{background:#f6f9ff}.search-result-main{display:grid;gap:2px;min-width:0}.search-result-main small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.search-result-main b{overflow:hidden;color:var(--navy);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.search-result-arrow{color:var(--blue);font-size:19px}.search-empty{margin:0;padding:11px;color:var(--muted);font-size:9px}.client-page .table-wrap{margin-top:2px}.create-panel .stack{padding:14px}.create-panel .client-create{padding:14px}.create-panel .app-create{padding:14px}.client-page>.create-panel,.app-page>.create-panel{width:100%}
.row-menu{position:relative;min-width:34px}.row-menu>summary{display:grid;place-items:center;width:30px;height:25px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#6d7d94;font-size:11px;font-weight:800;letter-spacing:1px;cursor:pointer;list-style:none}.row-menu>summary::-webkit-details-marker{display:none}.row-menu[open]>summary{border-color:#9fc2f3;background:var(--blue-pale);color:var(--blue)}.row-menu-content{display:grid;gap:5px;min-width:145px;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.row-menu-content form{margin:0}.row-menu-content .license-controls{min-width:0}.row-menu-content .license-controls input,.row-menu-content .license-controls select{max-width:none;min-width:0;width:100%}.row-menu-content>form:not(.license-controls){display:flex}
@media (max-width: 680px){.dashboard-columns{grid-template-columns:1fr}.dashboard-panel,.analytics-panel{min-width:0}.renewal-row,.activity-item{min-width:0}}
.reminder-settings{max-width:1120px}.reminder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reminder-card{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fbfcff}.reminder-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.reminder-card h3{margin:0;color:var(--navy);font-size:13px}.reminder-card p{margin:5px 0 0;font-size:9px}.reminder-card .row{align-items:flex-start}.reminder-card small{display:block;margin-top:4px;color:var(--muted);font-size:8px;font-weight:400}.reminder-channels{display:flex;flex-wrap:wrap;gap:14px;color:var(--text);font-size:9px}.reminder-channels label,.switch-label{display:flex;align-items:center;gap:6px}.switch-label{flex:0 0 auto;color:var(--navy);font-size:9px;font-weight:700}.reminder-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:5px}.reminder-footer p{max-width:710px;margin:0;font-size:9px;line-height:1.55}.reminder-footer .primary{flex:0 0 auto}
@media(max-width:680px){.reminder-grid{grid-template-columns:1fr}.reminder-footer{align-items:stretch;flex-direction:column}}.app-row.has-brand-logo{grid-template-columns:minmax(90px,128px) minmax(0,1fr) auto}.app-row.has-brand-logo .app-mark{display:block;width:100%;height:auto;max-height:38px;padding:0;border-radius:0;background:transparent}.app-logo{display:block;width:100%;max-height:38px;object-fit:contain;object-position:left center}
.client-reminder-panel{margin-bottom:18px}.client-reminder-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fbfcff}.client-reminder-form label{display:grid;gap:6px;color:var(--navy);font-size:9px;font-weight:700}.client-reminder-form input,.client-reminder-form select{width:100%;min-height:36px;box-sizing:border-box}.client-reminder-form .reminder-notes{grid-column:span 2}.client-reminder-form .primary{min-height:36px}.client-reminder-list{display:grid;gap:8px;margin-top:14px}.client-reminder{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#fff}.client-reminder.completed{opacity:.72}.client-reminder-main{display:grid;gap:4px;min-width:0}.client-reminder-main b{color:var(--navy);font-size:11px}.client-reminder-main span,.client-reminder-main small{color:var(--muted);font-size:9px}.client-reminder-main .reminder-date{color:#9a6711;font-weight:700}.client-reminder-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.client-reminder-actions form{margin:0}.client-reminder-actions button{white-space:nowrap}.empty-state{padding:20px;text-align:center;color:var(--muted);font-size:10px}.secure{white-space:nowrap}
@media(max-width:850px){.client-reminder-form{grid-template-columns:repeat(2,minmax(0,1fr))}.client-reminder-form .reminder-notes{grid-column:auto}}
@media(max-width:560px){.client-reminder-form{grid-template-columns:1fr}.client-reminder{align-items:flex-start;flex-direction:column}.client-reminder-actions{width:100%}}
.repeat-frequency{display:grid;grid-template-columns:minmax(55px,.45fr) minmax(90px,1fr);gap:6px;align-items:center}.reminder-card textarea{width:100%;box-sizing:border-box;resize:vertical}

/* WHMCS admin-inspired layout: clear top navigation, compact controls, neutral workspace. */
:root{--navy:#263746;--navy-2:#34495e;--blue:#337ab7;--blue-hover:#286090;--blue-pale:#eaf2f8;--bg:#f3f5f7;--surface:#fff;--surface-soft:#f8f9fa;--text:#354052;--muted:#788694;--line:#dfe4e8;--radius:5px;--radius-sm:4px;--shadow:0 1px 2px rgba(31,45,61,.06);--shadow-lift:0 4px 12px rgba(31,45,61,.10);--shadow-blue:none;--grad-blue:linear-gradient(135deg,#337ab7,#337ab7)}
body{background:#f3f5f7;color:#354052;font-size:13px}
.top{min-height:58px;gap:20px;padding:0 clamp(14px,2vw,30px);background:#fff;border-bottom:1px solid #e3e9ef;box-shadow:0 1px 3px rgba(22,43,64,.08)}
.brand{padding:3px 9px;border-radius:3px;background:#fff}.brand-logo{height:35px}
.portal-nav{gap:0}.portal-nav a{align-self:stretch;display:flex;align-items:center;padding:0 13px;border-radius:0;color:#526477;font-size:12px;font-weight:500;border-bottom:3px solid transparent;transition:background .15s ease,color .15s ease}
.portal-nav a:hover{background:#f3f6f8;color:#173f67}.portal-nav a.active{background:#f4f8fb;color:#173f67;font-weight:700;box-shadow:none;border-bottom-color:#35a9a4}
.global-search{width:205px;height:32px;border:1px solid #51616d;border-radius:4px;background:#31424f;color:#d6e0e7}.global-search:focus-within{background:#fff;border-color:#8bb7d4}.global-search input{color:#263746;font-size:11px}.global-search input::placeholder{color:#b6c3cc}
.icon-button{width:31px;height:31px;border:1px solid #51616d;border-radius:4px;color:#e4ebf0}.icon-button:hover{background:#314654;color:#fff}.notification-dot{border-color:#263746}
.profile b{color:#fff;font-size:11px}.profile small{color:#bdc8d0;font-size:9px}.avatar{width:29px;height:29px;border-radius:4px;background:#337ab7;box-shadow:none}.logout-button{color:#d0dae1;font-size:11px}.logout-button:hover{color:#fff}
.content{width:min(1540px,100%);padding:23px clamp(16px,2vw,30px) 42px}.heading{align-items:flex-end;margin-bottom:17px}.heading h1{font-size:22px;letter-spacing:-.25px;font-weight:600}.heading .eyebrow,.panel-heading .eyebrow{color:#6d879b;letter-spacing:.8px}.heading .muted{font-size:11px}.panel{margin-bottom:13px;padding:16px;border:1px solid #dfe4e8;border-radius:4px;background:#fff;box-shadow:0 1px 2px rgba(31,45,61,.04)}.panel h2{font-size:14px;font-weight:600;letter-spacing:0}.panel-heading{margin-bottom:13px}.panel-heading .muted{font-size:10px}
.primary,.quiet,.danger,.key-box button{min-height:32px;border-radius:3px;font-size:11px;font-weight:600;box-shadow:none}.primary{background:#337ab7;color:#fff}.primary:hover{background:#286090}.quiet-light{border-radius:3px;font-size:10px}.secure{padding:5px 8px;border-radius:3px;background:#edf6f0;color:#3b7c59;font-size:10px}
.stat-card{min-height:90px;padding:14px;border:1px solid #dfe4e8;border-radius:4px;background:#fff;box-shadow:none}.stat-card strong{font-size:23px;font-weight:600}.stat-card>div>span{color:#6f7d89;font-size:10px}.metric-icon{border-radius:4px;box-shadow:none}.dashboard-columns{gap:13px}.dashboard-panel{min-height:unset}
.table-wrap{border:1px solid #e1e5e9;border-radius:3px}.table-wrap table{font-size:11px}.table-wrap th{padding:10px 11px;background:#f5f7f9;color:#61717f;font-size:9px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}.table-wrap td{padding:10px 11px;border-bottom:1px solid #e8ecef}.table-wrap tr:hover td{background:#f9fbfc}.table-wrap td b{font-size:11px}.table-wrap td small{font-size:9px}
input,select,textarea{border-radius:3px}.stack label,.client-create label,.app-create label{font-size:10px}.stack input,.stack select,.stack textarea,.client-create input,.client-create select,.client-create textarea,.app-create input,.app-create textarea{border-color:#cbd4dc;border-radius:3px}.create-panel{border-radius:4px}.create-panel>summary{font-size:11px}.row-menu summary{border-radius:3px}.state{border-radius:3px;font-size:9px}
.key-box{border:1px solid #ead9a0;border-radius:4px}.login{border-radius:5px;box-shadow:0 2px 8px rgba(31,45,61,.10)}
@media(max-width:900px){.top{background:#fff}.portal-nav{border-top:1px solid #e3e9ef}.portal-nav a{min-height:38px}.profile b{font-size:10px}}
@media(max-width:680px){.content{padding:15px 11px 28px}.panel{padding:13px}.heading h1{font-size:20px}.portal-nav{overflow-x:auto}.portal-nav a{padding:0 10px}.global-search{background:#31424f}.global-search input{background:#fff}.stat-card{border-radius:4px}}

/* Dashboard and reminder cards: stronger hierarchy, clear surfaces, and chart legibility. */
.stats-grid{gap:14px;margin-bottom:18px}.stat-card{position:relative;overflow:hidden;min-height:104px;padding:18px;border:1px solid #e1e8ef;border-top:4px solid #4288bb;border-radius:12px;background:linear-gradient(145deg,#fff 70%,#f7fbfe);box-shadow:0 5px 18px rgba(38,55,70,.07)}.stat-card:nth-child(2){border-top-color:#27a879}.stat-card:nth-child(3){border-top-color:#7b69cf}.stat-card:nth-child(4){border-top-color:#eaa23b}.metric-icon{width:40px;height:40px;flex-basis:40px;border-radius:11px}.stat-card strong{font-size:27px;line-height:1.1}.stat-card small{margin-top:5px;color:#8593a0;font-size:10px}
.dashboard-analytics{gap:16px;margin:0 0 16px}.analytics-panel,.dashboard-panel,.dashboard-graphs{padding:20px;border:1px solid #e0e7ed;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(38,55,70,.06)}.analytics-panel .panel-heading,.dashboard-panel .panel-heading,.dashboard-graphs .panel-heading{margin-bottom:17px}.dashboard-analytics .panel-heading h2,.dashboard-panel .panel-heading h2,.dashboard-graphs h2{font-size:16px}.dashboard-columns{gap:16px}.dashboard-panel{min-height:100%}.usage-row,.state-row{grid-template-columns:minmax(85px,1fr) minmax(90px,2fr) 32px;gap:12px;padding:4px 0}.usage-name,.state-row>span{font-size:10px}.usage-track,.state-track{height:9px;border-radius:8px}.usage-row>b,.state-row>b{font-size:10px}
.dashboard-graphs{margin-bottom:16px}.graph-grid{display:grid;grid-template-columns:minmax(275px,.82fr) minmax(0,1.8fr);gap:15px}.graph-card{min-width:0;padding:19px;border:1px solid #e6edf2;border-radius:11px;background:linear-gradient(160deg,#fff,#fbfdff)}.graph-card h3{margin:0;color:#263746;font-size:13px;font-weight:700}.graph-card>div:first-child p{margin:5px 0 15px;color:#83909c;font-size:10px}.donut-layout{display:flex;align-items:center;justify-content:center;gap:22px;min-height:190px}.license-donut{width:min(176px,48%);height:auto;transform:rotate(-90deg);overflow:visible}.donut-total,.donut-caption{transform:rotate(90deg);transform-origin:60px 60px;fill:#263746;font-family:inherit}.donut-total{font-size:17px;font-weight:750}.donut-caption{fill:#7a8996;font-size:7px}.donut-legend{display:grid;gap:10px;margin:0;padding:0;list-style:none;min-width:115px}.donut-legend li{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:7px;color:#667581;font-size:9px}.donut-legend i{width:8px;height:8px;border-radius:50%;background:var(--legend-color)}.donut-legend b{color:#263746;font-size:10px}.activity-line-chart{display:block;width:100%;height:auto;min-height:180px;overflow:visible}.chart-gridline{stroke:#e8edf1;stroke-width:1;stroke-dasharray:3 5}.chart-line{fill:none;stroke:#3793c7;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-point{fill:#fff;stroke:#3187b9;stroke-width:3}.chart-label{fill:#738391;font-family:inherit;font-size:10px}
.client-reminder-panel,.reminder-template-panel,.generated-alerts,.reminder-settings{max-width:none;margin:0 0 20px;padding:22px;border:1px solid #e0e7ed;border-radius:13px;background:#fff;box-shadow:0 6px 22px rgba(38,55,70,.07)}.client-reminder-panel>.panel-heading,.reminder-template-panel>.panel-heading,.generated-alerts>.panel-heading,.reminder-settings>.panel-heading{margin-bottom:18px;padding-bottom:13px;border-bottom:1px solid #edf1f4}.client-reminder-panel h2,.reminder-template-panel h2,.generated-alerts h2,.reminder-settings h2{font-size:17px}.reminder-grid{gap:15px}.reminder-card{gap:14px;padding:18px;border:1px solid #e3eaf0;border-left:4px solid #4c94c3;border-radius:10px;background:linear-gradient(145deg,#fff,#f9fbfd);box-shadow:0 3px 10px rgba(38,55,70,.04)}.reminder-card:nth-child(2){border-left-color:#d9a33c}.reminder-card:nth-child(3){border-left-color:#32a87d}.reminder-card:nth-child(4){border-left-color:#8b79d6}.reminder-card:nth-child(5){border-left-color:#da6670}.reminder-card h3{font-size:14px}.reminder-card p{font-size:10px;line-height:1.5}.reminder-card input:not([type=checkbox]),.reminder-card textarea{min-height:38px;border:1px solid #d8e1e8;border-radius:6px;background:#fff}.reminder-channels{padding:10px 12px;border-radius:7px;background:#f2f6f8}.reminder-footer{margin-top:4px;padding-top:14px;border-top:1px solid #edf1f4}.client-reminder-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;border:1px solid #dfe8ee;border-radius:10px;background:#f6f9fb}.client-reminder-form label{gap:7px;font-size:10px}.client-reminder-form input,.client-reminder-form select{min-height:40px;border:1px solid #d3dde5;border-radius:6px;background:#fff}.client-reminder-form .primary{min-height:40px;border-radius:6px}.client-reminder-list{gap:10px;margin-top:16px}.client-reminder{padding:15px 17px;border:1px solid #e2e9ef;border-left:4px solid #e4ac4d;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(38,55,70,.045);transition:transform .15s ease,box-shadow .15s ease}.client-reminder:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(38,55,70,.09)}.client-reminder.completed{border-left-color:#2da77a;background:#f8fcfa}.client-reminder-main{gap:6px}.client-reminder-main b{font-size:12px}.client-reminder-main span,.client-reminder-main small{font-size:10px}.client-reminder-main .reminder-date{color:#3b7599;font-size:9px;font-weight:750;letter-spacing:.2px}.client-reminder-actions{gap:7px}.client-reminder-actions button{min-height:31px;border-radius:5px}.generated-alerts .client-reminder{border-left-color:#4a91bf}.generated-alerts .client-reminder:nth-child(3n){border-left-color:#d6a13c}.generated-alerts .client-reminder:nth-child(3n+1){border-left-color:#2da77a}.reminder-settings .reminder-card{border-left-color:#4c94c3}
@media(max-width:900px){.graph-grid{grid-template-columns:1fr}.donut-layout{justify-content:flex-start}.dashboard-graphs{padding:17px}}
@media(max-width:680px){.stats-grid{gap:9px}.stat-card{min-height:88px;padding:12px;border-radius:9px}.metric-icon{width:34px;height:34px;flex-basis:34px}.analytics-panel,.dashboard-panel,.dashboard-graphs{padding:14px;border-radius:9px}.graph-card{padding:14px}.donut-layout{gap:14px;min-height:150px}.license-donut{width:145px}.donut-legend{min-width:0}.client-reminder-panel,.reminder-template-panel,.generated-alerts,.reminder-settings{padding:15px;border-radius:10px}.client-reminder-form{grid-template-columns:1fr;padding:13px}.client-reminder-form .reminder-notes{grid-column:auto}.client-reminder{padding:13px}.client-reminder-actions{gap:6px}.activity-line-chart{min-height:140px}}
/* Keep the card treatment consistent on every portal section. */
.content .panel{border:1px solid #e0e7ed;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(38,55,70,.065)}.content .panel-heading{padding-bottom:12px;border-bottom:1px solid #edf1f4}.content .panel-heading:last-child{padding-bottom:0;border-bottom:0}.content .panel .table-wrap{border-radius:7px;box-shadow:0 1px 3px rgba(38,55,70,.035)}.content .panel .create-panel{border-radius:8px;background:#f8fafb}.content .panel .create-panel>summary{padding:11px 14px}.content .panel .app-row,.content .panel .client-reminder,.content .panel .reminder-card{box-shadow:0 3px 10px rgba(38,55,70,.045)}

/* Compact reminder toggles. Keep native checkbox dimensions independent of card layout. */
.reminder-template-panel input[type="checkbox"],.reminder-settings input[type="checkbox"],.reminder-card input[type="checkbox"],.reminder-channels input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;margin:0!important;padding:0!important;flex:0 0 15px!important;accent-color:#337ab7;vertical-align:middle}.reminder-card .switch-label{display:flex;align-items:center;gap:7px;white-space:nowrap}.reminder-channels label{display:inline-flex;align-items:center;gap:7px}

/* Dashboard uses a fixed viewport grid: cards reflow and scale instead of scrolling. */
body.dashboard-view{width:100%;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}.dashboard-view .top{height:58px;min-height:58px;max-height:58px}.dashboard-view .content{display:flex;flex-direction:column;gap:8px;width:100%;height:calc(100dvh - 58px);min-height:0;overflow:hidden;padding:10px clamp(12px,1.8vw,26px) 11px}.dashboard-view .heading{flex:0 0 auto;min-height:39px;margin:0;align-items:center}.dashboard-view .heading h1{font-size:20px}.dashboard-view .heading .muted{margin-top:3px;font-size:10px}.dashboard-view .dashboard{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(100px,.72fr) minmax(170px,1.1fr) minmax(112px,.78fr);gap:9px;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}.dashboard-view.has-expired .dashboard{grid-template-rows:auto auto minmax(95px,.65fr) minmax(160px,1.08fr) minmax(108px,.74fr)}.dashboard-view .stats-grid,.dashboard-view .alert-strip,.dashboard-view .dashboard-analytics,.dashboard-view .dashboard-graphs,.dashboard-view .dashboard-columns{min-width:0;min-height:0;margin:0;overflow:hidden}.dashboard-view .stats-grid{gap:10px}.dashboard-view .stat-card{min-height:0;height:100%;padding:10px 13px;border-radius:9px}.dashboard-view .metric-icon{width:34px;height:34px;flex-basis:34px}.dashboard-view .stat-card strong{font-size:23px}.dashboard-view .analytics-panel,.dashboard-view .dashboard-panel,.dashboard-view .dashboard-graphs{height:100%;min-height:0;padding:11px 13px;border-radius:9px}.dashboard-view .analytics-panel .panel-heading,.dashboard-view .dashboard-panel .panel-heading,.dashboard-view .dashboard-graphs .panel-heading{margin-bottom:8px;padding-bottom:6px}.dashboard-view .dashboard-analytics{height:100%;grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr);gap:9px}.dashboard-view .usage-chart,.dashboard-view .state-chart{gap:5px}.dashboard-view .usage-row,.dashboard-view .state-row{gap:8px;padding:1px 0}.dashboard-view .usage-track,.dashboard-view .state-track{height:7px}.dashboard-view .dashboard-graphs .graph-grid{height:calc(100% - 44px);min-height:0;grid-template-columns:minmax(250px,.82fr) minmax(0,1.8fr);gap:9px}.dashboard-view .graph-card{min-height:0;height:100%;padding:10px 12px;border-radius:8px;overflow:hidden}.dashboard-view .graph-card>div:first-child p{margin:3px 0 5px}.dashboard-view .donut-layout{min-height:0;height:calc(100% - 32px);gap:12px}.dashboard-view .license-donut{width:min(140px,45%);max-height:100%}.dashboard-view .donut-legend{gap:5px}.dashboard-view .activity-line-chart{width:100%;height:calc(100% - 30px);min-height:0}.dashboard-view .dashboard-columns{height:100%;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:9px}.dashboard-view .dashboard-columns>.panel{height:100%;min-height:0;padding:10px 13px;overflow:hidden}.dashboard-view .dashboard-columns .panel-heading{margin-bottom:4px;padding-bottom:5px}.dashboard-view .renewal-row{padding:5px 0;gap:7px}.dashboard-view .renewal-row:nth-child(n+4),.dashboard-view .activity-item:nth-child(n+5){display:none}.dashboard-view .activity-item{padding:5px 0}.dashboard-view .alert-strip{min-height:34px;padding:6px 11px;border-radius:7px}.dashboard-view .alert-strip small{font-size:9px}
@media(max-height:760px){.dashboard-view .dashboard-columns{display:none!important}.dashboard-view .dashboard{grid-template-rows:auto minmax(95px,.7fr) minmax(160px,1.2fr)}.dashboard-view.has-expired .dashboard{grid-template-rows:auto auto minmax(95px,.7fr) minmax(160px,1.2fr)}}
@media(max-height:650px){.dashboard-view .dashboard-analytics{display:none!important}.dashboard-view .dashboard{grid-template-rows:auto minmax(0,1fr)}.dashboard-view.has-expired .dashboard{grid-template-rows:auto auto minmax(0,1fr)}.dashboard-view .dashboard-graphs{min-height:0}.dashboard-view .dashboard-graphs .graph-grid{grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr)}}
@media(max-width:900px){.dashboard-view .top{height:96px;min-height:96px;max-height:96px}.dashboard-view .content{height:calc(100dvh - 96px)}.dashboard-view .top-actions{min-width:0}.dashboard-view .dashboard-columns{display:none!important}.dashboard-view .dashboard{grid-template-rows:auto minmax(100px,.7fr) minmax(160px,1.1fr)}.dashboard-view.has-expired .dashboard{grid-template-rows:auto auto minmax(100px,.7fr) minmax(160px,1.1fr)}}
@media(max-width:680px){.dashboard-view .top{height:96px;min-height:96px;max-height:96px;gap:1px 8px;padding:5px 9px}.dashboard-view .brand-logo{height:29px}.dashboard-view .portal-nav{flex:0 0 100%;width:100%;flex-wrap:wrap;overflow:hidden;min-height:36px;border-top:1px solid #e3e9ef}.dashboard-view .portal-nav a{min-height:32px;padding:0 5px;font-size:8px}.dashboard-view .top-actions{gap:5px}.dashboard-view .content{height:calc(100dvh - 96px);padding:7px 8px}.dashboard-view .heading{min-height:34px}.dashboard-view .heading h1{font-size:17px}.dashboard-view .heading .muted{display:none}.dashboard-view .heading-actions .secure{display:none}.dashboard-view .dashboard{grid-template-rows:auto minmax(0,1fr)}.dashboard-view.has-expired .dashboard{grid-template-rows:auto auto minmax(0,1fr)}.dashboard-view .dashboard-analytics,.dashboard-view .dashboard-columns{display:none!important}.dashboard-view .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dashboard-view .stat-card{min-height:57px;padding:7px 8px;border-top-width:3px;gap:7px}.dashboard-view .metric-icon{width:27px;height:27px;flex-basis:27px}.dashboard-view .metric-icon svg{width:15px;height:15px}.dashboard-view .stat-card strong{font-size:18px}.dashboard-view .stat-card>div>span{font-size:8px}.dashboard-view .stat-card small{font-size:7px;margin-top:2px}.dashboard-view .dashboard-graphs{padding:9px}.dashboard-view .dashboard-graphs .panel-heading{margin-bottom:6px}.dashboard-view .dashboard-graphs .panel-heading .muted{display:none}.dashboard-view .dashboard-graphs .graph-grid{height:calc(100% - 34px);display:block}.dashboard-view .graph-card{height:100%;padding:8px}.dashboard-view .graph-card:not(:first-child){display:none}.dashboard-view .graph-card h3{font-size:11px}.dashboard-view .donut-layout{height:calc(100% - 25px);justify-content:center}.dashboard-view .license-donut{width:auto;height:100%;max-width:160px}.dashboard-view .donut-legend{gap:4px}.dashboard-view .alert-strip{min-height:30px;padding:5px 8px}.dashboard-view .alert-strip small{display:none}}

.top-actions form{margin:0}.top-actions form .quiet-light{white-space:nowrap}
.dashboard-view .top-actions form{display:flex;align-items:center}

/* Branded, responsive administrator sign-in screen. */
body.login-view{min-height:100vh;display:grid;place-items:center;padding:clamp(18px,5vh,54px) clamp(14px,5vw,64px);background:radial-gradient(ellipse at 12% 8%,rgba(62,174,184,.12),transparent 34%),linear-gradient(135deg,#f4f8fb 0%,#edf3f8 100%)}
.login-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(370px,.95fr);width:min(1050px,100%);min-height:590px;overflow:hidden;border:1px solid #e0e8ee;border-radius:24px;background:#fff;box-shadow:0 28px 75px rgba(27,57,83,.14)}
.login-brand{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(34px,6vw,76px);overflow:hidden;background:linear-gradient(145deg,#f9fcfd,#fff 68%)}
.login-brand:before,.login-brand:after{position:absolute;content:"";pointer-events:none;border-radius:50%}
.login-brand:before{width:340px;height:340px;right:-155px;top:-175px;border:1px solid rgba(51,169,164,.18);box-shadow:0 0 0 34px rgba(51,169,164,.035),0 0 0 72px rgba(51,169,164,.025)}
.login-brand:after{width:210px;height:210px;left:-105px;bottom:-130px;background:radial-gradient(circle,rgba(52,151,196,.13),transparent 68%)}
.login-logo{position:relative;z-index:1;display:block;width:min(290px,100%);height:auto;max-height:110px;object-fit:contain;object-position:left center;margin:0 0 clamp(50px,9vh,92px)}
.login-kicker{position:relative;z-index:1;color:#248d91;font-size:10px;font-weight:800;letter-spacing:1.8px}
.login-brand h1{position:relative;z-index:1;max-width:430px;margin:14px 0;color:#173d64;font-size:clamp(29px,3.3vw,43px);line-height:1.13;letter-spacing:-1.3px}
.login-brand>p{position:relative;z-index:1;max-width:390px;margin:4px 0 0;color:#718297;font-size:14px;line-height:1.8}
.login-brand-footer{position:absolute;z-index:1;left:clamp(34px,6vw,76px);bottom:30px;display:flex;align-items:center;gap:9px;color:#8291a0;font-size:9px;font-weight:750;letter-spacing:1.4px}
.login-brand-dot{width:8px;height:8px;border-radius:50%;background:#34aaa4;box-shadow:0 0 0 4px rgba(52,170,164,.12)}
.login-shell .login{align-self:center;width:auto;margin:28px;padding:clamp(25px,4vw,48px);border:0;border-left:1px solid #edf1f4;border-radius:0;background:#fff;box-shadow:none}
.login-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 0 28px;border:1px solid #dceef0;border-radius:14px;background:#f2f9f9;color:#238d91}
.login-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.login-shell .login .eyebrow{margin:0 0 8px;color:#27999a;font-size:9px;letter-spacing:1.2px}
.login-shell .login h2{margin:0;color:#193d60;font-size:29px;letter-spacing:-.7px}
.login-shell .login>.muted{margin:8px 0 26px;color:#8290a0;font-size:12px}
.login-shell .login .stack{gap:18px}
.login-shell .login .stack label{gap:8px;color:#42586c;font-size:11px;font-weight:700}
.login-shell .login .stack input{min-height:47px;padding:0 14px;border:1px solid #dce5eb;border-radius:9px;background:#fbfcfd;color:#203d56;font-size:12px;transition:border-color .16s,box-shadow .16s,background .16s}
.login-shell .login .stack input:focus{border-color:#43a9ae;background:#fff;box-shadow:0 0 0 3px rgba(67,169,174,.13);outline:0}
.login-shell .login .stack input::placeholder{color:#a2aeba}
.login-shell .login .primary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;margin-top:4px;border-radius:9px;background:linear-gradient(105deg,#1c659a,#278f9d);box-shadow:0 8px 18px rgba(37,119,157,.2);font-size:12px;font-weight:750}
.login-shell .login .primary span{font-size:17px;line-height:1}
.login-security{display:flex;align-items:center;gap:8px;margin:23px 0 0;color:#8795a2;font-size:10px}
.login-security span{color:#38a77e;font-size:9px}
.login-resend{margin-top:13px;text-align:center}.login-resend .text-link{padding:5px 8px;border:0;background:transparent;color:#277e98;font-size:10px;font-weight:700;cursor:pointer}.login-resend .text-link:hover{text-decoration:underline}.login-setup-note{margin-top:16px;padding:10px 12px;border:1px solid #dceaf3;border-radius:8px;background:#f4f9fc;color:#557388;font-size:10px;line-height:1.55}.login-message{font-size:10px;line-height:1.55}
@media(max-width:760px){body.login-view{padding:14px}.login-shell{grid-template-columns:1fr;min-height:0;max-width:480px;border-radius:18px}.login-brand{min-height:205px;padding:25px 27px 32px}.login-logo{width:190px;max-height:65px;margin:0 0 25px}.login-kicker{font-size:8px}.login-brand h1{max-width:340px;margin:7px 0;font-size:24px;letter-spacing:-.5px}.login-brand>p{max-width:340px;margin:2px 0 0;font-size:11px;line-height:1.55}.login-brand-footer{display:none}.login-shell .login{margin:0;padding:27px;border-top:1px solid #edf1f4;border-left:0}.login-icon{width:40px;height:40px;margin-bottom:18px;border-radius:11px}.login-shell .login h2{font-size:25px}.login-shell .login>.muted{margin-bottom:20px}}
@media(max-width:380px){body.login-view{padding:9px}.login-brand{min-height:185px;padding:20px 21px 25px}.login-shell .login{padding:22px 21px}.login-brand h1{font-size:21px}}

