:root {
  color-scheme: light;
  --ground: #f9fbfc;
  --frame: #f3f6f4;
  --surface: #ffffff;
  --raised: #f4f6f8;
  --active: #ebedee;
  --border: #e8eaec;
  --rule: #f0f1f2;
  --control: #cdced1;
  --text: #131416;
  --muted: #5d5f60;
  --faint: #6b6b6b;
  --accent: #1b6c80;
  --primary: #1d1f20;
  --primary-ink: #ffffff;
  --positive: #247b50;
  --negative: #c4242a;
  --warning: #92400e;
  --pill-positive-bg: #dcfae5;
  --pill-positive-ink: #04250e;
  --pill-negative-bg: #ffedea;
  --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb;
  --pill-warning-ink: #783b06;
  --pill-neutral-bg: #ebedee;
  --pill-neutral-ink: #353736;
  --radius-card: 8px;
  --radius-sheet: 16px;
  --radius-control: 6px;
  --gap: 24px;
  --pad: 24px;
  --control-height: 36px;
  --font: "IBM Plex Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #000000;
  --frame: #0c0c0c;
  --surface: #111111;
  --raised: #222222;
  --active: #222222;
  --border: #2e2e2e;
  --rule: #222222;
  --control: #4a4a4a;
  --text: #ffffff;
  --muted: #b4b4b4;
  --faint: #949494;
  --accent: #55b7c7;
  --primary: #ffffff;
  --primary-ink: #111111;
  --positive: #3fc07a;
  --negative: #e5566f;
  --warning: #f0c36d;
  --pill-positive-bg: #172a1d;
  --pill-positive-ink: #3fc07a;
  --pill-negative-bg: #2c1a20;
  --pill-negative-ink: #e97886;
  --pill-warning-bg: #2b2416;
  --pill-warning-ink: #f0c36d;
  --pill-neutral-bg: #252525;
  --pill-neutral-ink: #e2e2e2;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body { min-width: 320px; min-height: 100svh; margin: 0; background: var(--ground); color: var(--text); font: 400 14px/1.45 var(--font); font-synthesis: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
a { color: inherit; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-small { width: 14px; height: 14px; }
.num, .num * { font-variant-numeric: tabular-nums; }

/* Login follows the onboarding reference: inset work panels, a real stepper, and a live identity preview. */
.auth-shell { min-height: 100svh; display: grid; place-items: center; padding: 32px; background: var(--ground); }
.auth-frame { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.auth-form-panel, .auth-preview-panel { min-width: 0; min-height: 660px; border: 1px solid var(--border); border-radius: 20px; }
.auth-form-panel { display: flex; flex-direction: column; padding: 30px 42px 24px; background: var(--surface); }
.auth-brand, .sidebar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 8px; color: var(--accent); font: 500 14px/1 var(--font-mono); }
.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--raised); }
.brand-wordmark { display: grid; gap: 1px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.brand-wordmark small { color: var(--muted); font-size: 13px; font-weight: 400; }
.auth-form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.auth-mode { color: var(--muted); font-size: 13px; }
.auth-form-content { width: min(440px, 100%); margin: auto; padding: 28px 0; }
.auth-form-content h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.2; }
.auth-description { margin: 9px 0 27px; color: var(--muted); font-size: 15px; }
.login-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.login-progress li { position: relative; display: grid; grid-template-rows: 28px auto; gap: 7px; min-width: 0; color: var(--faint); font-size: 12px; }
.login-progress li:not(:last-child)::after { position: absolute; top: 13px; left: 27px; width: calc(100% - 27px); height: 1px; background: var(--border); content: ""; }
.progress-node { z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--control); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; }
.login-progress li.is-current { color: var(--text); font-weight: 500; }
.login-progress li.is-current .progress-node, .login-progress li.is-complete .progress-node { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.login-progress li.is-complete { color: var(--text); }
.login-form { display: grid; gap: 15px; }
.login-field { display: grid; gap: 8px; min-width: 0; }
.login-field label, .form-grid label, .model-upload-form > label, .policy-form > label { color: var(--text); font-size: 13px; font-weight: 500; }
.login-form input, .form-grid input, .form-grid select, .model-upload-form input:not([type="file"]), .model-upload-form select, .policy-form input, .policy-form select, .inline-editor input:not([type="radio"]), .inline-editor select { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); outline: 0; }
.login-form .login-field input { height: 52px; padding: 0 15px; border-color: var(--border); border-radius: 10px; font-size: 15px; }
.login-form .login-field input::placeholder { color: var(--faint); opacity: 1; }
.login-form .login-field input:focus-visible { border-color: var(--accent); box-shadow: var(--focus-ring); }
.auth-submit { position: relative; min-height: 56px; display: grid; place-items: center; margin-top: 2px; padding: 0 54px; border-radius: 2px; font-size: 15px; font-weight: 600; }
.auth-submit:disabled { opacity: .65; }
.auth-submit > .icon { position: absolute; right: 18px; width: 18px; height: 18px; }
.form-error { min-height: 20px; margin: -5px 0 0; color: var(--negative); font-size: 13px; }
.auth-form-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding-top: 18px; color: var(--muted); font-size: 12px; }
.auth-form-foot .icon { width: 15px; height: 15px; }
.auth-preview-panel { display: flex; flex-direction: column; padding: 28px 26px 22px; background: var(--raised); }
.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.preview-kicker { color: var(--muted); font-size: 11px; font-weight: 500; }
.preview-heading h2 { margin: 7px 0 0; font-size: 23px; font-weight: 600; line-height: 1.2; }
.preview-live { display: inline-flex; align-items: center; gap: 7px; padding-top: 3px; color: var(--muted); font-size: 12px; }
.preview-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }
.preview-intro { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.account-preview { width: min(360px, 100%); margin: auto; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.preview-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.preview-card-top .icon { width: 18px; height: 18px; color: var(--accent); }
.preview-identity { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.preview-avatar { width: 52px; height: 52px; display: grid; flex: none; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 15px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--accent); font-size: 16px; font-weight: 600; }
.preview-identity-copy { display: grid; min-width: 0; gap: 4px; }
.preview-name { overflow: hidden; color: var(--text); font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.preview-role { color: var(--muted); font-size: 13px; }
.preview-divider { height: 1px; margin: 25px 0 18px; background: var(--rule); }
.preview-details { display: grid; gap: 15px; margin: 0; }
.preview-details div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.preview-details dt { color: var(--muted); font-size: 12px; }
.preview-details dd { overflow: hidden; max-width: 62%; margin: 0; color: var(--text); font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.preview-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--muted); }
.preview-note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.preview-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.preview-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.preview-footer span:first-child { color: var(--text); font-weight: 600; }

/* Product shell. Desktop keeps a labelled tree; the tablet and phone use a drawer. */
.app-shell { min-height: 100svh; display: grid; grid-template-columns: 228px minmax(0, 1fr); background: var(--frame); }
.sidebar { position: sticky; top: 0; height: 100svh; min-height: 540px; display: flex; flex-direction: column; padding: 24px 16px 16px; background: var(--frame); }
.sidebar-brand { margin: 0 8px 34px; }
.tree-nav { display: grid; align-content: start; gap: 5px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.tree-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nav-item, .nav-group-trigger { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: 14px; font-weight: 400; }
.nav-item .icon { color: var(--muted); }
.nav-item:hover, .nav-group-trigger:hover { background: color-mix(in srgb, var(--active) 62%, transparent); color: var(--text); }
.nav-item.is-active { position: relative; color: var(--text); font-weight: 500; }
.nav-item.is-active::after { content: ""; position: absolute; right: 10px; bottom: 4px; left: 10px; height: 2px; background: var(--accent); }
.nav-item.is-active .icon { color: var(--accent); }
.nav-group { display: grid; gap: 3px; }
.nav-group-trigger { justify-content: space-between; min-height: 32px; padding-left: 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.nav-group-trigger .icon { transition: transform .16s ease-out; }
.nav-group:not(.is-open) .nav-group-trigger .icon { transform: rotate(-90deg); }
.nav-group:not(.is-open) .nav-children { display: none; }
.nav-children { display: grid; gap: 2px; padding-left: 8px; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 6px; }
.profile-trigger { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.profile-trigger:hover { background: color-mix(in srgb, var(--active) 62%, transparent); }
.profile-trigger:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.user-monogram { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border: 1px solid var(--control); border-radius: 50%; color: var(--text); font: 500 11px var(--font-mono); }
.sidebar-user-copy { display: grid; min-width: 0; gap: 1px; }
.sidebar-user-copy strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy small { color: var(--muted); font-size: 11px; }
.sidebar-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-frame { min-width: 0; min-height: 100svh; display: flex; flex-direction: column; padding: 0 8px 8px 0; }
.topbar { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: var(--frame); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left { color: var(--muted); font-size: 12px; }
.topbar-left strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.topbar-divider { color: var(--control); }
.topbar-actions { gap: 14px; }
.component-state { color: var(--muted); font-size: 12px; }
.canvas { min-width: 0; flex: 1; padding: 26px 28px 36px; border: 1px solid var(--border); border-radius: var(--radius-sheet); background: var(--surface); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.screen-view { min-width: 0; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.screen-view > .section-toolbar { margin-bottom: 22px; }
.section-title-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; min-width: 0; }
.section-title-group h2 { margin: 0; font-size: 16px; font-weight: 600; }
.section-title-group .muted { white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
.inline-note { margin: -4px 0 18px; color: var(--muted); font-size: 13px; }

/* Overview: live counts from the authorization API and actual recent actions. */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.metrics > div { min-width: 0; min-height: 96px; display: grid; align-content: center; gap: 5px; padding: 17px 20px; border-right: 1px solid var(--border); }
.metrics > div:last-child { border-right: 0; }
.metrics span { color: var(--muted); font-size: 13px; }
.metrics strong { font-size: 27px; font-weight: 400; line-height: 1.15; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--gap); }
.panel { min-width: 0; padding: 19px 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading > .eyebrow { padding-top: 2px; }
.runtime-row { min-height: 62px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--rule); }
.runtime-mark { color: var(--muted); font: 500 11px var(--font-mono); }
.runtime-copy { display: grid; gap: 2px; min-width: 0; }
.runtime-copy strong { font-size: 14px; font-weight: 500; }
.runtime-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.panel-footnote { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.activity-list { display: grid; }
.sxos-traffic-widget { width: 100%; max-width: 384px; min-height: 174px; align-self: start; border-color: var(--border); background: var(--surface); color: var(--text); }
.sxos-traffic-widget [data-slot="button"] { background: var(--primary); color: var(--primary-ink); }
.activity-row { min-height: 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--rule); }
.activity-main { display: grid; gap: 1px; min-width: 0; }
.activity-main strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.activity-main small, .activity-time { color: var(--muted); font-size: 11px; }
.activity-time { white-space: nowrap; }
.empty-state { padding: 24px 14px; color: var(--muted); font-size: 13px; text-align: center; }

/* Controls and filters. */
/* From Uiverse.io by neerajbaniwal - https://uiverse.io/neerajbaniwal/hungry-mule-59 */
.btn-shine {
  position: relative;
  top: auto;
  left: auto;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  transform: none;
  color: var(--muted);
  background: linear-gradient(to right, var(--muted) 0, var(--text) 10%, var(--muted) 20%);
  background-position: 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}
.btn-shine svg { color: var(--text); -webkit-text-fill-color: var(--text); }
.btn-shine:disabled { opacity: .55; animation: none; }
.btn-shine.icon-only { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; }
.btn-shine.icon-only .icon { width: 18px; height: 18px; }
/* From Uiverse.io by alexmaracinaru - https://uiverse.io/alexmaracinaru/empty-moose-12 */
.cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.cta span {
  padding: 0 8px 3px 0;
  letter-spacing: 0;
  font-size: 13px;
  text-transform: none;
}

.cta svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}
.cta:disabled { opacity: .55; cursor: wait; }
.section-toolbar > .cta { min-height: 40px; align-self: center; gap: 1px; padding: 0 5px; line-height: 1; }
.section-toolbar > .cta > span { display: inline-flex; min-height: 32px; align-items: center; padding: 0 7px 1px 0; line-height: 1.2; }
.section-toolbar > .cta > svg { display: block; flex: none; }

.hover-underline-animation {
  position: relative;
  color: var(--text);
  padding-bottom: 2px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* From Uiverse.io by satyamchaudharydev - https://uiverse.io/satyamchaudharydev/quick-chicken-50 */
.button.uiverse-danger {
  --border-right: 3px;
  --text-stroke-color: color-mix(in srgb, var(--negative) 50%, transparent);
  --animation-color: var(--negative);
  --fs-size: 13px;
  margin: 0;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  letter-spacing: 0;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: var(--font);
  position: relative;
  text-transform: none;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}
.button.uiverse-danger .hover-text {
  position: absolute;
  box-sizing: border-box;
  inset: 0;
  width: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  color: var(--animation-color);
  transition: .5s;
  -webkit-text-stroke: 1px var(--animation-color);
}
.button.uiverse-danger .actual-text { color: var(--negative); -webkit-text-stroke: 0; }
.button.uiverse-danger:hover .hover-text { width: 100%; filter: drop-shadow(0 0 10px var(--animation-color)); }
.button.uiverse-danger:disabled { opacity: .55; }

.auth-shell { position: relative; padding: 20px; }
.auth-theme-root { position: fixed; z-index: 5; top: 20px; right: 20px; }
.auth-theme-root > div { display: block; }
.auth-shell #onboarding-login-root { width: min(100%, 1080px); min-height: calc(100svh - 40px); }
.auth-shell #onboarding-login-root > div { min-height: calc(100svh - 40px); }
.sxos-select-disclosure, .sxos-select-disclosure > div { width: 100%; }
.sxos-select-disclosure button { max-width: 100%; }
.sxos-select-disclosure button[aria-pressed] { min-height: 36px; padding: 7px 12px; border-radius: 6px; background: var(--raised); color: var(--text); font-size: 13px; }
.license-filter-root { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.license-filter-root [data-slot="select-trigger"] { color: var(--text); background: var(--surface); }
.model-file-uploader-root { grid-column: 1 / -1; }
.model-file-uploader-root [data-slot="card"] { max-width: none; margin: 0; border-color: var(--border); background: var(--surface); box-shadow: none; }
.model-file-uploader-root button { font-family: var(--font); }

html[data-theme="dark"] .hover-underline-animation { color: #ffffff; }
html[data-theme="dark"] .hover-underline-animation:after { background-color: #ffffff; }
html[data-theme="dark"] .cta svg { fill: #ffffff; }
.full { width: 100%; }
/* From Uiverse.io by Satwinder04 - https://uiverse.io/Satwinder04/pink-bat-77 */
.input-container { position: relative; width: min(420px, 100%); margin: 0; }
.input-container input[type="text"] { width: 100%; border: 0; border-bottom: 2px solid var(--control); padding: 8px 0; background: transparent; color: var(--text); outline: none; font-size: 14px; }
.input-container .label { position: absolute; top: 8px; left: 0; color: var(--muted); transition: all .3s ease; pointer-events: none; font-size: 13px; }
.input-container input[type="text"]:focus ~ .label { top: -15px; color: var(--text); font-size: 12px; line-height: 1.35; }
.input-container input[type="text"]:valid ~ .label { top: -15px; color: var(--text); font-size: 12px; line-height: 1.35; }
.input-container .underline { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background-color: var(--text); transform: scaleX(0); transition: all .3s ease; }
.input-container input[type="text"]:focus ~ .underline,
.input-container input[type="text"]:valid ~ .underline { transform: scaleX(1); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.refresh-button { flex: none; }
.refresh-button .icon { width: 18px; height: 18px; flex: none; }
.column-settings { position: relative; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table-wrap { position: relative; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.data-table th, .data-table td { padding: 0 13px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.data-table th { height: 40px; color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.data-table td { min-height: 48px; height: 52px; color: var(--text); font-size: 13px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td[data-col="key"] { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.data-table .actions-column { width: 84px; text-align: right; }
.column-hidden { display: none !important; }
.key-value { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.device-value { display: grid; gap: 2px; max-width: 220px; }
.device-value span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-value small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inline-edit-row td { height: auto; padding: 12px; background: var(--raised); }
.mode-choice { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; }
.mode-choice legend { margin-bottom: 7px; color: var(--text); font-size: 13px; font-weight: 500; }

/* Tree, model authorization and cloud delivery views. */
.admin-table { min-width: 700px; }
.admin-table td:nth-child(3) { max-width: 520px; line-height: 1.55; }
.admin-name-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-tree-branch { width: 12px; height: 1px; flex: none; background: var(--control); }
.admin-name { font-weight: 500; }
.permission-picker { display: grid; gap: 12px; color: var(--text); font-size: 13px; }
.permission-picker > strong { font-weight: 500; }
.permission-options { min-width: 0; }
.permission-options .sxos-combobox-10 { min-width: 0; }
.model-table { min-width: 760px; }
.model-table td:nth-child(1) { min-width: 180px; font-weight: 500; }
.model-table td:nth-child(2), .model-table td:nth-child(3), .model-table td:nth-child(5) { white-space: nowrap; }
.model-table .actions-column, .model-release-table .actions-column { width: 200px; }
.model-release-table { min-width: 820px; }
.model-license-search-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px 8px; }
.model-license-search { width: auto; min-width: 0; flex: 1; }
.model-license-search-row > .muted { flex: none; font-size: 12px; white-space: nowrap; }
.model-license-options { display: grid; min-height: 80px; flex: 1; gap: 0; max-height: min(60vh, 520px); overflow: auto; padding: 4px 20px 12px; }
.model-license-no-results { margin: 8px 0; }
.model-license-options-list { display: grid; gap: 8px; }
.model-license-options-list [data-slot="badge"] { width: 100%; min-height: 52px; justify-content: flex-start; white-space: normal; }
.model-license-options-list label > strong { font-size: 13px; font-weight: 500; }
.model-license-options-list label > small { color: var(--muted); font-size: 12px; font-weight: 400; }
.component-release-panel, .security-workspace, .model-upload-panel, .model-release-list-panel { margin-bottom: 18px; }
.component-release-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.component-release-card { min-width: 0; padding: 14px 0 4px; border-top: 1px solid var(--rule); }
.component-release-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.component-release-heading > div:first-child { display: grid; gap: 4px; min-width: 0; }
.component-release-heading strong { font-size: 13px; font-weight: 600; }
.component-release-heading code { color: var(--muted); font: 11px var(--font-mono); overflow-wrap: anywhere; }
.component-upload-form { display: grid; gap: 12px; margin: 12px 0 14px; }
.component-upload-form > label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 500; }
.component-file-uploader-root { min-width: 0; }
.component-file-uploader-root [data-slot="card"] { max-width: none; margin: 0; border-color: var(--border); background: var(--surface); box-shadow: none; }
.component-file-uploader-root button { font-family: var(--font); }
.component-version-list { display: grid; }
.component-version-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.component-version-meta { min-width: 0; display: grid; gap: 4px; }
.component-version-meta strong { font-size: 12px; font-weight: 600; }
.component-version-meta small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.component-version-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.component-version-actions button { min-height: 36px; }
.component-empty { padding: 10px 0; color: var(--muted); font-size: 12px; }
.security-workspace { padding: 19px 20px; }
.policy-current { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(220px, 1fr) minmax(240px, 2fr); gap: 20px; padding: 5px 0 18px; border-bottom: 1px solid var(--rule); }
.policy-current div { display: grid; align-content: start; gap: 5px; min-width: 0; }
.policy-current span { color: var(--muted); font-size: 12px; }
.policy-current strong { overflow-wrap: anywhere; font-size: 13px; font-weight: 500; }
.policy-form { display: grid; grid-template-columns: minmax(160px, 1fr) 130px minmax(220px, 1.5fr) auto; align-items: end; gap: 14px; padding-top: 18px; }
.policy-form label, .model-upload-form label { display: grid; gap: 7px; min-width: 0; }
.policy-actions { display: flex; gap: 8px; }
.model-upload-form { display: grid; grid-template-columns: minmax(180px, 1.5fr) 110px 130px 130px minmax(230px, 1.5fr); align-items: end; gap: 14px; margin: 0; }
.model-description-field { grid-column: 4 / -1; }

/* Audit table and status language. */
.audit-table { min-width: 700px; }
.audit-table td:nth-child(1), .audit-table td:nth-child(5) { color: var(--muted); font-size: 12px; white-space: nowrap; }
.audit-table td:nth-child(2) { font-weight: 500; }
.audit-table td:nth-child(4) { font-family: var(--font-mono); font-size: 12px; }
.audit-note { margin-top: 12px; }
.profile-overview { display: flex; align-items: center; gap: 16px; padding: 2px 0 22px; border-bottom: 1px solid var(--border); }
.profile-identity-copy { min-width: 0; }
.profile-identity-copy h2 { margin: 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.profile-identity-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-section { display: grid; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.profile-section:last-child { border-bottom: 0; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.profile-section-heading h2 { margin: 0; font-size: 16px; font-weight: 600; }
.profile-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.profile-password-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; }
.profile-password-form label { display: grid; gap: 7px; min-width: 0; color: var(--text); font-size: 13px; font-weight: 500; }
.profile-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.profile-password-form .form-error { grid-column: 1 / -1; margin: 0; }
.profile-password-form .form-error[hidden] { display: none; }
.profile-section .activity-list { min-width: 0; }

.mobile-menu-button, .mobile-scrim { display: none; }

/* Modal surfaces are the only large floating shadows in the system. */
dialog { width: min(560px, calc(100% - 32px)); max-height: min(88dvh, 780px); overflow: auto; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgb(0 0 0 / .22); }
dialog:modal { position: fixed; inset: 0; margin: auto; }
dialog::backdrop { background: rgb(0 0 0 / .48); }
dialog > form { margin: 0; }
#model-authorize-dialog > form { display: flex; max-height: min(88dvh, 780px); flex-direction: column; }
#generate-dialog { width: min(448px, calc(100% - 32px)); max-height: min(650px, 90dvh); overflow: hidden; border-radius: 12px; box-shadow: 0 24px 64px rgb(0 0 0 / .24); }
.sxos-dialog-4-content, .sxos-dialog-4-content > form { display: flex; min-height: 0; max-height: min(650px, 90dvh); flex-direction: column; }
.sxos-dialog-4-content { width: 100%; overflow: hidden; border-radius: 12px; background: var(--surface); }
.sxos-dialog-4-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--rule); text-align: left; }
.sxos-dialog-4-header h2 { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; }
.sxos-dialog-4-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.sxos-dialog-4-scroll { min-height: 0; flex: 1; overflow-y: auto; }
.sxos-dialog-4-scroll .form-grid { align-content: start; }
.sxos-dialog-4-footer { min-height: 65px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 12px 24px; border-top: 1px solid var(--rule); background: transparent; }
.sxos-calendar-4 input { padding-right: 44px; }
.sxos-calendar-4 input::-webkit-calendar-picker-indicator { display: none; }
.sxos-calendar-trigger { position: absolute; top: 50%; right: 6px; display: grid; width: 32px; height: 32px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.sxos-calendar-trigger:hover { background: var(--active); color: var(--text); }
.sxos-calendar-trigger svg { width: 17px; height: 17px; }
.sxos-calendar-popover { position: fixed; z-index: 120; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 18px 48px rgb(0 0 0 / .24); }
.sxos-calendar-popover .rdp-root { margin: 0; }
.sxos-calendar-popover .rdp-root { --rdp-accent-color: var(--accent); --rdp-accent-background-color: var(--active); }
.sxos-calendar-help { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 11px; text-align: center; }
.form-grid { align-items: start; }
.form-grid > label { align-self: start; align-content: start; }
.form-grid > label > div { min-width: 0; }
.dialog-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.dialog-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dialog-head .icon-only { flex: none; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid .mode-choice legend { grid-column: 1 / -1; }
.form-grid .mode-choice span { width: 100%; min-height: 40px; }
#generated-keys { display: block; width: calc(100% - 40px); height: 220px; margin: 20px; resize: vertical; border: 1px solid var(--control); border-radius: 6px; background: var(--raised); color: var(--text); font: 12px/1.7 var(--font-mono); }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); box-shadow: 0 8px 22px rgb(0 0 0 / .12); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .16s ease-out, transform .16s ease-out; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { border-color: color-mix(in srgb, var(--negative) 45%, var(--border)); color: var(--negative); }
.button-busy-indicator { display: inline-flex; margin-inline-start: 8px; }
@keyframes shine { 0% { background-position: 0; } 60% { background-position: 180px; } 100% { background-position: 180px; } }

@media (prefers-reduced-motion: reduce) {
  .btn-shine { animation: none; }
  .cta, .cta svg, .hover-underline-animation::after, .button.uiverse-danger .hover-text { transition-duration: .01ms; }
}

@media (max-width: 1100px) {
  .app-shell { display: block; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr); }
  .sidebar { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: 100dvh; min-height: 0; transform: translateX(-102%); transition: transform .18s ease-out; border-right: 1px solid var(--border); }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-scrim { position: fixed; z-index: 50; inset: 0; display: block; border: 0; border-radius: 0; background: rgb(0 0 0 / .38); opacity: 0; pointer-events: none; transition: opacity .18s ease-out; }
  .mobile-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .app-frame { min-height: 100svh; padding: 0 8px 8px; }
  .topbar { height: 48px; padding: 0 12px; }
  .mobile-menu-button { display: inline-grid; }
}

@media (max-width: 820px) {
  .canvas { padding: 22px 20px 30px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .85fr); gap: 16px; }
  .policy-current { grid-template-columns: 1fr 1fr; gap: 14px; }
  .policy-current div:last-child { grid-column: 1 / -1; }
  .policy-form { grid-template-columns: 1fr 1fr; }
  .profile-password-form { grid-template-columns: 1fr 1fr; }
  .profile-password-form label:last-of-type { grid-column: 1 / -1; }
  .policy-reason, .policy-actions { grid-column: 1 / -1; }
  .model-upload-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-file-field, .model-description-field, .model-upload-form > button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .auth-shell { padding: 20px; }
  .auth-frame { width: min(520px, 100%); grid-template-columns: minmax(0, 1fr); }
  .auth-preview-panel { display: none; }
  .auth-form-panel { min-height: 640px; }
}

@media (max-width: 640px) {
  :root { --control-height: 44px; }
  body { min-width: 0; font-size: 14px; }
  .auth-shell { display: grid; padding: 14px; }
  .auth-frame { gap: 0; padding: 7px; border-radius: 20px; }
  .auth-form-panel { min-height: min(640px, calc(100svh - 42px)); padding: 21px 18px 16px; border-radius: 14px; }
  .auth-brand .brand-mark { width: 36px; height: 36px; }
  .auth-form-top { margin-top: 20px; }
  .auth-form-content { padding: 24px 0; }
  .auth-form-content h1 { font-size: 25px; }
  .auth-description { margin-bottom: 24px; font-size: 14px; }
  .login-progress { gap: 4px; margin-bottom: 24px; }
  .login-progress li { font-size: 11px; }
  .login-progress li:not(:last-child)::after { left: 25px; width: calc(100% - 25px); }
  .progress-node { width: 25px; height: 25px; }
  .auth-form-foot { padding-top: 14px; }
  .app-frame { padding: 0; }
  .topbar { height: 48px; padding: 0 10px; }
  .topbar-left { gap: 7px; }
  .topbar-scope, .topbar-divider { display: none; }
  .topbar-left strong { max-width: 120px; }
  .topbar-actions { gap: 4px; }
  .component-state { display: none; }
  .btn-shine.icon-only { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .topbar-actions .logout-button { min-height: 44px; padding: 8px 10px; }
  .nav-item, .nav-group-trigger { min-height: 44px; }
  .canvas { min-height: calc(100svh - 48px); padding: 20px 16px 28px; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 12px 12px 0 0; }
  .page-heading { align-items: center; gap: 10px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { margin-top: 3px; font-size: 12px; }
  .page-heading .refresh-button { width: 44px; min-width: 44px; padding: 0; }
  .refresh-button { display: inline-grid; place-items: center; line-height: 0; }
  .refresh-button > span:not(.button-busy-indicator) { display: none; }
  .section-toolbar { align-items: flex-start; gap: 10px; }
  .section-title-group { display: grid; gap: 2px; }
  .section-title-group h2 { font-size: 16px; }
  .profile-overview { padding-bottom: 18px; }
  .profile-section { gap: 12px; padding: 18px 0; }
  .profile-section-heading { align-items: flex-start; }
  .profile-password-form { grid-template-columns: 1fr; }
  .profile-password-form label:last-of-type, .profile-form-actions, .profile-password-form .form-error { grid-column: auto; }
  .profile-form-actions { justify-content: stretch; }
  .profile-form-actions .cta { width: 100%; justify-content: center; }
  .metrics { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
  .metrics > div { min-height: 78px; padding: 13px 14px; border-bottom: 1px solid var(--border); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(n+3) { border-bottom: 0; }
  .metrics span { font-size: 12px; }
  .metrics strong { font-size: 23px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel { padding: 16px; }
  .panel-heading { margin-bottom: 11px; }
  .runtime-row { min-height: 58px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .input-container { width: 100%; }
  .input-container input[type="text"] { min-height: 44px; }
  .toolbar-actions { justify-content: flex-end; }
  .login-form input,
  .form-grid input:not([type="radio"]):not([type="checkbox"]), .form-grid select,
  .model-upload-form input:not([type="file"]), .model-upload-form select,
  .policy-form input, .policy-form select { height: 44px; }
  .admin-table, .model-table, .audit-table { min-width: 700px; }
  .admin-table th:first-child, .admin-table td:first-child,
  .model-table th:first-child, .model-table td:first-child,
  .model-release-table th:first-child, .model-release-table td:first-child,
  .audit-table th:first-child, .audit-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
  .component-release-list { grid-template-columns: 1fr; gap: 18px; }
  .component-version-row { grid-template-columns: 1fr; }
  .component-version-actions { justify-content: flex-start; }
  .policy-current { grid-template-columns: 1fr; gap: 12px; }
  .policy-current div:last-child { grid-column: auto; }
  .policy-form { grid-template-columns: 1fr; }
  .policy-reason, .policy-actions { grid-column: auto; }
  .policy-actions { justify-content: flex-end; }
  .model-upload-form { grid-template-columns: 1fr; }
  .model-description-field { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .form-grid .wide { grid-column: auto; }
  .form-grid .mode-choice { grid-template-columns: 1fr 1fr; }
  .dialog-head { padding: 14px 16px; }
  .dialog-actions { padding: 12px 16px; }
  #generate-dialog { width: min(448px, calc(100% - 24px)); max-height: min(650px, 92dvh); }
  .sxos-dialog-4-content, .sxos-dialog-4-content > form { max-height: min(650px, 92dvh); }
  .sxos-dialog-4-header { padding: 16px 18px 14px; }
  .sxos-dialog-4-footer { padding: 12px 18px; }
  .sxos-calendar-popover { right: -2px; }
  .model-license-search-row { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 16px 8px; }
  .model-license-search { width: 100%; }
  .model-license-search-row > .muted { align-self: flex-end; }
  .model-license-options { max-height: min(54dvh, 480px); padding: 4px 16px 10px; }
  #generated-keys { width: calc(100% - 32px); margin: 16px; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

.sxos-floating-disclosure-trigger { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; }
.sxos-floating-disclosure-trigger:hover { background: var(--active); }
.sxos-floating-disclosure-trigger svg { width: 18px; height: 18px; }
.sxos-floating-disclosure-menu { color: var(--text); }
.sxos-floating-disclosure-menu p { font-size: 13px; line-height: 1.35; }
.sxos-floating-danger-description { color: #ba6565; }
html[data-theme="dark"] .sxos-floating-danger-description { color: #d89197; }
.sxos-combobox-5 [data-slot="command-input-wrapper"] { min-width: 0; height: 44px; }
.sxos-combobox-5 [data-slot="command-input"] { min-width: 0; height: 100%; padding-block: 8px; font-size: 14px; line-height: 20px; }
.sxos-combobox-5 [data-slot="command-item"] { min-height: 40px; line-height: 1.4; }

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