/* GANI internal VI, aligned with gani-performance/src/gani-vi.css. */
.allocation-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin: 10px 0 14px;
}
.allocation-device-row .field {
  margin: 0;
  font-size: 12px;
  color: #4f647b;
}
.allocation-device-row .btn {
  margin-bottom: 2px;
}
@media (max-width: 600px) {
  .allocation-device-row {
    grid-template-columns: 1fr 1fr;
  }
  .allocation-device-row .field {
    grid-column: 1/-1;
  }
}
:root {
  --gani-blue: #2f7ee1;
  --gani-deep: #1d56a4;
  --gani-tint: #edf4fd;
  --ink: #23374d;
  --muted: #687b91;
  --line: #e7edf5;
  --green: var(--gani-blue);
  --light: #eaf2fd;
  --paper: #f4f7fb;
  font-family:
    "DreamHanSans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
.global-header {
  height: 68px;
  border-top: 3px solid var(--gani-blue);
  border-bottom: 1px solid #e4ecf5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 22px;
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 15px;
}
.brand {
  padding: 0;
  gap: 13px;
  flex-shrink: 0;
}
.brand img {
  width: 101px;
  height: 39px;
  object-fit: contain;
}
.brand .brand-divider {
  width: 1px;
  height: 27px;
  background: #d9e4f1;
}
.brand strong {
  font-size: 17px;
  color: var(--gani-deep);
  letter-spacing: 0;
  font-weight: 600;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #4f647b;
}
.shell {
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
.sidebar {
  top: 68px;
  height: calc(100vh - 68px);
  padding: 23px 12px 0;
}
.nav-section {
  font-size: 11px;
  letter-spacing: 0;
  color: #72859c;
  margin: 14px 14px 12px;
}
.nav-item {
  font-size: 14px;
  padding: 12px 14px;
  color: #4f647b;
  border-radius: 7px;
  font-weight: 400;
  gap: 12px;
}
.nav-item.active {
  color: var(--gani-deep);
  background: #eaf2fd;
  font-weight: 600;
}
.nav-item.active .nav-icon {
  color: var(--gani-blue);
}
.nav-item:hover {
  background: #f1f6fd;
}
.nav-icon {
  font-size: 19px;
}
.sidebar-bottom {
  padding-bottom: 22px;
}
.avatar {
  background: #edf4fd;
  color: var(--gani-blue);
}
.main {
  background: var(--paper);
}
.topbar {
  height: 57px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e9eff7;
}
.breadcrumb {
  font-size: 13px;
}
.top-actions .environment {
  background: transparent;
  color: #72859a;
  font-size: 12px;
}
.dot {
  display: none;
}
.content {
  padding: 24px 28px 36px;
  max-width: 1600px;
}
.page-heading {
  align-items: center;
  min-height: 36px;
  margin-bottom: 18px;
}
.page-heading h1 {
  font-size: 21px;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0;
  color: #213c5b;
}
.btn {
  min-height: 33px;
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  border-color: #dce4ef;
  color: #344e68;
}
.btn:hover {
  border-color: #8fbbff;
  color: var(--gani-blue);
  background: #f8fbff;
}
.btn.primary,
.btn.primary:hover {
  background: var(--gani-blue);
  border-color: var(--gani-blue);
  color: #fff;
}
.btn.small {
  font-size: 12px;
  padding: 5px 9px;
  min-height: 29px;
}
.btn.ghost {
  border: 0;
  background: transparent;
}
.filters {
  margin-bottom: 18px;
}
.filters input,
.filters select,
.field input,
.field select,
.field textarea {
  border-color: #dfe7f1;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 13px;
  color: #344e68;
  min-height: 35px;
}
.field label {
  font-size: 13px;
  color: #4f647b;
}
.field .help {
  font-size: 11px;
  color: #72859a;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.filters input:focus,
.filters select:focus {
  border-color: var(--gani-blue);
  box-shadow: 0 0 0 2px #2f7ee112;
}
.field input[type="checkbox"] {
  min-height: 0;
  accent-color: var(--gani-blue);
}
.metric,
.panel,
.tool-card {
  border-color: #e6edf6;
  border-radius: 8px;
  box-shadow: none;
}
.metrics {
  gap: 16px;
  margin-bottom: 20px;
}
.metric {
  padding: 19px 21px;
}
.metric-head {
  font-size: 13px;
  color: #687b91;
}
.metric-symbol {
  color: #91aac8;
}
.metric-value {
  font-size: 30px;
  font-weight: 600;
  color: #213c5b;
  margin: 15px 0 9px;
}
.metric-note {
  font-size: 11px;
  color: #72859a;
}
.metric-note b {
  color: var(--gani-deep);
}
.panel-head {
  padding: 19px 21px 16px;
}
.panel-head h2 {
  font-size: 15px;
  color: #213c5b;
  font-weight: 600;
}
.panel-head small {
  font-size: 11px;
}
.grid-two {
  gap: 20px;
}
.chart .grid {
  stroke: #edf2f8;
}
.chart .fill {
  fill: #edf4fd;
}
.chart .line {
  stroke: var(--gani-blue);
}
.chart .point {
  stroke: var(--gani-blue);
}
.chart text {
  fill: #72859a;
}
.bar-track {
  background: #f0f5fb;
}
.bar-fill {
  background: #6a9bdf;
}
.bar-fill.warn {
  background: #d6aa64;
}
.dept-info {
  font-size: 13px;
}
.dept-info small,
.progress-note {
  font-size: 11px;
}
.dept-row {
  padding: 13px 0;
}
.panel-foot {
  font-size: 11px;
  color: #72859a;
}
table {
  font-size: 13px;
  color: #344e68;
  table-layout: fixed;
}
th {
  background: #f5f8fc;
  color: #315374;
  font-size: 12px;
  font-weight: 600;
  padding: 13px 15px;
  white-space: normal;
  overflow-wrap: anywhere;
}
td {
  padding: 14px 15px;
  border-color: #edf2f8;
  color: #344e68;
  overflow-wrap: anywhere;
}
td small,
.cell-sub {
  color: #72859a;
  font-size: 11px;
}
tbody tr:hover {
  background: #fafcff;
}
.badge {
  background: #edf4fd;
  color: #41698e;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
}
.badge.warn {
  background: #fff8e7;
  color: #ad7d28;
}
.badge.bad {
  background: #fff1f1;
  color: #d35d5d;
}
.badge.neutral {
  background: #f0f3f8;
  color: #72859a;
}
.platform-icon {
  background: #edf4fd;
  color: var(--gani-deep);
}
.alert-row {
  border-color: #edf2f8;
}
.alert-content strong {
  font-size: 13px;
}
.alert-content p {
  font-size: 11px;
}
.tool-card h2 {
  font-size: 18px;
  color: #213c5b;
}
.tool-card p {
  font-size: 13px;
}
.kv {
  font-size: 13px;
}
.manual-content {
  font-size: 14px;
}
.guide-option,
.dept-button {
  font-size: 13px;
}
.dept-button.active,
.guide-option.active {
  background: #eaf2fd;
  color: var(--gani-deep);
}
.notice.green {
  color: #41698e;
  background: #edf4fd;
  border-color: #dce9fb;
}
.support,
.eyebrow {
  display: none;
}
.ding-login {
  min-height: 100vh;
  background: #f4f7fb;
  border-top: 3px solid var(--gani-blue);
}
.login-brand {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 30px;
}
.login-card {
  width: min(420px, calc(100% - 36px));
  margin: 12vh auto 0;
  padding: 40px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.login-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 17px;
}
.login-card h1 {
  font-size: 23px;
  font-weight: 600;
  color: #213c5b;
  letter-spacing: 0;
  margin: 0 0 28px;
}
.login-card > .btn.primary {
  width: 100%;
  padding: 11px;
}
.login-card .demo-login {
  border: 0;
  padding: 0;
}
.login-card .demo-login .button-row {
  margin-top: 20px;
}
.device-gate {
  margin-top: 55px;
  border-color: var(--line);
}
.device-gate h1 {
  font-size: 21px;
  color: #213c5b;
}
.device-gate p {
  color: #687b91;
}
.modal-head h2 {
  font-size: 19px;
  color: #213c5b;
}
.modal-head,
.modal-footer {
  border-color: var(--line);
}
dialog {
  border-color: var(--line);
  border-radius: 10px;
}
dialog::backdrop {
  background: #24334b55;
}
.credential {
  background: #f3f7fc;
}
.security-info {
  font-size: 12px;
  color: #687b91;
}
#toast {
  background: #254f83;
}
.user-chip strong {
  font-size: 13px;
}
.user-chip small {
  font-size: 11px;
}
@media (min-width: 1500px) {
  .content {
    padding: 26px 32px 40px;
  }
  .topbar {
    padding: 0 32px;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 22px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 27px;
  }
}
@media (max-width: 760px) {
  .global-header {
    height: 62px;
    padding: 0 15px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 85px;
    height: 31px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand .brand-divider {
    height: 24px;
  }
  .header-user {
    gap: 8px;
    font-size: 12px;
  }
  .header-user > span:not(.badge) {
    display: none;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
    top: 0;
    padding: 12px;
  }
  .content {
    padding: 18px 12px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .topbar {
    padding: 0 12px;
  }
  .metric-head {
    font-size: 12px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metric-note {
    font-size: 11px;
    min-height: 32px;
  }
  .metric {
    padding: 15px 12px;
  }
  .button-row {
    gap: 7px;
  }
  .panel-head {
    padding: 16px;
  }
  .table-wrap {
    overflow-x: auto;
  }
  table {
    table-layout: auto;
  }
  td,
  th {
    font-size: 12px;
    padding: 10px 12px;
    white-space: normal;
  }
  .auth-form-wrap {
    padding: 20px;
  }
  .login-brand {
    padding: 17px 18px;
    height: 68px;
  }
  .login-card {
    margin-top: 10vh;
    padding: 30px 22px;
  }
}

.assigned-platform { margin-bottom: 22px; }
.assigned-accounts { padding: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.assigned-accounts .tool-card { box-shadow: none; background: #f8fafd; }
.assigned-accounts h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.assigned-accounts strong { overflow-wrap: anywhere; text-align: right; }
.assigned-accounts .badge { flex-shrink: 0; }
@media (max-width: 760px) { .assigned-accounts { grid-template-columns: 1fr; padding: 14px; } }

.allocation-content { max-width: none; }
.allocation-content .page-heading { margin-bottom: 14px; }
.allocation-toolbar { margin-bottom: 14px; }
.allocation-picker { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr); gap: 18px; padding: 14px 16px; }
.allocation-picker .field { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.allocation-picker select { min-width: 0; height: 36px; padding-top: 6px; padding-bottom: 6px; }
.allocation-account { border-top: 1px solid var(--line); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.allocation-account-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; color: var(--muted); font-size: 12px; }
.allocation-account-info strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.allocation-workspace { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
.allocation-workspace > .panel { min-width: 0; min-height: 0; }
.allocation-workspace .panel-head { padding: 14px 16px; flex-shrink: 0; }
.allocation-workspace .panel-head h2 { font-size: 15px; }
.allocation-workspace .panel-head > .muted { font-size: 12px; white-space: nowrap; }
.allocation-form-panel, .allocation-relations { display: flex; flex-direction: column; overflow: hidden; }
.allocation-inline-form { padding: 14px 16px; min-height: 0; overflow-y: auto; flex: 1; }
.allocation-inline-form .form-grid { grid-template-columns: 1fr; gap: 14px; }
.allocation-inline-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.allocation-inline-form fieldset:disabled { opacity: .55; }
.allocation-inline-form .allocation-device-row { gap: 7px; margin: 6px 0 10px; }
.allocation-inline-form .allocation-device-row .btn { font-size: 11px; padding: 7px 8px; }
.allocation-save-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; padding: 10px 0 2px; position: sticky; bottom: -14px; background: #fff; }
.allocation-person { display: flex; gap: 12px; margin-bottom: 14px; }
.allocation-person span { color: var(--muted); }
.allocation-cards { padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 0; overflow-y: auto; flex: 1; }
.allocation-card { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.allocation-card.selected { border-color: var(--gani-blue); background: #f8fbff; }
.allocation-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.allocation-card-head strong { font-size: 13px; }
.allocation-card-head small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.bound-device-list { margin-top: 8px; }
.bound-device { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 12px; }
.bound-device:last-child { padding-bottom: 0; }
.bound-device > div:first-child { min-width: 0; }
.bound-device code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.bound-device .button-row { flex-shrink: 0; }
.allocation-history { padding: 0 12px 12px; overflow-y: auto; max-height: 40%; flex-shrink: 0; }
.allocation-history summary { cursor: pointer; color: var(--muted); padding: 8px 0; }
.allocation-history .allocation-card { margin-top: 10px; }
@media (min-width: 900px) {
  .allocation-content { padding: 18px 22px 20px; }
  .allocation-workspace { height: max(390px, calc(100dvh - 355px)); }
}
@media (min-width: 900px) and (max-width: 1150px) {
  .allocation-content { padding: 16px; }
  .allocation-workspace { grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr); gap: 12px; }
  .allocation-inline-form { padding: 12px; }
  .allocation-account-info { gap: 8px; }
}
@media (max-width: 899px) {
  .allocation-workspace { grid-template-columns: 1fr; }
  .allocation-relations .allocation-cards { max-height: 420px; }
}
@media (max-width: 600px) {
  .allocation-picker { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .allocation-account { padding: 12px 14px; }
  .allocation-inline-form { padding: 14px; }
  .bound-device { align-items: flex-start; flex-wrap: wrap; }
}

.usage-summary .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-tabs { display: flex; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.usage-tabs .btn { border: 0; background: transparent; border-radius: 0; padding: 12px 16px; border-bottom: 2px solid transparent; color: var(--muted); }
.usage-tabs .btn.active { color: var(--gani-deep); border-bottom-color: var(--gani-blue); font-weight: 600; }
.usage-tabs .btn span { font-size: 11px; margin-left: 6px; }
.balance-totals { padding: 14px 20px; display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.balance-totals strong { color: var(--ink); margin-left: 8px; }
.assigned-accounts .tool-card { display: grid; align-content: start; gap: 12px; min-width: 0; }
.assigned-accounts .account-login-method { margin: 0; }
.employee-devices { list-style: none; padding: 0; margin: 0; }
.employee-devices li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.employee-devices small { color: var(--muted); }
.assigned-accounts .first-use { justify-self: start; }
[data-device-rows][data-certificate="false"] .allocation-device-row { grid-template-columns: minmax(0, 1fr) auto; }
[data-device-rows][data-certificate="false"] .field { grid-column: auto; }
@media (max-width:600px) { .usage-summary .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .usage-tabs .btn { padding: 10px; } }

@media (min-width:900px) {
  .usage-ledger .table-wrap { max-height: max(240px,calc(100dvh - 465px)); overflow: auto; }
  .usage-ledger thead { position: sticky; top: 0; z-index: 1; background: #fff; }
}

.allocation-lookup { display: flex; gap: 6px; align-items: center; }
.allocation-lookup input { width: 200px; min-width: 120px; height: 36px; }
.lookup-summary { color: var(--muted); margin-bottom: 14px; font-size: 12px; }
.reclaim-list code, .lookup-summary + .table-wrap code { overflow-wrap: anywhere; font-size: 11px; }
.reclaim-list .button-row { gap: 6px; }
dialog:has(.reclaim-list), dialog:has(.lookup-summary) { width: min(1080px,calc(100vw - 32px)); }
dialog[open]:has(.reclaim-list) { display: flex; flex-direction: column; overflow: hidden; }
dialog:has(.reclaim-list) .modal-head, .reclaim-list .usage-tabs { flex-shrink: 0; }
.reclaim-list { min-height: 0; display: flex; flex-direction: column; }
.reclaim-list .table-wrap { max-height: calc(90dvh - 190px); overflow: auto; }
.reclaim-list table { min-width: 860px; }
.reclaim-list th, .reclaim-list td { padding: 10px 12px; }
.reclaim-list thead { position: sticky; top: 0; z-index: 1; }
.account-alerts th:first-child { width: 30%; }
.account-alerts th:nth-child(2) { width: 20%; }
.account-alerts th:nth-child(3) { width: 25%; }
.account-alerts th:last-child { width: 25%; }
@media(max-width:1100px) { .allocation-lookup input { width: 150px; } }
@media(max-width:600px) { .allocation-lookup { width: 100%; } .allocation-lookup input { flex: 1; width: auto; } }

.usage-pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.usage-pagination select { width: 68px; padding: 5px 8px; }
.usage-pagination label { display: flex; gap: 8px; align-items: center; }
.directory-filter small { color: #64798c; }
.directory-info { margin-bottom: 20px; }
.department-picker { min-width: 0; max-width: 100%; }
.filters .department-picker { width: clamp(165px, 22vw, 300px); }
.department-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 35px; padding: 8px 10px;
  border: 1px solid #dfe7f1; border-radius: 5px;
  background: white; color: #344e68; font: inherit; font-size: 13px; text-align: left;
}
.department-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.department-trigger::after, .department-branch::after {
  content: ""; display: inline-block; flex: none; width: 6px; height: 6px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.department-trigger[aria-expanded="true"]::after { transform: rotate(225deg); }
.department-trigger[aria-invalid="true"] { border-color: #b53b36; }
.department-error:not([hidden]) { display: block; margin-top: 4px; color: #a93430; }
.department-trigger:focus-visible, .department-menu button:focus-visible {
  outline: 2px solid var(--gani-blue); outline-offset: -2px;
}
.department-menu:not([hidden]) {
  position: fixed; z-index: 50; display: flex; flex-direction: column;
  box-sizing: border-box; padding: 7px; overflow: hidden;
  border: 1px solid #dfe7f1; border-radius: 6px; background: white;
  box-shadow: 0 6px 24px #193d6526;
}
.department-menu .department-search { width: 100%; margin-bottom: 5px; }
.department-results { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.department-option {
  display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center;
  padding-left: min(calc(var(--depth) * 14px), 30%);
}
.department-choice, .department-branch {
  background: transparent; border: 0; border-radius: 4px; color: #344e68; font: inherit; font-size: 13px;
}
.department-choice { grid-column: 2; text-align: left; overflow-wrap: anywhere; padding: 7px 8px; min-height: 33px; }
.department-choice[aria-pressed="true"] { background: #eaf2fd; color: #1d56a4; font-weight: 600; }
.department-menu button:hover { background: #edf4fc; }
.department-branch { height: 30px; display: grid; place-items: center; }
.department-branch::after { transform: rotate(-45deg); }
.department-branch[aria-expanded="true"]::after { transform: rotate(45deg); }
.department-empty { padding: 12px; color: #64798c; font-size: 13px; }

.tool-checks { display: flex; flex-flow: row wrap; gap: 8px 16px; border: 1px solid #dfe7f1; border-radius: 5px; padding: 8px 12px; }
.tool-checks legend { color: #4f647b; padding: 0 4px; }
.tool-checks label { display: inline-flex; align-items: center; gap: 6px; }
.tool-checks input[type=checkbox] { width: auto; }
.allocation-tool-names { color: #4f647b; font-size: 13px; padding: 6px 0; }
.asset-filter,.asset-line,.asset-card-head,.asset-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.asset-filter{justify-content:flex-start;margin:16px 0}.asset-filter input{width:min(340px,48vw)}.asset-filter>span,.asset-card p,.asset-line small,.asset-card-head,.asset-user small,.asset-specs dt{color:#50677d}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(265px,100%),1fr));gap:16px}.asset-card{min-width:0;background:#fff;color:#162e49;text-decoration:none;border:1px solid #d5dfeb;border-radius:12px;padding:19px;display:block}.asset-card:hover,.asset-card:focus-visible{outline:2px solid #2f7ee1;outline-offset:1px}.asset-card h2{font-size:19px;margin:14px 0 2px}.asset-card p{margin:0}.asset-card-head{font-size:12px}.asset-monitor{width:31px;height:21px;border:2px solid #2f7ee1;border-radius:4px;background:#eaf3ff;position:relative}.asset-monitor:after{content:"";position:absolute;bottom:-6px;left:7px;width:12px;border-bottom:2px solid #2f7ee1}.asset-facts{display:flex;flex-wrap:wrap;gap:5px;margin:16px 0}.asset-facts span{font-size:12px;background:#f1f5fa;padding:3px 7px;border-radius:4px}.asset-card-bottom{border-top:1px solid #e1e9f2;padding-top:12px;font-size:13px}.asset-columns{display:grid;grid-template-columns:1fr 1.2fr;gap:16px}.asset-line,.asset-user{padding:10px 0}.asset-line small,.asset-account{display:block}.asset-account{padding:8px 0}.asset-code,.asset-line,.asset-card{overflow-wrap:anywhere}.asset-specs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.asset-specs dd{margin:3px 0}.asset-pending{margin-top:18px}.asset-pending summary{cursor:pointer}.asset-form{display:grid;gap:12px}.asset-form label{display:grid;gap:4px}.asset-form #asset-persons{display:flex;flex-wrap:wrap;gap:5px}@media(max-width:760px){.asset-columns{grid-template-columns:1fr}.asset-filter{flex-wrap:wrap}}

/* Shared workspace layout for IT, inventory stewards and employees. */
.header-brand, .signed-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.signed-user { flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.4; }
.signed-user small { color: var(--muted); font-size: 11px; }
.header-user { gap: 10px; }
.header-user > .btn { padding-inline: 9px; }
.sidebar { overflow-y: auto; }
.nav-item { min-height: 41px; flex-shrink: 0; }
.nav-item[aria-current] { box-shadow: inset 3px 0 var(--gani-blue); }
.page-heading { flex-wrap: wrap; }
.page-heading > .button-row:empty { display: none; }
.page-heading h1, .panel-head h2, .metric-value { overflow-wrap: anywhere; }
.panel-head, .modal-footer, .asset-line { flex-wrap: wrap; }
:where(.btn, .nav-item, .guide-option, .asset-card, summary, a):focus-visible {
  outline: 2px solid var(--gani-deep); outline-offset: -2px;
}
.filters, .asset-filter {
  background: white; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; margin: 0 0 16px; flex-wrap: wrap; gap: 10px;
}
.asset-filter .department-picker { flex: 0 1 220px; }
.asset-filter > input { flex: 1 1 190px; max-width: 360px; min-width: 0; }
.asset-filter > span { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.allocation-lookup input, .asset-filter :is(select, input), .asset-form :is(input:not([type=checkbox]), select),
#asset-access select { min-height: 36px; min-width: 0; max-width: 100%; border: 1px solid #d4dfeb; border-radius: 5px; background: white; color: var(--ink); font: inherit; padding: 6px 9px; }
.asset-form #asset-persons:empty { display: none; }
.asset-form :is(input, select), #asset-access select { width: 100%; }
#asset-access .modal-body, #asset-access label { display: grid; gap: 8px; }
.asset-card { display: flex; flex-direction: column; border-radius: 8px; }
.asset-card:hover { text-decoration: none; }
.asset-card-head { font-variant-numeric: tabular-nums; }
.asset-card-bottom { margin-top: auto; }
.asset-facts .pending { background: #fff4df; color: #885810; }
.asset-facts .checked { background: #e9f5ee; color: #286148; }
.asset-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.asset-columns .panel { padding: 0 18px 16px; overflow-wrap: anywhere; }
.asset-columns .panel-head, .employee-computers .panel-head { padding: 15px 0 12px; border-bottom: 1px solid var(--line); }
.asset-columns .asset-specs { background: var(--paper); padding: 13px; border-radius: 6px; }
.asset-columns .asset-user + .asset-user, .employee-computers .asset-line + .asset-line { border-top: 1px solid var(--line); }
.asset-specs dt { font-size: 12px; }
.employee-computers { padding: 0 18px 4px; margin: 16px 0; }
.employee-computers .asset-line { justify-content: flex-start; }
.employee-computers .asset-line > div { margin-right: auto; }
.assigned-accounts { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.assigned-accounts .tool-top, .assigned-accounts .kv { margin: 0; }
.assigned-accounts .tool-card { padding: 16px; }
.assigned-accounts .button-row { align-self: end; }
.manual-layout { align-items: start; }
.manual-layout .manual-content { max-width: 76ch; }
.tool-checks, .field, .modal-body > *, .usage-tabs, .metric { min-width: 0; }
.usage-tabs { overflow-x: auto; }
.usage-tabs > * { flex: none; white-space: nowrap; }
.metric-value, td { font-variant-numeric: tabular-nums; }
.table-wrap { max-width: 100%; overflow: auto; }
.table-wrap table { min-width: 36rem; }
td .btn { white-space: nowrap; }
.modal-head, .modal-footer { position: sticky; z-index: 2; background: #fff; }
.modal-head { top: 0; }
.modal-footer { bottom: 0; }
dialog[open] { overscroll-behavior: contain; }
.asset-pending summary { padding: 12px 16px; }
.asset-pending .asset-line { padding-inline: 16px; }

@media (min-width: 761px) {
  .content { padding: 22px clamp(18px, 2vw, 36px) 32px; }
  .mobile-identity { display: none; }
  .directory-info .table-wrap { max-height: min(35dvh, 320px); }
  .directory-info thead { position: sticky; top: 0; z-index: 1; }
  .manual-layout > .panel:first-child { position: sticky; top: 80px; max-height: calc(100dvh - 96px); overflow-y: auto; }
  .asset-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .asset-form > :nth-child(n+5) { grid-column: 1 / -1; }
  
  .login-card { margin-top: clamp(32px, 10vh, 110px); }
}
@media (min-width: 900px) {
  .allocation-workspace { height: max(390px, calc(100dvh - 296px)); }
}
@media (max-width: 760px) {
  .global-header { position: sticky; padding-inline: 10px; gap: 4px; }
  .header-user, .header-brand { gap: 3px; }
  .header-user .btn { min-height: 36px; padding-inline: 6px; }
  .signed-user { display: none; }
  .header-brand .mobile-toggle { min-width: 36px; padding-inline: 5px; font-size: 19px; }
  .shell.menu-open .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; max-height: 65dvh; align-content: start; }
  .sidebar .mobile-identity { grid-column: 1 / -1; padding: 6px 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
  .sidebar .nav-section { grid-column: 1 / -1; margin: 6px 8px 2px; }
  .page-heading { align-items: flex-start; }
  .asset-columns { grid-template-columns: minmax(0, 1fr); }
  .filters, .asset-filter { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 10px; gap: 8px; }
  .filters :is(select, input), .filters .department-picker, .asset-filter > * { min-width: 0; width: 100%; max-width: 100%; }
  .asset-filter > span { width: auto; grid-column: 1 / -1; }
  .manual-layout .panel:first-child { max-height: 34dvh; overflow: auto; }
  .panel-head { gap: 8px; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
  dialog { width: calc(100% - 16px); max-height: calc(100dvh - 20px); }
  .modal-head, .modal-footer, .modal-body { padding: 14px 16px; }
}
@media (max-width: 420px) {
  .header-brand .brand img { width: 54px; }
  .header-brand .brand { gap: 5px; }
  .brand strong { font-size: 14px; }
  .header-user .badge { padding-inline: 4px; }
  .asset-filter :is(#asset-filter, #asset-search) { font-size: 13px; }
}


.asset-grid button.asset-card { font: inherit; text-align: left; cursor: pointer; }
.asset-filter { flex-wrap: wrap; }

/* Inventory workspace */
.inventory-filterbar,.asset-grid .asset-card{
  border:1px solid rgba(174,196,218,.65);
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(239,246,253,.84));
  box-shadow:inset 0 1px 0 #fff,0 2px 5px rgba(29,65,102,.045),0 7px 18px rgba(29,65,102,.045);
}
.inventory-filterbar{margin:14px 0 16px;padding:12px 14px;border-radius:12px}
.inventory-filter-row{display:grid;grid-template-columns:minmax(190px,2fr) repeat(3,minmax(110px,1fr));gap:9px;align-items:center}
.inventory-filterbar :is(select,input,.department-trigger){width:100%;min-width:0;height:36px;padding:0 10px;border:1px solid #ccdae8;border-radius:7px;background:#fff;color:#29425a;font:inherit}
.inventory-filter-foot,.extra-filters[open]>div,.handover-head{display:flex;align-items:center;gap:10px}
.inventory-filter-foot{margin-top:9px;color:#536b82;font-size:13px}
.inventory-filter-foot>span{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.extra-filters summary{cursor:pointer;color:#385874}.extra-filters[open]>div{margin-top:8px;flex-wrap:wrap}.extra-filters select{width:auto}
.asset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.asset-grid .asset-card{padding:13px 14px 11px;border-radius:12px;gap:0;transition:box-shadow .16s,border-color .16s}
@supports (backdrop-filter:blur(8px)){.asset-grid .asset-card{backdrop-filter:blur(8px)}}
.asset-grid .asset-card:hover{border-color:#9bbdde;outline:0;box-shadow:inset 0 1px 0 #fff,0 5px 16px rgba(34,75,118,.13)}
.asset-grid .asset-card:focus-visible{outline:2px solid #2f7ee1}
.asset-grid .asset-card-head{gap:6px}.asset-grid .asset-card h2{margin:10px 0 3px;font-size:16px;line-height:1.4}
.asset-grid :is(h2,.card-code,.category-label>span:last-child,.asset-card-bottom strong,.asset-card-bottom small){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-label{display:inline-flex;align-items:center;gap:7px;min-width:0;font-weight:600;color:#3e566e}
.asset-glyph,.auto-glyph{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:#e7effa;color:#295da0}
.asset-glyph svg{width:20px;height:20px}
.tint-teal{background:#dff3ef;color:#21776e}.tint-violet{background:#eee9fa;color:#7254ac}.tint-amber{background:#fcf0d8;color:#976217}
.tint-rose{background:#fae8ed;color:#9a4261}.tint-sky{background:#deeffa;color:#256f97}.tint-slate{background:#e9edf2;color:#556777}
.asset-card-head .custody{color:#657489;background:#edf0f4;padding:2px 7px;border-radius:12px;white-space:nowrap;font-size:11px}
.asset-card-head .in-use{background:#e4f2ed;color:#2f6854}
.asset-grid .card-code{font-size:12px;color:#5b7185}
.asset-grid .asset-card-bottom{margin-top:10px;padding-top:8px;gap:5px}.asset-card-bottom>div{min-width:0}.asset-card-bottom small{color:#61768b;font-size:11px}.asset-card-bottom>span{white-space:nowrap;color:#36648d;font-size:12px}
.icon-field{grid-column:1/-1;min-width:0;border:0;padding:0}.icon-field legend{margin-bottom:6px}
.icon-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:5px}
.icon-options label{display:flex;position:relative;align-items:center;gap:5px;padding:4px;border:1px solid #d8e2ed;border-radius:7px;font-size:12px;cursor:pointer}
.icon-options label:has(:checked){border-color:#2f7ee1;background:#edf5fd}.icon-options label:focus-within{outline:2px solid #2f7ee1}
.icon-options input[type=radio]{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.icon-options .asset-glyph,.auto-glyph{width:25px;height:25px}
.handover-head{justify-content:space-between;flex-wrap:wrap;padding:10px 14px}.handover-head .usage-tabs{margin:0}
@media(max-width:1100px){.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.asset-grid{grid-template-columns:1fr}.inventory-filter-row input{grid-column:1/-1}.inventory-filter-foot{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.asset-grid .asset-card{transition:none}}

.extra-filters summary,.inventory-view a,.inventory-pager button{display:inline-flex;align-items:center;gap:6px;border-radius:7px}
.extra-filters summary{list-style:none;padding:5px 10px;border:1px solid #bed0e4;background:#fff;font-weight:600;font-size:12px}
.extra-filters summary::-webkit-details-marker{display:none}
.extra-filters summary:after{content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 1px 3px}
.extra-filters[open] summary{background:#e8f2ff;color:#205fa5}.extra-filters[open] summary:after{transform:rotate(225deg);margin:3px 1px 0}
.inventory-view{display:inline-flex;padding:2px;border:1px solid #c4d4e6;border-radius:8px;background:#eaf0f7}
.inventory-view a{padding:3px 9px;color:#4d6680;font-size:12px}.inventory-view a.active{background:#fff;color:#17589c;box-shadow:0 1px 4px #23456620}
.inventory-filter-foot{flex-wrap:wrap}.inventory-pager{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:flex-end;margin:14px 0;color:#4b637c;font-size:13px}
.inventory-pager :is(input,select){width:65px;border:1px solid #c7d7e8;border-radius:6px;padding:5px}
.inventory-list td:nth-child(2){max-width:270px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-fields{border:0;margin:0;padding:0;min-width:0;display:grid;gap:10px}.device-fields[hidden],#register-mode[hidden]{display:none}
.inventory-kpis,.inventory-charts{display:grid;gap:12px;margin:12px 0}.inventory-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-charts{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.inventory-kpi{display:grid;gap:6px;margin:0;padding:16px;border-top:3px solid #538dce}.inventory-kpi strong{font-size:22px}.inventory-kpi :is(small,span){color:#526981;font-size:12px}
.inventory-bars{max-height:330px;overflow:auto;padding:8px 14px}.inventory-bars a{display:grid;grid-template-columns:minmax(60px,1.3fr) minmax(20px,1fr) auto;align-items:center;gap:7px;padding:7px 0;color:#294968;font-size:12px}.inventory-bars strong{font-variant-numeric:tabular-nums}.inventory-bars i{height:6px;border-radius:5px;background:#e4edf6;overflow:hidden}.inventory-bars b{display:block;background:#5795d7;height:100%}
@media(max-width:900px){.inventory-charts{grid-template-columns:1fr}.inventory-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Inventory actions stay aligned while their independent option rows expand. */
.filter-toggle,.sheet-nav button{font:inherit;border:1px solid #c8d7e7;background:white;color:#35536d;border-radius:7px;padding:6px 10px;cursor:pointer}
.filter-toggle::after{content:"";display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 3px 8px}
.filter-toggle[aria-expanded=true],.sheet-nav [aria-pressed=true]{background:#e8f2ff;color:#185994;border-color:#9fbfe4}
.filter-toggle[aria-expanded=true]::after{transform:rotate(225deg);margin-bottom:0}
.inventory-options:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,230px));gap:12px;border-top:1px solid #dce6ef;margin-top:10px;padding-top:10px}
.inventory-options label,.import-assets label,.photo-maintenance label{display:grid;gap:5px;color:#415e77;font-size:13px}
.inventory-options select{width:100%;min-width:0}
.inventory-filter-foot{align-items:center;min-height:36px}
.inventory-kpi small{display:flex;align-items:center;gap:9px}
.inventory-kpi:nth-child(2) .asset-glyph{background:#fdf1d7;color:#886011}
.inventory-kpi:nth-child(4) .asset-glyph{background:#e7f3f2;color:#296758}
.stat-chart{padding:18px 20px;min-width:0}.stat-chart header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.stat-chart h2{margin:0;font-size:17px}.stat-chart header small,.chart-key small{color:#536b80}
.ring-layout{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:22px}
.custody-ring{width:116px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}
.custody-ring span{width:75%;height:75%;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:50%;background:white;color:#536b80;font-size:12px}
.custody-ring b{font-size:25px;color:#123858;font-variant-numeric:tabular-nums}
.chart-key{display:grid;grid-template-columns:10px 1fr auto 48px;align-items:center;gap:8px;padding:6px 0;color:#264661;font-size:13px}.chart-key i{width:9px;height:9px;border-radius:3px}.chart-key small{text-align:right}
.source-strip{height:18px;border-radius:5px;overflow:hidden;display:flex;gap:2px;margin:24px 0 14px}
.rank-chart{display:grid;gap:10px}.rank-chart a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;color:#294964;font-size:13px}.rank-chart a i{grid-column:1/-1;background:#ebf1f6;height:6px;border-radius:3px}.rank-chart em{height:100%;display:block;border-radius:3px;background:#4d8fc8}.stat-chart:last-child .rank-chart em{background:#328a7c}
.sheet-downloads,.sheet-nav,.sheet-pager,.sheet-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.sheet-downloads{margin-bottom:16px}.sheet-downloads a{border:1px solid #bed2e7;border-radius:8px;padding:8px 12px;background:#f3f8ff}.import-assets small,.photo-maintenance small{color:#536b80}.import-assets label{margin-bottom:8px}
.photo-maintenance{grid-column:1/-1;background:#f0f6fc;border:1px solid #d5e3ef;border-radius:10px;padding:12px}
#modal:has(.asset-sheet){width:min(1040px,94vw);max-width:96vw;max-height:96dvh;margin:auto;padding:0}
#modal:has(.asset-sheet) .modal-head,#modal:has(.asset-sheet) .modal-footer{position:static;padding:12px 20px}
.asset-sheet{padding:14px 20px 16px;background:#f6f9fc}
.asset-sheet>header{display:flex;gap:12px;align-items:center}
.asset-sheet>header>div{display:grid;min-width:0}.asset-sheet>header>div span{font:13px ui-monospace,monospace;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#4b647a}
.state-tag{display:inline-block;background:#e7f2f0;color:#23695e;padding:3px 9px;border-radius:20px;font-size:12px}
.sheet-nav{margin:12px 0}.sheet-nav button{font-size:13px}
.sheet-grid{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(160px,1fr);gap:12px;align-items:stretch}
.sheet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}
.sheet-field,.photo-cover,.photo-stage,.sheet-empty{border:1px solid #d8e4ef;background:#fff;border-radius:10px}
.sheet-field{min-width:0;padding:10px 12px}.sheet-field small{display:block;color:#536b80;margin-bottom:5px}.sheet-field strong{font-size:14px;font-weight:550;overflow-wrap:anywhere;line-height:1.45;white-space:normal}
.asset-identifier{font-family:ui-monospace,monospace}.photo-cover,.sheet-empty{display:grid;place-content:center;place-items:center;gap:8px;color:#425f78;font-size:13px}.photo-cover{padding:10px;cursor:pointer}.photo-cover img{width:100%;height:clamp(70px,18vh,150px);object-fit:contain}
.sheet-empty{min-height:100px}.photo-stage{margin:0;padding:8px;display:grid}.photo-stage img{width:100%;height:clamp(96px,42dvh,360px);object-fit:contain}.photo-stage figcaption{display:flex;justify-content:space-between;gap:12px;padding:6px}.photo-stage figcaption span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-stage a{flex:none}
.sheet-pager{justify-content:center;margin-top:8px;font-size:12px}.sheet-actions{justify-content:flex-end}
@media(max-width:700px){.sheet-grid{grid-template-columns:minmax(0,1fr)}.photo-cover{display:none}.sheet-fields{gap:6px}.sheet-field{padding:8px}.asset-sheet{padding:10px}.sheet-actions{gap:5px}.sheet-nav{gap:4px}.sheet-nav button{padding:5px 7px}.ring-layout{gap:10px}.custody-ring{width:82px}.stat-chart{padding:14px}}
@media(max-height:550px){.asset-sheet>header{display:none}.sheet-nav{margin:3px 0 7px}.photo-stage img{height:28dvh}.sheet-field{padding:5px 9px}#modal:has(.asset-sheet) .modal-head,#modal:has(.asset-sheet) .modal-footer{padding:5px 12px}}

.source-tag{font-size:12px;color:#78591e;background:#faf0d7;border-radius:15px;padding:3px 8px;flex-shrink:0}

.people-picker{position:relative;min-width:0}.people-picker>input:not([type=hidden]){width:100%}.people-menu:not([hidden]){display:block;max-height:min(240px,33dvh);overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #9dbddf;border-radius:8px;padding:3px;background:white;margin-top:4px}
.people-menu::-webkit-scrollbar{width:11px}.people-menu::-webkit-scrollbar-thumb{background:#8ca7c1;border:2px solid white;border-radius:8px}.people-menu button{width:100%;text-align:left;display:grid;gap:2px;font:inherit;background:white;color:#1b3b55;border:0;border-radius:4px;padding:6px 10px;cursor:pointer}.people-menu small{color:#526a80}.people-menu button:hover,.people-menu [aria-selected=true]{background:#eaf2ff}
[data-asset-dept] output{display:block;padding:8px 10px;color:#174775;background:#edf4fb;border-radius:6px}.drag-category{cursor:grab;border:0;background:#f1f5fa;color:#476580;border-radius:5px;font-size:21px;line-height:1.4}.category-drop{box-shadow:inset 0 2px #2f7ee1}

.department-results{scrollbar-gutter:stable;scrollbar-color:#8ca7c1 #f2f6fa}.field[hidden]{display:none}

/* Shared surfaces and controls for the inventory, AI and reporting workspaces. */
:root{
  --workspace-surface:linear-gradient(145deg,rgba(255,255,255,.97),rgba(239,246,253,.84));
  --workspace-edge:rgba(174,196,218,.65);
  --workspace-shadow:inset 0 1px 0 #fff,0 2px 5px rgba(29,65,102,.045),0 7px 18px rgba(29,65,102,.045);
  --workspace-radius:12px;
}
.inventory-filterbar,.asset-grid .asset-card,.filters,.allocation-toolbar,.tool-card,.metric,.allocation-card,
.login-card,.device-gate{background:var(--workspace-surface);border:1px solid var(--workspace-edge);border-radius:var(--workspace-radius);box-shadow:var(--workspace-shadow)}
.content .panel,dialog{border:1px solid var(--workspace-edge);border-radius:var(--workspace-radius);background-color:#fff;box-shadow:var(--workspace-shadow)}
.content .panel-head,.modal-head{border-bottom:1px solid #e0e9f2;background:linear-gradient(110deg,#fff,#f4f8fc);border-radius:var(--workspace-radius) var(--workspace-radius) 0 0}
.content .panel-head>h2,.modal-head h2{color:#213e5e;font-weight:600}
.filters{padding:12px 14px;gap:9px;align-items:center;flex-wrap:wrap}
.filters :is(select,input,.department-trigger),.allocation-picker select,.allocation-lookup input,
.field :is(select,input:not([type=checkbox],[type=radio]),textarea),.asset-form :is(select,input:not([type=checkbox],[type=radio])){border-color:#ccdae8;border-radius:7px;color:#29425a;background-color:#fff}
.filters :is(select,input,.department-trigger),.allocation-picker select{min-height:36px}
.btn{border-radius:7px}.badge{border-radius:99px;padding:3px 9px;line-height:1.35}
.metrics{gap:12px}.content .metric,.content .inventory-kpi{border-top:3px solid #538dce;padding:15px 17px}
.metric-symbol{display:inline-grid;place-items:center;background:#e6eff9;border-radius:8px;width:28px;height:28px;color:#2f659f}
.metric-value{font-size:clamp(21px,2vw,29px);margin:9px 0 6px}
.content .panel th{background-color:#f1f6fb;color:#305575}.content .panel td{border-bottom-color:#e8eff6}
.content .panel tbody tr:hover td{background-color:#f6faff}
.tool-card,.allocation-card{min-width:0}.tool-card h3,.asset-user h3{color:#203e5b}
.guide-option{border-radius:8px;text-align:left}.guide-option.active{background:#e8f2ff;color:#1d56a4}
.guide-option:focus-visible,.btn:focus-visible,.nav-item:focus-visible,.asset-card:focus-visible{outline:2px solid #2f7ee1;outline-offset:2px}
.nav-icon svg{width:19px;height:19px;display:block;margin:auto}
.modal-footer{background:#f8fbff}.content .empty{color:#61788c}
@media(max-width:650px){.filters{padding:10px;gap:7px}.filters>*{max-width:100%;min-width:0}.filters .department-picker{flex:1 1 145px}.content .metric,.content .inventory-kpi{padding:12px}.allocation-lookup input{min-width:0}}

.assigned-platforms{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(350px,100%),1fr));gap:14px;align-items:start;margin-bottom:16px}
.assigned-platforms>.assigned-platform{min-width:0;margin:0}.assigned-platforms .assigned-accounts{padding:12px;gap:9px}.assigned-platforms .kv{gap:10px}.assigned-platforms .kv>span:first-child{flex-shrink:0}

#modal .modal-head [aria-label="关闭"]{display:grid;place-content:center;flex:none;width:44px;height:44px;padding:0;border-radius:10px;font-size:28px;line-height:1}
#modal .modal-body :is(label,fieldset,select,input,.field,.people-picker){min-width:0;max-width:100%;box-sizing:border-box}
#modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){#modal .form-grid{grid-template-columns:minmax(0,1fr)}}
.people-menu:not([hidden]){box-sizing:border-box;z-index:1000}
.asset-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:8px}
.asset-photo-grid figure{margin:0;min-width:0;border:1px solid #dbe5f2;border-radius:8px;background:white;padding:5px}
.asset-photo-grid img{width:100%;height:106px;object-fit:contain;display:block}
.asset-photo-grid figcaption{display:flex;gap:6px;align-items:center;font-size:12px}
.asset-photo-grid figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.detail-photos,.photo-maintenance{min-width:0}
.detail-photos strong,.photo-maintenance strong{display:block;margin-bottom:6px}
.detail-photos .asset-photo-grid,.chart-scroll,.stat-chart .rank-chart{max-height:340px;overflow:auto;scrollbar-gutter:stable}
.photo-empty{padding:12px;color:#607790}

.department-picker{position:relative;min-width:0}
.department-picker:has(>.department-clear:not([hidden]))>.department-trigger{padding-right:62px}
.department-clear:not([hidden]){position:absolute;right:27px;top:50%;transform:translateY(-50%);width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:#526b83;font-size:21px;line-height:1;cursor:pointer}
.department-clear:hover,.department-clear:focus-visible{background:#e5effb;color:#104e95}
.report-scope{margin-bottom:10px}.report-scope select{max-width:100%}

.asset-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.asset-actions .btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:38px;padding:0 14px;font-size:14px;line-height:1.2;border-radius:8px}
.asset-photo-grid{grid-template-columns:repeat(auto-fill,minmax(min(116px,100%),1fr));align-content:start}
.asset-photo-grid figure{position:relative;padding:0;overflow:hidden;background:#eaf0f5}
.asset-photo-grid .photo-thumb{display:block;width:100%;aspect-ratio:4/3;border:0;padding:0;background:transparent;cursor:zoom-in}
.asset-photo-grid .photo-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.photo-download,.photo-close{display:grid;place-items:center;position:absolute;right:5px;bottom:5px;height:32px;width:32px;border:1px solid #cbd8e4;border-radius:8px;background:#fffffff2;color:#234867;cursor:pointer}
.asset-photo-viewer[open]{display:grid;place-items:center;min-width:min(320px,90vw);min-height:min(220px,80dvh);box-sizing:border-box;width:fit-content;max-width:94vw;max-height:93dvh;padding:0;border:0;overflow:hidden;background:#152132;border-radius:12px}
.asset-photo-viewer::backdrop{background:#101c2ad9}
.asset-photo-viewer img{display:block;max-width:92vw;max-height:90dvh;object-fit:contain}
.asset-photo-viewer .photo-close{top:8px;right:8px;bottom:auto;width:42px;height:42px;font-size:25px}
.inventory-charts{align-items:stretch;grid-auto-rows:1fr}
.inventory-charts .stat-chart{display:flex;flex-direction:column;align-self:stretch;min-width:0;margin:0}
.stat-chart .chart-scroll,.stat-chart .rank-chart,.stat-chart .table-wrap{max-height:none;overflow:visible;scrollbar-gutter:auto;min-width:0}
.stat-chart [hidden]{display:none!important}
#inventory-results[data-stats=true] .table-wrap{overflow:visible}
#inventory-results[data-stats=true] table{width:100%;min-width:0;table-layout:fixed}
#inventory-results[data-stats=true] :is(th,td){min-width:0;white-space:normal;overflow-wrap:anywhere}
.stat-chart .chart-key{grid-template-columns:9px minmax(0,1fr) auto auto;gap:6px}
.stat-chart .chart-key span{overflow-wrap:anywhere}
.chart-pager{margin-top:auto;padding-top:8px;display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:12px;color:#46607a}
.chart-pager button{width:32px;font-size:18px;line-height:1}
@media(max-width:1050px){.stat-chart .ring-layout{grid-template-columns:minmax(0,1fr)}.stat-chart .custody-ring{justify-self:center}}
@media(max-width:900px){.inventory-charts{grid-auto-rows:auto}}
@media(max-width:600px){#inventory-results[data-stats=true] :is(td,th){padding:7px 3px;font-size:12px}.asset-actions{gap:5px}.asset-actions .btn{padding-inline:9px}}

#modal:has(.paged-asset-editor){width:min(900px,96vw);padding:0;max-height:96dvh}
.paged-asset-editor .editor-sections{padding:10px 20px 0;margin:0;gap:5px;display:flex;flex-wrap:wrap}
.paged-asset-editor .modal-body{padding:14px 20px;align-items:start;min-height:min(230px,30dvh)}
.paged-asset-editor .modal-footer{padding:10px 20px}
.asset-step-off{display:none!important}
.paged-asset-editor .device-fields:not(.asset-step-off):not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:1/-1}
.paged-asset-editor .photo-maintenance{grid-column:1/-1;margin:0}
.paged-asset-editor .sheet-pager{margin:4px 12px}
.account-entry-options{border:1px solid #d9e4ee;border-radius:8px;padding:8px 12px}.account-entry-options summary{color:#315e8b;font-weight:550;cursor:pointer}.account-entry-options .tool-checks{margin:8px 0 0}
.code-output,.asset-form label>output{display:flex;align-items:center;min-height:36px;padding:5px 12px;box-sizing:border-box;background:#f3f7fc;border:1px solid #d6e2ee;border-radius:8px;color:#244669;font:600 14px/1.35 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.asset-sheet header>div>span,.sheet-field .asset-identifier{font:600 14px/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;color:#375676}
.asset-photo-grid figure .photo-remove{position:absolute;right:5px;top:5px;z-index:1;cursor:pointer;border:1px solid #edcbc8;border-radius:7px;background:#fff;color:#a32b27;font:600 12px/1 system-ui;padding:6px 8px}
.paged-asset-editor .asset-photo-grid figure{height:clamp(68px,15dvh,132px)}
.paged-asset-editor .asset-photo-grid img{width:100%;height:100%;object-fit:contain}
.paged-asset-editor .photo-thumb{height:100%;width:100%}
.paged-asset-editor .modal-body .error-text:empty{display:none}
@media(max-width:650px){.paged-asset-editor .device-fields:not(.asset-step-off):not([hidden]){grid-template-columns:minmax(0,1fr)}.paged-asset-editor .modal-body{padding:9px 12px}.paged-asset-editor .editor-sections{padding:7px 12px 0}}
