:root {
  --ink: #172033;
  --muted: #69748a;
  --line: #e4e9f1;
  --soft: #f5f7fb;
  --white: #fff;
  --navy: #101a2e;
  --blue: #356ae6;
  --blue-dark: #2855c4;
  --green: #11865d;
  --amber: #c47a08;
  --red: #bf3f4a;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(30, 48, 82, .07);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.muted { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }
.mobile-only { display: none !important; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1.08fr) minmax(440px, .92fr); background: #fff; }
.auth-art { position: relative; display: flex; min-height: 100vh; overflow: hidden; align-items: center; padding: 10%; color: #fff; background: linear-gradient(145deg, #101a2e 0%, #182a54 58%, #254b9b 100%); }
.auth-art::after { position: absolute; inset: 0; content: ""; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom right, black, transparent 80%); }
.art-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.art-orb-one { width: 360px; height: 360px; right: -110px; top: -90px; background: rgba(81, 131, 255, .33); }
.art-orb-two { width: 250px; height: 250px; left: -80px; bottom: -70px; background: rgba(80, 222, 181, .15); }
.auth-copy { position: relative; z-index: 1; max-width: 620px; }
.auth-copy h1 { margin: 90px 0 22px; font-size: clamp(44px, 5vw, 68px); line-height: 1.03; letter-spacing: -2.5px; }
.auth-copy p { max-width: 540px; margin: 0; color: #c4d0e8; font-size: 19px; line-height: 1.65; }
.auth-form-side { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 48px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { margin: 10px 0 8px; font-size: 31px; letter-spacing: -.7px; }
.launch-steps { display: grid; gap: 9px; margin: 27px 0 21px; padding: 0; list-style: none; }
.launch-steps li { display: flex; gap: 13px; border-top: 1px solid var(--line); padding: 15px 0 5px; }
.launch-steps li > span { display: flex; width: 29px; height: 29px; flex: 0 0 29px; align-items: center; justify-content: center; border-radius: 50%; color: #315fd0; background: #eaf0ff; font-size: 12px; font-weight: 800; }
.launch-steps strong { font-size: 14px; }
.launch-steps p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.launch-address { border: 1px solid #dbe5f9; border-radius: 11px; padding: 14px; color: #52617c; background: #f0f5ff; font-size: 13px; }
.launch-address strong { display: block; margin-top: 4px; color: #3159ad; font-family: Consolas, monospace; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 1.7px; }

.brand { display: flex; align-items: center; gap: 11px; min-height: 72px; color: #fff; font-size: 18px; font-weight: 750; letter-spacing: -.3px; }

.stack-form { display: grid; gap: 18px; margin-top: 32px; }
label { display: grid; gap: 7px; color: #3b465b; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #d6ddea; border-radius: 10px; outline: none; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 43px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #7397ee; box-shadow: 0 0 0 3px rgba(53, 106, 230, .12); }
input::placeholder, textarea::placeholder { color: #a2aabd; }
.label-help { color: #929bad; font-weight: 450; }
.form-error { min-height: 20px; color: var(--red); font-size: 13px; }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 0 16px; cursor: pointer; text-decoration: none; font-weight: 700; transition: transform .12s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(53,106,230,.18); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { border-color: #d5dceb; color: #33415c; background: #fff; }
.button.secondary:hover { border-color: #afbdd5; background: #fafbfe; }
.button.danger { border-color: #efc3c7; color: var(--red); background: #fff7f7; }
.button.danger:hover { border-color: #df9da4; background: #ffeded; }
.button.ghost { color: var(--muted); background: transparent; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button.full { width: 100%; min-height: 46px; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 0 16px 18px; color: #fff; background: var(--navy); }
.sidebar .brand { padding: 0 13px; }
.main-nav { display: grid; gap: 5px; margin-top: 25px; }
.nav-item { display: flex; width: 100%; min-height: 46px; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 0 13px; cursor: pointer; color: #9eabc3; background: transparent; text-align: left; font-weight: 600; transition: color .15s, background .15s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: linear-gradient(100deg, rgba(60,111,230,.28), rgba(53,106,230,.12)); box-shadow: inset 3px 0 #5c87ed; }
.nav-icon { display: inline-flex; width: 22px; justify-content: center; color: currentColor; font-family: Consolas, monospace; font-size: 17px; }
.sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 86px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 34px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.4px; }
.topbar-caption { color: #8993a7; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.application-picker { display: flex; align-items: center; gap: 9px; color: #7b869a; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.application-picker select { width: 220px; min-height: 40px; color: #2f3c55; background: #f8faff; font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }

.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 30px 34px 50px; }
.page { display: none; animation: page-in .18s ease-out; }
.page.active { display: block; }
@keyframes page-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.welcome-row, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.welcome-row h2, .page-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.6px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.metric-card { display: flex; min-height: 118px; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; background: #fff; box-shadow: var(--shadow); }
.metric-card .metric-icon { display: flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; border-radius: 13px; font-family: Consolas, monospace; font-size: 21px; font-weight: 800; }
.metric-card span { display: block; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin-top: 4px; font-size: 29px; letter-spacing: -.8px; }
.metric-card.blue .metric-icon { color: #315fd0; background: #eaf0ff; }
.metric-card.violet .metric-icon { color: #7450c8; background: #f0eafb; }
.metric-card.green .metric-icon { color: #11865d; background: #e5f6ef; }
.metric-card.amber .metric-icon { color: #b46b00; background: #fff2dc; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 22px; }
.connection-banner { display: flex; align-items: center; gap: 14px; min-height: 72px; margin-bottom: 20px; border: 1px solid #d9e1ee; border-radius: 13px; padding: 14px 18px; color: #56627a; background: #f8faff; }
.connection-banner.compact { min-height: 60px; margin-bottom: 16px; padding: 11px 16px; }
.connection-banner.success { border-color: #bee5d5; color: #376b59; background: #effaf6; }
.connection-banner.warning { border-color: #ecd7ad; color: #7d622e; background: #fff9ec; }
.connection-banner.neutral { color: #56627a; background: #f8faff; }
.connection-banner .connection-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: #9ba7bb; box-shadow: 0 0 0 5px rgba(155,167,187,.12); }
.connection-banner.success .connection-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(17,134,93,.11); }
.connection-banner.warning .connection-dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(196,122,8,.11); }
.connection-banner strong, .connection-banner p { display: block; margin: 0; }
.connection-banner p { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 22px 22px; }
.quick-action { display: grid; min-height: 150px; align-content: center; justify-items: start; gap: 6px; border: 1px solid var(--line); border-radius: 13px; padding: 20px; cursor: pointer; color: var(--ink); background: #fafbfe; text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.quick-action:hover { border-color: #b9c9e9; background: #f4f7ff; transform: translateY(-2px); }
.quick-action > span { display: flex; width: 39px; height: 39px; align-items: center; justify-content: center; margin-bottom: 4px; border-radius: 10px; color: var(--blue); background: #eaf0ff; font-size: 18px; }
.quick-action strong { font-size: 14px; }
.quick-action small { color: var(--muted); line-height: 1.45; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 23px 18px; }
.panel-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; cursor: pointer; color: var(--blue); background: transparent; font-size: 13px; font-weight: 700; }
.activity-list { min-height: 290px; padding: 0 23px 13px; }
.activity-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid #edf0f5; padding: 14px 0; }
.activity-icon { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; color: #315fd0; background: #edf2ff; font-weight: 800; }
.activity-main strong, .activity-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-main span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.activity-main .badge { display: inline-flex; width: auto; margin: 0 0 0 4px; vertical-align: middle; }
.activity-date { color: #8993a7; font-size: 12px; }
.activity-empty { display: flex; min-height: 270px; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.steps { display: grid; gap: 8px; margin: 0; padding: 0 23px 20px; list-style: none; }
.steps li { display: flex; gap: 13px; border-top: 1px solid #edf0f5; padding: 15px 0 8px; }
.steps li > span { display: flex; width: 29px; height: 29px; flex: 0 0 29px; align-items: center; justify-content: center; border-radius: 50%; color: #315fd0; background: #eaf0ff; font-size: 12px; font-weight: 800; }
.steps strong { font-size: 13px; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.table-panel { overflow: hidden; }
.recent-keys-panel { margin-bottom: 18px; }
.recent-keys-heading { border-bottom: 1px solid var(--line); }
.traditional-licenses-heading { padding-bottom: 14px; }
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; border: 1px solid #cfdafa; border-radius: 13px; padding: 12px 15px; color: #314c8f; background: #f2f6ff; }
.batch-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.batch-toolbar .button { min-height: 36px; padding: 0 12px; font-size: 12px; }
.table-tools { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 18px; }
.search { position: relative; width: min(390px, 100%); }
.search span { position: absolute; left: 13px; top: 9px; color: #8f99ad; font-size: 18px; }
.search input { padding-left: 39px; background: #fafbfd; }
.count-label { color: var(--muted); font-size: 13px; }
.license-tools { justify-content: flex-start; }
.license-tools select { width: 180px; margin-left: auto; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 45px; padding: 0 17px; color: #7b869a; background: #fafbfd; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
td { height: 59px; border-top: 1px solid #edf0f5; padding: 8px 17px; color: #3c475c; white-space: nowrap; }
.select-cell { width: 48px; padding-right: 4px; text-align: center; }
.select-cell input { width: 17px; height: 17px; accent-color: var(--blue); }
tbody tr:hover { background: #fbfcff; }
.cell-title { color: var(--ink); font-weight: 680; }
.cell-subtitle { display: block; margin-top: 3px; color: #8a94a6; font-size: 12px; }
.actions-cell { width: 118px; text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-button { display: inline-flex; min-width: 34px; height: 32px; align-items: center; justify-content: center; border: 1px solid #dce2ed; border-radius: 8px; cursor: pointer; color: #536078; background: #fff; font-size: 12px; font-weight: 700; }
.row-button:hover { border-color: #b9c4d7; color: var(--blue); background: #f7f9ff; }
.row-button.danger:hover { border-color: #efc3c7; color: var(--red); background: #fff7f7; }
.inline-code, .license-key { display: inline-block; max-width: 300px; overflow: hidden; color: #3159ad; background: #edf2ff; text-overflow: ellipsis; vertical-align: middle; }
.license-key { max-width: 360px; color: #344258; background: #f1f4f8; }
.secret-hint { display: inline-flex; border-radius: 999px; padding: 6px 10px; color: #425376; background: #eef2f8; font-family: Consolas, monospace; font-size: 12px; }
.badge { display: inline-flex; min-width: 68px; height: 27px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 10px; font-size: 11px; font-weight: 800; }
.badge.active { color: #0b7954; background: #e5f6ef; }
.badge.expired { color: #a56100; background: #fff0d5; }
.badge.revoked { color: #ad3440; background: #fdebec; }
.empty-state { min-height: 320px; padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state .empty-icon { display: flex; width: 54px; height: 54px; align-items: center; justify-content: center; margin: 0 auto 14px; border-radius: 15px; color: var(--blue); background: #edf2ff; font-family: Consolas, monospace; font-size: 24px; }
.empty-state h3 { margin: 0; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 7px 0 0; }
.compact-empty { min-height: 220px; padding: 38px 20px; }
.compact-empty strong { color: var(--ink); }
.security-callout { display: flex; gap: 13px; margin: -4px 0 19px; border: 1px solid #f0cfb8; border-radius: 13px; padding: 15px 18px; color: #75543b; background: #fff7f0; }
.security-callout > span { display: flex; width: 29px; height: 29px; flex: 0 0 29px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #c46d37; font-weight: 900; }
.security-callout strong, .security-callout p { display: block; margin: 0; }
.security-callout p { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.heading-actions { display: flex; gap: 9px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.guide-card { min-height: 230px; padding: 25px; }
.guide-card h3 { margin: 18px 0 9px; font-size: 17px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.guide-number { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 11px; color: #315fd0; background: #eaf0ff; font-weight: 900; }
.info-banner, .warning-banner { display: flex; gap: 13px; margin-top: 18px; border: 1px solid #dbe5f9; border-radius: 12px; padding: 16px 18px; color: #52617c; background: #f0f5ff; font-size: 13px; line-height: 1.5; }
.info-banner strong, .warning-banner strong { flex: 0 0 auto; color: #3159ad; }
.warning-banner { border-color: #eadcbf; background: #fffaef; }
.warning-banner strong { color: #94600d; }

.integration-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 20px; margin-bottom: 20px; }
.integration-card { overflow: hidden; }
.integration-card .panel-heading { padding-bottom: 13px; }
.code-box { overflow: auto; min-height: 112px; max-height: 240px; margin: 0 22px 17px; border: 1px solid #25334c; border-radius: 11px; padding: 15px; color: #dce8ff; background: #111a2b; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-box.tall { max-height: 420px; }
.download-link { width: fit-content; margin: 0 22px 22px; }
.machine-id { margin: 5px 22px 14px; border-radius: 11px; padding: 18px; color: #254c9f; background: #edf2ff; font-family: Consolas, monospace; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.helper { margin: 0 22px 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
code { border-radius: 5px; padding: 2px 5px; color: #334f91; background: #eef2fa; font-family: Consolas, monospace; }
.code-card { margin-top: 0; }

.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.settings-card { display: flex; min-height: 240px; align-items: flex-start; gap: 16px; padding: 24px; }
.settings-icon { display: flex; width: 45px; height: 45px; flex: 0 0 45px; align-items: center; justify-content: center; border-radius: 12px; color: var(--blue); background: #eaf0ff; font-size: 20px; }
.settings-card h3 { margin: 2px 0 7px; font-size: 17px; }
.settings-card p { min-height: 64px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-card .download-link { margin: 0; }
.preset-panel{margin-bottom:19px;padding:24px;background:linear-gradient(145deg,rgba(255,255,255,.018),transparent 48%),var(--panel)}.preset-head,.preset-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.preset-head{padding-bottom:19px;border-bottom:1px solid var(--line)}.preset-head h3{margin:3px 0 4px}.preset-head p{margin:0;color:var(--muted)}.preset-selection{min-width:126px;padding:11px 14px;border:1px solid rgba(225,43,61,.25);border-radius:12px;background:rgba(225,43,61,.07);text-align:right}.preset-selection strong{display:block;color:var(--accent);font-size:20px}.preset-selection span{color:var(--muted);font-size:10px}.preset-form{display:block}.preset-toolbar{padding:18px 0 14px}.preset-toolbar>label{width:min(380px,100%)}.preset-tools{display:flex;gap:8px;align-items:end}.button.compact{min-height:36px;padding:0 13px}.preset-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preset-group{border:1px solid var(--line);border-radius:12px;background:rgba(8,8,11,.28);overflow:hidden}.preset-group[open]{border-color:rgba(225,43,61,.28);background:rgba(225,43,61,.025)}.preset-group summary{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;cursor:pointer;list-style:none;font-size:12px;font-weight:700}.preset-group summary::-webkit-details-marker{display:none}.preset-group summary small{color:var(--muted);font-size:9px;font-weight:500}.preset-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 11px 12px}.preset-options label{display:flex;align-items:center;gap:9px;min-height:37px;padding:8px 10px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:11px;cursor:pointer;transition:.16s}.preset-options label:hover{border-color:var(--line);color:var(--text);background:rgba(255,255,255,.025)}.preset-options label.is-selected{border-color:rgba(225,43,61,.35);color:var(--text);background:rgba(225,43,61,.09)}.preset-options input{width:15px;height:15px;accent-color:var(--accent)}.preset-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px;padding-top:16px;border-top:1px solid var(--line)}.preset-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:8px 11px;color:var(--text);background:var(--panel);font-size:11px}.preset-chip small{color:var(--muted)}.preset-chip button{border:0;color:#d95a65;background:transparent;cursor:pointer}
@media (max-width:980px){.preset-groups{grid-template-columns:1fr}.preset-head,.preset-toolbar{align-items:stretch;flex-direction:column}.preset-selection{text-align:left}.preset-tools{flex-wrap:wrap}.preset-options{grid-template-columns:1fr}}

/* Preset studio */
.preset-panel{padding:0;overflow:hidden;border-color:rgba(255,255,255,.075);background:radial-gradient(circle at 92% 0,rgba(211,32,51,.075),transparent 28%),#0d0d11}
.preset-head{padding:24px 26px 20px;background:linear-gradient(90deg,rgba(255,255,255,.018),transparent);border-bottom:1px solid rgba(255,255,255,.065)}
.preset-head .panel-kicker{letter-spacing:.16em}.preset-head h3{font-size:17px;letter-spacing:-.02em}.preset-head p{font-size:11px}
.preset-selection{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:9px;min-width:auto;padding:10px 13px;border-color:rgba(231,47,65,.22);border-radius:10px;background:rgba(231,47,65,.055);text-align:left}
.preset-selection strong{grid-row:1/3;font-size:22px;line-height:1}.preset-selection span{max-width:70px;font-size:9px;line-height:1.25}
.preset-form{padding:18px 26px 22px}.preset-toolbar{padding:0 0 16px}.preset-toolbar>label{width:min(430px,100%);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.preset-toolbar input{margin-top:7px;height:42px;border-radius:9px;background:#101015}
.preset-tools{align-items:center}.preset-tools .button{height:38px;border-radius:9px}.preset-tools .ghost{color:#a6a4b0;background:transparent}.preset-tools .ghost:hover{color:#fff;background:rgba(255,255,255,.045)}
.preset-groups{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}
.preset-group{align-self:start;border-color:rgba(255,255,255,.075);border-radius:10px;background:#0b0b0f;box-shadow:0 8px 22px rgba(0,0,0,.08)}
.preset-group[open]{border-color:rgba(231,47,65,.24);background:linear-gradient(145deg,rgba(231,47,65,.035),transparent 42%),#0c0c10}
.preset-group summary{position:relative;min-height:47px;padding:0 43px 0 15px;font-size:11px}.preset-group summary:after{content:'+';position:absolute;right:15px;top:50%;width:20px;height:20px;margin-top:-10px;border:1px solid rgba(255,255,255,.08);border-radius:6px;color:#777582;text-align:center;line-height:18px;font-size:14px;font-weight:400}.preset-group[open] summary:after{content:'−';border-color:rgba(231,47,65,.25);color:#e34a59;background:rgba(231,47,65,.06)}
.preset-group summary small{margin-left:auto;padding-right:10px;font-size:8px}.preset-options{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;grid-auto-rows:40px;gap:6px;padding:0 10px 11px}
.preset-options label{min-height:40px;height:40px;padding:0 11px;border-color:rgba(255,255,255,.045);border-radius:7px;background:rgba(255,255,255,.012);font-size:10px;font-weight:600}
.preset-options label:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.032)}.preset-options label.is-selected{border-color:rgba(231,47,65,.28);background:linear-gradient(90deg,rgba(231,47,65,.12),rgba(231,47,65,.045));box-shadow:inset 2px 0 #d82e41}
.preset-options input{appearance:none;display:grid;place-content:center;width:15px;height:15px;margin:0;border:1px solid #4c4b54;border-radius:4px;background:#17171d}.preset-options input:before{content:'✓';transform:scale(0);color:#fff;font-size:10px;line-height:1}.preset-options input:checked{border-color:#d92f42;background:#d92f42}.preset-options input:checked:before{transform:scale(1)}
.preset-saved{padding:17px 26px 20px;border-top:1px solid rgba(255,255,255,.065);background:rgba(0,0,0,.12)}.preset-saved-head{display:flex;align-items:baseline;gap:9px}.preset-saved-head span{font-size:11px;font-weight:700}.preset-saved-head small{color:var(--muted);font-size:9px}.preset-list{margin-top:11px;padding:0;border:0;gap:7px}.preset-chip{min-height:34px;padding:0 7px 0 11px;border-color:rgba(255,255,255,.08);border-radius:8px;background:#111116}.preset-chip strong{font-size:10px}.preset-chip small{padding-left:8px;border-left:1px solid rgba(255,255,255,.08);font-size:8px}.preset-chip button{display:grid;place-items:center;width:22px;height:22px;border-radius:6px}.preset-chip button:hover{background:rgba(217,47,66,.12)}
@media(max-width:980px){.preset-form,.preset-head,.preset-saved{padding-left:16px;padding-right:16px}.preset-groups{grid-template-columns:1fr}.preset-toolbar{gap:13px}.preset-tools{justify-content:flex-start}.preset-options{grid-template-columns:1fr}.preset-selection{align-self:flex-start}}

/* Organized tabbed preset editor */
.preset-form{max-width:1280px;margin:0 auto;padding-top:20px}.preset-toolbar{margin-bottom:14px;padding:0}.preset-toolbar>label{width:360px}.preset-category-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:9px;padding:6px;border:1px solid rgba(255,255,255,.065);border-radius:11px;background:#09090c}
.preset-category-tabs button{display:flex;align-items:center;justify-content:space-between;gap:8px;height:42px;padding:0 12px;border:1px solid transparent;border-radius:8px;color:#7e7c88;background:transparent;font:600 10px/1 inherit;cursor:pointer;transition:.16s ease}.preset-category-tabs button:hover{color:#d8d6de;background:rgba(255,255,255,.025)}.preset-category-tabs button.active{border-color:rgba(255,255,255,.085);color:#f0eef3;background:#16161c;box-shadow:0 5px 16px rgba(0,0,0,.18)}.preset-category-tabs small{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:6px;color:#777581;background:#202027;font-size:8px}.preset-category-tabs button.active small{color:#f2bcc2;background:rgba(218,45,64,.14)}
.preset-groups{display:block}.preset-group{display:none!important;width:100%;min-height:160px;border-color:rgba(255,255,255,.07)!important;background:#0b0b0f!important;box-shadow:none}.preset-group.is-active{display:block!important}.preset-group summary{min-height:49px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.055);cursor:default}.preset-group summary:after{display:none}.preset-group summary span{font-size:12px}.preset-group summary small{padding:0;color:#706e79}.preset-options{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:43px;gap:8px;padding:13px}.preset-options label{height:43px;min-height:43px;padding:0 12px;border:1px solid rgba(255,255,255,.055);border-radius:8px;color:#96949f;background:#101015;font-size:10px;font-weight:600;box-shadow:none!important;transform:none!important}.preset-options label:hover{border-color:rgba(255,255,255,.12);color:#e7e5eb;background:#131319}.preset-options label.is-selected{border-color:rgba(255,255,255,.09);color:#f0eef3;background:#17171d;box-shadow:none!important}.preset-options input{order:2;margin-left:auto;width:17px;height:17px;border-radius:50%;border-color:#3d3c45;background:#0d0d11}.preset-options input:before{font-size:9px}.preset-options input:checked{border-color:#d82d40;background:#d82d40;box-shadow:0 0 0 3px rgba(216,45,64,.1)}
.preset-saved{padding-top:14px}.preset-saved-head,.preset-list{max-width:1280px;margin-left:auto;margin-right:auto}.preset-list{margin-top:10px}.preset-chip{border-radius:9px;background:#0e0e13}
@media(max-width:1100px){.preset-options{grid-template-columns:repeat(3,minmax(0,1fr))}.preset-category-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.preset-category-tabs{grid-template-columns:1fr 1fr}.preset-options{grid-template-columns:1fr 1fr}.preset-toolbar>label{width:100%}}

/* Professional preset workspace */
.preset-panel{border:1px solid #24262d;border-radius:16px;background:#111217;box-shadow:0 18px 50px rgba(0,0,0,.2)}
.preset-head{padding:28px 32px 24px;border-bottom:1px solid #24262d;background:linear-gradient(110deg,#15161b 0,#111217 58%,rgba(199,35,54,.055) 100%)}
.preset-head .panel-kicker{color:#e84255;font-size:9px;font-weight:800}.preset-head h3{margin-top:7px;font-size:19px;font-weight:750;letter-spacing:-.025em}.preset-head p{margin-top:6px;color:#858792;font-size:12px}
.preset-selection{grid-template-columns:auto 76px;column-gap:12px;padding:12px 16px;border:1px solid #343641;border-radius:12px;background:#18191f;box-shadow:none}.preset-selection strong{color:#f2f2f5;font-size:24px}.preset-selection span{color:#8c8e99;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.preset-form{max-width:1220px;padding:24px 0 26px}.preset-toolbar{min-height:67px;margin:0 0 18px;padding:0 2px}.preset-toolbar>label{width:390px;color:#9b9da8;font-size:9px;font-weight:700;letter-spacing:.09em}.preset-toolbar input{height:44px;margin-top:8px;padding:0 14px;border:1px solid #30323c;border-radius:10px;color:#f4f3f6;background:#17181e;box-shadow:inset 0 1px rgba(255,255,255,.02)}.preset-toolbar input:focus{border-color:#7d3540;box-shadow:0 0 0 3px rgba(208,43,62,.09)}
.preset-tools{gap:7px}.preset-tools .button{height:40px;padding:0 16px;border-radius:9px;font-size:11px;font-weight:700}.preset-tools .ghost{border:1px solid transparent;color:#999ba6}.preset-tools .ghost:hover{border-color:#30323c;color:#ececf0;background:#191a20}.preset-tools .primary{margin-left:7px;background:#d2263a;box-shadow:0 8px 22px rgba(210,38,58,.18)}.preset-tools .primary:hover{background:#e02c42}
.preset-category-tabs{gap:2px;margin:0;padding:5px;border:1px solid #292b33;border-radius:12px;background:#0d0e12}.preset-category-tabs button{height:45px;padding:0 14px;border:0;border-radius:8px;color:#858792;font-size:11px;font-weight:650}.preset-category-tabs button:hover{color:#d4d5da;background:#15161b}.preset-category-tabs button.active{border:0;color:#f4f3f6;background:#1b1c22;box-shadow:0 1px 0 rgba(255,255,255,.05),0 4px 12px rgba(0,0,0,.22)}.preset-category-tabs button.active:before{content:'';width:6px;height:6px;margin-right:1px;border-radius:50%;background:#df3044;box-shadow:0 0 0 4px rgba(223,48,68,.1)}.preset-category-tabs small{min-width:23px;height:22px;border-radius:6px;color:#8e909b;background:#23242c}.preset-category-tabs button.active small{color:#f0b5bd;background:rgba(218,45,64,.13)}
.preset-group{min-height:0!important;margin-top:10px!important;border:1px solid #292b33!important;border-radius:12px!important;background:#14151a!important}.preset-group summary{display:none}.preset-options{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:54px;gap:10px;padding:16px}.preset-options label{height:54px;min-height:54px;padding:0 14px;border:1px solid #2b2d35;border-radius:10px;color:#b6b7c0;background:#191a20;font-size:11px;font-weight:650;box-shadow:0 3px 10px rgba(0,0,0,.08)!important}.preset-options label:hover{border-color:#3c3e48;color:#f1f1f4;background:#1d1e24}.preset-options label.is-selected{border-color:#473038;color:#f4f3f6;background:linear-gradient(100deg,#1d1c22,#1b1b21);box-shadow:inset 3px 0 #d92d41,0 3px 10px rgba(0,0,0,.08)!important}
.preset-options input[type="checkbox"]{appearance:none!important;flex:0 0 19px!important;order:2!important;width:19px!important;min-width:19px!important;max-width:19px!important;height:19px!important;min-height:19px!important;max-height:19px!important;margin:0 0 0 auto!important;padding:0!important;border:1px solid #4a4c56!important;border-radius:6px!important;background:#111217!important;box-shadow:none!important}.preset-options input[type="checkbox"]:before{content:'✓'!important;display:block!important;transform:scale(0)!important;color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:17px!important;text-align:center!important}.preset-options input[type="checkbox"]:checked{border-color:#d92d41!important;background:#d92d41!important;box-shadow:0 0 0 3px rgba(217,45,65,.1)!important}.preset-options input[type="checkbox"]:checked:before{transform:scale(1)!important}
.preset-saved{padding:19px 32px 22px;border-top:1px solid #24262d;background:#0f1014}.preset-saved-head,.preset-list{max-width:1220px}.preset-saved-head{gap:10px}.preset-saved-head span{color:#e8e8ec;font-size:12px}.preset-saved-head small{color:#777985;font-size:10px}.preset-list{gap:9px;margin-top:13px}.preset-chip{min-height:38px;padding:0 8px 0 13px;border:1px solid #2b2d35;border-radius:10px;background:#17181e}.preset-chip strong{color:#ececf0;font-size:11px}.preset-chip small{color:#858792;font-size:9px}.preset-chip button{color:#e15162}
@media(max-width:1280px){.preset-form{padding-left:24px;padding-right:24px}.preset-saved-head,.preset-list{max-width:none}}
@media(max-width:1000px){.preset-options{grid-template-columns:repeat(2,minmax(0,1fr))}.preset-category-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.preset-head{padding:22px 18px}.preset-form{padding:18px}.preset-selection{display:none}.preset-category-tabs,.preset-options{grid-template-columns:1fr}.preset-tools{width:100%}.preset-tools .primary{margin-left:auto}.preset-saved{padding:17px 18px}}

.switch-setting, .lifetime-option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-setting input, .lifetime-option input { width: 17px; height: 17px; margin: 0; accent-color: #dc3543; }
.switch-setting span { color: var(--text); font-size: 12px; font-weight: 700; }
.lifetime-option { min-height: 58px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: rgba(216,48,60,.035); }
.lifetime-option span { display: grid; gap: 3px; }.lifetime-option strong { font-size: 12px; }.lifetime-option small { color: var(--muted); font-size: 10px; }
#license-expiry-field.disabled { opacity: .45; }
.file-button { position: relative; width: fit-content; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.modal { width: min(580px, calc(100vw - 28px)); max-height: calc(100vh - 40px); border: 0; border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 28px 80px rgba(17, 28, 51, .3); }
.modal.wide { width: min(720px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(13, 22, 41, .62); backdrop-filter: blur(3px); }
.modal > form, .modal > div:not(.success-mark), .modal > textarea { margin-left: 25px; margin-right: 25px; }
.modal > form { margin: 0; padding: 25px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-header h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.5px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 8px; cursor: pointer; color: #6b768b; background: #f3f5f9; font-size: 23px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.full-span { grid-column: 1 / -1; }
.span-2 { grid-column: span 2; }
.check-label { display: flex; min-height: 43px; align-items: center; gap: 9px; padding-top: 22px; }
.check-label input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--blue); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--line); }
.modal-actions.centered { justify-content: center; margin: 18px 25px 25px; }
.modal-note { margin-top: 18px; border-radius: 10px; padding: 12px 14px; color: #65728a; background: #f5f7fb; font-size: 12px; line-height: 1.5; }
.success-mark { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin: 27px auto 12px; border-radius: 50%; color: #fff; background: var(--green); font-size: 27px; font-weight: 800; box-shadow: 0 9px 20px rgba(17,134,93,.22); }
.modal-centered { text-align: center; }
.modal-centered h2 { margin: 6px 0 0; }
.generated-key { display: block; width: calc(100% - 50px); height: 130px; margin-top: 20px; color: #dce8ff; background: #111a2b; font-family: Consolas, monospace; font-size: 12px; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 30px)); border-radius: 11px; padding: 14px 18px; pointer-events: none; opacity: 0; color: #fff; background: #17233a; box-shadow: 0 14px 35px rgba(19,32,56,.24); transform: translateY(14px); transition: opacity .2s, transform .2s; font-size: 13px; font-weight: 650; }
.toast.show, .toast.visible { opacity: 1; transform: none; }
.toast.error { background: #a93440; }
.sidebar-overlay { display: none; }

@media (max-width: 1160px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { min-height: auto; }
  .settings-card p { min-height: auto; }
}

@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form-side { padding: 28px; }
  .app-shell { display: block; }
  .workspace { grid-column: auto; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .sidebar-overlay { position: fixed; z-index: 25; inset: 0; display: none; background: rgba(13,22,41,.48); }
  .sidebar-overlay.open, .sidebar-overlay.visible { display: block; }
  .mobile-only { display: inline-flex !important; }
  .topbar { padding: 0 20px; }
  .topbar > div:first-of-type { margin-right: auto; margin-left: 12px; }
  .content { padding: 25px 20px 45px; }
  .dashboard-grid, .integration-grid { grid-template-columns: 1fr; }
  .picker-meta span { display: none; }
  .application-picker select { width: 170px; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { height: 76px; }
  .topbar-caption, #quick-license-button .button-label { display: none; }
  #quick-license-button { min-height: 37px; padding: 0 11px; font-size: 12px; }
  .topbar h1 { font-size: 18px; }
  .content { padding: 20px 13px 38px; }
  .metric-grid { grid-template-columns: 1fr; gap: 12px; }
  .metric-card { min-height: 95px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .heading-actions { flex-direction: column; }
  .quick-grid { grid-template-columns: 1fr; }
  .application-picker { display: none; }
  .table-tools, .license-tools { align-items: stretch; flex-direction: column; }
  .batch-toolbar, .batch-actions { align-items: stretch; flex-direction: column; }
  .search, .license-tools select { width: 100%; margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .full-span { grid-column: span 1; }
  .span-2 { grid-column: span 1; }
  .check-label { padding-top: 0; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .info-banner, .warning-banner { flex-direction: column; }
  .settings-card { flex-direction: column; }
}

/* Professional member management surface */
.members-layout { grid-template-columns: minmax(440px, 540px) minmax(0, 1fr); gap: 20px; }
.member-editor, .members-list-panel { border-color: #27272c; background: #111114; }
.member-editor > .panel-heading, .members-list-panel > .panel-heading { min-height: 76px; padding: 18px 22px; background: #121216; }
.member-editor form { gap: 17px; padding: 22px; }
.member-editor .form-grid { gap: 14px; }
.member-editor input:not([type="checkbox"]), .member-editor select { min-height: 44px; border-color: #323137; background: #0d0d10; transition: border-color .15s, box-shadow .15s; }
.member-editor input:not([type="checkbox"]):focus, .member-editor select:focus { border-color: #9f3039; box-shadow: 0 0 0 3px rgba(190,42,52,.1); outline: 0; }
.member-active {
  display: flex !important;
  min-height: 48px;
  align-items: center !important;
  gap: 11px !important;
  border: 1px solid #2c2b30;
  border-radius: 9px;
  padding: 0 13px;
  color: #c8c3c6 !important;
  background: #151519;
  cursor: pointer;
}
.member-editor input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  flex: 0 0 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #cf2d39;
  box-shadow: none !important;
}
.permission-fieldset { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; border: 0; padding: 0; }
.permission-fieldset legend { width: 100%; margin-bottom: 9px; padding: 0; color: #777177; }
.permission-fieldset label, .member-products label {
  display: flex !important;
  min-height: 46px;
  align-items: center !important;
  gap: 10px !important;
  border: 1px solid #2d2c31;
  border-radius: 9px;
  padding: 10px 12px;
  color: #aaa5a8 !important;
  background: #141418;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.permission-fieldset label:hover, .member-products label:hover { border-color: #463137; color: #ddd8db !important; background: #181418; }
.permission-fieldset label:has(input:checked), .member-products label:has(input:checked) { border-color: #673038; color: #f0e9eb !important; background: #211216; }
.member-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.member-form-actions { margin-top: 2px; }
.member-form-actions .button.primary { min-width: 150px; }
.members-list-panel { min-height: 330px; }
.empty-list { display: grid; min-height: 250px; place-content: center; justify-items: center; padding: 36px; color: #716c70; text-align: center; }
.empty-list-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 14px; border: 1px solid #43272d; border-radius: 12px; color: #df4b56; background: #211216; font-size: 22px; font-weight: 300; }
.empty-list strong { color: #d8d3d6; font-size: 13px; }
.empty-list p { max-width: 270px; margin: 7px 0 0; color: #716b70; font-size: 10px; line-height: 1.55; }
@media (max-width: 1100px) { .members-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .permission-fieldset, .member-products { grid-template-columns: 1fr; }
  .member-editor form { padding: 18px; }
}

/* Dark control-center redesign */
:root {
  color-scheme: dark;
  --ink: #f5f1fb;
  --muted: #918b9d;
  --line: #27232d;
  --soft: #08080b;
  --white: #121114;
  --navy: #09090c;
  --blue: #9b5cff;
  --blue-dark: #8644eb;
  --green: #45d495;
  --amber: #f1b14b;
  --red: #ff6577;
  --purple: #a45fff;
  --purple-soft: #6f3fc4;
  --surface: #121114;
  --surface-high: #17151a;
  --surface-low: #0d0c0f;
  --radius: 13px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

body { background: #08080b; color: var(--ink); font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow, .panel-kicker { color: #a976ff; }

.auth-screen { background: #08080b; }
.auth-art { color: #fff; background: radial-gradient(circle at 26% 24%, rgba(150, 77, 255, .22), transparent 32%), linear-gradient(145deg, #0d0c11, #070709 72%); }
.auth-art::after { opacity: .28; background-size: 54px 54px; background-image: linear-gradient(rgba(175,112,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(175,112,255,.08) 1px, transparent 1px); }
.art-orb-one { background: rgba(154, 80, 255, .25); filter: blur(30px); }
.art-orb-two { background: rgba(92, 218, 178, .1); filter: blur(35px); }
.auth-copy p { color: #a59dac; }
.auth-form-side { background: #0d0c10; }
.auth-card { border: 1px solid #242029; border-radius: 20px; padding: 34px; background: rgba(20, 18, 23, .84); box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.launch-steps li { border-color: #29242f; }
.launch-steps li > span { color: #d9bdff; background: #2b1a42; }
.launch-address { border-color: #392853; color: #a69caf; background: #17121d; }
.launch-address strong { color: #bf91ff; }

label { color: #b8b1c1; }
input, select, textarea { border-color: #302b35; color: #f4eff9; background: #121115; }
input:focus, select:focus, textarea:focus { border-color: #9d63f3; box-shadow: 0 0 0 3px rgba(157, 99, 243, .15); }
input::placeholder, textarea::placeholder { color: #665f6d; }
.label-help { color: #766f7f; }

.button { border-radius: 8px; font-size: 13px; }
.button.primary { color: #fff; background: linear-gradient(135deg, #a963ff, #7a38da); box-shadow: 0 10px 24px rgba(132, 60, 224, .22); }
.button.primary:hover { background: linear-gradient(135deg, #b577ff, #8b48e8); }
.button.secondary { border-color: #35303a; color: #d1c9da; background: #17151a; }
.button.secondary:hover { border-color: #5c4c6f; background: #1e1a23; }
.button.danger { border-color: #57313a; color: #ff8390; background: #211317; }
.button.danger:hover { border-color: #8f4754; background: #2d171d; }
.button.ghost { color: #8f8798; }

.app-shell { grid-template-columns: 214px minmax(0, 1fr); background: #08080b; }
.sidebar { width: 214px; border-right: 1px solid #201d24; padding: 0 14px 18px; color: #fff; background: #09090c; }
.sidebar .brand { min-height: 66px; border-bottom: 1px solid #1d1a20; padding: 0 7px; }
.brand { gap: 10px; font-size: 15px; }
.brand-logo-only { justify-content: center; overflow: hidden; }
.brand-logo-only .brand-logo { display: block; width: 138px; height: auto; flex: 0 0 auto; }
.sidebar .sidebar-brand { min-height: 78px; border-bottom: 1px solid #1d1a20; padding: 0; }
.auth-brand-logo { width: 210px; height: 94px; min-height: 94px; justify-content: center; }
.auth-brand-logo .brand-logo { width: 205px; }
.auth-copy .auth-brand-logo + h1 { margin-top: 42px; }
.main-nav { gap: 4px; margin-top: 23px; }
.nav-item { min-height: 39px; gap: 10px; border-radius: 8px; padding: 0 10px; color: #76717e; font-size: 12px; font-weight: 650; }
.nav-item:hover { color: #d8d0df; background: #141217; }
.nav-item.active { color: #e7d6ff; background: linear-gradient(90deg, rgba(143, 71, 238, .24), rgba(143, 71, 238, .08)); box-shadow: inset 2px 0 #a65fff; }
.nav-icon { width: 18px; color: #8c8396; font-size: 14px; }
.nav-item.active .nav-icon { color: #b980ff; }
.sidebar-bottom { border-color: #201d24; }

.workspace { grid-column: 2; background: radial-gradient(circle at 48% -20%, rgba(109, 52, 168, .08), transparent 30%), #08080b; }
.topbar { height: 66px; border-color: #201d24; padding: 0 28px; background: rgba(9, 9, 12, .92); }
.topbar h1 { color: #f4eff8; font-size: 18px; font-weight: 650; }
.topbar-caption { color: #625c69; font-size: 9px; }
.topbar-actions { gap: 12px; }
.application-picker { color: #716a78; }
.application-picker select { width: 205px; min-height: 36px; border-color: #302a36; color: #dcd3e4; background: #121015; font-size: 12px; }
.icon-button { border-color: #302a36; color: #ddd3e4; background: #141217; }

.content { max-width: 1720px; padding: 24px 28px 48px; }
.welcome-row, .page-heading { margin-bottom: 18px; }
.welcome-row h2, .page-heading h2 { color: #f4eff8; font-size: 21px; font-weight: 650; }
.panel { border-color: #242128; background: linear-gradient(150deg, #131215, #0f0e11); box-shadow: var(--shadow); }
.panel-heading { padding: 18px 19px 14px; }
.panel-heading h3 { color: #eee7f3; font-size: 14px; font-weight: 650; }
.panel-heading p { color: #77707f; font-size: 11px; }
.panel-kicker { display: block; margin-bottom: 6px; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }

.connection-banner { min-height: 58px; margin-bottom: 16px; border-color: #2b2730; border-radius: 10px; padding: 11px 15px; color: #a29aa9; background: #111014; }
.connection-banner.compact { border-radius: 9px; }
.connection-banner.success { border-color: #214537; color: #8bcdb1; background: #0d1915; }
.connection-banner.warning { border-color: #543f22; color: #d6ae6f; background: #1a150e; }
.connection-banner.neutral { color: #8f8898; background: #111014; }
.connection-banner .connection-dot { width: 8px; height: 8px; flex-basis: 8px; background: #69616f; box-shadow: 0 0 0 4px rgba(105,97,111,.12); }

.metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric-card { position: relative; display: block; min-height: 94px; overflow: hidden; border-color: #242128; border-radius: 11px; padding: 15px 16px; background: linear-gradient(145deg, #141316, #0e0d10); box-shadow: 0 14px 38px rgba(0,0,0,.2); }
.metric-card::after { position: absolute; right: -20px; bottom: -38px; width: 82px; height: 82px; border-radius: 50%; content: ""; background: rgba(157, 86, 246, .05); filter: blur(2px); }
.metric-card.accent { border-color: #3a2851; background: linear-gradient(145deg, #18121f, #0f0d12); }
.metric-card .metric-label { display: block; color: #8a8391; font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.metric-card strong { display: block; margin-top: 9px; color: #f6f1fa; font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.metric-card.accent strong, .metric-card strong.status-online { color: #b97dff; }
.metric-card small { display: block; margin-top: 5px; color: #5f5965; font-size: 9px; }

.analytics-grid { display: grid; grid-template-columns: minmax(360px, 1.25fr) minmax(310px, 1fr) minmax(250px, .72fr); gap: 14px; margin-bottom: 16px; }
.analytics-panel { min-height: 292px; overflow: hidden; }
.chart-chip { display: inline-flex; height: 25px; align-items: center; border: 1px solid #31263d; border-radius: 999px; padding: 0 9px; color: #b78be8; background: #17121d; font-size: 9px; font-weight: 700; }
.trend-chart { position: relative; height: 213px; margin: 0 18px 16px; overflow: hidden; border: 1px solid #201e23; border-radius: 9px; background: #0c0b0e; }
.trend-chart canvas { position: absolute; inset: 0 0 29px; width: 100%; height: calc(100% - 29px); }
.chart-empty { position: absolute; inset: 0 18px 29px; display: grid; place-items: center; color: #746d73; font-size: 11px; text-align: center; }
.chart-legend { position: absolute; right: 13px; bottom: 8px; display: flex; gap: 14px; color: #756e74; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 16px; height: 2px; border-radius: 999px; }
.legend-red { background: #df3540; }
.legend-silver { background: #c9c5c7; }

.bar-chart { display: flex; height: 220px; align-items: flex-end; justify-content: space-around; gap: 14px; margin: 0 20px 18px; border-bottom: 1px solid #2c2731; padding: 18px 10px 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 100% 45px; }
.bar-column { display: grid; width: 19%; height: 100%; align-content: end; justify-items: center; gap: 8px; }
.bar-value { width: min(38px, 72%); min-height: 5%; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #b76cff, #7434cc); box-shadow: 0 0 24px rgba(158,82,242,.14); transition: height .35s ease; }
.bar-value.bright { background: linear-gradient(180deg, #cf92ff, #8d47e0); }
.bar-value.dim { background: linear-gradient(180deg, #75647e, #3a303e); }
.bar-column span { color: #665f6c; font-size: 8px; }

.donut-wrap { display: grid; place-items: center; padding: 3px 0 16px; }
.license-donut { --donut-angle: 0deg; position: relative; display: grid; width: 132px; height: 132px; place-items: center; border-radius: 50%; background: conic-gradient(#ad68ff 0 var(--donut-angle), #29242f var(--donut-angle) 360deg); box-shadow: 0 0 35px rgba(160,88,241,.09); }
.license-donut::after { position: absolute; width: 84px; height: 84px; border: 1px solid #28232d; border-radius: 50%; content: ""; background: #100f12; }
.license-donut span { position: relative; z-index: 1; color: #e9def1; font-size: 20px; font-weight: 650; }
.status-list { display: grid; gap: 8px; padding: 0 18px 16px; }
.status-list > div { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 8px; border-top: 1px solid #242027; padding-top: 8px; color: #7f7786; font-size: 9px; }
.status-list strong { color: #d9d0df; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.purple { background: #aa63ff; }
.status-dot.slate { background: #6f6675; }
.status-dot.green { background: #42cd90; }

.dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 14px; }
.quick-grid { gap: 10px; padding: 0 18px 18px; }
.quick-action { min-height: 116px; border-color: #28242d; border-radius: 10px; color: #e8e0ee; background: #111014; }
.quick-action:hover { border-color: #4f3767; background: #17121d; }
.quick-action > span { width: 34px; height: 34px; color: #bf8bff; background: #241535; }
.quick-action small { color: #716a78; }
.steps { padding: 0 19px 17px; }
.steps li { border-color: #252129; }
.steps li > span { color: #d6b3ff; background: #29183d; }
.steps p { color: #716a78; }

.table-panel { border-radius: 11px; }
.table-tools { min-height: 58px; border-color: #27232d; padding: 10px 14px; }
.search span { color: #655f6d; }
.search input { background: #0e0d10; }
.count-label { color: #746d7b; }
th { height: 41px; padding: 0 14px; color: #6e6775; background: #0f0e11; font-size: 9px; }
td { height: 55px; border-color: #242027; padding: 8px 14px; color: #aba3b2; }
tbody tr:hover { background: #151218; }
.cell-title { color: #e5dde9; }
.cell-subtitle { color: #6d6673; }
.row-button { border-color: #312c35; color: #a49cab; background: #141216; }
.row-button:hover { border-color: #60457b; color: #cfa4ff; background: #1d1625; }
.inline-code, .license-key { color: #c89aff; background: #21162d; }
.secret-hint { color: #bca7ce; background: #1b171f; }
.badge.active { color: #70d6ac; background: #10251d; }
.badge.expired { color: #e5b96f; background: #2b2010; }
.badge.revoked { color: #ff8290; background: #2d151b; }
.empty-state { color: #716a78; }
.empty-state .empty-icon { color: #bc84ff; background: #221532; }

.batch-toolbar { border-color: #44305b; color: #d4b6f7; background: #18111f; }
.select-cell input { accent-color: #a65fff; }
.security-callout { border-color: #513a24; color: #c4a47b; background: #1c150e; }
.security-callout > span { background: #9d652b; }
.guide-card, .settings-card { background: linear-gradient(145deg, #131215, #0f0e11); }
.settings-icon { color: #c18dff; background: #231533; }
.info-banner, .warning-banner { border-color: #372b45; color: #a199a9; background: #17121c; }
.warning-banner { border-color: #4d3c24; background: #1a150e; }

.modal { border: 1px solid #312b36; border-radius: 14px; color: #eee7f3; background: #121014; box-shadow: 0 34px 100px rgba(0,0,0,.64); }
.modal::backdrop { background: rgba(2,2,4,.78); backdrop-filter: blur(6px); }
.modal-header h2 { color: #f3edf7; }
.modal-close { color: #958c9e; background: #1d1a20; }
.modal-close:hover { color: #fff; background: #28222d; }
.modal-actions { border-color: #2b2730; }
.modal-note { color: #938a9c; background: #19161d; }
.generated-key { border-color: #332942; color: #d8b8ff; background: #0b090d; }
.success-mark { color: #b873ff; }
.toast { border: 1px solid #46325d; color: #f6effb; background: #1a1221; box-shadow: 0 18px 50px rgba(0,0,0,.42); }
.toast.error { border-color: #713944; background: #35171e; }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .health-panel { grid-column: span 2; }
  .health-panel { display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; }
  .health-panel .panel-heading { align-self: start; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .sidebar { width: 214px; }
  .analytics-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .health-panel { display: block; grid-column: auto; }
}

@media (max-width: 640px) {
  .content { padding: 18px 12px 34px; }
  .topbar { padding: 0 13px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 88px; padding: 13px; }
  .analytics-grid { gap: 10px; }
  .analytics-panel { min-height: 260px; }
  .application-picker { display: none; }
  .auth-form-side { padding: 20px; }
  .auth-card { padding: 25px 20px; }
}

/* STS dark-red brand palette */
:root {
  --blue: #bd1e29;
  --blue-dark: #8f111a;
  --purple: #d52b36;
  --purple-soft: #7d151d;
}

.eyebrow, .panel-kicker { color: #df3a45; }
.auth-art { background: radial-gradient(circle at 26% 24%, rgba(190, 24, 36, .22), transparent 32%), linear-gradient(145deg, #110b0d, #070708 72%); }
.auth-art::after { background-image: linear-gradient(rgba(205,43,54,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(205,43,54,.075) 1px, transparent 1px); }
.art-orb-one { background: rgba(188, 22, 34, .25); }
.launch-steps li > span { color: #ffb4b8; background: #3b1116; }
.launch-address { border-color: #512229; background: #1c0e11; }
.launch-address strong { color: #ef6d75; }

input:focus, select:focus, textarea:focus { border-color: #c82934; box-shadow: 0 0 0 3px rgba(200, 41, 52, .15); }
.button.primary { background: linear-gradient(135deg, #c8222e, #861019); box-shadow: 0 10px 24px rgba(139, 14, 23, .26); }
.button.primary:hover { background: linear-gradient(135deg, #df303b, #a01520); }
.button.secondary:hover { border-color: #674047; background: #211719; }

.nav-item.active { color: #ffe0e2; background: linear-gradient(90deg, rgba(181, 22, 33, .27), rgba(116, 12, 20, .09)); box-shadow: inset 2px 0 #d52b36; }
.nav-item.active .nav-icon { color: #ed6069; }
.workspace { background: radial-gradient(circle at 48% -20%, rgba(137, 13, 23, .12), transparent 31%), #08080b; }
.application-picker select { border-color: #38292c; }

.metric-card::after { background: rgba(201, 32, 44, .055); }
.metric-card.accent { border-color: #512128; background: linear-gradient(145deg, #1d0f12, #100d0e); }
.metric-card.accent strong, .metric-card strong.status-online { color: #e64b55; }
.chart-chip { border-color: #4a2228; color: #df737a; background: #1c0e11; }
.trend-chart { background: linear-gradient(180deg, rgba(190,25,37,.025), transparent), #0c0b0e; }

.bar-value { background: linear-gradient(180deg, #df3944, #90141d); box-shadow: 0 0 24px rgba(193,31,42,.16); }
.bar-value.bright { background: linear-gradient(180deg, #f05a63, #b51e29); }
.bar-value.dim { background: linear-gradient(180deg, #806166, #453034); }
.bar-value.danger-bar { background: linear-gradient(180deg, #b92430, #651018); }
.license-donut { background: conic-gradient(#d62d38 0 var(--donut-angle), #2d2426 var(--donut-angle) 360deg); box-shadow: 0 0 35px rgba(186,25,37,.1); }
.status-dot.red, .status-dot.purple { background: #dc3540; }

.quick-action:hover { border-color: #643139; background: #1d1013; }
.quick-action > span { color: #ed6870; background: #351116; }
.steps li > span { color: #ff9ca2; background: #3b1217; }
.row-button:hover { border-color: #734148; color: #f38d94; background: #231316; }
.inline-code, .license-key { color: #f08289; background: #2b1116; }
.secret-hint { color: #cda8ab; background: #201518; }
.empty-state .empty-icon { color: #e86a72; background: #321116; }

.batch-toolbar { border-color: #5b2930; color: #e2b8bb; background: #211013; }
.select-cell input { accent-color: #c82934; }
.settings-icon { color: #e76b73; background: #321116; }
.info-banner { border-color: #4b292e; background: #1b1113; }
.generated-key { border-color: #4d252b; color: #f09aa0; background: #0d090a; }
.success-mark { color: #df3a45; }
.toast { border-color: #632c34; background: #260f14; }

/* Refined top command bar */
.topbar {
  height: 78px;
  padding: 0 24px 0 28px;
  background: rgba(8, 8, 11, .96);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .16);
}
.topbar-title { min-width: 130px; }
.topbar-title h1 { margin-top: 3px; }
.topbar-actions { gap: 8px; }
.application-picker {
  display: grid;
  min-height: 46px;
  grid-template-columns: auto minmax(148px, 188px);
  align-items: center;
  gap: 11px;
  border: 1px solid #332529;
  border-radius: 11px;
  padding: 5px 7px 5px 12px;
  color: #81777a;
  background: linear-gradient(145deg, #151113, #100e0f);
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
  letter-spacing: 0;
  text-transform: none;
}
.picker-meta { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #7e7477; font-size: 9px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.picker-meta i { width: 6px; height: 6px; border-radius: 50%; background: #d42b36; box-shadow: 0 0 0 4px rgba(202, 36, 48, .1); }
.application-picker select {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-left: 1px solid #35282b;
  border-radius: 0;
  padding: 0 27px 0 12px;
  color: #eee8e9;
  background-color: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}
.application-picker select:focus { border-color: #5e272e; box-shadow: none; }
.header-tool {
  display: inline-flex;
  width: auto;
  min-width: 108px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #392d30;
  border-radius: 10px;
  padding: 0 14px;
  color: #b9afb2;
  background: linear-gradient(145deg, #171416, #100f10);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.header-tool:hover { border-color: #6a3038; color: #f06d75; background: #211316; transform: translateY(-1px); }
.header-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-spinner {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.24);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spin .65s linear infinite;
  box-sizing: border-box;
}
@keyframes button-spin { to { transform: rotate(360deg); } }
.is-busy { cursor: wait !important; }
.header-tool:disabled { cursor: wait; opacity: .72; transform: none; font-size: 11px; }
.header-primary { min-height: 46px; border-radius: 10px; padding: 0 17px; box-shadow: 0 8px 20px rgba(133, 14, 23, .22); }
.header-primary .button-symbol { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; background: rgba(255,255,255,.11); font-size: 14px; line-height: 1; }
.header-primary .button-label { white-space: nowrap; }
.welcome-row { min-height: auto; margin-bottom: 14px; }

@media (max-width: 1180px) {
  .application-picker { grid-template-columns: 8px minmax(145px, 175px); gap: 7px; padding-left: 10px; }
  .picker-meta span { display: none; }
  .application-picker select { border-left: 0; padding-left: 7px; }
}

@media (max-width: 900px) {
  .topbar { height: 72px; padding: 0 14px; }
  .topbar > div:first-of-type { margin-left: 10px; }
  .application-picker { grid-template-columns: 7px minmax(130px, 155px); }
  .topbar-actions { gap: 6px; }
}

@media (max-width: 640px) {
  .topbar { height: 68px; }
  .topbar > div:first-of-type { margin-left: 7px; }
  .header-tool { width: auto; min-width: 84px; height: 40px; flex-basis: auto; padding: 0 10px; font-size: 10px; }
  .header-primary { min-width: 40px; min-height: 40px; padding: 0 9px; }
  #quick-license-button .button-symbol { display: inline-grid; }
}

/* Neutral sidebar inspired by the supplied reference */
.app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { width: 224px; border-right-color: #1b1b1d; padding: 0 12px 18px; background: #09090a; }
.sidebar .sidebar-brand { margin: 0 3px; }
.main-nav { gap: 4px; margin-top: 18px; }
.nav-item {
  min-height: 40px;
  gap: 12px;
  border-radius: 8px;
  padding: 0 12px;
  color: #8c8b94;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
}
.nav-item:hover { color: #d3d2d6; background: #141415; }
.nav-item.active { color: #f4f3f4; background: #1b1b1c; box-shadow: none; }
.nav-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #92919a;
  font-family: inherit;
  font-size: 0;
}
.nav-item.active .nav-icon { color: #ededee; }
.nav-icon::before, .nav-icon::after { position: absolute; box-sizing: border-box; content: ""; }

.icon-overview::before {
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: currentColor;
  box-shadow: 9px 0 currentColor, 0 9px currentColor, 9px 9px currentColor;
}
.icon-applications::before {
  top: 3px;
  left: 5px;
  width: 11px;
  height: 12px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  transform: rotate(8deg);
}
.icon-applications::after {
  top: 1px;
  left: 2px;
  width: 10px;
  height: 12px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  transform: rotate(-24deg);
}
.icon-users::before {
  top: 1px;
  left: 6px;
  width: 6px;
  height: 6px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.icon-users::after {
  bottom: 1px;
  left: 3px;
  width: 12px;
  height: 7px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 2px 2px;
}
.icon-licenses::before {
  top: 2px;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.icon-licenses::after {
  top: 9px;
  left: 6px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 5px 3px 0 -0.4px currentColor;
  transform: rotate(-42deg);
  transform-origin: left center;
}
.icon-recent::before {
  inset: 2px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.icon-recent::after {
  top: 5px;
  left: 9px;
  width: 1.5px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 2px 5px 0 -0.15px currentColor;
  transform: rotate(-8deg);
  transform-origin: bottom center;
}
.icon-guide::before {
  inset: 1.5px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.icon-guide::after {
  inset: 0;
  display: grid;
  place-items: center;
  content: "?";
  color: currentColor;
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 650;
}
.icon-settings::before {
  inset: 2px;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
}
.icon-settings::after {
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.icon-logout::before {
  top: 2px;
  left: 2px;
  width: 9px;
  height: 14px;
  border: 1.4px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}
.icon-logout::after {
  top: 6px;
  right: 0;
  width: 9px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) skew(8deg, 8deg);
}
.sidebar-bottom { margin-right: 3px; margin-left: 3px; border-top-color: #1d1d1f; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: 224px; }
}

/* Professional dashboard actions and setup checklist */
.dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(420px, .85fr); gap: 14px; align-items: stretch; }
.command-panel, .configuration-panel { overflow: hidden; border-color: #252326; background: #0f0f11; box-shadow: 0 14px 36px rgba(0, 0, 0, .16); }
.command-panel .panel-heading, .configuration-panel .panel-heading { min-height: 70px; align-items: center; border-bottom: 1px solid #242225; padding: 16px 18px; }
.command-panel .panel-heading p, .configuration-panel .panel-heading p { margin-top: 4px; }

.command-panel .quick-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 18px 10px; }
.command-panel .quick-action {
  display: grid;
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-content: initial;
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #242225;
  border-radius: 0;
  padding: 10px 7px;
  color: #e5e2e3;
  background: transparent;
  text-align: left;
  transform: none;
}
.command-panel .quick-action:last-child { border-bottom: 0; }
.command-panel .quick-action:hover { border-color: #242225; border-radius: 8px; padding-right: 10px; padding-left: 10px; background: #151416; transform: none; }
.command-panel .quick-action > .quick-action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin: 0;
  border: 1px solid #3d292d;
  border-radius: 9px;
  color: #d64a54;
  background: #1c1013;
  font-size: 0;
}
.quick-action-icon .nav-icon { display: block; color: currentColor; transform: scale(.88); }
.command-panel .quick-action > .quick-action-copy { display: grid; width: auto; height: auto; min-width: 0; gap: 4px; margin: 0; border-radius: 0; color: inherit; background: transparent; font-size: inherit; }
.quick-action-copy strong { color: #e9e6e7; font-size: 13px; font-weight: 650; }
.quick-action-copy small { color: #777176; font-size: 11px; line-height: 1.35; }
.command-panel .quick-action > .quick-action-arrow { display: block; width: auto; height: auto; margin: 0; color: #565156; background: transparent; font-size: 15px; text-align: right; transition: color .15s, transform .15s; }
.command-panel .quick-action:hover .quick-action-arrow { color: #c74650; transform: translateX(2px); }

.configuration-panel .professional-steps { display: grid; gap: 0; padding: 0 18px 10px; }
.professional-steps li {
  display: grid;
  min-height: 62px;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-top: 0;
  border-bottom: 1px solid #242225;
  padding: 9px 5px;
}
.professional-steps li:last-child { border-bottom: 0; }
.professional-steps li > .step-number {
  display: block;
  width: auto;
  height: auto;
  flex: initial;
  border-radius: 0;
  color: #6e696d;
  background: transparent;
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .6px;
}
.professional-steps strong { color: #e6e3e4; font-size: 12px; font-weight: 650; }
.professional-steps p { margin-top: 3px; color: #777176; font-size: 10px; }
.professional-steps li > .step-state {
  display: inline-flex;
  width: auto;
  height: 24px;
  flex: initial;
  align-items: center;
  border: 1px solid #302d30;
  border-radius: 999px;
  padding: 0 8px;
  color: #777176;
  background: #131214;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .25px;
}

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .command-panel .quick-grid, .configuration-panel .professional-steps { padding-right: 12px; padding-left: 12px; }
  .professional-steps li { grid-template-columns: 27px minmax(0, 1fr); }
  .professional-steps li > .step-state { display: none; }
}

/* Custom dark application selector */
.product-switcher { position: relative; width: 100%; min-width: 188px; }
.product-selector-button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-left: 1px solid #35282b;
  border-radius: 0;
  padding: 0 9px 0 12px;
  color: #eee9ea;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.product-selector-button:hover { color: #fff; }
.product-selector-button:focus-visible { outline: 1px solid #8d3039; outline-offset: 3px; border-radius: 4px; }
#product-selector-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-selector-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid #8d8487;
  border-bottom: 1.5px solid #8d8487;
  transform: rotate(45deg) translateY(-2px);
  transition: border-color .15s, transform .18s;
}
.product-selector-button[aria-expanded="true"] .product-selector-chevron { border-color: #e35b65; transform: rotate(225deg) translate(-1px, -1px); }
.product-selector-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 13px);
  right: -8px;
  width: 270px;
  overflow: hidden;
  border: 1px solid #342e31;
  border-radius: 12px;
  padding: 6px;
  background: rgba(15, 14, 16, .98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  animation: selector-in .14s ease-out;
}
@keyframes selector-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
.product-option {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 8px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  color: #989195;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .14s, background .14s, border-color .14s;
}
.product-option:hover, .product-option:focus-visible { border-color: #30272a; outline: none; color: #ddd8da; background: #191618; }
.product-option.active { border-color: #51262d; color: #fff; background: #231316; }
.product-option-dot { width: 6px; height: 6px; border-radius: 50%; background: #4b4649; }
.product-option.active .product-option-dot { background: #dc3540; box-shadow: 0 0 0 4px rgba(210,42,53,.1); }
.product-option-copy { display: grid; min-width: 0; gap: 3px; }
.product-option-copy strong { overflow: hidden; color: inherit; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.product-option-copy small { overflow: hidden; color: #696367; font-family: Consolas, monospace; font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.product-option-check { color: #e95862; font-size: 12px; font-weight: 800; text-align: center; }

@media (max-width: 1180px) {
  .product-switcher { min-width: 160px; }
  .product-selector-button { border-left: 0; padding-left: 7px; }
}

/* PurinCash financial workspace */
.finance-hidden { display: none !important; }
.icon-finance::before { left: 2px; bottom: 2px; width: 3px; height: 7px; border-radius: 1px; background: currentColor; box-shadow: 5px -4px currentColor, 10px -8px currentColor; }
.icon-finance::after { left: 1px; right: 1px; bottom: 1px; border-bottom: 1.4px solid currentColor; }
.finance-kicker { display: block; margin-bottom: 7px; color: #dc3c47; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.finance-heading { align-items: center; }
.finance-controls { align-items: flex-end; }
.period-control { display: grid; gap: 5px; color: #716b70; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.period-control select { width: 175px; min-height: 40px; border-color: #302c31; color: #d8d3d6; background: #111013; font-size: 11px; text-transform: none; }
.finance-empty { min-height: 390px; display: grid; place-items: center; align-content: center; padding: 50px 24px; text-align: center; }
.finance-empty-mark, .purin-mark { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 18px; border: 1px solid #4d2228; border-radius: 14px; color: #f06a73; background: #1d0f12; font-size: 23px; font-weight: 900; }
.finance-empty h3 { margin: 0; color: #f2edef; font-size: 21px; }
.finance-empty p { max-width: 540px; margin: 10px 0 22px; color: #817a80; font-size: 12px; line-height: 1.7; }
.finance-coverage { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; border: 1px solid #302b30; border-radius: 10px; padding: 12px 14px; color: #817a80; background: #111013; }
.finance-coverage > span { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border: 1px solid #563038; border-radius: 50%; color: #d45a64; font-family: Georgia, serif; font-size: 11px; font-weight: 700; }
.finance-coverage strong { display: block; color: #b9b1b5; font-size: 10px; }.finance-coverage p { margin: 3px 0 0; color: #746d72; font-size: 9px; line-height: 1.5; }
.finance-warnings { display: flex; gap: 9px; margin-bottom: 13px; border: 1px solid #553326; border-radius: 10px; padding: 11px 14px; color: #a8988c; background: #18120f; font-size: 10px; }
.finance-warnings strong { flex: 0 0 auto; color: #dc9e70; }

.finance-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 22px 2px 12px; border-bottom: 1px solid #282428; padding: 0 1px 12px; }
.finance-section-heading:first-of-type { margin-top: 18px; }
.finance-section-heading h3 { margin: 0; color: #ece6e9; font-size: 15px; font-weight: 690; letter-spacing: -.2px; }
.finance-section-heading p { margin: 5px 0 0; color: #716a6f; font-size: 9px; line-height: 1.5; }
.finance-section-heading .panel-kicker { margin-bottom: 6px; }
.finance-source-chip { flex: 0 0 auto; border: 1px solid #393338; border-radius: 999px; padding: 6px 9px; color: #8c8489; background: #121113; font-size: 8px; font-weight: 750; white-space: nowrap; }
.finance-source-chip.confirmed { border-color: #54252c; color: #d76069; background: #1c1114; }
.finance-section-heading.api-heading { margin-top: 26px; }
.finance-confirmed-row { display: grid; margin-bottom: 12px; }
.finance-confirmed-row .finance-list-panel { min-height: 0; }
.finance-confirmed-row .finance-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; }

.finance-summary-grid { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1.6fr); gap: 12px; margin-bottom: 12px; }
.balance-card { position: relative; min-height: 285px; overflow: hidden; border-color: #4b2026; padding: 23px; background: linear-gradient(145deg, #281115, #170d10 62%, #0f0e10); }
.balance-card::after { position: absolute; right: -70px; top: -100px; width: 260px; height: 260px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(197,35,47,.2), transparent 68%); }
.balance-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #b8adb0; font-size: 11px; }
.estimate-chip { border: 1px solid #603039; border-radius: 999px; padding: 5px 8px; color: #dc6670; background: #251216; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.balance-card > strong { position: relative; z-index: 1; display: block; margin: 23px 0 7px; color: #fff; font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -1.8px; }
.balance-card > strong.unavailable { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.8px; }
.balance-card > p { position: relative; z-index: 1; max-width: 410px; margin: 0; color: #827579; font-size: 10px; line-height: 1.55; }
.balance-details { position: absolute; z-index: 2; right: 23px; bottom: 20px; left: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.balance-details span { display: grid; gap: 3px; }
.balance-details small { color: #786f72; font-size: 9px; }
.balance-details b { color: #ded7da; font-size: 12px; }
.reconciliation-details { row-gap: 11px; }
.finance-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finance-metric { position: relative; min-height: 111px; overflow: hidden; padding: 18px 19px; }
.finance-metric span { display: block; color: #797278; font-size: 10px; }
.finance-metric strong { display: block; margin: 10px 0 6px; color: #f1ecee; font-size: 24px; font-weight: 680; letter-spacing: -.8px; }
.finance-metric strong.unavailable { font-size: 16px; letter-spacing: -.3px; }
.finance-metric small { color: #666064; font-size: 9px; }
.finance-metric.featured { border-color: #442228; background: linear-gradient(150deg, #1b1113, #100f11); }
.finance-metric.featured strong { color: #f15d67; }

.finance-charts-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); gap: 12px; margin-bottom: 12px; }
.weekday-panel, .approval-panel { min-height: 325px; }
.weekday-chart { display: flex; height: 240px; align-items: stretch; justify-content: space-around; gap: 10px; margin: 0 20px 17px; border-bottom: 1px solid #2c282c; padding: 13px 8px 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 47px; }
.weekday-column { display: grid; width: 11%; height: 100%; grid-template-rows: 18px minmax(0, 1fr) 24px; align-items: end; justify-items: center; color: #756e73; }
.weekday-column > span { color: #8b8186; font-size: 9px; }
.weekday-column > div { display: flex; width: 100%; height: 100%; align-items: flex-end; justify-content: center; }
.weekday-column i { width: min(34px, 70%); border: 1px solid #a52933; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #d73743, #68141b); box-shadow: 0 7px 20px rgba(178,28,40,.18); transition: height .28s ease; }
.weekday-column small { align-self: center; font-size: 9px; }
.finance-donut-row { display: grid; min-height: 240px; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; padding: 0 23px 20px; }
.finance-donut { position: relative; display: grid; width: 140px; height: 140px; place-items: center; border-radius: 50%; background: conic-gradient(#d83440 var(--approval-angle, 0deg), #2a2428 0); }
.finance-donut::after { position: absolute; width: 100px; height: 100px; border: 1px solid #302a2e; border-radius: 50%; content: ""; background: #100f11; }
.finance-donut span { position: relative; z-index: 1; color: #fff; font-size: 23px; font-weight: 750; }
.approval-legend { display: grid; gap: 0; }
.approval-legend > div { display: grid; min-height: 42px; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid #292529; color: #817a80; font-size: 10px; }
.approval-legend > div:last-child { border: 0; }
.approval-legend i { width: 6px; height: 6px; border-radius: 50%; background: #555056; }
.approval-legend i.approved { background: #dc3b47; }.approval-legend i.pending { background: #b18b69; }.approval-legend i.failed { background: #575156; }
.approval-legend strong { color: #e2dcdf; font-size: 11px; }

.finance-lower-grid { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(300px, .8fr) minmax(440px, 1.25fr); gap: 12px; }
.finance-lower-grid.api-lower-grid { grid-template-columns: minmax(300px, .8fr) minmax(500px, 1.4fr); }
.api-lower-grid .recent-sales-panel { grid-column: auto; }
.finance-list-panel { min-height: 300px; overflow: hidden; }
.finance-methods, .rank-list, .recent-sales { padding: 0 19px 18px; }
.method-row { margin-bottom: 19px; }
.method-row > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px; }
.method-row strong { color: #e7e1e4; font-size: 12px; }.method-row span { grid-row: 2; color: #70696e; font-size: 9px; }.method-row b { grid-row: 1 / span 2; align-self: center; color: #d6cfd3; font-size: 11px; }
.method-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #252226; }
.method-track i { display: block; height: 100%; border-radius: inherit; background: #d63642; }.method-track i.secondary { background: #80777e; }
.rank-row { display: grid; min-height: 54px; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #282428; }
.rank-row:last-child { border: 0; }.rank-number { color: #625c61; font-family: Consolas, monospace; font-size: 10px; }.rank-row div { display: grid; min-width: 0; gap: 3px; }.rank-row strong { overflow: hidden; color: #e5dfe2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.rank-row small { color: #6f686d; font-size: 9px; }.rank-row b { color: #d7d0d4; font-size: 10px; }
.sale-row { display: grid; min-height: 56px; grid-template-columns: 31px minmax(0, 1fr) 70px auto; align-items: center; gap: 9px; border-bottom: 1px solid #282428; }
.sale-row:last-child { border: 0; }.sale-method { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #3c292d; border-radius: 8px; color: #d94b55; background: #1b1113; font-size: 10px; font-weight: 800; }.sale-row > div { display: grid; min-width: 0; gap: 3px; }.sale-row > div strong, .sale-row > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sale-row > div strong { color: #e3dde0; font-size: 10px; }.sale-row > div small { color: #6a6468; font-size: 8px; }.sale-row > b { color: #d9d3d6; font-size: 10px; }.sale-status { color: #958d92; font-size: 8px; }.sale-status.aprovada { color: #d74a55; }.sale-status.pendente { color: #ba9271; }.sale-status.falhou, .sale-status.estornada { color: #777176; }
.finance-list-empty { display: grid; min-height: 150px; place-items: center; width: 100%; color: #696368; font-size: 10px; text-align: center; }

.purin-settings-card { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr); gap: 34px; margin-bottom: 19px; padding: 27px; border-color: #3a2529; background: linear-gradient(145deg, #151113, #0f0f11); }
.purin-settings-title { display: flex; gap: 14px; align-items: flex-start; }.purin-settings-title .purin-mark { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; border-radius: 11px; font-size: 19px; }.purin-settings-title h3 { margin: 1px 0 6px; color: #f0eaed; font-size: 17px; }.purin-settings-title p { max-width: 530px; margin: 0; color: #7a7378; font-size: 10px; line-height: 1.6; }.purin-settings-title p strong { color: #aaa1a6; }
.purin-status { display: inline-flex; align-items: center; gap: 7px; margin: 17px 0 9px; border: 1px solid #302c30; border-radius: 999px; padding: 6px 9px; color: #7d767b; background: #121113; font-size: 9px; }.purin-status i { width: 6px; height: 6px; border-radius: 50%; background: #625b60; }.purin-status.connected { border-color: #4c2429; color: #d66a72; }.purin-status.connected i { background: #df3d49; box-shadow: 0 0 0 4px rgba(216,48,60,.09); }
.purin-doc-link { display: block; width: fit-content; color: #837a80; font-size: 9px; text-decoration: none; }.purin-doc-link:hover { color: #d55b64; }
.purin-settings-form { align-self: center; border-left: 1px solid #2b272b; padding-left: 34px; }.purin-settings-form label { color: #aaa2a7; font-size: 10px; }.purin-settings-form input { margin-top: 8px; font-family: Consolas, monospace; font-size: 11px; }.field-note { margin: 8px 0 16px; color: #666065; font-size: 9px; line-height: 1.5; }.purin-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reconciliation-settings-card { margin-bottom: 19px; padding: 25px 27px; border-color: #33272b; background: linear-gradient(145deg, #131113, #0f0f11); }
.reconciliation-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 21px; border-bottom: 1px solid #2b272b; padding-bottom: 18px; }
.reconciliation-settings-heading h3 { margin: 0 0 7px; color: #f0eaed; font-size: 16px; }
.reconciliation-settings-heading p { max-width: 760px; margin: 0; color: #797278; font-size: 10px; line-height: 1.6; }
.reconciliation-form { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 15px 13px; align-items: end; }
.reconciliation-form label { color: #8f878c; font-size: 9px; font-weight: 650; }
.reconciliation-form input { margin-top: 7px; min-height: 39px; font-size: 10px; }
.reconciliation-actions { display: flex; justify-content: flex-end; grid-column: 1 / -1; padding-top: 2px; }

@media (max-width: 1280px) {
  .finance-summary-grid { grid-template-columns: 1fr; }
  .finance-lower-grid { grid-template-columns: 1fr 1fr; }
  .recent-sales-panel { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .finance-charts-grid, .purin-settings-card { grid-template-columns: 1fr; }
  .finance-lower-grid.api-lower-grid { grid-template-columns: 1fr; }
  .purin-settings-form { border-top: 1px solid #2b272b; border-left: 0; padding-top: 24px; padding-left: 0; }
  .reconciliation-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .finance-heading { align-items: stretch; }.finance-controls { align-items: stretch; }.period-control select { width: 100%; }.finance-section-heading { align-items: flex-start; }.finance-summary-grid { grid-template-columns: 1fr; }.finance-metrics { grid-template-columns: 1fr 1fr; }.finance-lower-grid { grid-template-columns: 1fr; }.recent-sales-panel { grid-column: auto; }.finance-donut-row { grid-template-columns: 1fr; justify-items: center; }.approval-legend { width: 100%; }.balance-card { min-height: 365px; }.balance-details { grid-template-columns: 1fr; }.sale-row { grid-template-columns: 31px minmax(0, 1fr) auto; }.sale-status { display: none; }.reconciliation-settings-heading { display: grid; }.reconciliation-form { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .finance-section-heading { display: grid; }.finance-source-chip { width: fit-content; }.finance-metrics { grid-template-columns: 1fr; }.weekday-chart { gap: 3px; margin-right: 10px; margin-left: 10px; }.weekday-column i { width: 16px; }.purin-settings-card { padding: 20px; }.purin-form-actions .button { width: 100%; }
}

.auth-support { display: none; }

/* Polished authentication experience for small Android and iOS screens */
@media (max-width: 640px) {
  .auth-screen {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    background:
      radial-gradient(circle at 50% 7%, rgba(196, 28, 40, .16), transparent 28%),
      linear-gradient(180deg, #0d0b0e 0%, #08080a 54%, #0a090b 100%);
  }
  .auth-screen::before,
  .auth-screen::after {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }
  .auth-screen::before {
    top: -110px;
    left: 50%;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(222, 48, 60, .09);
    background: radial-gradient(circle, rgba(204, 32, 44, .17), rgba(118, 13, 22, .035) 48%, transparent 69%);
    box-shadow: 0 0 90px rgba(185, 22, 34, .1), inset 0 0 70px rgba(185, 22, 34, .06);
    transform: translateX(-50%);
  }
  .auth-screen::after {
    right: -150px;
    bottom: -180px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.025);
    background: radial-gradient(circle at 35% 35%, rgba(147, 24, 34, .09), transparent 67%);
  }
  .auth-form-side {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    gap: clamp(18px, 4vh, 34px);
    padding:
      max(24px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    background: transparent;
  }
  .auth-form-side::before {
    position: relative;
    z-index: 1;
    width: 132px;
    height: 60px;
    flex: 0 0 60px;
    content: "";
    opacity: .96;
    background: url("sts-pulse-logo.png") center / contain no-repeat;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .52));
    animation: auth-logo-float 4.8s ease-in-out infinite;
  }
  @keyframes auth-logo-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 14px 22px rgba(0,0,0,.52)); }
    50% { transform: translateY(-4px); filter: drop-shadow(0 19px 27px rgba(157,17,27,.32)); }
  }
  .auth-card {
    position: relative;
    width: min(100%, 390px);
    overflow: hidden;
    border-color: rgba(255, 255, 255, .1);
    border-radius: 24px;
    padding: clamp(26px, 7vw, 32px);
    background:
      radial-gradient(circle at 94% 4%, rgba(200, 35, 46, .1), transparent 30%),
      linear-gradient(155deg, rgba(27, 23, 27, .97), rgba(14, 12, 15, .985));
    box-shadow:
      0 34px 90px rgba(0, 0, 0, .54),
      0 0 0 1px rgba(0,0,0,.2),
      inset 0 1px rgba(255, 255, 255, .045);
    backdrop-filter: blur(22px) saturate(115%);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    animation: auth-card-in .42s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes auth-card-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  .auth-card::before {
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(238, 65, 76, .9), transparent);
    box-shadow: 0 2px 18px rgba(224, 42, 55, .28);
  }
  .auth-card .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 2px;
  }
  .auth-card .eyebrow::before {
    width: 18px;
    height: 1px;
    content: "";
    background: #df3a45;
    box-shadow: 0 0 9px rgba(223,58,69,.55);
  }
  .auth-card h2 {
    max-width: 290px;
    margin: 13px 0 10px;
    font-size: clamp(28px, 8.7vw, 36px);
    line-height: 1.08;
    letter-spacing: -1.25px;
  }
  .auth-card > .muted {
    max-width: 300px;
    margin-top: 0;
    color: #968d92;
    font-size: 14px;
    line-height: 1.55;
  }
  .auth-card .stack-form {
    gap: 14px;
    margin-top: clamp(26px, 6vh, 38px);
  }
  #login-form::before {
    display: flex;
    min-height: 31px;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(72, 146, 104, .2);
    border-radius: 999px;
    padding: 0 11px 0 27px;
    content: "CONEXÃO PROTEGIDA";
    color: #79b792;
    background:
      radial-gradient(circle at 14px 50%, #61b582 0 2px, transparent 3px),
      rgba(30, 77, 49, .11);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.15px;
  }
  .auth-card .stack-form label {
    position: relative;
    color: #c6bec2;
    font-size: 12px;
    font-weight: 700;
  }
  #login-form label::after {
    position: absolute;
    bottom: 17px;
    left: 18px;
    width: 10px;
    height: 9px;
    border: 1.5px solid #777076;
    border-radius: 2px;
    content: "";
    pointer-events: none;
  }
  #login-form label::before {
    position: absolute;
    z-index: 1;
    bottom: 26px;
    left: 20px;
    width: 6px;
    height: 6px;
    border: 1.5px solid #777076;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    content: "";
    pointer-events: none;
  }
  .auth-card .stack-form input {
    min-height: 54px;
    margin-top: 9px;
    border-color: #373138;
    border-radius: 14px;
    padding: 0 16px;
    background: rgba(11, 10, 12, .72);
    font-size: 16px;
  }
  #login-form input { padding-left: 46px; }
  .auth-card .stack-form input:focus {
    border-color: #d3333e;
    box-shadow: 0 0 0 4px rgba(211, 51, 62, .12), 0 10px 30px rgba(0, 0, 0, .18);
  }
  .auth-card .form-error {
    min-height: 16px;
    font-size: 11px;
    line-height: 1.4;
  }
  .auth-card .button.full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    min-height: 54px;
    border: 1px solid rgba(255, 100, 109, .18);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    background: linear-gradient(135deg, #dd303c 0%, #b31622 52%, #841019 100%);
    box-shadow: 0 16px 34px rgba(140, 13, 23, .34), inset 0 1px rgba(255,255,255,.13);
  }
  .auth-card .button.full::after {
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform .18s;
  }
  .auth-card .button.full::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -55%;
    width: 35%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
  }
  .auth-card .button.full:active { transform: scale(.985); }
  .auth-card .button.full:hover::before { left: 125%; }
  .auth-card .button.full:hover::after { transform: translateX(3px) rotate(45deg); }
  #login-form::after {
    display: none;
  }
  .auth-support {
    display: grid;
    min-height: 61px;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,.065);
    padding: 18px 2px 0;
    color: inherit;
    text-decoration: none;
  }
  .auth-support-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #4a292e;
    border-radius: 9px;
    color: #e6505a;
    background: #201216;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .6px;
  }
  .auth-support > span:nth-child(2) { display: grid; gap: 4px; }
  .auth-support strong { color: #d8d1d4; font-size: 11px; font-weight: 700; }
  .auth-support small { color: #756d72; font-size: 9px; }
  .auth-support > b { color: #746b70; font-size: 13px; font-weight: 500; transition: color .15s, transform .15s; }
  .auth-support:hover strong { color: #fff; }
  .auth-support:hover > b { color: #e6505a; transform: translate(2px, -2px); }
  .auth-support:focus-visible { border-radius: 8px; outline: 1px solid #9f2a33; outline-offset: 5px; }
  .auth-card .button.full::before {
    display: none;
  }
}

@media (max-width: 360px) {
  .auth-form-side { padding-right: 14px; padding-left: 14px; }
  .auth-card { border-radius: 20px; padding: 24px 20px; }
  .auth-card h2 { font-size: 28px; }
}

@media (max-width: 640px) and (max-height: 700px) {
  .auth-form-side { justify-content: flex-start; gap: 14px; overflow-y: auto; }
  .auth-form-side::before { width: 98px; height: 42px; flex-basis: 42px; }
  .auth-card { padding-top: 24px; padding-bottom: 24px; }
  .auth-card .stack-form { margin-top: 22px; }
}

/* Deliberately simple STS mobile login — product UI, not decorative concept art */
@media (max-width: 640px) {
  .auth-screen { overflow-y: auto; background: #0a0a0c; }
  .auth-screen::before, .auth-screen::after { display: none; }
  .auth-form-side { justify-content: center; gap: 24px; background: #0a0a0c; }
  .auth-form-side::before { width: 116px; height: 48px; flex-basis: 48px; animation: none; filter: none; }
  .auth-card {
    width: min(100%, 380px);
    overflow: visible;
    border: 1px solid #242328;
    border-radius: 16px;
    padding: 28px;
    background: #111114;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .auth-card::before, .auth-card .eyebrow::before { display: none; }
  .auth-card .eyebrow { display: block; color: #d93642; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
  .auth-card h2 { margin: 12px 0 7px; color: #f5f3f4; font-size: 29px; line-height: 1.15; letter-spacing: -.8px; }
  .auth-card > .muted { color: #8a8589; font-size: 13px; line-height: 1.5; }
  .auth-card .stack-form { gap: 12px; margin-top: 28px; }
  #login-form::before, #login-form::after { display: none; }
  .auth-card .stack-form label { color: #aaa5a9; font-size: 11px; font-weight: 650; }
  #login-form label::before, #login-form label::after { display: none; }
  .auth-card .stack-form input, #login-form input {
    min-height: 50px;
    margin-top: 8px;
    border: 1px solid #302f34;
    border-radius: 9px;
    padding: 0 14px;
    color: #f4f1f2;
    background: #0c0c0f;
    font-size: 16px;
    box-shadow: none;
  }
  .auth-card .stack-form input:focus { border-color: #a72c35; box-shadow: 0 0 0 3px rgba(183,38,49,.1); }
  .auth-card .form-error { min-height: 14px; margin: 0; }
  .auth-card .button.full {
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #bd202c;
    box-shadow: none;
    font-size: 13px;
    font-weight: 750;
    transition: background .15s, transform .1s;
  }
  .auth-card .button.full:hover { background: #cf2633; }
  .auth-card .button.full::before, .auth-card .button.full::after { display: none; }
  .auth-support { min-height: 52px; grid-template-columns: 28px minmax(0,1fr) 14px; gap: 10px; margin-top: 18px; border-top: 1px solid #242328; padding: 16px 0 0; }
  .auth-support-mark { width: 28px; height: 28px; border: 1px solid #343238; border-radius: 50%; color: #8e888d; background: transparent; font-size: 11px; }
  .auth-support strong { color: #aaa5a9; font-size: 10px; }
  .auth-support small { color: #6f6a6e; font-size: 9px; }
  .auth-support > b { color: #686368; }
}

@media (max-width: 360px) {
  .auth-form-side { gap: 18px; padding-right: 14px; padding-left: 14px; }
  .auth-card { padding: 24px 20px; }
  .auth-card h2 { font-size: 27px; }
}

/* The same restrained login language on notebooks and desktop screens */
@media (min-width: 641px) {
  .auth-screen {
    grid-template-columns: minmax(380px, 1fr) minmax(460px, 1fr);
    overflow: hidden;
    background: #0a0a0c;
  }
  .auth-screen::before, .auth-screen::after,
  .auth-art::before, .auth-art::after,
  .art-orb { display: none; }
  .auth-art {
    min-height: 100vh;
    padding: clamp(54px, 7vw, 110px);
    background: #0a0a0c;
  }
  .auth-copy { max-width: 560px; }
  .auth-brand-logo {
    width: 172px;
    height: 78px;
    min-height: 78px;
    justify-content: flex-start;
  }
  .auth-brand-logo .brand-logo { width: 170px; filter: none; }
  .auth-copy .auth-brand-logo + h1 {
    max-width: 520px;
    margin: 58px 0 20px;
    color: #f5f3f4;
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.02;
    letter-spacing: -2.5px;
  }
  .auth-copy p {
    max-width: 500px;
    color: #858086;
    font-size: 16px;
    line-height: 1.65;
  }
  .auth-form-side {
    min-height: 100vh;
    padding: clamp(40px, 6vw, 88px);
    background: #0d0d10;
  }
  .auth-form-side::before { display: none; }
  .auth-card {
    width: min(100%, 440px);
    overflow: visible;
    border: 1px solid #242328;
    border-radius: 16px;
    padding: 38px;
    background: #111114;
    box-shadow: 0 22px 60px rgba(0,0,0,.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .auth-card::before, .auth-card .eyebrow::before { display: none; }
  .auth-card .eyebrow { display: block; color: #d93642; font-size: 10px; font-weight: 800; letter-spacing: 1.35px; }
  .auth-card h2 { margin: 13px 0 8px; color: #f5f3f4; font-size: 32px; line-height: 1.15; letter-spacing: -1px; }
  .auth-card > .muted { color: #8a8589; font-size: 14px; line-height: 1.5; }
  .auth-card .stack-form { gap: 13px; margin-top: 32px; }
  #login-form::before, #login-form::after,
  #login-form label::before, #login-form label::after { display: none; }
  .auth-card .stack-form label { color: #aaa5a9; font-size: 12px; font-weight: 650; }
  .auth-card .stack-form input, #login-form input {
    min-height: 52px;
    margin-top: 8px;
    border: 1px solid #302f34;
    border-radius: 9px;
    padding: 0 15px;
    color: #f4f1f2;
    background: #0c0c0f;
    font-size: 16px;
    box-shadow: none;
  }
  .auth-card .stack-form input:focus { border-color: #a72c35; box-shadow: 0 0 0 3px rgba(183,38,49,.1); }
  .auth-card .form-error { min-height: 14px; margin: 0; }
  .auth-card .button.full {
    min-height: 52px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #bd202c;
    box-shadow: none;
    font-size: 13px;
    font-weight: 750;
    transition: background .15s, transform .1s;
  }
  .auth-card .button.full:hover { background: #cf2633; }
  .auth-card .button.full::before, .auth-card .button.full::after { display: none; }
  .auth-support {
    display: grid;
    min-height: 54px;
    grid-template-columns: 30px minmax(0,1fr) 14px;
    gap: 11px;
    margin-top: 20px;
    border-top: 1px solid #242328;
    padding: 18px 0 0;
  }
  .auth-support-mark { width: 30px; height: 30px; border: 1px solid #343238; border-radius: 50%; color: #8e888d; background: transparent; font-size: 11px; }
  .auth-support strong { color: #aaa5a9; font-size: 11px; }
  .auth-support small { color: #6f6a6e; font-size: 10px; }
  .auth-support > b { color: #686368; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form-side { padding: 40px; }
}

/* Keep the Discord callout readable at every width */
.auth-support {
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.auth-support > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.25;
}
.auth-support strong,
.auth-support small {
  display: block;
  width: 100%;
  overflow-wrap: break-word;
  text-decoration: none;
}
.auth-support strong { line-height: 1.3; }
.auth-support small { line-height: 1.4; }
.auth-support-mark {
  display: grid;
  flex: none;
  place-items: center;
  font-family: Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
}
.auth-support-mark svg {
  width: 15px;
  height: 15px;
  color: #8e888d;
}

/* STS motion artwork */
.dashboard-brand-banner {
  width: 100%;
  height: clamp(96px, 8.5vw, 138px);
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid #282226;
  border-radius: 14px;
  background: #100708;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}
.dashboard-brand-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.login-motion {
  height: 148px;
  overflow: hidden;
  margin: -38px -38px 30px;
  border-bottom: 1px solid #30262a;
  border-radius: 15px 15px 0 0;
  background: #100708;
}
.login-motion img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .dashboard-brand-banner { height: 104px; margin-bottom: 20px; }
}

@media (max-width: 640px) {
  .dashboard-brand-banner { height: 86px; border-radius: 11px; }
  .login-motion {
    height: 108px;
    margin: -28px -28px 25px;
    border-radius: 15px 15px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-brand-banner img,
  .login-motion img { animation-play-state: paused; }
}

@media (max-width: 360px) {
  .login-motion { height: 94px; margin: -24px -20px 23px; }
}

/* Mobile command bar: title first, controls on their own row */
@media (max-width: 640px) {
  .topbar {
    display: grid;
    height: auto;
    min-height: 118px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: 40px 40px;
    gap: 8px 6px;
    align-content: center;
    padding: 11px 14px;
  }
  .topbar > .topbar-title {
    width: 100%;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 !important;
    text-align: center;
  }
  .topbar-title h1 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.25px; }
  .topbar-actions {
    display: contents;
  }
  .application-picker {
    display: grid;
    width: 100%;
    height: 40px;
    min-width: 0;
    min-height: 40px;
    grid-column: 1 / 3;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    border-color: #302a2e;
    border-radius: 10px;
    padding: 0;
    background: #111114;
    box-sizing: border-box;
  }
  .application-picker .picker-meta { display: none; }
  .product-switcher { width: 100%; height: 100%; min-width: 0; }
  .product-selector-button {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0 13px;
    align-items: center;
    font-size: 12px;
    line-height: 1;
    box-sizing: border-box;
  }
  #product-selector-value { display: flex; height: 100%; align-items: center; }
  .product-selector-menu { right: 0; left: 0; width: auto; min-width: 230px; }
  .header-tool,
  .header-primary,
  #menu-button {
    display: grid !important;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border-radius: 10px;
    line-height: 1;
    box-sizing: border-box;
  }
  #refresh-dashboard {
    grid-column: 3;
    grid-row: 2;
    border-color: #302a2e;
    color: #aaa3a7;
    background: #111114;
  }
  #quick-license-button { grid-column: 3; grid-row: 2; }
  #quick-license-button {
    grid-column: 3;
    grid-row: 1;
    border: 1px solid #c92b37;
    background: #bd202c;
    box-shadow: none;
  }
  #quick-license-button .button-symbol {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
  }
  #menu-button {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    border-color: #302a2e;
    color: #aaa3a7;
    background: #111114;
    font-size: 0;
  }
  #menu-button::before, #menu-button::after { display: none; }
  #refresh-dashboard .tool-label { display: none !important; }
  #refresh-dashboard .header-icon { width: 17px; height: 17px; stroke-width: 2; }
  #menu-button .header-icon { width: 19px; height: 19px; }
  #quick-license-button .button-symbol { font-size: 17px; line-height: 1; }
}

/* Unified desktop login inspired by the STS control panel */
@media (min-width: 901px) {
  body:has(.auth-screen:not(.hidden)) {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    background: #080b0e;
  }
  .auth-screen {
    width: min(1120px, 100%);
    min-height: min(690px, calc(100vh - 56px));
    max-height: 760px;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    overflow: hidden;
    margin: 0;
    border: 1px solid #292e34;
    border-radius: 18px;
    background: #0d1115;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
  }
  .auth-art {
    position: relative;
    min-height: 0;
    align-items: flex-end;
    padding: clamp(54px, 6vw, 78px);
    isolation: isolate;
    background: #08090b;
  }
  .auth-showcase-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .68;
    filter: saturate(.9) brightness(.7);
  }
  .auth-art::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    content: "";
    background: linear-gradient(180deg, rgba(5,6,8,.14) 10%, rgba(6,7,9,.42) 48%, rgba(6,7,9,.94) 100%);
  }
  .auth-art::after { display: none; }
  .auth-copy { position: relative; z-index: 1; max-width: 500px; }
  .auth-brand-logo { display: none; }
  .auth-copy::before {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 0 13px;
    color: #eee;
    background: rgba(10,11,13,.58);
    content: "STS PULSE";
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.35px;
  }
  .auth-copy .auth-brand-logo + h1,
  .auth-copy h1 {
    max-width: 480px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(48px, 4.6vw, 68px);
    line-height: .94;
    letter-spacing: -3.5px;
  }
  .auth-copy p {
    max-width: 490px;
    color: #c0c5cb;
    font-size: 13px;
    line-height: 1.65;
  }
  .auth-form-side {
    min-height: 0;
    border-left: 1px solid #282d34;
    padding: clamp(48px, 6vw, 76px);
    background: #111419;
  }
  .auth-card {
    width: 100%;
    max-width: 360px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .login-motion { display: none; }
  .auth-card .eyebrow { color: #b9c7d8; font-size: 9px; letter-spacing: 1.35px; }
  .auth-card h2 { margin-top: 17px; font-size: 31px; }
  .auth-card > .muted { color: #8390a0; font-size: 12px; }
  .auth-card .stack-form { margin-top: 30px; }
  .auth-card .stack-form input,
  #login-form input { border-color: #303944; background: #0d1115; }
  .auth-card .button.full { background: #df434e; }
  .auth-card .button.full:hover { background: #eb4b56; }
  .auth-support { border-top-color: #28303a; }
}

@media (min-width: 901px) and (max-height: 760px) {
  body:has(.auth-screen:not(.hidden)) { padding: 16px; }
  .auth-screen { min-height: calc(100vh - 32px); }
  .auth-art { padding-top: 42px; padding-bottom: 42px; }
}

/* Members and access control */
.members-layout { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(440px,1.2fr); gap: 18px; align-items: start; }
.member-editor, .members-list-panel { overflow: hidden; }
.member-editor > .panel-heading, .members-list-panel > .panel-heading { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.member-editor form { padding: 22px; }
.member-editor .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-editor label { color: #aaa5a9; font-size: 11px; font-weight: 650; }
.member-editor input:not([type="checkbox"]), .member-editor select { width: 100%; min-height: 42px; margin-top: 7px; border: 1px solid #302f34; border-radius: 8px; padding: 0 12px; color: #eee; background: #0c0c0f; }
.member-active { display: flex; align-items: center; gap: 8px; }
.permission-fieldset { display: grid; gap: 10px; margin: 3px 0 0; border: 1px solid #29272c; border-radius: 10px; padding: 14px; }
.permission-fieldset legend { padding: 0 7px; color: #777078; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.permission-fieldset label, .member-products label { display: flex; align-items: center; gap: 8px; color: #aaa4a9; font-size: 11px; }
.member-products { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.member-form-actions { display: flex; gap: 9px; margin-top: 5px; }
.members-list { display: grid; }
.member-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px 18px; border-bottom: 1px solid #242328; }
.member-row:last-child { border-bottom: 0; }
.member-avatar { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #3b2b2f; border-radius: 10px; color: #f07880; background: #211216; font-size: 13px; font-weight: 800; }
.member-identity { display: grid; min-width: 0; gap: 4px; }
.member-identity strong { overflow: hidden; color: #eee; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member-identity small { color: #716b70; font-size: 9px; }
.member-status { border: 1px solid #343137; border-radius: 99px; padding: 5px 8px; color: #8c858a; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.member-status.active { border-color: #234835; color: #64cb91; }
.member-status.blocked { border-color: #54262c; color: #db6069; }
.member-actions { display: flex; gap: 6px; }
.icon-action { border: 1px solid #353138; border-radius: 7px; padding: 7px 9px; color: #aaa3a8; background: #151316; font-size: 9px; cursor: pointer; }
.icon-action.danger { color: #df6670; }
.empty-list { padding: 42px 20px; color: #777178; text-align: center; font-size: 11px; }
@media (max-width: 980px) { .members-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .member-editor .form-grid, .member-products { grid-template-columns: 1fr; }
  .member-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .member-status { grid-column: 2; justify-self: start; }
  .member-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; }
}

/* Final member UI overrides — keep after legacy form rules */
.members-layout { grid-template-columns: minmax(440px,540px) minmax(0,1fr); gap: 20px; }
.member-editor, .members-list-panel { border-color: #27272c; background: #111114; }
.member-editor > .panel-heading, .members-list-panel > .panel-heading { min-height: 76px; padding: 18px 22px; background: #121216; }
.member-editor form { gap: 17px; padding: 22px; }
.member-editor .form-grid { gap: 14px; }
.member-editor input:not([type="checkbox"]), .member-editor select { min-height: 44px; border-color: #323137; background: #0d0d10; }
.member-editor input:not([type="checkbox"]):focus, .member-editor select:focus { border-color: #9f3039; box-shadow: 0 0 0 3px rgba(190,42,52,.1); outline: 0; }
.member-active { display: flex !important; min-height: 48px; align-items: center !important; gap: 11px !important; border: 1px solid #2c2b30; border-radius: 9px; padding: 0 13px; color: #c8c3c6 !important; background: #151519; cursor: pointer; }
.member-editor input[type="checkbox"] { appearance: auto !important; -webkit-appearance: checkbox !important; width: 16px !important; min-width: 16px !important; height: 16px !important; min-height: 16px !important; flex: 0 0 16px !important; margin: 0 !important; padding: 0 !important; accent-color: #cf2d39; box-shadow: none !important; }
.permission-fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; border: 0; border-radius: 0; padding: 0; }
.permission-fieldset legend { width: 100%; margin-bottom: 9px; padding: 0; color: #777177; }
.permission-fieldset label, .member-products label { display: flex !important; min-height: 46px; align-items: center !important; gap: 10px !important; border: 1px solid #2d2c31; border-radius: 9px; padding: 10px 12px; color: #aaa5a8 !important; background: #141418; cursor: pointer; transition: border-color .15s,background .15s,color .15s; }
.permission-fieldset label:hover, .member-products label:hover { border-color: #463137; color: #ddd8db !important; background: #181418; }
.permission-fieldset label:has(input:checked), .member-products label:has(input:checked) { border-color: #673038; color: #f0e9eb !important; background: #211216; }
.member-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.member-form-actions { margin-top: 2px; }
.member-form-actions .button.primary { min-width: 150px; }
.members-list-panel { min-height: 330px; }
.empty-list { display: grid; min-height: 250px; place-content: center; justify-items: center; padding: 36px; color: #716c70; text-align: center; }
.empty-list-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 14px; border: 1px solid #43272d; border-radius: 12px; color: #df4b56; background: #211216; font-size: 22px; font-weight: 300; }
.empty-list strong { color: #d8d3d6; font-size: 13px; }
.empty-list p { max-width: 270px; margin: 7px 0 0; color: #716b70; font-size: 10px; line-height: 1.55; }
@media (max-width:1100px) { .members-layout { grid-template-columns: 1fr; } }
@media (max-width:640px) { .permission-fieldset, .member-products { grid-template-columns: 1fr; } .member-editor form { padding: 18px; } }

/* STS Auth V2 — security workspace */
.icon-security{position:relative;width:15px;height:17px;border:1.5px solid currentColor;border-radius:7px 7px 9px 9px;clip-path:polygon(50% 0,100% 18%,92% 72%,50% 100%,8% 72%,0 18%)}
.v2-kicker{display:block;margin-bottom:8px;color:#e54852;font-size:9px;font-weight:850;letter-spacing:.18em;text-transform:uppercase}
.security-score-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:22px 24px;margin-bottom:14px;background:linear-gradient(120deg,#171317,#111114 52%,#151216)}
.security-score{display:grid;place-items:center;width:84px;height:84px;border:1px solid #4b292e;border-radius:50%;background:radial-gradient(circle,#251317,#111114 70%);box-shadow:inset 0 0 0 7px #0d0c0e}
.security-score span{font-size:22px;font-weight:800;letter-spacing:-.05em}.security-score small{margin-top:-19px;color:#81777d;font-size:8px;text-transform:uppercase;letter-spacing:.12em}
.security-score-panel h3{margin:0 0 7px;font-size:17px}.security-score-panel p{margin:0;font-size:11px}
.security-status{padding:8px 11px;border:1px solid #493238;border-radius:99px;color:#93888d;font-size:8px;font-weight:850;letter-spacing:.1em}.security-status.active{border-color:#285440;background:#11231a;color:#66d79a}
.security-metrics{margin-bottom:14px}.security-grid,.security-events-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.security-control-card{overflow:hidden}.security-control-body{padding:20px 22px}.security-control-body p{min-height:38px;margin:0 0 18px;color:#8f888e;font-size:11px;line-height:1.6}.security-actions{display:flex;gap:8px}
.security-events-grid .table-panel{min-width:0}.security-events-grid table{min-width:520px}.security-events-grid td{font-size:10px}.security-events-grid code{color:#c8bec3}.audit-action{color:#e3dadd;font-weight:650}
.mono-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.12em}
.recovery-codes{height:220px;font-size:13px;line-height:1.7;text-align:center;letter-spacing:.08em}
.license-actions{flex-wrap:wrap;justify-content:flex-end;min-width:270px}.license-actions .row-button{white-space:nowrap}
@media(max-width:980px){.security-grid,.security-events-grid{grid-template-columns:1fr}.security-score-panel{grid-template-columns:auto 1fr}.security-score-panel>.security-status{grid-column:1/-1;justify-self:start}.license-actions{min-width:220px}}
@media(max-width:640px){.security-score-panel{grid-template-columns:1fr;text-align:center}.security-score{margin:auto}.security-score-panel>.security-status{justify-self:center}.security-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.security-control-body{padding:18px}.security-actions{flex-direction:column}}

/* Letter-by-letter login headline */
.auth-copy h1 { min-height: 2.82em; }
.auth-copy h1 span { white-space: pre-line; }
.typing-cursor {
  display: inline-block;
  width: .08em;
  height: .78em;
  margin-left: .08em;
  background: #e5484d;
  vertical-align: .03em;
  animation: typing-blink .8s steps(1) infinite;
}
@keyframes typing-blink { 50% { opacity: 0; } }

/* Download link per application */
.products-table { min-width: 1050px; }
.products-table .actions-cell { width: 235px; min-width: 235px; }
.download-cell { display: grid; min-width: 150px; gap: 8px; }
.download-status { display: inline-flex; width: max-content; align-items: center; gap: 6px; color: #777178; font-size: 9px; font-weight: 750; letter-spacing: .15px; }
.download-status i { width: 6px; height: 6px; border-radius: 50%; background: #4b474c; box-shadow: 0 0 0 3px rgba(75,71,76,.14); }
.download-status.ready { color: #82caa5; }
.download-status.ready i { background: #3fc783; box-shadow: 0 0 0 3px rgba(63,199,131,.12); }
.download-actions { display: flex; align-items: center; gap: 6px; }
.download-actions .row-button { min-width: 58px; height: 29px; padding: 0 9px; text-decoration: none; }
.download-open { color: #aaa3a8; }
.download-open:hover { border-color: #734148; color: #f38d94; background: #231316; }

/* ========================================================================== */
/* STS AUTH V2.1 — complete control-center visual system                     */
/* ========================================================================== */
:root {
  --v2-bg: #08090c;
  --v2-sidebar: #0b0c10;
  --v2-surface: #111217;
  --v2-surface-2: #15161c;
  --v2-surface-3: #191a21;
  --v2-border: #262831;
  --v2-border-soft: #1d1f26;
  --v2-text: #f5f5f7;
  --v2-muted: #898b96;
  --v2-red: #e32f42;
  --v2-red-bright: #ff4b5e;
  --v2-red-soft: rgba(227, 47, 66, .11);
  --v2-green: #4ad798;
  --v2-radius: 14px;
  --v2-shadow: 0 22px 65px rgba(0, 0, 0, .24);
}

body {
  color: var(--v2-text);
  background:
    radial-gradient(circle at 82% -12%, rgba(164, 23, 41, .09), transparent 31%),
    var(--v2-bg);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.005em;
}

/* Login — full product experience */
@media (min-width: 901px) {
  body:has(.auth-screen:not(.hidden)) {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #090a0d;
  }
  .auth-screen {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    grid-template-columns: minmax(0, 1.22fr) minmax(430px, .78fr);
    border: 0;
    border-radius: 0;
    background: #090a0d;
    box-shadow: none;
  }
  .auth-art {
    min-height: 100vh;
    align-items: flex-end;
    padding: clamp(58px, 7vw, 110px);
    background: #08090c;
  }
  .auth-showcase-image {
    opacity: .48;
    filter: saturate(.65) contrast(1.08) brightness(.68);
    transform: scale(1.015);
  }
  .auth-art::before {
    background:
      linear-gradient(90deg, transparent 60%, rgba(8,9,12,.48)),
      linear-gradient(180deg, rgba(8,9,12,.15) 0, rgba(8,9,12,.46) 52%, #08090c 100%);
  }
  .auth-art::after {
    z-index: -1;
    display: block;
    opacity: .28;
    background-image:
      linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to top, #000, transparent 76%);
  }
  .auth-copy { max-width: 590px; }
  .auth-copy::before {
    min-height: 32px;
    margin-bottom: 28px;
    border-color: rgba(255,255,255,.14);
    padding: 0 15px;
    color: #f2e5e7;
    background: rgba(17,18,23,.68);
    content: "STS AUTH  /  CONTROL CENTER";
    letter-spacing: 1.7px;
    backdrop-filter: blur(12px);
  }
  .auth-copy .auth-brand-logo + h1,
  .auth-copy h1 {
    max-width: 590px;
    min-height: 2.68em;
    margin-bottom: 26px;
    font-size: clamp(54px, 5.2vw, 82px);
    font-weight: 720;
    line-height: .92;
    letter-spacing: -.065em;
    text-wrap: balance;
  }
  .auth-copy p {
    max-width: 530px;
    color: #a7aab2;
    font-size: 15px;
    line-height: 1.7;
  }
  .auth-form-side {
    position: relative;
    min-height: 100vh;
    border-left: 1px solid #22242c;
    padding: clamp(48px, 6vw, 90px);
    background:
      radial-gradient(circle at 50% 12%, rgba(227,47,66,.07), transparent 24%),
      #0d0e12;
  }
  .auth-form-side::before {
    position: absolute;
    top: 32px;
    right: 34px;
    content: "SECURE ADMIN ACCESS";
    color: #4f515b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
  }
  .auth-card {
    max-width: 400px;
    border: 1px solid #292b34;
    border-radius: 18px;
    padding: 36px;
    background: linear-gradient(145deg, rgba(24,25,31,.96), rgba(15,16,20,.98));
    box-shadow: 0 28px 80px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.025);
  }
  .auth-card .eyebrow { display: flex; align-items: center; gap: 9px; color: #8c8f9a; }
  .auth-card .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--v2-red); box-shadow: 0 0 0 5px rgba(227,47,66,.09); content: ""; }
  .auth-card .eyebrow::after { margin-left: auto; border: 1px solid #3b2830; border-radius: 99px; padding: 5px 8px; color: #d96976; background: #1c1216; content: "V2"; font-size: 8px; letter-spacing: .12em; }
  .auth-card h2 { margin-top: 23px; color: #fff; font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
  .auth-card > .muted { margin-top: 10px; color: #7f828d; line-height: 1.65; }
  .auth-card .stack-form { gap: 19px; margin-top: 34px; }
  .auth-card .stack-form label { color: #a9abb4; font-size: 11px; letter-spacing: .025em; }
  .auth-card .stack-form input,
  #login-form input { min-height: 49px; margin-top: 3px; border-color: #30323c; border-radius: 10px; padding: 0 14px; background: #0d0e12; }
  .auth-card .button.full { min-height: 49px; border-radius: 10px; background: linear-gradient(135deg, #eb3448, #bc1e31); box-shadow: 0 12px 28px rgba(182,27,46,.24); }
  .auth-support { margin-top: 24px; padding-top: 20px; }
}

/* Application frame */
.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--v2-bg);
}
.sidebar {
  width: 260px;
  border-right: 1px solid var(--v2-border-soft);
  padding: 0 16px 20px;
  background:
    radial-gradient(circle at 30% 0, rgba(227,47,66,.065), transparent 23%),
    var(--v2-sidebar);
}
.sidebar-brand {
  display: grid;
  min-height: 94px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 2px;
  border-bottom: 1px solid var(--v2-border-soft);
  padding: 0 8px;
}
.sidebar-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3c252b;
  border-radius: 12px;
  background: linear-gradient(145deg, #221216, #121116);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.sidebar-brand-mark .brand-logo { width: 56px; max-width: none; height: auto; }
.sidebar-brand-copy { display: grid; min-width: 0; gap: 3px; }
.sidebar-brand-copy strong { color: #f4f3f5; font-size: 12px; font-weight: 800; letter-spacing: .075em; }
.sidebar-brand-copy small { color: #5e6069; font-size: 7px; font-weight: 750; letter-spacing: .15em; }
.sidebar-version { border: 1px solid #48242b; border-radius: 6px; padding: 5px 6px; color: #e45b69; background: #1d1115; font-size: 8px; font-weight: 850; letter-spacing: .08em; }

.main-nav { gap: 5px; margin-top: 20px; }
.nav-section-label { margin: 0 12px 8px; color: #4f5159; font-size: 8px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.nav-item {
  position: relative;
  min-height: 44px;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 13px;
  color: #7d7f89;
  font-size: 12px;
  font-weight: 590;
  transition: border-color .16s, color .16s, background .16s, transform .16s;
}
.nav-item:hover { border-color: #22242b; color: #d7d8dc; background: #121318; transform: translateX(2px); }
.nav-item.active {
  border-color: #282a31;
  color: #fff;
  background: #18191e;
  box-shadow: none;
}
.nav-item.active::after { display: none; }
.nav-icon { color: #747680; }
.nav-item.active .nav-icon { color: #bfc1c8; }
.sidebar-bottom { margin: auto 2px 0; border-top: 1px solid var(--v2-border-soft); padding-top: 14px; }

.workspace {
  grid-column: 2;
  min-width: 0;
  background:
    radial-gradient(circle at 55% -15%, rgba(190, 31, 51, .065), transparent 31%),
    var(--v2-bg);
}
.topbar {
  height: 84px;
  border-bottom: 1px solid rgba(38,40,49,.9);
  padding: 0 30px;
  background: rgba(8,9,12,.86);
  box-shadow: 0 14px 35px rgba(0,0,0,.14);
  backdrop-filter: blur(18px);
}
.topbar-title { display: grid; gap: 5px; }
.topbar-title h1 { margin: 0; color: #f7f7f8; font-size: 20px; font-weight: 700; letter-spacing: -.035em; }
.topbar-caption { color: #565862; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.topbar-actions { gap: 9px; }
.environment-badge { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; border: 1px solid #252830; border-radius: 9px; padding: 0 11px; color: #7c7f88; background: #111217; font-size: 9px; font-weight: 700; }
.environment-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-green); box-shadow: 0 0 0 4px rgba(74,215,152,.1); }
.application-picker { min-height: 46px; border-color: #2b2d35; background: #111217; }
.picker-meta { color: #72747e; }
.picker-meta i { background: var(--v2-red); }
.product-selector-button { border-left-color: #2d2f37; }
.header-tool { border-color: #2b2d35; border-radius: 10px; color: #a3a5ae; background: #111217; }
.header-tool:hover { border-color: #4a3037; color: #ef7280; background: #181317; }
.header-primary { border: 1px solid #ee3d51; background: linear-gradient(135deg, #e63448, #b91d30); box-shadow: 0 10px 28px rgba(190,28,48,.2); }

.content { width: 100%; max-width: 1560px; padding: 30px 32px 58px; }
.page { animation: v2-page-in .22s ease-out; }
@keyframes v2-page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Dashboard hero */
.dashboard-hero {
  position: relative;
  display: grid;
  min-height: 286px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #2b2d36;
  border-radius: 18px;
  padding: 38px 44px;
  background:
    linear-gradient(118deg, rgba(227,47,66,.13), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(227,47,66,.11), transparent 28%),
    #111217;
  box-shadow: var(--v2-shadow);
}
.dashboard-hero::before {
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 54%);
  content: "";
}
.dashboard-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #b8bac2; font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--v2-red); box-shadow: 0 0 0 5px rgba(227,47,66,.1); }
.dashboard-hero h2 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(34px, 4vw, 54px); font-weight: 720; line-height: 1; letter-spacing: -.055em; }
.dashboard-hero p { max-width: 590px; margin: 18px 0 0; color: #92949e; font-size: 13px; line-height: 1.65; }
.dashboard-hero-actions { display: flex; gap: 10px; margin-top: 27px; }
.dashboard-hero-actions .button { min-height: 43px; padding: 0 16px; }
.dashboard-hero-actions .button span { font-size: 16px; }
.hero-secondary { border: 1px solid #30323b; color: #bec0c7; background: rgba(15,16,20,.68); }
.hero-secondary:hover { border-color: #484b55; color: #fff; background: #191a20; }
.hero-secondary span { margin-left: 8px; color: #d85b68; }
.dashboard-hero-visual { position: relative; z-index: 2; min-height: 210px; }
.hero-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(227,47,66,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.hero-ring-one { width: 205px; height: 205px; box-shadow: inset 0 0 60px rgba(227,47,66,.045); }
.hero-ring-two { width: 150px; height: 150px; border-style: dashed; animation: v2-orbit 18s linear infinite; }
@keyframes v2-orbit { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-core { position: absolute; left: 50%; top: 50%; display: grid; width: 105px; height: 105px; place-items: center; overflow: hidden; border: 1px solid #512630; border-radius: 28px; background: linear-gradient(145deg,#251317,#111217); box-shadow: 0 25px 70px rgba(0,0,0,.4), 0 0 55px rgba(227,47,66,.1); transform: translate(-50%,-50%) rotate(45deg); }
.hero-core img { width: 132px; max-width: none; transform: rotate(-45deg); }
.hero-status { position: absolute; right: 0; bottom: 4px; display: grid; min-width: 180px; grid-template-columns: 8px 1fr; gap: 3px 9px; border: 1px solid #30323b; border-radius: 11px; padding: 12px 14px; background: rgba(15,16,20,.9); box-shadow: 0 15px 35px rgba(0,0,0,.26); backdrop-filter: blur(12px); }
.hero-status i { grid-row: 1/3; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--v2-green); box-shadow: 0 0 0 4px rgba(74,215,152,.1); }
.hero-status b { color: #e7e8eb; font-size: 10px; }
.hero-status small { color: #686b75; font-size: 8px; }

/* Cards, data and controls */
.connection-banner { min-height: 62px; border-color: #282a32; border-radius: 12px; background: #101116; }
.metric-grid { gap: 12px; margin-bottom: 18px; }
.metric-card {
  min-height: 126px;
  border-color: var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 20px;
  background: linear-gradient(145deg, var(--v2-surface-2), #101116);
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.metric-card::before { position: absolute; top: 0; right: 20px; left: 20px; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent); content: ""; }
.metric-card:hover { border-color: #353741; box-shadow: 0 20px 48px rgba(0,0,0,.22); transform: translateY(-2px); }
.metric-card.accent { border-color: #4a252d; background: linear-gradient(145deg,#211318,#111116); }
.metric-card .metric-label { color: #7d7f89; font-size: 10px; letter-spacing: .055em; text-transform: uppercase; }
.metric-card strong { margin-top: 14px; font-size: 29px; font-weight: 720; letter-spacing: -.045em; }
.metric-card small { margin-top: 8px; color: #5d5f68; }
.metric-card.accent strong, .metric-card strong.status-online { color: #f05a68; }

.panel { border-color: var(--v2-border); border-radius: var(--v2-radius); background: linear-gradient(150deg,var(--v2-surface),#0f1014); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.panel-heading { min-height: 72px; align-items: center; border-bottom: 1px solid var(--v2-border-soft); padding: 17px 20px; }
.panel-heading h3 { color: #f0f0f2; font-size: 14px; }
.panel-heading p { color: #72747e; }
.analytics-grid, .dashboard-grid { gap: 12px; }
.analytics-panel { min-height: 310px; }
.trend-chart { border-color: #22242b; border-radius: 10px; background: #0b0c10; }
.chart-chip { border-color: #3c252c; color: #d86b77; background: #1b1216; }
.table-panel { border-radius: var(--v2-radius); }
.table-tools { min-height: 66px; border-color: var(--v2-border-soft); padding: 12px 17px; }
th { height: 46px; color: #696b75; background: #0d0e12; letter-spacing: .08em; }
td { height: 62px; border-color: #202229; color: #a9abb3; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #15161b; }
.row-button { min-height: 34px; border-color: #30323b; border-radius: 8px; color: #a9abb3; background: #15161b; }
.row-button:hover { border-color: #5a343c; color: #f07b87; background: #201519; }
.badge { border: 1px solid transparent; }
.badge.active { border-color: #214a37; color: #64d79d; background: #102219; }
.modal { border-color: #30323b; border-radius: 18px; background: #111217; box-shadow: 0 36px 110px rgba(0,0,0,.72); }
.modal-header { border-bottom-color: #24262e; }
.modal-actions { border-top-color: #24262e; }
.toast { border-color: #4c2931; border-radius: 12px; background: #1e1216; }

@media (max-width: 1280px) {
  .dashboard-hero { grid-template-columns: minmax(0,1fr) 320px; }
  .environment-badge { display: none; }
}
@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 232px minmax(0,1fr); }
  .sidebar { width: 232px; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero-visual { display: none; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: 260px; }
  .workspace { grid-column: 1; }
  .topbar { height: auto; min-height: 76px; }
  .content { padding: 22px 16px 42px; }
  .dashboard-hero { min-height: 250px; padding: 30px; }
}
@media (max-width: 640px) {
  .dashboard-hero { min-height: 0; border-radius: 14px; padding: 26px 22px; }
  .dashboard-hero h2 { font-size: 36px; }
  .dashboard-hero-actions { flex-direction: column; }
  .dashboard-hero-actions .button { width: 100%; }
  .metric-card { min-height: 108px; padding: 16px; }
  .metric-card strong { font-size: 24px; }
  .sidebar-brand { min-height: 82px; }
}

/* V2.1.1 — preserve the complete STS mark in compact containers */
.sidebar-brand-mark {
  overflow: hidden;
  padding: 4px;
}
.sidebar-brand-mark .brand-logo {
  display: block;
  width: 35px;
  max-width: 35px;
  height: 35px;
  object-fit: contain;
}
.hero-core {
  width: 116px;
  height: 116px;
}
.hero-core img {
  display: block;
  width: 84px;
  max-width: 84px;
  height: 84px;
  object-fit: contain;
  transform: rotate(-45deg);
}

/* ========================================================================== */
/* STS AUTH V2.2 — Preset Studio                                               */
/* ========================================================================== */
#page-applications .security-callout {
  min-height: 66px;
  align-items: center;
  margin-bottom: 18px;
  border-color: #29342f;
  border-radius: 13px;
  padding: 13px 18px;
  color: #a4b5ad;
  background: linear-gradient(90deg, rgba(37, 86, 64, .16), rgba(15, 18, 18, .82));
  box-shadow: inset 3px 0 #3db47d;
}
#page-applications .security-callout > span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border: 1px solid #295640;
  color: #73d9a5;
  background: #10241a;
  font-size: 13px;
}
#page-applications .security-callout strong { color: #d6e4dd; font-size: 11px; }
#page-applications .security-callout p { color: #76867f; font-size: 10px; }

.preset-panel {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #292c35;
  border-radius: 18px;
  background: #0f1014;
  box-shadow: 0 26px 70px rgba(0,0,0,.24);
}
.preset-head {
  min-height: 126px;
  align-items: center;
  border-bottom: 1px solid #292b33;
  padding: 28px 34px;
  background:
    radial-gradient(circle at 92% 10%, rgba(227,47,66,.105), transparent 25%),
    linear-gradient(110deg,#17181e,#111217 68%);
}
.preset-head-copy { max-width: 720px; }
.preset-kicker { display: inline-flex; align-items: center; gap: 9px; color: #e26775; font-size: 8px; font-weight: 850; letter-spacing: .19em; }
.preset-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #e4384b; box-shadow: 0 0 0 5px rgba(228,56,75,.08); }
.preset-head h3 { margin: 13px 0 8px; color: #f6f6f8; font-size: 22px; font-weight: 720; letter-spacing: -.035em; }
.preset-head p { max-width: 650px; margin: 0; color: #82858f; font-size: 11px; line-height: 1.65; }
.preset-head-summary { display: flex; align-items: center; gap: 15px; }
.preset-builder-label { color: #555761; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.preset-selection {
  display: grid;
  min-width: 150px;
  min-height: 62px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 11px;
  border: 1px solid #373a44;
  border-radius: 12px;
  padding: 10px 15px;
  background: rgba(20,21,27,.88);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.preset-selection strong { grid-row: auto; color: #fff; font-size: 27px; font-weight: 750; letter-spacing: -.05em; }
.preset-selection span { color: #777a84; font-size: 8px; font-weight: 750; line-height: 1.35; letter-spacing: .055em; text-transform: uppercase; }

.preset-form { max-width: none; margin: 0; padding: 27px 34px 32px; }
.preset-toolbar {
  min-height: 82px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
}
.preset-name-field { position: relative; width: min(500px,100%); color: #9a9ca6; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.preset-name-field > span { display: block; margin-bottom: 8px; }
.preset-name-field input {
  height: 48px;
  margin: 0;
  border-color: #343640;
  border-radius: 10px;
  padding: 0 15px;
  color: #f2f2f4;
  background: #15161c;
  font-size: 12px;
  font-weight: 560;
  text-transform: none;
}
.preset-name-field input:focus { border-color: #71333c; box-shadow: 0 0 0 3px rgba(227,47,66,.08); }
.preset-name-field > small { display: block; margin-top: 7px; color: #565862; font-size: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.preset-tools { align-items: center; gap: 8px; padding-top: 10px; }
.preset-tools .button { min-height: 42px; border-radius: 9px; padding: 0 14px; }
.preset-tools .button.ghost { border: 1px solid #2d3038; color: #8c8f99; background: #121318; }
.preset-tools .button.ghost:hover { border-color: #454852; color: #d8d9dd; background: #18191f; }
.preset-tools .button.primary { min-width: 145px; gap: 7px; }
.preset-tools .button.primary span { font-size: 15px; }

.preset-editor-shell {
  display: grid;
  min-height: 430px;
  grid-template-columns: 275px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid #2a2c35;
  border-radius: 15px;
  background: #0b0c10;
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.preset-editor-nav {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #282a32;
  padding: 20px 14px 15px;
  background: linear-gradient(180deg,#111217,#0d0e12);
}
.preset-editor-nav-head { display: grid; gap: 5px; padding: 0 10px 14px; }
.preset-editor-nav-head span { color: #e4e5e8; font-size: 11px; font-weight: 700; }
.preset-editor-nav-head small { color: #5c5f68; font-size: 8px; }
.preset-category-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.preset-category-tabs button {
  display: grid;
  width: 100%;
  height: 61px;
  grid-template-columns: 34px minmax(0,1fr) 23px;
  align-items: center;
  justify-content: initial;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 11px;
  color: #7c7f89;
  background: transparent;
  text-align: left;
}
.preset-category-tabs button:hover { border-color: #292c34; color: #d2d3d7; background: #16171c; }
.preset-category-tabs button.active { border-color: #443139; color: #fff; background: linear-gradient(100deg,#211519,#18191f); box-shadow: inset 3px 0 #e1374a, 0 10px 25px rgba(0,0,0,.14); }
.preset-category-tabs button > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #30323b;
  border-radius: 9px;
  color: #747780;
  background: #17181e;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .06em;
}
.preset-category-tabs button.active > i { border-color: #5a2d36; color: #f06a79; background: #251418; }
.preset-category-tabs button > span { display: grid; min-width: 0; gap: 4px; }
.preset-category-tabs button strong { overflow: hidden; color: inherit; font-size: 10px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.preset-category-tabs button em { overflow: hidden; color: #5d6069; font-size: 8px; font-style: normal; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.preset-category-tabs button.active em { color: #8b7a7f; }
.preset-category-tabs button > small {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  padding: 0;
  color: #6b6e77;
  background: #202128;
  font-size: 8px;
}
.preset-category-tabs button.active > small { color: #f2a7af; background: rgba(227,47,66,.14); }
.preset-nav-tip { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; border-top: 1px solid #25272e; padding: 15px 9px 3px; }
.preset-nav-tip > span { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid #343640; border-radius: 50%; color: #7d8089; font-family: Georgia,serif; font-size: 10px; }
.preset-nav-tip p { margin: 1px 0 0; color: #5a5d66; font-size: 8px; line-height: 1.55; }

.preset-editor-content { min-width: 0; background: #0e0f13; }
.preset-editor-content-head {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #282a32;
  padding: 0 22px;
  background: #111217;
}
.preset-editor-content-head > div { display: grid; gap: 7px; }
.preset-editor-content-head span { color: #60636c; font-size: 7px; font-weight: 850; letter-spacing: .17em; }
.preset-editor-content-head strong { color: #e7e8eb; font-size: 12px; font-weight: 650; }
.preset-editor-content-head > small { display: inline-flex; align-items: center; gap: 7px; color: #696c75; font-size: 8px; }
.preset-editor-content-head > small i { width: 6px; height: 6px; border-radius: 50%; background: #42ce8e; box-shadow: 0 0 0 4px rgba(66,206,142,.08); }
.preset-groups { display: block; padding: 0; }
.preset-group {
  display: none !important;
  min-height: 354px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.preset-group.is-active { display: block !important; }
.preset-group summary {
  min-height: 58px;
  border-bottom: 1px solid #23252c;
  padding: 0 22px;
  color: #d9dade;
  background: #0e0f13;
  font-size: 11px;
}
.preset-group summary span::before { display: inline-block; width: 4px; height: 4px; margin-right: 9px; border-radius: 50%; background: #df394c; content: ""; vertical-align: 2px; }
.preset-group summary small { color: #747781; font-size: 8px; }
.preset-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 58px;
  gap: 10px;
  padding: 18px 20px 22px;
}
.preset-options label {
  position: relative;
  display: flex;
  height: 58px;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid #292c34;
  border-radius: 10px;
  padding: 0 14px;
  color: #92959f;
  background: #14151a;
  font-size: 10px;
  font-weight: 610;
  box-shadow: none !important;
  transform: none !important;
}
.preset-options label:hover { border-color: #3c3f49; color: #e4e5e8; background: #18191f; }
.preset-options label.is-selected { border-color: #63303a; color: #f5f1f2; background: linear-gradient(100deg,rgba(227,47,66,.105),#18171d); box-shadow: inset 3px 0 #e33a4d !important; }
.preset-options input {
  order: 2;
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-content: center;
  margin: 0 0 0 auto;
  border: 1px solid #42454f;
  border-radius: 6px;
  background: #0e0f13;
}
.preset-options input:before { content: "✓"; color: #fff; font-size: 11px; transform: scale(0); }
.preset-options input:checked { border-color: #eb3d51; background: #df3044; box-shadow: 0 0 0 4px rgba(223,48,68,.09); }
.preset-options input:checked:before { transform: scale(1); }

.preset-saved {
  border-top: 1px solid #292b33;
  padding: 24px 34px 28px;
  background: linear-gradient(180deg,#111217,#0e0f13);
}
.preset-saved-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; margin: 0 0 16px; }
.preset-saved-head > div { display: grid; gap: 5px; }
.preset-saved-head span { color: #e9eaed; font-size: 11px; font-weight: 700; }
.preset-saved-head small { color: #62656e; font-size: 8px; }
.preset-saved-status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #2d3733; border-radius: 99px; padding: 7px 10px; color: #77aa93 !important; background: #101915; font-size: 8px !important; }
.preset-saved-status i { width: 5px; height: 5px; border-radius: 50%; background: #48d494; }
.preset-list { display: grid; max-width: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; }
.preset-chip {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 38px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #2d3038;
  border-radius: 11px;
  padding: 10px 11px;
  color: #dfe0e4;
  background: #15161b;
  transition: border-color .16s,background .16s,transform .16s;
}
.preset-chip:hover { border-color: #444751; background: #191a20; transform: translateY(-1px); }
.preset-chip.built-in { border-color: #3e3035; background: linear-gradient(105deg,#1c1518,#15161b); }
.preset-chip-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #383b44; border-radius: 10px; color: #a6a8b0; background: #1d1e24; font-size: 11px; font-weight: 800; }
.preset-chip.built-in .preset-chip-mark { border-color: #5a2b34; color: #f27481; background: #271519; }
.preset-chip-copy { display: grid; min-width: 0; gap: 5px; }
.preset-chip-copy strong { overflow: hidden; color: #e8e9ec; font-size: 10px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.preset-chip-copy small { overflow: hidden; color: #666973; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.preset-chip-state { border: 1px solid #30323a; border-radius: 99px; padding: 5px 7px; color: #70737c; background: #111217; font-size: 7px; text-transform: uppercase; letter-spacing: .05em; }
.preset-chip button { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 7px; color: #8d555c; background: transparent; cursor: pointer; font-size: 14px; }
.preset-chip button:hover { color: #ff7482; background: rgba(227,47,66,.1); }

.sidebar-brand-mark { width: 48px; height: 48px; padding: 2px; }
.sidebar-brand-mark .brand-logo { width: 42px; max-width: 42px; height: 42px; }
.sidebar-brand { grid-template-columns: 48px minmax(0,1fr) auto; }

@media (max-width: 1220px) {
  .preset-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .preset-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .preset-head { align-items: flex-start; flex-direction: column; padding: 24px; }
  .preset-head-summary { width: 100%; justify-content: space-between; }
  .preset-form { padding: 22px 20px 25px; }
  .preset-toolbar { align-items: stretch; flex-direction: column; }
  .preset-tools { flex-wrap: wrap; padding-top: 0; }
  .preset-editor-shell { grid-template-columns: 1fr; }
  .preset-editor-nav { border-right: 0; border-bottom: 1px solid #282a32; }
  .preset-category-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .preset-nav-tip { display: none; }
  .preset-saved { padding: 22px 20px 25px; }
}
@media (max-width: 640px) {
  .preset-category-tabs, .preset-options, .preset-list { grid-template-columns: 1fr; }
  .preset-category-tabs button { height: 56px; }
  .preset-editor-content-head { align-items: flex-start; flex-direction: column; padding: 16px 18px; }
  .preset-editor-content-head > small { margin-top: 5px; }
  .preset-selection { min-width: 138px; }
  .preset-builder-label, .preset-saved-status { display: none; }
  .preset-tools .button.primary { width: 100%; }
}

/* ========================================================================== */
/* STS AUTH V2.3 — focused preset workflow                                    */
/* ========================================================================== */
.preset-library-panel {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #292b33;
  border-radius: 16px;
  background: #111217;
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
}
.preset-library-head {
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #272931;
  padding: 22px 28px;
  background:
    radial-gradient(circle at 88% 0,rgba(227,47,66,.07),transparent 25%),
    linear-gradient(105deg,#16171c,#111217);
}
.preset-library-copy { min-width: 0; }
.preset-library-copy .preset-kicker { margin-bottom: 8px; }
.preset-library-copy h3 { margin: 0; color: #f1f1f3; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.preset-library-copy p { margin: 6px 0 0; color: #767983; font-size: 10px; }
.preset-library-count { display: grid; min-width: 96px; grid-template-columns: auto 1fr; align-items: center; gap: 9px; border-right: 1px solid #2d2f37; padding-right: 19px; }
.preset-library-count strong { color: #fff; font-size: 24px; font-weight: 730; letter-spacing: -.05em; }
.preset-library-count span { color: #686b75; font-size: 7px; font-weight: 750; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.preset-library-head > .button { min-height: 42px; border-radius: 9px; padding: 0 16px; }
.preset-library-head > .button span { margin-right: 5px; font-size: 15px; }
.preset-library-panel .preset-saved { border: 0; padding: 20px 28px 26px; background: #0f1014; }
.preset-library-panel .preset-saved-head { margin-bottom: 14px; }
.preset-library-panel .preset-list { grid-template-columns: repeat(auto-fit,minmax(255px,1fr)); }
.preset-library-panel .preset-chip { min-height: 66px; }

.preset-builder-dialog {
  width: min(1080px,calc(100vw - 40px));
  max-width: 1080px;
  max-height: min(86vh,790px);
  overflow: hidden;
  border: 1px solid #33353e;
  border-radius: 18px;
  padding: 0;
  color: #f2f2f4;
  background: #101115;
  box-shadow: 0 42px 130px rgba(0,0,0,.72);
}
.preset-builder-dialog::backdrop { background: rgba(3,4,6,.86); backdrop-filter: none; -webkit-backdrop-filter: none; }
.preset-builder-dialog[open] { animation: preset-dialog-in .11s ease-out; }
@keyframes preset-dialog-in { from { opacity: 0; } to { opacity: 1; } }
.preset-builder-dialog .preset-head {
  min-height: 102px;
  border-bottom: 1px solid #292b33;
  padding: 21px 25px 21px 28px;
  background:
    radial-gradient(circle at 87% 0,rgba(227,47,66,.09),transparent 28%),
    #15161b;
}
.preset-builder-dialog .preset-head h3 { margin: 10px 0 5px; font-size: 19px; }
.preset-builder-dialog .preset-head p { font-size: 10px; }
.preset-builder-dialog .preset-head-summary { gap: 10px; }
.preset-builder-dialog .preset-builder-label { display: none; }
.preset-builder-dialog .preset-selection { min-width: 128px; min-height: 52px; border-radius: 10px; padding: 7px 12px; }
.preset-builder-dialog .preset-selection strong { font-size: 23px; }
.preset-builder-dialog .modal-close { position: relative; display: block; width: 30px; height: 30px; flex: 0 0 30px; overflow: hidden; border: 0; border-radius: 8px; padding: 0; color: #777a84; background: transparent; font-size: 0; }
.preset-builder-dialog .modal-close::before,
.preset-builder-dialog .modal-close::after { position: absolute; left: 9px; top: 14px; width: 12px; height: 1.5px; border-radius: 999px; background: currentColor; content: ""; transform: rotate(45deg); }
.preset-builder-dialog .modal-close::after { transform: rotate(-45deg); }
.preset-builder-dialog .modal-close:hover { color: #f4f4f6; background: #202127; }
.preset-builder-dialog .modal-close:focus-visible { outline: 2px solid #d83a4b; outline-offset: 2px; }
.preset-builder-dialog .preset-form {
  display: flex;
  max-height: calc(min(86vh,790px) - 102px);
  flex-direction: column;
  overflow: auto;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #3a3c45 transparent;
}
.preset-builder-dialog .preset-toolbar {
  min-height: 101px;
  flex: 0 0 auto;
  margin: 0;
  border-bottom: 1px solid #272931;
  padding: 18px 26px;
  background: #111217;
}
.preset-builder-dialog .preset-name-field { width: min(430px,100%); }
.preset-builder-dialog .preset-name-field input { height: 43px; background: #0d0e12; }
.preset-builder-dialog .preset-name-field > small { display: none; }
.preset-builder-dialog .preset-tools { padding: 15px 0 0; }
.preset-builder-dialog .preset-tools .button { min-height: 39px; }
.preset-builder-dialog .preset-editor-shell {
  display: block;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #0e0f13;
  box-shadow: none;
}
.preset-builder-dialog .preset-editor-nav {
  display: block;
  border: 0;
  border-bottom: 1px solid #272931;
  padding: 13px 18px;
  background: #0e0f13;
}
.preset-builder-dialog .preset-editor-nav-head,
.preset-builder-dialog .preset-nav-tip { display: none; }
.preset-builder-dialog .preset-category-tabs {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
}
.preset-builder-dialog .preset-category-tabs button {
  position: static;
  display: grid;
  width: 100%;
  height: 52px;
  min-width: 0;
  grid-template-columns: 29px minmax(0,1fr) 21px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #282b33;
  border-radius: 9px;
  outline: 0;
  padding: 0 9px;
  color: #7c7f89;
  background: #131419;
  box-shadow: none;
  transform: none;
}
.preset-builder-dialog .preset-category-tabs button:hover { border-color: #3a3d46; color: #d4d5d9; background: #17181e; }
.preset-builder-dialog .preset-category-tabs button.active { border-color: #65313a; color: #fff; background: linear-gradient(105deg,#241519,#18191f); box-shadow: inset 0 -2px #e3384b; }
.preset-builder-dialog .preset-category-tabs button::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  content: none !important;
}
.preset-builder-dialog .preset-category-tabs button > i { width: 29px; height: 29px; border-radius: 8px; font-size: 7px; }
.preset-builder-dialog .preset-category-tabs button > span { position: static; display: block; min-width: 0; overflow: hidden; }
.preset-builder-dialog .preset-category-tabs button strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preset-builder-dialog .preset-category-tabs button em { display: none; }
.preset-builder-dialog .preset-category-tabs button > small { position: static; display: grid; width: 21px; min-width: 21px; height: 21px; margin: 0; place-items: center; border-radius: 6px; font-size: 7px; }
.preset-builder-dialog .preset-editor-content { background: #0e0f13; }
.preset-builder-dialog .preset-editor-content-head { min-height: 57px; padding: 0 24px; background: #101115; }
.preset-builder-dialog .preset-editor-content-head > div { gap: 4px; }
.preset-builder-dialog .preset-editor-content-head > div > span { display: none; }
.preset-builder-dialog .preset-editor-content-head strong { font-size: 11px; }
.preset-builder-dialog .preset-group { min-height: 0; }
.preset-builder-dialog .preset-group summary { min-height: 43px; padding: 0 24px; }
.preset-builder-dialog .preset-options {
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 49px;
  gap: 8px;
  padding: 14px 20px 21px;
}
.preset-builder-dialog .preset-options label {
  height: 49px;
  min-height: 49px;
  border-color: #292b33;
  border-radius: 9px;
  padding: 0 12px;
  color: #9a9ca5;
  background: #14151a;
  font-size: 9px;
  box-shadow: none !important;
}
.preset-builder-dialog .preset-options label:hover { border-color: #40424c; color: #e0e1e4; background: #18191f; }
.preset-builder-dialog .preset-options label.is-selected { border-color: #513038; color: #f1edef; background: #1c1518; box-shadow: none !important; }
.preset-builder-dialog .preset-options input {
  position: relative;
  display: block;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 20px !important;
  min-height: 20px !important;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid #42454e;
  border-radius: 999px;
  padding: 0 !important;
  background: #0d0e12;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box;
  transition: border-color .16s,background .16s;
}
.preset-builder-dialog .preset-options input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: transparent;
  background: #62656e;
  content: "";
  transform: translateX(0);
  transition: transform .16s,background .16s;
}
.preset-builder-dialog .preset-options input:checked { border-color: #d83a4b; background: #c7293b; box-shadow: 0 0 0 3px rgba(215,47,66,.08); }
.preset-builder-dialog .preset-options input:checked::before { left: 3px; background: #fff; transform: translateX(14px); }

@media (max-width: 900px) {
  .preset-library-head { grid-template-columns: minmax(0,1fr) auto; padding: 20px; }
  .preset-library-count { display: none; }
  .preset-library-head > .button { grid-column: 2; justify-self: end; }
  .preset-library-panel .preset-saved { padding: 18px 20px 22px; }
  .preset-builder-dialog .preset-category-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .preset-builder-dialog .preset-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .preset-library-head { grid-template-columns: 1fr; }
  .preset-library-head > .button { width: 100%; grid-column: 1; justify-self: stretch; }
  .preset-builder-dialog { width: calc(100vw - 20px); max-height: 92vh; border-radius: 14px; }
  .preset-builder-dialog .preset-head { align-items: center; flex-direction: row; padding: 18px; }
  .preset-builder-dialog .preset-head p, .preset-builder-dialog .preset-selection { display: none; }
  .preset-builder-dialog .preset-form { max-height: calc(92vh - 86px); }
  .preset-builder-dialog .preset-toolbar { align-items: stretch; padding: 16px 18px; }
  .preset-builder-dialog .preset-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .preset-builder-dialog .preset-tools .button.primary { grid-column: 1/-1; }
  .preset-builder-dialog .preset-category-tabs { grid-template-columns: 1fr 1fr; }
  .preset-builder-dialog .preset-options { grid-template-columns: 1fr; }
  .preset-library-panel .preset-list { grid-template-columns: 1fr; }
}

/* V2.1.4 — lighter preset opening and transparent STS Pulse branding */
.preset-builder-dialog {
  contain: layout paint style;
  box-shadow: 0 26px 72px rgba(0,0,0,.62);
}
.preset-builder-dialog .preset-options label {
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}

.auth-brand-logo {
  width: 240px;
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.auth-brand-logo .brand-logo {
  display: block;
  width: 230px;
  max-width: 230px;
  height: auto;
  object-fit: contain;
  filter: none;
}
.sidebar-brand {
  grid-template-columns: 74px minmax(0,1fr) auto;
}
.sidebar-brand-mark {
  width: 74px;
  height: 52px;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar-brand-mark .brand-logo {
  display: block;
  width: 72px;
  max-width: 72px;
  height: auto;
  object-fit: contain;
}
.dashboard-hero-visual .hero-ring { display: none; }
.dashboard-hero-visual .hero-core {
  width: 260px;
  height: 174px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%,-50%);
}
.dashboard-hero-visual .hero-core img {
  display: block;
  width: 252px;
  max-width: 252px;
  height: auto;
  object-fit: contain;
  transform: none;
}

@media (max-width: 640px) {
  .sidebar-brand { grid-template-columns: 64px minmax(0,1fr) auto; }
  .sidebar-brand-mark { width: 64px; height: 46px; }
  .sidebar-brand-mark .brand-logo { width: 62px; max-width: 62px; }
}

/* V2.1.4.1 — command bar across compact desktop, tablet and mobile */
@media (min-width: 901px) and (max-width: 1180px) {
  .topbar {
    display: grid;
    height: auto;
    min-height: 126px;
    grid-template-columns: minmax(150px,1fr) auto 44px;
    grid-template-rows: 46px 46px;
    gap: 8px;
    align-content: center;
    padding: 11px 20px;
  }
  .topbar > .topbar-title {
    min-width: 0;
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }
  .topbar-actions { display: contents; }
  .environment-badge { display: none; }
  .application-picker {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-column: 1 / 3;
    grid-row: 2;
    grid-template-columns: 8px minmax(0,1fr);
  }
  .product-switcher { min-width: 0; }
  #refresh-dashboard,
  #quick-license-button {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
  }
  #refresh-dashboard { grid-column: 3; grid-row: 2; }
  #quick-license-button { grid-column: 3; grid-row: 1; }
  #refresh-dashboard .tool-label,
  #quick-license-button .button-label { display: none; }
  #menu-button { display: none !important; }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    height: auto;
    min-height: 120px;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    grid-template-rows: 44px 44px;
    gap: 8px;
    align-content: center;
    padding: max(12px,env(safe-area-inset-top)) 14px 12px;
    overflow: visible;
  }
  .topbar > .topbar-title {
    width: 100%;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 !important;
    text-align: center;
  }
  .topbar-title h1 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-caption { display: none; }
  .topbar-actions { display: contents; }
  .environment-badge { display: none; }
  .application-picker {
    display: grid;
    width: 100%;
    height: 44px;
    min-width: 0;
    min-height: 44px;
    grid-column: 1 / 3;
    grid-row: 2;
    grid-template-columns: minmax(0,1fr);
    border-radius: 11px;
    padding: 0;
  }
  .application-picker .picker-meta { display: none; }
  .product-switcher,
  .product-selector-button { width: 100%; height: 100%; min-width: 0; }
  .product-selector-button { min-height: 0; padding: 0 13px; }
  .product-selector-menu {
    right: 0;
    left: 0;
    width: auto;
    min-width: min(260px,calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
  #refresh-dashboard,
  #quick-license-button,
  #menu-button {
    display: grid !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    border-radius: 11px;
    padding: 0;
  }
  #refresh-dashboard { grid-column: 3; grid-row: 2; }
  #quick-license-button { grid-column: 3; grid-row: 1; }
  #menu-button { grid-column: 1; grid-row: 1; }
  #refresh-dashboard .tool-label,
  #quick-license-button .button-label { display: none; }
  #refresh-dashboard.hidden,
  #quick-license-button.hidden { display: none !important; }
}

@media (max-width: 420px) {
  .topbar {
    min-height: 108px;
    grid-template-columns: 38px minmax(0,1fr) 38px;
    grid-template-rows: 38px 38px;
    gap: 7px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
  }
  .topbar-title h1 { font-size: 15px; }
  .application-picker { height: 38px; min-height: 38px; }
  #refresh-dashboard,
  #quick-license-button,
  #menu-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
  }
  .product-selector-button { padding: 0 11px; font-size: 11px; }
}

/* V2.1.5 — activation diagnostics */
.activation-log-panel { grid-column: 1 / -1; }
.activation-log-panel .panel-heading { align-items: center; }
.activation-log-panel .panel-heading p { margin: 5px 0 0; font-size: 11px; }
.log-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(64,211,153,.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #8ccdb3;
  background: rgba(64,211,153,.06);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.log-live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #40d399; box-shadow: 0 0 0 4px rgba(64,211,153,.08); }
.activation-log-table { min-width: 1040px; }
.activation-log-table td { vertical-align: middle; }
.log-time { white-space: nowrap; color: var(--muted); }
.log-product,
.log-reason { display: block; color: var(--text); font-weight: 750; }
.log-detail { display: block; max-width: 250px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.log-key,
.request-id {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  padding: 5px 7px;
  color: #c7c3cc;
  background: rgba(255,255,255,.025);
  font-size: 9px;
}
.request-id { color: #9b95a6; }
.log-latency { color: #beb8c7; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 700px) {
  .log-live-badge { display: none; }
}

/* V2.1.6 — searchable log explorer */
.log-explorer { grid-column: 1 / -1; overflow: hidden; }
.log-explorer-heading { align-items: center; border-bottom: 0; padding-bottom: 18px; }
.log-explorer-heading p { max-width: 660px; margin: 5px 0 0; font-size: 11px; }
.log-explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  background: rgba(255,255,255,.012);
}
.log-tabs { display: flex; min-width: 0; gap: 6px; }
.log-tab {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 11px;
  color: #827c89;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
  transition: border-color .16s ease,color .16s ease,background .16s ease;
}
.log-tab:hover { color: #c8c2ce; background: rgba(255,255,255,.025); }
.log-tab.active { border-color: rgba(229,43,67,.26); color: #f4eff5; background: linear-gradient(135deg,rgba(229,43,67,.12),rgba(229,43,67,.045)); }
.log-tab-icon { color: #e52b43; font-size: 12px; }
.log-tab b { min-width: 20px; border-radius: 999px; padding: 3px 6px; color: #9d96a4; background: #202027; font-size: 8px; text-align: center; }
.log-tab.active b { color: #ff9aaa; background: rgba(229,43,67,.14); }
.log-search-wrap {
  display: grid;
  width: min(390px,36vw);
  min-width: 260px;
  height: 38px;
  grid-template-columns: 34px minmax(0,1fr) 32px;
  align-items: center;
  border: 1px solid #2d2b33;
  border-radius: 10px;
  color: #716c78;
  background: #111116;
  transition: border-color .16s ease,box-shadow .16s ease;
}
.log-search-wrap:focus-within { border-color: rgba(229,43,67,.55); box-shadow: 0 0 0 3px rgba(229,43,67,.07); }
.log-search-wrap > span { text-align: center; font-size: 17px; }
.log-search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; color: #e5e0e8; background: transparent; font: inherit; font-size: 10px; }
.log-search-wrap input::placeholder { color: #635e69; }
.log-search-clear { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 7px; color: #8d8793; background: transparent; cursor: pointer; }
.log-search-clear:hover { color: #fff; background: #26242b; }
.log-results-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; color: #aaa3b0; font-size: 9px; }
.log-results-bar span { font-weight: 750; }
.log-results-bar small { color: #67616d; font-size: 8px; }
.login-log-table { min-width: 760px !important; }
.admin-log-table { min-width: 980px !important; }
.log-admin-details { display: block; max-width: 360px; overflow: hidden; color: #a9a2ae; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1040px) {
  .log-explorer-toolbar { align-items: stretch; flex-direction: column; }
  .log-tabs { overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .log-tab { flex: 0 0 auto; }
  .log-search-wrap { width: 100%; min-width: 0; }
}

@media (max-width: 580px) {
  .log-explorer-toolbar { padding: 10px; }
  .log-tab { min-height: 34px; padding: 0 9px; }
  .log-results-bar { padding: 9px 12px; }
  .log-results-bar small { display: none; }
}

/* V2.1.8 — native-feeling mobile authentication */
.auth-mobile-topbar,
.auth-trust-note { display: none; }
.auth-field { display: grid; gap: 8px; }
.auth-field > label { display: block; }
.auth-input-shell { position: relative; display: flex; align-items: center; }
.auth-input-shell .auth-field-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #686b75;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  pointer-events: none;
  transition: color .16s ease;
}
#login-panel .auth-input-shell input {
  margin-top: 0;
  padding-right: 14px;
  padding-left: 45px;
}
#login-panel .auth-input-shell.has-action input { padding-right: 50px; }
.auth-input-shell:focus-within .auth-field-icon { color: #ef5263; }
.auth-password-toggle {
  position: absolute;
  z-index: 2;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #747781;
  background: transparent;
  cursor: pointer;
}
.auth-password-toggle:hover { color: #c7c9cf; background: rgba(255,255,255,.04); }
.auth-password-toggle:focus-visible { outline: 2px solid rgba(239,82,99,.55); outline-offset: 1px; }
.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
.auth-password-toggle .eye-closed,
.auth-password-toggle.is-visible .eye-open { display: none; }
.auth-password-toggle.is-visible .eye-closed { display: block; }
.auth-submit > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform .16s ease;
}
.auth-submit:hover > svg { transform: translateX(2px); }

@media (max-width: 640px) {
  body:has(#login-panel:not(.hidden)) {
    min-height: 100vh;
    min-height: 100dvh;
    overscroll-behavior: none;
    background: #08090c;
  }
  .auth-screen:has(#login-panel:not(.hidden)) {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      radial-gradient(circle at 88% -6%, rgba(220,37,57,.11), transparent 29%),
      linear-gradient(180deg, #0b0c10 0%, #08090c 100%);
  }
  .auth-screen:has(#login-panel:not(.hidden)) .auth-art { display: none; }
  .auth-screen:has(#login-panel:not(.hidden)) .auth-form-side {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    background: transparent;
  }
  .auth-screen:has(#login-panel:not(.hidden)) .auth-form-side::before { display: none; }
  #login-panel.auth-card {
    display: flex;
    width: min(100%, 430px);
    min-height: calc(100vh - 36px);
    min-height: calc(100dvh - max(36px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    max-width: none;
    flex-direction: column;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  #login-panel.auth-card::before { display: none; }
  .auth-mobile-topbar {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .auth-mobile-brand { display: flex; min-width: 0; align-items: center; gap: 11px; }
  .auth-mobile-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid #2b2d35;
    border-radius: 14px;
    background: #111217;
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.18);
  }
  .auth-mobile-icon img { display: block; width: 38px; height: 38px; object-fit: contain; }
  .auth-mobile-brand > span:last-child { display: grid; min-width: 0; gap: 3px; }
  .auth-mobile-brand strong { color: #f5f5f7; font-size: 14px; font-weight: 760; letter-spacing: -.02em; }
  .auth-mobile-brand small { color: #6e717b; font-size: 10px; letter-spacing: .01em; }
  .auth-secure-state {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    border: 1px solid #282b33;
    border-radius: 999px;
    padding: 0 10px;
    color: #8f929c;
    background: rgba(18,19,24,.82);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .04em;
  }
  .auth-secure-state i { width: 6px; height: 6px; border-radius: 50%; background: #48d094; box-shadow: 0 0 0 4px rgba(72,208,148,.08); }
  #login-panel > .eyebrow {
    display: block;
    margin-top: clamp(64px, 12vh, 108px);
    color: #e74354;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .17em;
  }
  #login-panel > .eyebrow::before,
  #login-panel > .eyebrow::after { display: none; }
  #login-panel > h2 {
    max-width: none;
    margin: 12px 0 8px;
    color: #f7f7f8;
    font-size: clamp(30px, 8.5vw, 36px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  #login-panel > .muted {
    max-width: none;
    margin: 0;
    color: #7f828c;
    font-size: 13px;
    line-height: 1.55;
  }
  #login-panel .stack-form {
    gap: 17px;
    margin-top: 34px;
  }
  #login-form::before,
  #login-form::after { display: none; }
  #login-panel .auth-field { gap: 8px; }
  #login-panel .auth-field > label {
    color: #a9abb3;
    font-size: 11px;
    font-weight: 680;
    letter-spacing: .015em;
  }
  #login-panel .auth-input-shell input {
    min-height: 56px;
    border: 1px solid #2c2f38;
    border-radius: 13px;
    color: #f2f2f4;
    background: #101116;
    box-shadow: inset 0 1px rgba(255,255,255,.018);
    font-size: 16px;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  }
  #login-panel .auth-input-shell input:hover { border-color: #373a44; }
  #login-panel .auth-input-shell input:focus {
    border-color: #a72e3d;
    background: #121318;
    box-shadow: 0 0 0 4px rgba(227,47,66,.085);
  }
  #login-panel .form-error {
    min-height: 0;
    margin: -3px 0 0;
    color: #ff6373;
    font-size: 11px;
    line-height: 1.45;
  }
  #login-panel .form-error:empty { display: none; }
  #login-panel .auth-submit {
    min-height: 56px;
    margin-top: 3px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #e52e43 0%, #c51f34 58%, #ae192c 100%);
    box-shadow: 0 14px 30px rgba(171,20,41,.22), inset 0 1px rgba(255,255,255,.13);
    font-size: 13px;
    font-weight: 760;
  }
  #login-panel .auth-submit::before,
  #login-panel .auth-submit::after { display: none; }
  #login-panel .auth-submit:active { transform: scale(.988); }
  .auth-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    color: #62656f;
    font-size: 9px;
  }
  .auth-trust-note svg {
    width: 14px;
    height: 14px;
    color: #747781;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }
  #login-panel .auth-support {
    display: grid;
    min-height: 56px;
    grid-template-columns: 32px minmax(0,1fr) 16px;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    border: 0;
    border-top: 1px solid #1f2128;
    padding: 17px 0 0;
  }
  #login-panel .auth-support-mark {
    width: 32px;
    height: 32px;
    border: 1px solid #2b2e36;
    border-radius: 10px;
    color: #8a8d97;
    background: #111217;
  }
  #login-panel .auth-support strong { color: #b2b4bc; font-size: 10px; font-weight: 680; }
  #login-panel .auth-support small { color: #656872; font-size: 9px; }
  #login-panel .auth-support > b { color: #696c76; }
}

@media (max-width: 640px) and (max-height: 700px) {
  #login-panel.auth-card { min-height: calc(100dvh - 28px); }
  .auth-screen:has(#login-panel:not(.hidden)) .auth-form-side { padding-top: 14px; padding-bottom: 14px; }
  #login-panel > .eyebrow { margin-top: 32px; }
  #login-panel .stack-form { gap: 13px; margin-top: 23px; }
  #login-panel .auth-input-shell input,
  #login-panel .auth-submit { min-height: 50px; }
  .auth-trust-note { margin-top: 10px; }
  #login-panel .auth-support { margin-top: 22px; }
}

@media (max-width: 350px) {
  .auth-screen:has(#login-panel:not(.hidden)) .auth-form-side { padding-right: 16px; padding-left: 16px; }
  .auth-secure-state { padding: 0 8px; font-size: 8px; }
  #login-panel > h2 { font-size: 29px; }
}

/* V2.1.9 — mobile app composition: branded hero + light sign-in sheet */
.auth-mobile-hero { display: none; }
.auth-login-sheet { width: 100%; }
.auth-login-sheet > .muted { color: #7f828d; font-size: 14px; line-height: 1.6; }

@media (max-width: 1024px) {
  body:has(#login-panel:not(.hidden)) { background: #2b1329; }
  .auth-screen:has(#login-panel:not(.hidden)) {
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    background: #2b1329;
    box-shadow: none;
  }
  .auth-screen:has(#login-panel:not(.hidden)) .auth-art { display: none; }
  .auth-screen:has(#login-panel:not(.hidden)) .auth-form-side {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background: #2b1329;
  }
  #login-panel.auth-card {
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    background: #2b1329;
  }
  .auth-mobile-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    height: clamp(230px, 34dvh, 290px);
    flex-direction: column;
    overflow: hidden;
    padding:
      max(18px, env(safe-area-inset-top))
      max(22px, calc((100% - 520px) / 2), env(safe-area-inset-right))
      48px
      max(22px, calc((100% - 520px) / 2), env(safe-area-inset-left));
    color: #fff;
    background:
      radial-gradient(circle at 102% -8%, rgba(255,133,145,.42), transparent 36%),
      radial-gradient(circle at -8% 105%, rgba(229,30,63,.48), transparent 39%),
      linear-gradient(128deg, #d91e43 0%, #a71942 39%, #62153e 68%, #29162f 100%);
  }
  .auth-mobile-hero::before,
  .auth-mobile-hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }
  .auth-mobile-hero::before {
    top: 76px;
    right: -82px;
    width: 210px;
    height: 210px;
  }
  .auth-mobile-hero::after {
    bottom: -104px;
    left: -46px;
    width: 230px;
    height: 230px;
    border-color: rgba(255,255,255,.055);
  }
  .auth-mobile-hero .auth-mobile-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
  }
  .auth-mobile-hero .auth-mobile-brand {
    display: flex;
    min-width: 0;
    align-items: center;
  }
  .auth-mobile-hero .auth-mobile-icon {
    display: grid;
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .auth-mobile-hero .auth-mobile-icon img { width: 60px; height: 60px; }
  .auth-mobile-hero .auth-secure-state {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    border-color: rgba(255,255,255,.16);
    border-style: solid;
    border-width: 1px;
    border-radius: 999px;
    padding: 0 10px;
    color: rgba(255,255,255,.82);
    background: rgba(21,9,22,.18);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .04em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .auth-mobile-hero .auth-secure-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7ff0b9;
    box-shadow: 0 0 0 4px rgba(127,240,185,.12);
  }
  .auth-mobile-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: 10px;
    flex: 1;
    padding-bottom: 16px;
  }
  .auth-mobile-hero-copy > span {
    color: rgba(255,255,255,.64);
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .2em;
  }
  .auth-mobile-hero-copy > strong {
    max-width: 330px;
    color: #fff;
    font-size: clamp(27px, 7.8vw, 34px);
    font-weight: 720;
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  #login-panel .auth-login-sheet {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: calc(100vh - clamp(230px, 34vh, 290px) + 30px);
    min-height: calc(100dvh - clamp(230px, 34dvh, 290px) + 30px);
    flex-direction: column;
    margin-top: -30px;
    border-radius: 30px 30px 0 0;
    padding:
      29px
      max(24px, calc((100% - 520px) / 2), env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(24px, calc((100% - 520px) / 2), env(safe-area-inset-left));
    color: #211b23;
    background: #f7f5f7;
    box-shadow: 0 -18px 46px rgba(36,7,29,.16);
  }
  #login-panel .auth-login-sheet > .eyebrow {
    display: block;
    margin: 0;
    color: #b31c3c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .17em;
  }
  #login-panel .auth-login-sheet > .eyebrow::before,
  #login-panel .auth-login-sheet > .eyebrow::after { display: none; }
  #login-panel .auth-login-sheet > h2 {
    max-width: none;
    margin: 10px 0 7px;
    color: #211b23;
    font-size: clamp(28px, 8vw, 34px);
    font-weight: 740;
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  #login-panel .auth-login-sheet > .muted {
    max-width: none;
    margin: 0;
    color: #625c65;
    font-size: 13px;
    line-height: 1.5;
  }
  #login-panel .auth-login-sheet .stack-form {
    gap: 15px;
    margin-top: 25px;
  }
  #login-panel .auth-login-sheet .auth-field { gap: 7px; }
  #login-panel .auth-login-sheet .auth-field > label {
    color: #625b65;
    font-size: 10px;
    font-weight: 740;
  }
  #login-panel .auth-login-sheet .auth-input-shell input {
    min-height: 53px;
    border: 1px solid #dfdbe0;
    border-radius: 14px;
    color: #211b23;
    background: #fff;
    box-shadow: 0 5px 16px rgba(45,29,43,.035);
  }
  #login-panel .auth-login-sheet .auth-input-shell input:hover { border-color: #d3cdd4; }
  #login-panel .auth-login-sheet .auth-input-shell input:focus {
    border-color: #b92242;
    color: #211b23;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(185,34,66,.09), 0 7px 18px rgba(45,29,43,.045);
  }
  #login-panel .auth-login-sheet .auth-field-icon { color: #948d96; }
  #login-panel .auth-login-sheet .auth-input-shell:focus-within .auth-field-icon { color: #b92242; }
  #login-panel .auth-login-sheet .auth-password-toggle { color: #8d8790; }
  #login-panel .auth-login-sheet .auth-password-toggle:hover { color: #4d4650; background: #f3eff3; }
  #login-panel .auth-login-sheet .form-error { color: #b71839; }
  #login-panel .auth-login-sheet .auth-submit {
    min-height: 53px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(105deg, #d91f43 0%, #a81843 49%, #4a183e 100%);
    box-shadow: 0 13px 26px rgba(132,21,61,.22), inset 0 1px rgba(255,255,255,.18);
  }
  #login-panel .auth-login-sheet .auth-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    color: #6d666f;
    font-size: 9px;
  }
  #login-panel .auth-login-sheet .auth-trust-note svg {
    width: 14px;
    height: 14px;
    color: #9b949d;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }
  #login-panel .auth-login-sheet .auth-support {
    min-height: 54px;
    margin-top: auto;
    border-top: 1px solid #e3dfe4;
    padding-top: 16px;
  }
  #login-panel .auth-login-sheet .auth-support-mark {
    border-color: #ded9df;
    color: #756e77;
    background: #eeebef;
  }
  #login-panel .auth-login-sheet .auth-support strong { color: #514a53; }
  #login-panel .auth-login-sheet .auth-support small { color: #655f67; }
  #login-panel .auth-login-sheet .auth-support > b { color: #8d8690; }
}

@media (max-width: 1024px) and (max-height: 700px) {
  .auth-mobile-hero { height: 220px; padding-bottom: 42px; }
  .auth-mobile-hero-copy { padding-bottom: 6px; }
  .auth-mobile-hero-copy > strong { font-size: 27px; }
  #login-panel .auth-login-sheet {
    min-height: calc(100dvh - 190px);
    padding-top: 24px;
  }
  #login-panel .auth-login-sheet .stack-form { gap: 12px; margin-top: 19px; }
  #login-panel .auth-login-sheet .auth-input-shell input,
  #login-panel .auth-login-sheet .auth-submit { min-height: 49px; }
  #login-panel .auth-login-sheet .auth-trust-note { margin-top: 9px; }
}

@media (min-width: 1025px) {
  #login-panel .auth-login-sheet > .muted { color: #7f828d; font-size: 14px; line-height: 1.6; }
  .auth-form-side {
    background: #0d0e12;
  }
  #login-panel.auth-card {
    max-width: 400px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  #login-panel .auth-login-sheet {
    background: transparent;
  }
}
