:root {
  --blue: #0070d2;
  --blue-dark: #005fb2;
  --blue-soft: #f2f8ff;
  --orange: #ff7d22;
  --ink: #333333;
  --muted: #666666;
  --faint: #999999;
  --line: #e5eaf0;
  --success: #13a66a;
  --surface: #ffffff;
  --background: #f7f9fc;
  --shadow: 0 18px 60px rgba(26, 35, 51, .10);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(0,112,210,.22); outline-offset: 2px; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: #fff; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 52px clamp(48px, 7vw, 112px); color: white; background: linear-gradient(145deg, #0065bb 0%, #0070d2 56%, #1387e5 100%); }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.brand-panel::before { width: 650px; height: 650px; right: -330px; top: -240px; }
.brand-panel::after { width: 420px; height: 420px; left: -220px; bottom: -260px; }
.brand-logo { width: min(330px, 78%); height: auto; filter: brightness(0) invert(1); object-fit: contain; object-position: left; position: relative; z-index: 1; }
.brand-copy { max-width: 590px; margin: auto 0; position: relative; z-index: 1; }
.brand-copy .eyebrow { color: #bde2ff; }
.brand-copy h1 { margin: 0; max-width: 560px; font-size: clamp(42px, 5vw, 68px); line-height: 1.13; letter-spacing: -.045em; }
.brand-copy > p:last-child { max-width: 500px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.8; }
.trust-points { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-points span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 42px; }
.login-card { width: min(430px, 100%); }
.mobile-brand { display: none; }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.025em; }
.login-card > .muted { margin: 10px 0 34px; }
label { display: block; margin-bottom: 9px; color: #414b59; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 48px; border: 1px solid #d8dee7; border-radius: 10px; padding: 0 14px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
input:hover, select:hover { border-color: #aeb8c6; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,112,210,.08); outline: none; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.label-row label { margin: 0; }
.link-button { border: 0; padding: 3px; background: none; color: var(--blue); font-size: 13px; cursor: pointer; }
.row-actions { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }.danger-link { border: 0; padding: 3px; background: none; color: #c53030; font-size: 13px; cursor: pointer; }
.application-state { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef3f8; color: #344054; }.application-state-active { background: #e8f7ef; color: #146c43; }.application-state-disabled { background: #fff0f0; color: #b42318; }
.runtime-client-summary { display: grid; gap: 12px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbff; }.runtime-client-summary > div:first-child > strong, .runtime-client-summary > div:first-child > span { display: block; }.runtime-client-summary > div:first-child > span, .runtime-client-item span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }.runtime-client-summary > div:last-child { display: grid; gap: 8px; }.runtime-client-summary p { margin: 0; }.runtime-client-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; background: white; border: 1px solid #e5ebf2; overflow-wrap: anywhere; }.runtime-client-item strong { font-size: 12px; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.text-icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 10px; padding: 0 18px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.primary-button { width: 100%; margin-top: 24px; color: #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(0,112,210,.2); }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button.compact { width: auto; min-height: 42px; margin: 0; }
.secondary-button { color: var(--blue); background: #fff; border-color: #b9d7ef; }
.secondary-button:hover { background: var(--blue-soft); }
.danger-button { color: #fff; background: #b42318; border-color: #b42318; }
.danger-button:hover { background: #8f1c13; }
.danger-button:disabled { cursor: wait; opacity: .62; }
.application-access { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbff; }
.application-access > div:first-child > strong, .application-access > div:first-child > span, .application-access-row strong, .application-access-row span { display: block; }
.application-access > div:first-child > span, .application-access-row span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.application-access-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.application-access-row .secondary-button { flex: none; }
.application-access-row .danger-button { color: #b42318; border-color: #f0b8b2; background: #fff8f7; }
.application-access-row .danger-button:hover { background: #fff0ee; }
.permission-editor { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.permission-editor > div:first-child > strong, .permission-editor > div:first-child > span { display: block; }
.permission-editor > div:first-child > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.permission-fieldset { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.permission-fieldset legend { padding: 0 6px; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.permission-group-title { grid-column: 1 / -1; margin-top: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 12px; }
.permission-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 10px; border: 1px solid #dbe4ee; border-radius: 9px; background: #fff; cursor: pointer; }
.permission-check input { width: auto; margin: 2px 0 0; }
.permission-check span, .permission-check small { display: block; }
.permission-check small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.permission-check.sensitive { border-color: #f2c7a5; background: #fffaf5; }
.effective-permissions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
#application-connectivity-result { max-width: calc(100% - 32px); margin: 16px; padding: 12px; overflow-wrap: anywhere; white-space: pre-wrap; text-align: left; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.permission-tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #edf5ff; color: #245c95; font-size: 9px; }
.first-login { width: 100%; margin-top: 20px; padding: 14px; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; border: 1px solid #dbeafa; border-radius: 12px; text-align: left; background: var(--blue-soft); cursor: pointer; }
.first-login strong, .first-login small { display: block; }
.first-login small { margin-top: 3px; color: var(--muted); }
.icon-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--orange); font-weight: 800; }
.security-note { margin: 24px auto 0; max-width: 340px; text-align: center; color: var(--faint); font-size: 11px; line-height: 1.6; }
.topbar { height: 68px; position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.topbar-brand img { width: 155px; height: 38px; object-fit: contain; }
.topbar-brand span { padding-left: 14px; border-left: 1px solid var(--line); }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 8px; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 20px; cursor: pointer; }
.icon-button:hover { background: var(--blue-soft); }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--orange); font-size: 9px; font-weight: 800; }
.user-chip { display: flex; gap: 10px; align-items: center; margin-left: 8px; border: 0; border-radius: 12px; padding: 6px 8px; background: transparent; cursor: pointer; text-align: left; }
.user-chip:hover { background: var(--blue-soft); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(140deg, var(--blue), #38a0ec); font-weight: 800; }
.user-text strong, .user-text small { display: block; }
.user-text strong { font-size: 13px; }.user-text small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.user-menu { position: absolute; z-index: 30; top: 56px; right: 0; width: 230px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }.user-menu > strong, .user-menu > small, .user-menu > span { display: block; }.user-menu > small, .user-menu > span { margin-top: 4px; color: var(--muted); font-size: 10px; }.user-menu > span { margin-bottom: 12px; }.user-menu button { width: 100%; min-height: 38px; border: 0; border-radius: 8px; padding: 0 10px; background: transparent; text-align: left; cursor: pointer; }.user-menu button:hover { background: var(--blue-soft); }.user-menu .danger-link { color: #b42318; }
.workspace-body { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 230px 1fr; }
.sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; padding: 22px 14px; border-right: 1px solid var(--line); background: white; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; padding: 0 12px; background: none; color: #536071; text-align: left; cursor: pointer; }
.nav-item:hover { background: #f6f9fc; }.nav-item.active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.nav-item > span:first-child { width: 20px; text-align: center; font-size: 16px; }
.nav-count { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 8px; color: var(--blue); background: #dbeeff; font-size: 10px; text-align: center; }
.nav-count.orange { color: #b64e04; background: #fff0e5; }
.nav-divider { height: 1px; margin: 18px 10px; background: var(--line); }
.nav-label { margin: 0 12px 8px; color: #9ba5b2; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #f7faf9; font-size: 11px; }
.sidebar-footer strong, .sidebar-footer small { display: block; }.sidebar-footer small { margin-top: 2px; color: var(--faint); font-size: 9px; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(19,166,106,.1); }
.content { min-width: 0; padding: 36px clamp(28px, 4vw, 64px) 64px; }
.page { display: none; max-width: 1340px; margin: 0 auto; }.page.active { display: block; }
.welcome-row, .page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.welcome-row h1, .page-title h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }.welcome-row p:last-child, .page-title p:last-child { margin: 8px 0 0; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 34px; }
.stat-card { min-height: 106px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 20px rgba(26,35,51,.035); }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; }.stat-icon.blue { color: var(--blue); background: #e8f4ff; }.stat-icon.green { color: var(--success); background: #e8f8f1; }.stat-icon.orange { color: var(--orange); background: #fff1e7; }
.stat-card strong, .stat-card small { display: block; }.stat-card strong { font-size: 24px; }.stat-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.trend { align-self: end; color: var(--blue); font-size: 10px; }.trend.safe { color: var(--success); }.trend.warn { color: #c05a12; }
.section-heading, .panel-header { display: flex; justify-content: space-between; align-items: center; }
.section-heading h2, .panel-header h2 { margin: 0; font-size: 17px; }.section-heading p, .panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 16px; }
.app-card { min-height: 145px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border .2s, transform .2s, box-shadow .2s; }
.app-card:hover:not(.locked) { border-color: #9ecbed; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,112,210,.09); }
.app-card.featured { border-top: 3px solid var(--blue); }
.app-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: white; font-weight: 800; }.app-icon.douyin { background: #1a2333; box-shadow: inset -5px -5px 0 rgba(255,125,34,.75); }.app-icon.media { background: linear-gradient(140deg, #0070d2, #40a8f4); }.app-icon.private { background: linear-gradient(140deg, #13a66a, #55c998); }.app-icon.business { background: linear-gradient(140deg, #805ad5, #ad8bea); }
.app-copy strong, .app-copy small, .app-meta { display: block; }.app-copy strong { margin-top: 2px; font-size: 14px; }.app-copy > small { min-height: 34px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }.app-meta { margin-top: 12px; color: var(--success); font-size: 10px; }
.status-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--success); }.arrow, .external-entrypoint { color: var(--blue); }.external-entrypoint { align-self: center; font-size: 10px; font-weight: 700; white-space: nowrap; }.lock { align-self: center; padding: 4px 7px; border-radius: 7px; color: var(--faint); background: #f1f3f6; font-size: 9px; }.locked { cursor: default; opacity: .7; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 16px; margin-top: 28px; }
.panel { border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: white; }
.task-list { margin: 13px -8px -8px; }.task-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 8px; border: 0; border-top: 1px solid #f0f2f5; background: none; text-align: left; cursor: pointer; }.task-row:hover { background: #fafcff; }
.task-check { width: 19px; height: 19px; border: 1.5px solid #bcc6d2; border-radius: 6px; }.task-check.done { display: grid; place-items: center; color: white; border-color: var(--success); background: var(--success); font-size: 10px; }.task-row strong, .task-row small { display: block; }.task-row strong { font-size: 12px; }.task-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.tag { padding: 4px 8px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }.tag.urgent { color: #c0540b; background: #fff0e5; }.tag.success { color: #088152; background: #e9f8f2; }
.device-card { display: flex; gap: 13px; padding: 17px 0; border-top: 1px solid #f0f2f5; }.device-card:first-of-type { margin-top: 13px; }.device-illustration { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 23px; }.device-illustration.phone { color: #805ad5; background: #f4efff; }.device-card strong, .device-card small, .healthy, .unhealthy, .pending-health { display: block; }.device-card strong { font-size: 11px; }.device-card small { margin: 5px 0 8px; color: var(--muted); font-size: 9px; }.healthy, .unhealthy, .pending-health { font-size: 9px; }.healthy { color: var(--success); }.unhealthy { color: #c53030; }.pending-health { color: #9c6500; }.healthy i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--success); }
.admin-tabs { display: flex; gap: 26px; margin-top: 30px; border-bottom: 1px solid var(--line); }.admin-tabs button { padding: 0 2px 13px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: none; cursor: pointer; }.admin-tabs button.active { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.admin-panel { margin-top: 20px; padding: 0; overflow: hidden; }.toolbar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }.search-box { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 12px; border: 1px solid #d8dee7; border-radius: 9px; color: var(--faint); }.search-box input { min-height: 40px; border: 0; padding-left: 0; box-shadow: none; }.toolbar select { width: 150px; min-height: 42px; }
.application-guide { padding-bottom: 22px; }.application-guide > .muted { display: block; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); }.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }.guide-grid section, .guide-links { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }.guide-grid h3, .guide-links h3 { margin: 0 0 10px; font-size: 15px; }.guide-grid p, .guide-grid li, .guide-grid dd { color: var(--muted); font-size: 13px; line-height: 1.65; }.guide-grid ol, .guide-grid ul { margin: 0; padding-left: 20px; }.guide-grid p:last-child { margin-bottom: 0; }.guide-grid dl { margin: 0; }.guide-grid dt { margin-top: 10px; font-weight: 700; color: var(--ink); }.guide-grid dt:first-child { margin-top: 0; }.guide-grid dd { margin: 3px 0 0; }.guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 18px; }.guide-links h3 { width: 100%; }.guide-links a { color: var(--blue); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.organization-panel, .placeholder-panel { margin-top: 20px; }.org-tree { max-width: 680px; margin-top: 24px; }.org-node { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.org-node + .org-node { margin-top: 10px; }.org-node strong, .org-node small { display: block; }.org-node small { margin-top: 4px; color: var(--muted); font-size: 10px; }.org-node button { border: 0; background: none; cursor: pointer; }.org-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }.org-node.region .org-icon { background: #805ad5; }.org-node.store .org-icon { background: var(--orange); }.org-children, .org-grandchildren { position: relative; margin: 12px 0 0 34px; padding-left: 28px; }.org-children::before, .org-grandchildren::before { content: ""; position: absolute; top: -12px; bottom: 32px; left: 0; border-left: 1px solid #cdd8e5; }.org-children > .org-node::before, .org-grandchildren > .org-node::before { content: ""; position: absolute; width: 28px; margin-left: -42px; border-top: 1px solid #cdd8e5; }.placeholder-panel { min-height: 220px; display: grid; place-content: center; text-align: center; }.placeholder-panel p { color: var(--muted); }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 11px; }th { padding: 12px 16px; color: var(--muted); background: #f8fafc; text-align: left; font-weight: 700; white-space: nowrap; }td { padding: 15px 16px; border-top: 1px solid var(--line); white-space: nowrap; }.person { display: flex; align-items: center; gap: 10px; }.person i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--blue); font-style: normal; font-weight: 700; }.person i.purple { background: #805ad5; }.person i.orange-bg { background: var(--orange); }.person strong, .person small { display: block; }.person small { margin-top: 3px; color: var(--faint); font-size: 9px; }.status-pill { padding: 4px 8px; border-radius: 999px; font-size: 9px; }.status-pill.active { color: #087b50; background: #e8f8f1; }.status-pill.pending { color: #a95112; background: #fff0e5; }.more { border: 0; background: none; cursor: pointer; }
.empty-page { min-height: 60vh; padding-top: 12vh; text-align: center; }.empty-page h1 { margin: 0; }.empty-page p { color: var(--muted); }.notification-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.85fr); gap:24px; align-items:start; margin-top:24px; text-align:left; }.notification-rules { padding:22px 24px; border:1px solid var(--line); border-radius:16px; background:white; }.notification-rules h2 { margin: 0; font-size: 16px; }.notification-rules > p { margin: 9px 0 0; font-size: 12px; line-height: 1.6; }.notification-rules ol { display: grid; gap: 11px; margin: 18px 0; padding: 0; list-style: none; counter-reset: notification-rule; }.notification-rules li { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: baseline; counter-increment: notification-rule; }.notification-rules li::before { content: counter(notification-rule); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }.notification-rules li strong { color: var(--ink); font-size: 12px; }.notification-rules li span { grid-column: 2; color: var(--muted); font-size: 11px; line-height: 1.5; }.notification-empty { min-height:180px; padding:30px; border:1px solid var(--line); border-radius:16px; background:white; text-align:center; }.notification-empty > span { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--success); background: #e9f8f2; }.notification-empty strong { display: block; }
dialog { width: min(440px, calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 18px; box-shadow: var(--shadow); }dialog::backdrop { background: rgba(26,35,51,.48); backdrop-filter: blur(3px); }.dialog-card { position: relative; padding: 30px; }.dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f2f4f7; cursor: pointer; }.dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-size: 21px; }.dialog-card h2 { margin: 18px 0 7px; }.dialog-card > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }.dialog-card label { margin-top: 15px; }.dialog-card small { display: block; margin-top: 14px; color: var(--faint); font-size: 10px; line-height: 1.6; text-align: center; }.sms-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.sms-button { min-height: 48px; white-space: nowrap; }.device-steps { display: flex; align-items: center; justify-content: center; margin-top: 25px; }.device-steps span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cfd6df; border-radius: 50%; color: var(--faint); font-size: 11px; }.device-steps span.done { color: white; border-color: var(--blue); background: var(--blue); }.device-steps i { width: 58px; height: 1px; background: #dfe4ea; }.device-step-labels { display: flex; justify-content: space-between; margin: 8px 25px 0; color: var(--muted); font-size: 9px; }.device-registration-status { min-height: 38px; margin: 18px 0 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); background: #f6f8fb; font-size: 11px; line-height: 1.55; }.page-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.device-tabs { display:flex; gap:8px; max-width:760px; margin:24px auto 0; padding:0 20px; overflow-x:auto; }.device-tabs button { flex:none; border:1px solid var(--line); border-radius:999px; padding:8px 12px; background:white; color:var(--muted); cursor:pointer; }.device-tabs button.active { color:var(--blue); border-color:var(--blue); font-weight:700; }.my-device-list { max-width: 760px; margin: 12px auto 0; padding: 0 20px; border: 1px solid #e8ebef; border-radius: 14px; background: white; text-align: left; }
.wide-dialog { width: min(620px, calc(100% - 30px)); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }.form-span { grid-column: 1 / -1; }.invite-note { display: grid; gap: 4px; margin: 20px 0; padding: 13px 15px; border-radius: 10px; color: #6b4b15; background: #fff8e7; font-size: 10px; line-height: 1.5; }.invite-note strong { font-size: 11px; }
.invite-note code { display: block; max-width: 100%; overflow-wrap: anywhere; color: #344054; }.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } #application-advanced-mode { margin: 16px 0; } #application-advanced-mode summary { cursor: pointer; font-weight: 700; }
#application-dialog { width: min(800px, calc(100% - 24px)); }
#application-dialog #application-advanced-mode { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
#application-dialog #application-advanced-mode[open] summary { margin-bottom: 12px; }
#application-dialog #application-advanced-mode label { display: block; width: 100%; margin-top: 14px; }
#application-redirect-uris { display: block; width: 100%; min-width: 0; min-height: 112px; margin-top: 7px; padding: 12px 14px; border: 1px solid #d8dee7; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; resize: vertical; transition: border .2s, box-shadow .2s; }
#application-redirect-uris:hover { border-color: #aeb8c6; }
#application-redirect-uris:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,112,210,.08); outline: none; }
@media (max-width: 540px) {
  #application-dialog { width: calc(100% - 12px); max-width: calc(100% - 12px); }
  #application-dialog #application-advanced-mode { padding: 12px; }
}
.settings-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 18px; margin-top: 24px; }.profile-settings-card { display: grid; gap: 24px; }.profile-avatar-editor { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.avatar-large { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 18px; font-size: 27px; }.avatar.has-image { color: transparent; background-position: center; background-size: cover; }.profile-avatar-editor strong { display: block; }.profile-avatar-editor p { margin: 5px 0 10px; font-size: 11px; }.profile-avatar-editor input { max-width: 300px; font-size: 11px; }.readonly-profile-field { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.readonly-profile-field strong { color: var(--ink); font-size: 11px; }.profile-security-card { align-self: start; }.profile-security-card h2 { margin-top: 0; font-size: 17px; }.profile-security-card p { font-size: 12px; line-height: 1.6; }.profile-security-card button { width: 100%; margin-top: 10px; }
.search-results { display: grid; gap: 7px; margin-top: 14px; }.search-result { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; color: var(--ink); background: white; text-align: left; cursor: pointer; }.search-result:hover, .search-result:focus { border-color: var(--blue); background: var(--blue-soft); }.search-result small { display: inline; margin: 0; }.search-no-result { padding: 18px; color: var(--muted); text-align: center; }
.toast { position: fixed; z-index: 100; inset: auto auto calc(28px + env(safe-area-inset-bottom)) 50%; width: max-content; max-width: min(520px, calc(100vw - 32px)); margin: 0; transform: translate(-50%, 18px); padding: 11px 18px; border: 0; border-radius: 10px; color: white; background: #1a2333; box-shadow: 0 14px 38px rgba(0,0,0,.28); font-size: 12px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }.toast.show, .toast:popover-open { opacity: 1; transform: translate(-50%, 0); }body:has(dialog[open]) .toast { inset: calc(18px + env(safe-area-inset-top)) auto auto 50%; }
.mobile-only { display: none; }
.policy-control-table { min-width: 0; table-layout: fixed; }.policy-control-table th, .policy-control-table td { white-space: normal; overflow-wrap: anywhere; }.policy-control-table th:nth-child(1) { width: 17%; }.policy-control-table th:nth-child(2), .policy-control-table th:nth-child(3) { width: 18%; }.policy-control-table th:nth-child(4) { width: 16%; }.policy-control-table th:nth-child(5) { width: 20%; }
#application-policy-dialog { width: min(680px, calc(100% - 30px)); }
#application-policy-dialog .dialog-card { padding: 22px 24px; }
#application-policy-dialog .dialog-card > h2 { margin-top: 4px; }
#application-policy-dialog .dialog-card > p { margin-bottom: 12px; }
.policy-editor-section { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }.policy-editor-section h3 { margin: 0 0 8px; font-size: 13px; }.policy-editor-section fieldset { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; border: 0; padding: 0; }.policy-editor-section fieldset legend { width: 100%; margin-bottom: 2px; color: var(--muted); font-size: 11px; }.policy-editor-section fieldset label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; cursor: pointer; }.policy-editor-section input[type="radio"], .policy-option input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; margin: 0; padding: 0; border-radius: 50%; box-shadow: none; }.policy-option input[type="checkbox"] { border-radius: 4px; }.policy-help { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }.policy-option-list { display: grid; gap: 3px; max-height: 138px; overflow: auto; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.policy-option { display: flex; align-items: center; gap: 7px; min-height: 28px; margin: 0; padding: 4px 6px; border-radius: 6px; color: var(--ink); font-size: 12px; }.policy-option:hover { background: var(--blue-soft); }.policy-inline-error { min-height: 15px; margin: 5px 0 0; color: #b42318; font-size: 11px; }.policy-candidate-advanced { margin-top: 10px; }.policy-candidate-advanced summary { cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 700; }.policy-candidate-advanced[open] summary { margin-bottom: 8px; }
#application-policy-dialog .inline-actions { position: sticky; bottom: -22px; margin: 10px -24px -22px; padding: 12px 24px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
#application-policy-dialog .inline-actions .primary-button { width: auto; min-height: 40px; margin: 0; }
#application-policy-dialog .inline-actions .secondary-button { min-height: 40px; }
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 86px; }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; background: linear-gradient(180deg, var(--blue-soft), #fff 32%); }
  .brand-panel { display: none; }.login-panel { min-height: 100vh; align-items: start; padding: 56px 22px; }.mobile-brand { display: block; margin-bottom: 50px; }.mobile-brand img { width: 210px; }
  .topbar { height: 62px; padding: 0 14px; }.topbar-brand img { width: 115px; }.topbar-brand span, .user-text { display: none; }.mobile-only { display: block; }
  .workspace-body { display: block; }.sidebar { position: fixed; z-index: 30; top: 62px; left: 0; width: 240px; height: calc(100vh - 62px); transform: translateX(-105%); transition: transform .22s; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }
  .content { padding: 25px 16px 50px; }.welcome-row, .page-title { align-items: flex-start; }.welcome-row h1, .page-title h1 { font-size: 25px; }.welcome-row .secondary-button { font-size: 0; width: 42px; min-width: 42px; padding: 0; }.welcome-row .secondary-button::after { content: "+"; font-size: 21px; }
  .status-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 30px; }.stat-card { min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }.stat-icon { width: 34px; height: 34px; }.stat-card strong { font-size: 19px; }.trend { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }.toolbar { flex-wrap: wrap; }.search-box { min-width: 100%; }.toolbar select { flex: 1; width: auto; }
  .notification-layout { grid-template-columns: 1fr; }.notification-empty { order: 1; }.notification-rules { order: 2; }
}
@media (max-width: 540px) {
  .app-grid { grid-template-columns: 1fr; }.app-card { min-height: 125px; }.dashboard-grid { margin-top: 22px; }.device-panel { display: none; }.admin-tabs { gap: 20px; overflow-x: auto; }.admin-tabs button { flex: none; }.dialog-card { padding: 25px 20px; }.form-grid { grid-template-columns: 1fr; }.form-span { grid-column: auto; }
  .check-grid, .settings-grid { grid-template-columns: 1fr; }.profile-avatar-editor { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.employee-roles { min-width: 120px; max-width: 220px; white-space: normal; line-height: 1.55; }
.admission-group-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; margin-top: 16px; }
.admission-group-card { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.admission-group-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admission-group-card h3 { margin: 0; color: var(--ink); font-size: 15px; }
.admission-group-kind { flex: none; padding: 3px 8px; border-radius: 999px; background: #edf5ff; color: #245c95; font-size: 11px; font-weight: 700; }
.admission-group-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.admission-group-details div { min-width: 0; }
.admission-group-details dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.admission-group-details dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; min-height: 24px; }
.admission-group-chip { max-width: 100%; overflow-wrap: anywhere; padding: 3px 7px; border-radius: 999px; background: #f2f6fa; color: #344054; font-size: 11px; line-height: 1.35; }
.admission-group-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.admission-group-empty, .admission-group-duplicate { margin: 0; padding: 12px; border-radius: 8px; font-size: 12px; line-height: 1.55; }
.admission-group-empty { grid-column: 1 / -1; color: var(--muted); background: #f7f9fc; }
.admission-group-duplicate { color: #8a4b08; background: #fff7e8; border: 1px solid #f4d39b; }
.role-member-editor { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.role-member-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; color: var(--muted); }
.role-member-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 999px; background: #edf5ff; color: #245c95; font-size: 11px; }
.role-member-chip span { overflow-wrap: anywhere; }.role-member-remove { border: 0; border-radius: 999px; padding: 3px 7px; color: #b42318; background: #fff; cursor: pointer; }
.role-member-add { display: flex; gap: 8px; margin-top: 6px; }.role-member-add select { min-width: 0; flex: 1; }
.retired-role-history { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9fb; }.retired-role-history summary { cursor: pointer; color: var(--ink); font-weight: 700; }.retired-role-history > p { color: var(--muted); font-size: 12px; }
.retired-role-list { display: grid; gap: 8px; }.retired-role-card { display: grid; grid-template-columns: minmax(160px, .5fr) minmax(260px, 1fr) auto; align-items: center; gap: 12px; padding: 11px; border-radius: 8px; background: #fff; }.retired-role-card span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 540px) { .admission-group-list { grid-template-columns: 1fr; }.admission-group-card { padding: 14px; }.admission-group-details { grid-template-columns: 1fr; gap: 10px; }.admission-group-actions { justify-content: stretch; }.admission-group-actions button { flex: 1; min-height: 40px; }.panel-header { align-items: flex-start; }.panel-header .compact { min-height: 40px; } }
@media (max-width: 540px) { .role-member-add { flex-direction: column; }.role-member-add button { min-height: 40px; }.retired-role-card { grid-template-columns: 1fr; }.retired-role-card button { min-height: 40px; } }
.admin-panel > .panel-header { gap: 18px; padding: 18px 18px 15px; border-bottom: 1px solid var(--line); }.admin-panel > .panel-header > div { min-width: 0; max-width: 820px; }.admin-panel > .panel-header .compact { flex: none; }.admin-panel > .muted { display: block; margin: 0; padding: 10px 18px; }.table-wrap { max-width: 100%; overscroll-behavior-inline: contain; }td { vertical-align: top; }tbody tr:hover { background: #fbfdff; }.row-actions { justify-content: flex-end; }
@media (max-width: 540px) { .admin-panel > .panel-header { flex-direction: column; padding: 15px; }.admin-panel > .panel-header .compact { width: 100%; }.admin-panel .table-wrap { border-top: 1px solid var(--line); scroll-snap-type: x proximity; }.admin-panel table { min-width: 720px; }.admin-panel th:first-child, .admin-panel td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }.admin-panel th:first-child { z-index: 2; background: #f8fafc; }.admin-panel td { scroll-snap-align: start; }.row-actions button, .link-button, .danger-link { min-height: 36px; } }
@media (max-width: 540px) { .guide-grid { grid-template-columns: 1fr; padding: 12px; }.guide-links { margin: 0 12px; }.application-guide > .muted { padding: 12px; } }
@media (max-width: 540px) { .policy-control-table-wrap { overflow: visible; }.policy-control-table, .policy-control-table thead, .policy-control-table tbody, .policy-control-table tr, .policy-control-table th, .policy-control-table td { display: block; min-width: 0; }.policy-control-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.policy-control-table tr { margin: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.policy-control-table td { position: static !important; padding: 6px 0; box-shadow: none !important; background: transparent !important; }.policy-control-table td::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 700; content: attr(data-policy-label); }.policy-control-table td:nth-child(1)::before { content: '应用名称'; }.policy-control-table td:nth-child(2)::before { content: '人员准入'; }.policy-control-table td:nth-child(3)::before { content: '设备要求'; }.policy-control-table td:nth-child(4)::before { content: '初始管理员候选'; }.policy-control-table td:nth-child(5)::before { content: '状态 / 阻塞原因'; }.policy-control-table td:nth-child(6)::before { content: '操作'; } }
@media (max-width: 540px) { .table-wrap:has(#xwork-device-table-body) { overflow: visible; }.table-wrap:has(#xwork-device-table-body) table, .table-wrap:has(#xwork-device-table-body) thead, .table-wrap:has(#xwork-device-table-body) tbody, .table-wrap:has(#xwork-device-table-body) tr, .table-wrap:has(#xwork-device-table-body) th, .table-wrap:has(#xwork-device-table-body) td { display: block; min-width: 0; }.table-wrap:has(#xwork-device-table-body) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.table-wrap:has(#xwork-device-table-body) tr { margin: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.table-wrap:has(#xwork-device-table-body) td { position: static !important; padding: 6px 0; box-shadow: none !important; background: transparent !important; white-space: normal; }.table-wrap:has(#xwork-device-table-body) .row-actions { justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; } }
