:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  color: #182840;
  background: #f4f7fc;
  --blue: #2159dc;
  --muted: #536581;
  --line: #e2e9f4;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7295ff; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace { min-height: 100dvh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 29px 18px 19px; background: #102241; color: #f4f7ff; }
.brand { display: flex; align-items: center; gap: 12px; }
.sidebar .brand { margin: 0 9px 43px; }
.brand-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #2c65ef; color: #fff; box-shadow: 0 5px 16px #194ccf45; }
.brand-icon .icon { width: 24px; height: 24px; }
.brand strong { display: block; font-size: 20px; letter-spacing: .1em; line-height: 1.15; }
.brand div > span { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .14em; font-weight: 650; color: #a0b4d7; }
.nav-label { display: block; margin: 0 12px 12px; font-size: 11px; letter-spacing: .12em; color: #a0b4d7; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 5px; padding: 12px; border: 0; border-radius: 9px; background: transparent; color: #bdcde6; text-align: left; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover { background: #1c355d; color: white; }
.nav-item.selected { color: #fff; background: #234577; font-weight: 650; }
.nav-item.selected .icon { color: #a9c6ff; }
.sidebar-bottom { margin-top: auto; }
.profile { display: flex; align-items: center; gap: 11px; padding: 17px 8px; margin-bottom: 6px; border-top: 1px solid #ffffff22; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; background: #223b67; color: #a9c6ff; border-radius: 10px; }
.avatar .icon { width: 17px; height: 17px; }
.profile strong, .profile small { display: block; }
.profile small { margin-top: 5px; color: #afc0dd; }
.profile i { display: inline-block; width: 6px; height: 6px; background: #71dfac; border-radius: 50%; margin-right: 4px; }
.topbar { display: flex; justify-content: space-between; align-items: center; height: 66px; padding: 0 35px; border-bottom: 1px solid var(--line); background: #fff; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb span { color: #9aacc8; padding: 0 9px; }
.secure { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; background: #eaf7f1; color: #196a4d; font-size: 12px; font-weight: 650; white-space: nowrap; }
.secure .icon { width: 15px; height: 15px; }
.content { max-width: 1440px; margin: auto; padding: 30px 35px 48px; }
.hero { position: relative; overflow: hidden; min-height: 205px; display: flex; align-items: center; padding: 30px 37px; border-radius: 18px; background: linear-gradient(115deg, #142f67 5%, #204caa 61%, #245ade 100%); color: #fff; }
.hero-text { position: relative; z-index: 1; }
.hero-label { display: inline-flex; align-items: center; gap: 7px; color: #d5e4ff; font-size: 12px; letter-spacing: .12em; }
.hero-label .icon { width: 16px; height: 16px; }
.hero h1 { margin: 11px 0 8px; font-size: clamp(30px, 4vw, 43px); line-height: 1.16; letter-spacing: .03em; }
.hero p { margin: 0; color: #dae6ff; line-height: 1.65; }
.hero-art, .login-art { position: absolute; display: grid; place-items: center; pointer-events: none; }
.hero-art { top: 0; right: 3%; height: 100%; width: 40%; }
.hero-orbit, .login-orbit { position: absolute; border: 1px solid #ffffff36; border-radius: 50%; aspect-ratio: 1; width: 164px; box-shadow: 0 0 0 26px #ffffff0c, 0 0 0 54px #ffffff0b, 0 0 0 83px #ffffff08; }
.art-emblem { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 25px; transform: rotate(-13deg); background: linear-gradient(150deg, #ffffff40, #8ebaff22); border: 1px solid #ffffff63; color: #f0f6ff; box-shadow: 0 18px 36px #0c2e7b80; }
.art-emblem .icon { width: 46px; height: 46px; transform: rotate(13deg); stroke-width: 1.35; }
.records { margin-top: 29px; }
.section-heading, .title-group, .actions { display: flex; align-items: center; gap: 10px; }
.section-heading { justify-content: space-between; margin-bottom: 14px; }
h2 { margin: 0; font-size: 21px; }
.count { padding: 3px 8px; border-radius: 20px; background: #e5edff; color: #2455b3; font-size: 12px; font-weight: 650; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-weight: 650; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--blue); color: #fff; box-shadow: 0 2px 4px #184cbb20; }
.primary:hover { background: #164bc6; }
.secondary { background: #fff; border-color: #dbe4f1; color: #344762; }
.secondary:hover { background: #f1f6ff; }
.danger { background: #b52637; color: #fff; }
.danger:hover { background: #97192a; }
.list-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 22px #16387707; }
.toolbar { padding: 15px 17px; }
.search { display: flex; align-items: center; gap: 9px; max-width: 385px; min-height: 40px; padding: 0 11px; border: 1px solid #dee6f3; border-radius: 8px; background: #f8faff; color: #607491; }
.search:focus-within { outline: 2px solid #7295ff; }
.search input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; outline: none; }
.search .icon { width: 17px; height: 17px; }
kbd { display: grid; place-items: center; min-width: 20px; height: 21px; border: 1px solid #dce5f3; border-radius: 4px; background: #fff; color: #586d8a; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { background: #f3f6fc; color: #4a5e7e; font-size: 12px; font-weight: 650; }
th, td { text-align: left; padding: 12px 17px; border-top: 1px solid #eaf0f8; }
th:first-child { width: 29%; }
th:nth-child(2) { width: 25%; }
th:last-child { width: 160px; text-align: right; }
td { height: 61px; overflow-wrap: anywhere; }
td:nth-child(2) { color: #4a5e7e; }
tbody tr:hover { background: #f9fbff; }
.site { display: flex; align-items: center; gap: 11px; font-weight: 650; }
.site-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #e7edff; color: #2857bd; font-weight: 750; font-size: 13px; }
.site-icon[data-tone="1"] { background: #e0f4ef; color: #187361; }
.site-icon[data-tone="2"] { background: #eee8fc; color: #7042b0; }
.site-icon[data-tone="3"] { background: #fcefdc; color: #865619; }
.password-text { font: 13px ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.mask { color: #526583; letter-spacing: .17em; }
.row-actions { display: flex; justify-content: end; gap: 1px; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: #506785; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { color: #144dc6; background: #eaf0ff; }
.icon-button.delete:hover { color: #a32534; background: #fcecef; }
.list-panel footer { padding: 12px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.empty { min-height: 180px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 16px; }
.empty > span { padding: 9px; border-radius: 9px; background: #eaf0ff; color: #3265d2; margin-bottom: 8px; }
.empty .icon { display: block; }
.empty p { margin: 6px 0; color: var(--muted); }
.login-view { min-height: 100dvh; position: relative; overflow: hidden; display: grid; place-items: center; padding: 24px; background: linear-gradient(125deg, #0f2246 2%, #1b408b 60%, #2459da); }
.login-art { inset: 0; transform: translate(30%, -13%); }
.login-orbit { width: 310px; }
.login-art .art-emblem { width: 130px; height: 130px; }
.login-card { position: relative; width: min(100%, 420px); padding: 34px; border-radius: 20px; background: #fff; box-shadow: 0 20px 70px #071d5080; }
.login-card .brand { margin-bottom: 35px; }
.login-card .brand div > span { color: #4c648a; }
.login-card h1 { margin: 0 0 9px; font-size: 28px; }
.login-card > p { color: var(--muted); margin: 0 0 24px; }
.login-caption { display: flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.login-caption .icon { width: 16px; height: 16px; color: var(--blue); }
form > label { display: block; margin: 13px 0 7px; font-weight: 650; }
form input { display: block; width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #d9e3f2; border-radius: 8px; background: #fafcff; color: #182840; }
.input-with-button { position: relative; }
.input-with-button input { padding-right: 43px; }
.input-with-button button { position: absolute; right: 5px; top: 5px; }
.full { width: 100%; margin-top: 17px; min-height: 43px; }
.error { color: #ac2638; font-size: 13px; overflow-wrap: anywhere; }
dialog { width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid #dae4f5; border-radius: 17px; padding: 23px; color: inherit; box-shadow: 0 20px 65px #0e244c55; }
dialog::backdrop { background: #10234588; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 20px; }
#confirm-message { overflow-wrap: anywhere; color: var(--muted); }
.download-option { width: 100%; padding: 12px; margin-top: 10px; display: flex; gap: 11px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; color: var(--blue); }
.download-option:hover { background: #edf3ff; }
.download-option span { flex: 1; color: #263b5c; }
.download-option strong, .download-option small { display: block; }
.download-option small { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.toast { position: fixed; z-index: 3; bottom: 22px; right: 24px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 48px); padding: 12px 16px; color: #fff; background: #162e56; border-radius: 10px; box-shadow: 0 6px 25px #10234545; }
.toast[data-error="true"] { background: #98273b; }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 184px minmax(0, 1fr); }
  .topbar { padding-inline: 23px; }
  .content { padding-inline: 23px; }
  th, td { padding-inline: 11px; }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 15px; }
  .sidebar .brand, .sidebar-bottom, .sidebar-bottom .nav-item { margin: 0; }
  .sidebar nav, .profile { display: none; }
  .brand-icon { width: 37px; height: 37px; }
  .topbar { height: 48px; padding-inline: 16px; }
  .content { padding: 15px 14px 30px; }
  .hero { min-height: 158px; padding: 20px; }
  .hero-text { max-width: 68%; }
  .hero-art { right: 1%; width: 30%; }
  .hero-orbit { width: 90px; }
  .hero-art .art-emblem { width: 56px; height: 56px; border-radius: 14px; }
  .hero-art .art-emblem .icon { width: 28px; height: 28px; }
  .records { margin-top: 20px; }
  .section-heading, .title-group, .actions { gap: 6px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .button { padding-inline: 8px; font-size: 12px; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 9px 12px; border-top: 1px solid var(--line); }
  td { height: auto; padding: 4px; border: 0; }
  td:nth-child(2) { grid-column: 1; padding-left: 49px; }
  td:nth-child(3) { grid-column: 1; padding-left: 49px; }
  td:last-child { grid-area: 1 / 2 / 3 / 3; align-self: center; }
  .row-actions .icon-button { width: 30px; }
}
@media (max-width: 360px) { .row-actions { display: grid; grid-template-columns: repeat(2, 30px); } }
