@charset "UTF-8";
:root {
  --canvas: #ffffff;
  --paper: #ffffff;
  --ink: #252832;
  --muted: #737985;
  --line: #e7e9ee;
  --blue: #4c5be8;
  --blue-hover: #3f4dd0;
  --blue-soft: #eef0ff;
  --soft: #f7f8fa;
  --error: #bc3c4c;
  --radius: 16px;
  --shadow: 0 12px 36px #20253808;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Noto Sans SC", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid #4c5be880; outline-offset: 4px; }
::selection { color: var(--ink); background: #e1e5ff; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; }
.page-width { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; white-space: nowrap; }
.brand img { flex-shrink: 0; border-radius: 9px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .6px; margin-top: 5px; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-nav > a:not(.button) { color: var(--muted); }
.site-nav > a.nav-current, .site-nav > a:hover { color: var(--ink); }
.site-nav .nav-current { position: relative; }
.site-nav .nav-current:after { content: ""; position: absolute; bottom: -13px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.button { border: 1px solid transparent; border-radius: 8px; min-height: 42px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; line-height: 1.4; font-size: 13px; font-weight: 550; transition: background .16s, border-color .16s, color .16s; white-space: nowrap; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); }
.button-outline { background: #fff; border-color: #dfe2e9; color: var(--ink); }
.button-outline:hover:not(:disabled) { background: var(--soft); border-color: #bdc3d0; }
.button-quiet { background: transparent; color: var(--muted); }
.button-quiet:hover:not(:disabled) { background: #f0f2f6; color: var(--ink); }
.button-danger { background: var(--error); color: #fff; }
.button-danger:hover:not(:disabled) { background: #a82e3e; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.button-full { width: 100%; }
.button-group { display: flex; align-items: center; gap: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.text-link:hover { color: var(--blue); }
.eyebrow { color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: .5px; font-weight: 500; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--blue); margin-right: 10px; vertical-align: middle; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; padding: 68px 0 76px; }
.hero-copy { min-width: 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.hero .eyebrow-line { margin: 0; }
.hero h1 { font-size: clamp(44px, 4.9vw, 64px); font-weight: 500; letter-spacing: -2.4px; line-height: 1.4; }
.hero-accent { color: var(--blue); }
.hero-aside { width: 275px; flex-shrink: 0; margin-bottom: 7px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-aside p + p { margin-top: 12px; }
.hero-aside .text-link { margin-top: 20px; color: var(--ink); }
.hero-aside .text-link:hover { color: var(--blue); }
.tools-section { padding-bottom: 4px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-title { display: flex; align-items: center; gap: 11px; }
.section-heading h2 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.count-tag { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; color: #8c929e; font-size: 11px; font-variant-numeric: tabular-nums; }
.section-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.section-note svg { width: 14px; height: 14px; }
.tool-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.tool-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .18s, box-shadow .18s; }
.tool-card:hover { border-color: #d2d7e3; box-shadow: var(--shadow); }
.json-card { min-height: 292px; padding: 30px; display: flex; align-items: stretch; gap: 30px; }
.tool-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.tool-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; font-family: "Cascadia Code", Consolas, monospace; font-size: 19px; font-weight: 550; }
.tool-icon svg { width: 23px; height: 23px; }
.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-neutral { background: #f1f3f7; color: #596272; }
.tool-category { font-size: 11px; color: #9399a5; letter-spacing: 1px; margin-top: 20px; }
.tool-card h3 { font-size: 22px; line-height: 1.5; font-weight: 600; letter-spacing: -.4px; margin: 7px 0 10px; }
.tool-description { font-size: 13px; line-height: 1.85; color: var(--muted); }
.card-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0; margin-top: 23px; min-height: 28px; color: var(--blue); font-size: 13px; line-height: 1.5; font-weight: 550; border: 0; background: transparent; text-align: left; }
.card-action:hover { color: var(--blue-hover); }
.card-action span { font-size: 18px; font-weight: 400; }
.json-card .card-action { margin-top: auto; padding-top: 19px; }
.code-preview { align-self: stretch; flex: 0 0 45%; max-width: 280px; min-width: 0; border: 1px solid #e9ebf1; border-radius: 10px; background: #fafbfe; overflow: hidden; }
.preview-heading { display: flex; align-items: center; gap: 5px; padding: 13px 14px; border-bottom: 1px solid #ecedf3; }
.preview-heading > span:nth-child(2) { margin-left: 4px; font: 10px "Cascadia Code", Consolas, monospace; color: #9299a8; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #d6dae5; }
.preview-label { margin-left: auto; font-size: 10px; font-family: "Cascadia Code", Consolas, monospace; color: #9198a9; }
.preview-code { margin: 0; padding: 20px 19px; color: #7f8796; font: 12px/2 "Cascadia Code", Consolas, monospace; white-space: pre; }
.preview-code > div { display: flex; gap: 13px; }
.preview-code i { flex: 0 0 8px; color: #bdc3d0; font-style: normal; font-size: 10px; }
.preview-code b { color: #6672a2; font-weight: 400; }
.preview-code em { color: #8a93a8; font-style: normal; }
.preview-code strong { color: var(--blue); font-weight: 400; }
.preview-code .key { color: #616b99; }
.preview-code .value { color: #4c5be8; }
.preview-code .number { color: #9096a3; }
.preview-footer { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #ecedf3; color: #969eac; font-size: 10px; letter-spacing: .2px; }
.hash-card { padding: 30px; min-height: 292px; display: flex; flex-direction: column; align-items: flex-start; }
.card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.algorithm-tag { border: 1px solid #e9ebf1; border-radius: 5px; padding: 3px 7px; color: #9097a5; font-size: 10px; font-family: "Cascadia Code", Consolas, monospace; }
.hash-card .card-action { margin-top: auto; padding-top: 19px; }
.console-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 23px 28px; margin-top: 20px; background: #f8f9fb; border: 1px solid #eef0f4; border-radius: 13px; }
.console-symbol { display: grid; place-items: center; width: 40px; height: 40px; color: #777f90; flex-shrink: 0; }
.console-symbol svg { width: 25px; height: 25px; }
.console-copy { flex: 1; min-width: 0; }
.console-title { display: flex; align-items: center; gap: 11px; margin-bottom: 5px; }
.console-title h3, .console-card h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.console-copy p { color: var(--muted); font-size: 12px; }
.console-card .card-action { margin: 0 0 0 auto; color: #636c7b; font-size: 12px; }
.console-card .card-action:hover { color: var(--blue); }
.console-card > .button { margin-left: auto; font-size: 12px; }
.pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 2px 7px; color: #8a919e; background: #eef0f4; border-radius: 5px; font-size: 10px; line-height: 1.6; font-weight: 400; }
.about-strip { display: flex; align-items: center; gap: 20px; padding: 32px 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-strip > div { display: flex; align-items: center; gap: 19px; }
.about-mark { width: 30px; flex-shrink: 0; color: #adb3bf; font-size: 26px; font-weight: 300; text-align: center; }
.about-mark svg { width: 25px; height: 25px; }
.about-strip h2 { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.about-strip p { font-size: 13px; color: #606977; line-height: 1.9; }
.about-strip p span { color: #9299a6; font-size: 12px; }
.about-signature { margin-left: auto; color: #8c93a0; font-size: 12px; white-space: nowrap; letter-spacing: .2px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 36px; color: #9299a6; font-size: 11px; }
.site-footer a:hover { color: var(--blue); }
.footer-separator { margin: 0 9px; color: #c0c5d0; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.field-label { display: block; font-size: 13px; font-weight: 550; margin: 20px 0 8px; }
.label-hint { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #dfe3eb; border-radius: 8px; padding: 11px 12px; font-size: 14px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #bdc5d4; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #4c5be812; }
input::placeholder, textarea::placeholder { color: #a1a7b2; }
textarea { resize: vertical; min-height: 90px; }
input[type=number] { appearance: textfield; }
.code-input { font-family: "Cascadia Code", Consolas, Menlo, monospace; font-size: 13px; line-height: 1.8; tab-size: 2; }
.dialog { width: min(630px, calc(100% - 40px)); max-height: calc(100dvh - 64px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); padding: 30px; box-shadow: 0 24px 100px #19213a2b; }
.dialog::backdrop { background: #17213a52; backdrop-filter: blur(3px); }
.tool-dialog { width: min(800px, calc(100% - 40px)); }
.compact-dialog { width: min(470px, calc(100% - 40px)); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; }
.dialog-heading .eyebrow { margin-bottom: 7px; }
.dialog > .muted { font-size: 13px; }
.icon-button { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #7b8291; font-size: 24px; font-weight: 300; line-height: 1; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tool-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.form-message { font-size: 13px; min-height: 20px; margin-top: 10px; overflow-wrap: anywhere; }
.form-message.error, .error { color: var(--error); }
.form-message.success { color: var(--blue); }
.hash-output { word-break: break-all; background: #f8f9fc; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 12px 22px; color: #fff; background: #303747; border: 1px solid #424b60; border-radius: 10px; box-shadow: 0 6px 30px #19213a24; font-size: 13px; z-index: 1000; text-align: center; }
.skip-link { position: fixed; top: 12px; left: 16px; transform: translateY(-160%); z-index: 2000; padding: 10px 20px; background: var(--paper); border: 2px solid var(--blue); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-page { background: var(--soft); font-size: 14px; }
.session-loading { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; background: #fff; color: var(--muted); font-size: 14px; }
.session-loading img { animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.login-view { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.login-header { width: min(1160px, calc(100% - 112px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 31px 0; gap: 20px; }
.login-header .text-link { color: var(--muted); }
.login-header .text-link:hover { color: var(--blue); }
.login-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 90px; align-items: center; width: min(920px, calc(100% - 112px)); margin: auto; padding: 60px 0 105px; flex: 1; }
.login-intro .eyebrow { color: var(--blue); }
.login-intro h1 { font-size: 42px; font-weight: 550; line-height: 1.5; letter-spacing: -1.5px; margin: 20px 0; }
.login-intro > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.login-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 23px; font-weight: 600; margin: 0 0 7px; letter-spacing: -.4px; }
.login-card > .muted { font-size: 13px; margin-bottom: 26px; }
.login-card .field-label { margin-top: 18px; }
.login-card .button-full { margin-top: 14px; justify-content: space-between; }
.login-footnote { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: #969dac; margin-top: 24px; }
.login-footnote svg { width: 15px; height: 15px; }
.login-footer { text-align: center; font-size: 12px; color: #969dac; padding: 20px 24px 30px; }
.admin-shell { display: flex; min-height: 100dvh; }
.sidebar { width: 230px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 30px 18px 20px; display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; overflow-y: auto; }
.sidebar-brand { margin-left: 10px; }
.sidebar-brand span { font-size: 19px; }
.sidebar-brand small { font-size: 11px; }
.sidebar-label { font-size: 12px; color: #a0a7b3; margin: 42px 13px 12px; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 8px; background: transparent; color: #747d8d; padding: 12px 13px; font-size: 14px; text-align: left; font-weight: 400; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #f6f7fa; color: var(--ink); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 550; }
.sidebar-note { padding: 16px 13px; margin: 29px 0; border-top: 1px solid var(--line); font-size: 12px; }
.sidebar-note strong { font-weight: 500; color: #7f8796; }
.sidebar-note p { font-size: 12px; line-height: 1.85; color: #959caa; margin-top: 8px; }
.sidebar-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar-bottom .nav-item { padding-block: 10px; font-size: 13px; }
.sidebar-bottom .nav-item span { margin-left: auto; }
.logout-button { color: #8b94a4; }
.admin-main { margin-left: 230px; flex: 1; min-width: 0; padding: 42px clamp(24px,3.5vw,56px) 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.admin-header h1 { font-size: 28px; font-weight: 600; letter-spacing: -.7px; }
.admin-header .muted { font-size: 13px; margin-top: 8px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #7f8796; }
.user-avatar { width: 29px; height: 29px; border-radius: 50%; background: #e9edf6; display: grid; place-items: center; font-size: 12px; color: #747f9c; }
.refresh-button { font-size: 23px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); padding: 22px; border-radius: 12px; display: flex; flex-direction: column; min-width: 0; }
.stat-label { font-size: 13px; color: #7b8392; }
.stat-card strong { font-size: 36px; font-weight: 550; line-height: 1.4; margin: 14px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.stat-hint { font-size: 12px; color: #a0a7b3; }
.overview-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 24px; }
.surface { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 28px; }
.surface-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.surface h2 { font-size: 18px; font-weight: 600; }
.quick-start { display: flex; flex-direction: column; align-items: flex-start; background: #fff; }
.quick-start h2 { font-size: 22px; font-weight: 600; }
.quick-start > p:not(.small-text) { font-size: 14px; color: #7b8392; line-height: 1.9; margin: 15px 0 27px; max-width: 330px; }
.quick-start .button { margin-top: auto; }
.quick-start .small-text { margin-top: 16px; }
.steps-list { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps-list li { display: flex; align-items: flex-start; gap: 14px; position: relative; }
.steps-list li > span { background: #f5f6fa; border: 1px solid var(--line); width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: #8b93a2; font-variant-numeric: tabular-nums; }
.steps-list li:not(:last-child):before { content: ""; position: absolute; left: 14px; top: 35px; bottom: -16px; width: 1px; background: #e9ecf2; }
.steps-list h3 { font-size: 14px; font-weight: 550; margin: 2px 0 5px; }
.steps-list p { font-size: 12px; color: #8e96a4; line-height: 1.85; }
.overview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 24px; padding: 24px 28px; }
.overview-bottom p { font-size: 13px; margin-top: 8px; }
.overview-bottom .button { flex-shrink: 0; }
.admin-footer { font-size: 12px; color: #a0a7b3; padding: 28px 0; }
.alert { border: 1px solid; border-radius: 9px; padding: 13px 15px; font-size: 13px; margin-bottom: 20px; overflow-wrap: anywhere; }
.alert-error { color: #a53d4c; border-color: #f0d4da; background: #fff4f5; }
.alert-warm { color: #606fa4; border-color: #dfe4fa; background: #f4f6ff; }
.alert-warm strong { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 550; }
.alert-warm span { font-size: 12px; }
.table-surface { padding: 0; overflow: hidden; }
.table-heading { padding: 25px 27px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.table-heading h2 { font-size: 18px; }
.table-heading .small-text { margin-top: 6px; }
.filter-bar { padding: 0 27px 22px; display: flex; gap: 12px; align-items: center; }
.filter-field { flex-shrink: 0; width: 140px; }
.filter-bar input, .filter-bar select { font-size: 13px; min-height: 42px; }
.search-field { display: flex; gap: 8px; max-width: 440px; width: 100%; min-width: 0; }
.search-field input { min-width: 0; }
.search-field .button { flex-shrink: 0; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
thead { background: #fafbfc; color: #8c94a2; }
th { font-size: 12px; font-weight: 500; white-space: nowrap; padding: 14px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 27px; }
th:last-child, td:last-child { padding-right: 27px; }
td { padding: 18px 20px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfe; }
.cell-main { display: block; font-size: 13px; font-weight: 500; color: #50596c; }
.cell-sub { display: block; font-size: 12px; color: #9aa2af; margin-top: 5px; max-width: 230px; overflow-wrap: anywhere; }
.mono { font-family: "Cascadia Code", Consolas, Menlo, monospace; letter-spacing: .1px; }
.code-hint { font-size: 12px; white-space: nowrap; }
.cell-wxid { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cell-time { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; color: #8b94a4; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.status-badge:before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-unused, .status-completed { color: #5968d8; background: #eef1ff; }
.status-used, .status-ready { color: #7383ab; background: #f0f3fa; }
.status-revoked, .status-expired { color: #929aa9; background: #f1f3f6; }
.status-partial { color: #7981a4; background: #f1f2f9; }
.status-failed { color: #ba6674; background: #fff0f3; }
.row-action { background: none; border: 0; color: #8c7b91; font-size: 12px; padding: 5px 0; white-space: nowrap; }
.row-action:hover { color: var(--error); text-decoration: underline; }
.row-details { color: var(--blue); }
.row-details:hover { color: var(--blue-hover); }
.align-right { text-align: right; }
.empty-cell { text-align: center; padding: 55px 20px !important; color: #a0a7b3; }
.empty-title { display: block; color: #7b8596; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.empty-description { display: block; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 27px; border-top: 1px solid var(--line); }
.pagination .small-text { font-size: 12px; }
.page-number { font-size: 12px; min-width: 24px; text-align: center; color: #8690a1; font-variant-numeric: tabular-nums; }
.generated-codes { min-height: 230px; background: #fafbfe; }
.detail-list { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 14px 20px; font-size: 13px; margin: 25px 0; }
.detail-list dt { color: #929aa8; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) {
  .admin-main { max-width: 1550px; }
}
@media (max-width: 1100px) {
  .page-width, .login-header { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  .hero h1 { font-size: 50px; }
  .hero-aside { width: 240px; font-size: 13px; }
  .tool-grid { gap: 16px; }
  .json-card, .hash-card { padding: 26px; }
  .json-card { gap: 22px; }
  .code-preview { flex-basis: 43%; }
  .preview-code { font-size: 11px; padding-inline: 14px; }
  .sidebar { width: 210px; padding-inline: 14px; }
  .admin-main { margin-left: 210px; padding: 32px 25px 0; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; }
  .overview-grid { gap: 18px; grid-template-columns: 1fr 1fr; }
  .surface { padding: 23px; }
  .table-surface { padding: 0; }
  .login-layout { gap: 55px; width: calc(100% - 96px); }
}
@media (max-width: 900px) {
  .hero { padding: 58px 0 62px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.5px; }
  .hero-aside { width: 210px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .code-preview { display: none; }
  .json-card, .hash-card { min-height: 290px; }
  .tool-card h3 { font-size: 21px; }
  .about-signature { display: none; }
  .login-layout { gap: 36px; }
  .login-intro h1 { font-size: 34px; }
  .login-card { padding: 28px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .quick-start > p:not(.small-text) { max-width: none; }
  .overview-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .user-chip #current-user { display: none; }
  .table-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .page-width, .login-header { width: calc(100% - 40px); }
  .site-header { height: 82px; gap: 15px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand small { font-size: 10px; letter-spacing: .3px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 17px; }
  .site-nav > a:not(.button) { display: none; }
  .site-nav .button { font-size: 12px; padding: 9px 12px; min-height: 38px; }
  .hero { display: block; padding: 44px 0 43px; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 11px; }
  .hero h1 { font-size: clamp(36px, 9.8vw, 48px); letter-spacing: -1.6px; line-height: 1.35; }
  .hero-aside { width: auto; max-width: 330px; margin: 25px 0 0; font-size: 13px; }
  .hero-aside br { display: none; }
  .hero-aside .text-link { margin-top: 14px; }
  .section-heading { margin-bottom: 18px; gap: 12px; align-items: flex-end; }
  .section-heading h2 { font-size: 18px; }
  .section-title { gap: 8px; }
  .section-note { font-size: 11px; text-align: right; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .json-card, .hash-card { padding: 25px; min-height: 265px; }
  .tool-category { margin-top: 17px; }
  .tool-card h3 { font-size: 22px; }
  .tool-description { font-size: 13px; }
  .json-card .card-action, .hash-card .card-action { padding-top: 22px; }
  .console-card { gap: 12px; padding: 20px; flex-wrap: wrap; }
  .console-symbol { width: 28px; }
  .console-copy { flex-basis: calc(100% - 40px); }
  .console-title { gap: 8px; flex-wrap: wrap; }
  .console-card .card-action { margin-left: 40px; padding-top: 1px; }
  .console-card > .button { margin-left: 40px; min-height: 37px; padding: 8px 12px; }
  .about-strip { margin-top: 28px; padding: 24px 0; gap: 13px; align-items: flex-start; }
  .about-mark { width: 26px; }
  .about-strip p { line-height: 1.8; }
  .site-footer { font-size: 11px; gap: 12px; padding: 24px 0 29px; flex-wrap: wrap; }
  .footer-separator { margin-inline: 6px; }
  .dialog { padding: 23px; width: calc(100% - 28px); max-height: calc(100dvh - 32px); border-radius: 13px; }
  .dialog-heading h2 { font-size: 20px; }
  .tool-toolbar { align-items: stretch; }
  .tool-toolbar .button-group { flex-wrap: wrap; }
  .button { font-size: 13px; gap: 9px; padding: 10px 13px; }
  .button-small { font-size: 12px; padding: 7px 10px; }
  .dialog-actions { gap: 8px; }
  .label-hint { display: inline; font-size: 12px; margin-left: 5px; }
  .login-header { padding: 24px 0; }
  .login-header .text-link { font-size: 12px; gap: 8px; }
  .login-layout { width: min(420px, calc(100% - 40px)); display: block; padding: 28px 0 42px; }
  .login-intro { margin-bottom: 30px; }
  .login-intro h1 { font-size: 29px; letter-spacing: -.7px; margin: 13px 0; }
  .login-intro h1 br { display: none; }
  .login-intro > p:not(.eyebrow) { font-size: 13px; }
  .login-intro > p br { display: none; }
  .login-card { padding: 26px; }
  .login-card h2 { font-size: 22px; }
  .login-footer { padding-bottom: 24px; }
  .admin-shell { display: block; }
  .sidebar { position: static; width: 100%; padding: 19px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 17px 8px; overflow: visible; }
  .sidebar-brand { grid-row: 1; grid-column: 1; margin: 0; gap: 8px; }
  .sidebar-brand span { font-size: 18px; }
  .sidebar-brand small { font-size: 10px; }
  .sidebar-label, .sidebar-note { display: none; }
  .sidebar-bottom { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 2px; padding: 0; margin: 0; border: 0; }
  .sidebar-bottom > a { display: none; }
  .sidebar-bottom .nav-item { width: auto; padding: 7px 4px; font-size: 12px; white-space: nowrap; }
  .admin-nav { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  .admin-nav .nav-item { justify-content: center; gap: 7px; padding: 12px 6px; font-size: 13px; border-radius: 7px 7px 0 0; white-space: nowrap; }
  .admin-nav .nav-item svg { width: 16px; height: 16px; }
  .admin-main { margin: 0; padding: 27px 20px 0; }
  .admin-header { gap: 12px; margin-bottom: 24px; }
  .admin-header h1 { font-size: 24px; }
  .admin-header .muted { font-size: 12px; margin-top: 7px; }
  .user-chip { display: none; }
  .header-actions { gap: 8px; }
  .stats-grid { gap: 12px; margin-bottom: 18px; }
  .stat-card { padding: 17px; }
  .stat-label { font-size: 12px; }
  .stat-card strong { font-size: 31px; margin: 11px 0 6px; }
  .stat-hint { font-size: 12px; }
  .overview-grid { gap: 18px; }
  .surface { padding: 22px; }
  .table-surface { padding: 0; }
  .quick-start h2 { font-size: 20px; }
  .quick-start > p:not(.small-text) { font-size: 13px; margin: 13px 0 23px; }
  .overview-bottom { margin-top: 18px; }
  .overview-bottom h2 { font-size: 17px; }
  .overview-bottom p { font-size: 13px; }
  .steps-list { gap: 22px; }
  .surface-heading { gap: 10px; }
  .surface-heading h2 { font-size: 17px; }
  .table-heading { padding: 21px 18px; gap: 16px; }
  .table-heading h2 { font-size: 18px; }
  .table-heading .small-text { font-size: 12px; }
  .filter-bar { padding: 0 18px 20px; gap: 10px; flex-wrap: wrap; }
  .filter-field { width: 100%; }
  .search-field { max-width: none; }
  .filter-bar input, .filter-bar select { font-size: 13px; }
  .pagination { padding: 17px 18px; gap: 12px; flex-wrap: wrap; }
  .pagination .button-group { gap: 5px; }
  .pagination .button-small { padding: 7px 9px; }
  .page-number { min-width: 20px; }
  th, td { padding-inline: 16px; }
  th:first-child, td:first-child { padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  .detail-list { grid-template-columns: 85px minmax(0,1fr); gap: 13px 12px; font-size: 12px; }
  .generated-codes { font-size: 12px; }
  .admin-footer { padding: 25px 0; font-size: 12px; }
}
@media (max-width: 360px) {
  .page-width, .login-header { width: calc(100% - 32px); }
  .sidebar { padding-inline: 16px; }
  .sidebar-brand { gap: 6px; }
  .sidebar-brand img { width: 26px; height: 26px; }
  .sidebar-brand span { font-size: 16px; }
  .sidebar-bottom { gap: 0; }
  .sidebar-bottom .nav-item { padding-inline: 3px; }
  .admin-nav .nav-item { gap: 5px; font-size: 12px; }
  .admin-nav .nav-item svg { width: 14px; height: 14px; }
  .admin-main { padding-inline: 16px; }
  .stat-card { padding: 15px 13px; }
  .stat-hint { font-size: 12px; line-height: 1.5; }
  .surface { padding: 19px; }
  .table-surface { padding: 0; }
  .dialog { padding: 20px; }
  .login-layout { width: calc(100% - 32px); }
  .login-card { padding: 22px; }
  .section-note { max-width: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
