:root {
  color-scheme: light;
  --ink: #183444;
  --nav: #112f40;
  --muted: #617783;
  --line: #dce6ea;
  --field: #bfd0d8;
  --sea: #086f61;
  --pale: #e4f4f0;
  --wash: #f3f7f9;
  --red: #ad3532;
  font: 14px/1.6 "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
[hidden], .symbols { display: none !important; }
body, h1, h2, h3, form, dl, dd, p { margin: 0; }
h1, h2, h3, strong, th, button { font-weight: 600; }
h1 { font-size: 27px; line-height: 1.4; }
h2 { font-size: 20px; line-height: 1.5; }
h3 { font-size: 16px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, input, textarea, select, .search { border: 1px solid var(--field); border-radius: 7px; background: white; }
button {
  cursor: pointer; padding: 8px 15px; line-height: 1.5; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; transition: background-color .12s, border-color .12s;
  font-weight: 500; white-space: nowrap;
}
button:hover:not(:disabled) { color: var(--sea); background: #f2fbf8; border-color: var(--sea); }
button:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
button.compact { padding: 7px 9px; font-size: 13px; }
button.primary { background: var(--sea); border-color: var(--sea); color: white; font-weight: 600; }
button.primary:hover:not(:disabled) { background: #005848; color: white; }
button.danger, button.danger:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: white; }
button.remove { color: var(--red); border-color: #dbaba9; }
button.remove:hover:not(:disabled) { background: #fff3f2; border-color: var(--red); color: var(--red); }
.other-settings { margin-top: 23px; padding-top: 21px; border-top: 1px solid var(--line); }
.other-settings label { margin-top: 9px; }
button.wide { width: 100%; min-height: 44px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #67c7b7; outline-offset: 2px; }
input, textarea, select { width: 100%; display: block; margin: 7px 0 0; padding: 9px 12px; min-width: 0; }
input[type=checkbox] { accent-color: var(--sea); width: 17px; height: 17px; margin: 0; }
input::placeholder, textarea::placeholder { color: #758895; }
textarea { resize: vertical; }
label { display: block; margin-top: 19px; font-weight: 500; }
label input, label select, label textarea { font-weight: 400; }
label.option, label.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
label.option { margin-top: 12px; font-weight: 400; font-size: 13px; }
label.toggle { margin: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted, .hint, .form-note, .sub, .heading p { color: var(--muted); }
.muted, .hint, .form-note, .sub { font-size: 13px; }
.hint, .form-note, .message, .confirm p, .sub, td, dd, #detailId { overflow-wrap: anywhere; }
.hint { margin-top: 8px; }
.form-note { min-height: 21px; margin: 14px 0 8px; }
.message { margin-bottom: 16px; background: var(--pale); color: var(--sea); padding: 11px 15px; border-radius: 7px; }
.good { color: var(--sea); }
.bad { color: var(--red); }
.message.bad { background: #feecea; }
.access { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: linear-gradient(145deg, #e4efef, #f9fafb 60%, #e4eef0); }
.access-card { display: grid; grid-template-columns: .92fr 1.08fr; width: min(100%, 850px); min-height: 467px; overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 22px 70px #15344418; }
.brand { color: white; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; letter-spacing: .1px; white-space: nowrap; }
.brand svg { width: 36px; height: 36px; }
.cover { position: relative; overflow: hidden; padding: 48px 40px; color: white; background: linear-gradient(138deg, #102c3a, #144553); }
.cover h1 { font-size: 30px; letter-spacing: 1px; margin-top: 68px; }
.cover p { margin-top: 12px; color: #c5dce0; }
.blueprint { width: 100%; position: absolute; bottom: -5%; left: 0; }
.login-box { padding: 56px 54px; align-self: center; }
.login-box h2 { margin-bottom: 27px; font-size: 24px; }
.login-box input { min-height: 44px; }
.wrap { margin-inline: auto; width: min(1380px, 92%); }
.mast { background: var(--nav); }
.topbar, nav, .account, .actions, .line, .heading, .tools, .pager, .drawer-head, .filters, .search { display: flex; align-items: center; }
.topbar, .account { gap: 24px; }
.topbar { min-height: 70px; }
nav { gap: 10px; align-self: stretch; margin-left: 40px; }
nav button, .account button { color: #c4d6e0; background: transparent; border: none; border-radius: 0; }
nav button { height: 100%; position: relative; font-size: 15px; padding-inline: 18px; }
nav button[aria-current], nav button:hover:not(:disabled), .account button:hover:not(:disabled) { background: #ffffff0c; color: white; }
nav button[aria-current]::after { content: ""; position: absolute; inset: auto 15px 0; height: 3px; background: #67d7c1; }
.account { margin-left: auto; color: #e6f4f6; font-size: 13px; gap: 10px; }
.account button { padding-inline: 10px; }
.workspace { padding: 35px 0 60px; }
.heading, .line, .tools, .pager, .drawer-head { justify-content: space-between; gap: 16px; }
.heading { margin-bottom: 24px; }
.heading p { margin-top: 5px; }
.actions { gap: 12px; flex-wrap: wrap; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 9px #214b5c04; overflow: hidden; }
.tools { padding: 19px 22px; flex-wrap: wrap; }
.tools strong { font-size: 16px; }
.filters { flex-wrap: wrap; gap: 3px; }
.filters button { border: none; color: #506773; background: transparent; padding: 8px 12px; }
.filters button[aria-pressed=true], .filter-action[aria-pressed=true] { background: var(--pale); color: var(--sea); font-weight: 600; }
.filters span { font-variant-numeric: tabular-nums; font-size: 13px; }
.search { width: min(100%, 293px); padding-left: 12px; color: var(--muted); margin: 0; }
.search input { color: var(--ink); margin: 0; border: 0; padding: 8px; font-size: 13px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { color: #536d7b; background: #f4f8fa; font-size: 13px; padding: 11px 15px; white-space: nowrap; }
th, td { border-block: 1px solid #e7edf0; }
td { padding: 15px; line-height: 1.5; max-width: 320px; }
th:first-child, td:first-child { padding-left: 26px; }
th:last-child, td:last-child { padding-right: 26px; }
#devices td:first-child, #devices td:nth-child(2) { min-width: 150px; max-width: 255px; }
#devices td:first-child .sub { font-family: Consolas, monospace; font-size: 12px; }
#devices td:last-child, #devices th:last-child { text-align: right; }
#devices td:nth-child(n+3), #audit td:first-child { white-space: nowrap; }
#devices tbody tr { cursor: pointer; }
tbody tr:hover { background: #f8fbfc; }
.sub { display: block; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; font-weight: 500; padding: 3px 9px; font-size: 13px; background: #eef2f5; color: #536674; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.approved { background: var(--pale); color: var(--sea); }
.tag.pending { background: #fff3d9; color: #925308; }
.tag.rejected, .tag.revoked { background: #ffedeb; color: #a03d38; }
.tag.expired { background: #f0edf9; color: #695395; }
.empty { text-align: center; padding: 66px 20px 77px; color: var(--muted); }
.empty svg { padding: 12px; background: #edf6f4; color: #49877e; width: 58px; height: 58px; border-radius: 50%; margin-bottom: 10px; }
.pager { padding: 16px 24px; color: var(--muted); font-size: 13px; }
.pager .actions { gap: 10px; flex-wrap: nowrap; }
.settings { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 22px; }
.section { padding: 26px 28px 30px; }
.release-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 22px; margin-bottom: 22px; }
.current-release { background: linear-gradient(125deg, #e1f4ee, #f6fcfb); border-color: #c6e4df; }
#liveVersion { color: var(--sea); font-size: 28px; font-weight: 650; margin: 10px 0; }
.pick-package { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
#packageFile { margin: 0; padding: 5px 8px; font-size: 13px; }
#packageFile::file-selector-button { background: #eaf2f5; color: var(--ink); border: 0; border-radius: 4px; padding: 6px 10px; cursor: pointer; margin-right: 10px; }
#packageNote:not(:empty) { font-size: 13px; margin-top: 10px; }
.build-help { margin-top: 12px; font-size: 13px; }
#updates summary { color: var(--sea); cursor: pointer; width: fit-content; }
#updates code { display: block; margin-top: 7px; font: 13px/1.6 Consolas, monospace; }
#updates { overflow-wrap: anywhere; }
.release-row { display: grid; grid-template-columns: 190px 1fr auto; align-items: start; gap: 24px; padding: 21px 24px; border-top: 1px solid var(--line); }
.release-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 7px; }
.release-row .actions { justify-content: end; }
.release-row details { margin-top: 8px; font-size: 13px; }
.release-text { white-space: pre-wrap; }
.release-row > div { min-width: 0; }
dialog { color: var(--ink); border: 0; padding: 0; }
dialog::backdrop { background: #0e223555; }
body:has(dialog[open]) { overflow: hidden; }
.drawer { margin: 0 0 0 auto; max-height: none; height: 100dvh; width: min(510px, 100%); max-width: 100%; box-shadow: -6px 0 32px #132d4020; overscroll-behavior: contain; }
.drawer-head { position: sticky; top: 0; z-index: 1; padding: 20px 26px; border-bottom: 1px solid var(--line); background: white; }
#dismiss { border: 0; }
#detailId { color: var(--muted); font-size: 13px; margin-top: 3px; }
.drawer-content { padding: 22px 26px 30px; }
dl { display: grid; grid-template-columns: 90px 1fr; gap: 9px 12px; border-bottom: 1px solid var(--line); margin: 15px 0 20px; padding-bottom: 19px; }
dt { color: var(--muted); }
dd { min-width: 0; white-space: pre-line; }
#hardware dd:last-child { font: 13px/1.5 Consolas, monospace; }
#choices { margin-top: 14px; }
.filter-action[aria-pressed=true] { border-color: var(--sea); }
.filter-action.negative[aria-pressed=true] { color: var(--red); border-color: #d49792; background: #fff3f2; }
.confirm { border-radius: 12px; width: min(420px, calc(100% - 32px)); padding: 26px; }
.confirm .actions { justify-content: end; }
.confirm p { margin: 13px 0 24px; white-space: pre-line; }
@media (max-width: 930px) {
  nav { margin-left: 0; gap: 0; }
  nav button { padding-inline: 12px; }
  .topbar { gap: 12px; }
  .settings, .release-top { grid-template-columns: 1fr; }
  .release-row { grid-template-columns: 160px 1fr; gap: 12px; }
  .release-row .actions { grid-column: 2; justify-content: start; }
  .wrap { width: 94%; }
  .access-card { min-height: 420px; }
  .cover, .login-box { padding: 34px 30px; }
  .cover h1 { margin-top: 45px; }
}
@media (max-width: 700px) {
  .access-card { grid-template-columns: 1fr; max-width: 430px; }
  .cover { padding: 22px 26px; }
  .cover h1 { margin: 22px 0 0; font-size: 23px; }
  .cover p { display: none; }
  .cover .brand { font-size: 17px; }
  .blueprint { width: 42%; left: auto; right: -8%; bottom: -35%; }
  .login-box { padding: 28px 26px; }
  .login-box h2 { font-size: 21px; margin-bottom: 18px; }
  .brand { font-size: 17px; }
  .brand svg { width: 30px; height: 30px; }
  .topbar { flex-wrap: wrap; padding-top: 13px; gap: 8px; }
  nav { width: 100%; order: 3; height: 44px; }
  nav button { flex: 1; font-size: 14px; padding-inline: 4px; }
  .release-row { padding: 18px; grid-template-columns: 1fr; }
  .release-row .actions { grid-column: 1; }
  .pick-package { flex-wrap: wrap; }
  .release-top { gap: 14px; margin-bottom: 14px; }
  .account button { padding-inline: 5px; }
  .workspace { padding-top: 20px; }
  h1 { font-size: 23px; }
  .heading { align-items: flex-start; gap: 8px; margin-bottom: 17px; }
  .heading p { font-size: 13px; }
  #updated { display: none; }
  .tools { padding: 13px 12px; gap: 10px; }
  .search { width: 100%; }
  .filters button { padding: 6px 9px; font-size: 13px; }
  .section, .drawer-head, .drawer-content, .confirm { padding: 20px; }
  .section .line { flex-wrap: wrap; }
  .pager { padding: 12px; gap: 6px; }
  .pager .actions { gap: 6px; }
  .pager .compact { padding: 6px; }
  .drawer .line { gap: 10px; }
  .drawer dl { grid-template-columns: 75px 1fr; }
  td { padding: 13px 12px; }
  th:first-child, td:first-child { padding-left: 14px; }
  #devices table, #devices tbody, #devices tr { display: block; }
  #devices thead { display: none; }
  #devices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 16px; border-block-start: 1px solid var(--line); }
  #devices td { padding: 0; border: 0; max-width: none !important; min-width: 0 !important; font-size: 13px; }
  #devices td:first-child { font-size: 15px; }
  #devices td:nth-child(3) { grid-area: 1 / 2; justify-self: end; }
  #devices td:nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
  #devices td:nth-child(4), #devices td:nth-child(5), #devices td:nth-child(6) { color: var(--muted); grid-column: 1; white-space: normal; }
  #devices td:nth-child(4)::before { content: "申请于 "; }
  #devices td:nth-child(5)::before { content: "有效期至 "; }
  #devices td:nth-child(6)::before { content: "飞书通知 "; }
  #devices td:last-child { grid-area: 4 / 2 / 6 / 3; }
  #devices td:nth-child(n+4) .sub { display: inline; margin-left: 3px; }
}
@media (max-height: 550px) and (min-width: 701px) {
  .access { padding-block: 12px; }
  .access-card { min-height: 0; }
  .cover, .login-box { padding-block: 26px; }
}
