@charset "UTF-8";

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #282c40;
  background: #f7f8fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #f7f8fc;
  --surface: #fff;
  --surface-alt: #fafafe;
  --text: #282c40;
  --muted: #858899;
  --soft: #646b80;
  --border: #eceef5;
  --accent: #6956d8;
  --accent-hover: #5743c5;
  --accent-soft: #f0edfc;
  --green: #289778;
  --green-bg: #edf8f3;
  --danger: #b95142;
  --danger-bg: #fff4ef;
  --shadow: 0 4px 20px #31345b03;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #14151d;
  --surface: #1d1e28;
  --surface-alt: #232430;
  --text: #e8e7f3;
  --muted: #9b9eaf;
  --soft: #b1b3c5;
  --border: #30313f;
  --accent: #b4a5ff;
  --accent-hover: #c4b9ff;
  --accent-soft: #302a48;
  --green: #75ceac;
  --green-bg: #243b33;
  --danger: #f6ad96;
  --danger-bg: #3e2b29;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, a, summary { touch-action: manipulation; }
button, a, textarea, input, select { transition: background .18s, border-color .18s, box-shadow .18s, color .18s; }
:focus-visible { outline: 3px solid #a796f5; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -70px; left: 20px; padding: 10px 18px; background: var(--surface); z-index: 10; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; flex-shrink: 0; padding: 34px 21px 24px; background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 760; letter-spacing: -.7px; padding: 0 7px; }
.brand-mark { width: 38px; height: 41px; background: #6956d8; border-radius: 12px; color: white; display: grid; place-items: center; box-shadow: 0 4px 10px #6956d828; }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-light { font-size: 16px; font-weight: 500; letter-spacing: -.4px; color: var(--soft); }
.nav-heading { color: var(--muted); font-size: 11px; letter-spacing: 1.5px; padding: 52px 16px 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 8px; border-radius: 9px; color: var(--soft); font-size: 13px; font-weight: 500; }
.nav-item:hover { background: var(--surface-alt); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.nav-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-left: auto; }
.sidebar-note { margin: auto 3px 30px; padding: 19px 16px 17px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; }
.note-icon { display: inline-flex; color: var(--accent); margin-bottom: 12px; }
.sidebar-note strong { display: block; font-size: 12px; font-weight: 600; }
.sidebar-note p { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 8px; }
.local-label { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 10px; margin-top: 17px; }
.local-label i, .local-badge i, .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.sidebar-footer { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; padding: 0 10px; }
.workspace { flex: 1; min-width: 0; }
.topbar { height: 78px; padding: 0 42px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface); }
.breadcrumb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 15px; }
.breadcrumb span { color: #c5c6d2; }
.breadcrumb strong { font-weight: 500; color: var(--soft); }
.topbar-actions { display: flex; gap: 23px; align-items: center; }
.local-badge { font-size: 11px; color: var(--green); display: inline-flex; gap: 7px; align-items: center; padding: 4px 10px; background: var(--green-bg); border-radius: 6px; }
.icon-button { border: none; background: transparent; width: 32px; height: 32px; padding: 6px; display: inline-grid; place-items: center; color: var(--muted); border-radius: 7px; }
.icon-button:hover { background: var(--accent-soft); color: var(--accent); }
main { max-width: 1310px; padding: 42px 42px 0; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 33px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2.2px; color: var(--accent); margin-bottom: 12px; }
h1 { font-size: clamp(24px, 2.4vw, 33px); letter-spacing: -.9px; font-weight: 650; line-height: 1.5; }
h1 span { color: var(--accent); }
.page-description { font-size: 12px; color: var(--soft); margin-top: 9px; }
.heading-icon { width: 62px; height: 62px; border: 1px solid var(--border); background: var(--surface); border-radius: 18px; display: grid; place-items: center; color: var(--accent); transform: rotate(8deg); margin-right: 9px; box-shadow: 0 8px 18px #6956d806; }
.heading-icon .icon { width: 31px; height: 31px; transform: rotate(-8deg); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { padding: 21px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 8px; }
.panel-title { display: flex; align-items: center; gap: 10px; }
.step { font-size: 10px; font-weight: 650; color: var(--accent); background: var(--accent-soft); border-radius: 6px; width: 25px; height: 25px; display: grid; place-items: center; }
h2 { font-size: 15px; font-weight: 650; }
.subtle-tag { font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; }
form { padding: 23px 24px 22px; }
.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.field-label label { font-size: 12px; font-weight: 500; }
.text-button { padding: 3px 0; background: none; border: none; color: var(--accent); font-size: 11px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.text-button:hover:not(:disabled) { color: var(--accent-hover); }
.text-button .icon { width: 13px; height: 13px; }
#demo-button span { margin-left: 2px; font-size: 15px; }
textarea { width: 100%; min-height: 214px; padding: 17px 16px; color: var(--text); font: 12px/1.9 ui-monospace, "SFMono-Regular", Consolas, monospace; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-alt); resize: vertical; display: block; }
textarea::placeholder { color: var(--muted); opacity: .85; }
textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea[aria-invalid="true"] { border-color: var(--danger); }
.input-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 9px; }
#line-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.over-limit, .input-error { color: var(--danger); }
.input-error { font-size: 12px; margin-top: 10px; }
.settings { margin: 23px 0 20px; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--soft); width: fit-content; }
summary::-webkit-details-marker { display: none; }
summary .icon { width: 13px; height: 13px; transition: transform .2s; }
details[open] > summary .icon { transform: rotate(180deg); }
.settings > p { font-size: 10px; color: var(--muted); margin-top: 12px; }
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 10px; margin-top: 10px; }
.settings-grid label { display: grid; gap: 6px; font-size: 10px; color: var(--soft); }
select, input[type="number"] { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 7px; padding: 8px 7px; color: var(--text); width: 100%; min-width: 0; font-size: 12px; }
.form-actions { display: flex; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; border: none; border-radius: 8px; font-size: 12px; font-weight: 550; padding: 0 18px; }
.button.primary { color: white; background: #6956d8; flex: 1; box-shadow: 0 4px 9px #6956d81a; }
.button.primary:hover { background: #5945c7; }
.button.primary .icon { width: 16px; height: 16px; }
.button.primary .arrow { margin-left: auto; }
.button.primary .icon:first-child { margin-right: auto; }
.button.secondary { background: var(--surface); color: var(--soft); border: 1px solid var(--border); min-width: 65px; }
.button.secondary:hover { background: var(--surface-alt); }
.privacy-line { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 18px; }
.privacy-line .icon { width: 12px; height: 12px; }
.results-panel { display: flex; flex-direction: column; min-height: 525px; }
.results-body { padding: 22px 24px; flex: 1; }
.empty-state { min-height: 364px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-illustration { position: relative; width: 160px; height: 140px; display: grid; place-items: center; margin-top: -9px; }
.orbit { position: absolute; width: 124px; height: 124px; border: 1px solid var(--border); border-radius: 50%; }
.orbit-two { width: 160px; height: 160px; border-style: dashed; opacity: .7; }
.empty-key { width: 74px; height: 74px; border-radius: 22px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); transform: rotate(-10deg); }
.empty-key .icon { width: 32px; height: 32px; }
.small-lock { position: absolute; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--surface); color: var(--green); border: 1px solid var(--border); right: 12px; bottom: 23px; transform: rotate(8deg); }
.small-lock .icon { width: 15px; height: 15px; }
.orbit-dot { position: absolute; width: 7px; height: 7px; background: #c7bdf3; border: 2px solid var(--surface); border-radius: 50%; left: 14px; top: 38px; }
.empty-state h3 { font-size: 13px; font-weight: 550; margin-top: 25px; }
.empty-state p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 9px; }
.empty-token { display: flex; align-items: center; gap: 21px; background: var(--surface-alt); border: 1px solid var(--border); padding: 2px 14px; border-radius: 7px; margin-top: 23px; color: var(--muted); }
.empty-token span { letter-spacing: 6px; font-size: 23px; }
.empty-token .icon { width: 13px; height: 13px; opacity: .5; }
.results-footer { display: flex; gap: 7px; align-items: center; border-top: 1px solid var(--border); padding: 13px 24px; font-size: 10px; color: var(--muted); }
.results-footer .icon { width: 13px; height: 13px; margin-left: auto; }
.count-badge { min-width: 19px; padding: 0 5px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); text-align: center; font-size: 10px; }
.results-list { display: flex; flex-direction: column; gap: 14px; max-height: 600px; overflow: auto; scrollbar-width: thin; }
.account-card { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.account-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.account-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-identity > div { min-width: 0; }
.account-avatar { flex-shrink: 0; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); }
.account-avatar .icon { width: 16px; height: 16px; }
.account-name { font-size: 11px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-settings { color: var(--muted); font-size: 9px; margin-top: 1px; }
.remove-button { flex-shrink: 0; }
.remove-button .icon { width: 14px; height: 14px; }
.code-row { display: flex; gap: 10px; align-items: center; padding: 18px 0 15px; }
.token { font: 600 clamp(22px, 2.2vw, 32px)/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: 3px; color: var(--accent); user-select: all; }
.countdown { --progress: 360deg; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress), var(--accent-soft) 0); display: grid; place-items: center; padding: 2px; margin-left: auto; }
.countdown span { width: 26px; height: 26px; display: grid; place-items: center; background: var(--surface); border-radius: 50%; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--soft); }
.countdown.expiring { background: conic-gradient(var(--danger) var(--progress), var(--danger-bg) 0); }
.countdown.expiring span { color: var(--danger); }
.copy-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--border); color: var(--soft); border-radius: 6px; background: var(--surface); font-size: 10px; }
.copy-button .icon { width: 13px; height: 13px; }
.copy-button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.account-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 9px; border-top: 1px solid var(--border); }
.secret-preview { font-size: 10px; color: var(--muted); word-break: break-all; }
.reveal-button { width: 26px; height: 26px; flex-shrink: 0; }
.reveal-button .icon { width: 14px; height: 14px; }
.parse-errors { background: var(--danger-bg); color: var(--danger); padding: 12px 14px; margin-bottom: 14px; border-radius: 8px; font-size: 11px; overflow: auto; max-height: 190px; }
.parse-errors strong { font-weight: 600; }
.parse-errors ul { padding-left: 17px; margin: 6px 0 0; }
.parse-errors li { margin: 4px 0; }
.guide { margin-top: 29px; border: 1px solid var(--border); border-radius: 14px; padding: 21px 25px 16px; background: var(--surface); }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.guide-heading .icon { width: 16px; height: 16px; color: var(--accent); }
.guide-heading > span { font-size: 10px; color: var(--muted); }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 29px; margin-top: 23px; }
.guide-steps article { display: flex; align-items: flex-start; gap: 10px; }
.guide-number { width: 21px; height: 21px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-alt); border: 1px solid var(--border); color: var(--muted); border-radius: 50%; font-size: 10px; }
.guide-steps h3 { font-size: 11px; font-weight: 550; margin-bottom: 5px; }
.guide-steps p { font-size: 10px; line-height: 1.9; color: var(--muted); }
.format-help { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.format-help summary { color: var(--accent); font-size: 10px; }
.format-help p { font-size: 11px; color: var(--soft); line-height: 1.8; margin: 12px 0; }
.format-help code { display: block; width: fit-content; max-width: 100%; background: var(--surface-alt); padding: 6px 10px; font-size: 11px; color: var(--soft); border-radius: 5px; margin: 6px 0; word-break: break-all; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 23px 0 25px; font-size: 10px; color: var(--muted); }
.page-footer span:first-child { display: flex; align-items: center; gap: 6px; }
.page-footer .icon { width: 13px; height: 13px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--text); color: var(--surface); border-radius: 10px; padding: 12px 20px; font-size: 12px; box-shadow: 0 6px 25px #0002; max-width: calc(100vw - 32px); width: max-content; text-align: center; }
.clipboard-helper { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; min-height: 0; }
.noscript { background: var(--danger-bg); color: var(--danger); position: fixed; inset: 0 0 auto; padding: 20px; text-align: center; }
@media (min-width: 1600px) { main { padding-top: 54px; } .tool-layout { gap: 28px; } }
@media (max-width: 1180px) {
  .sidebar { width: 207px; padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-light { font-size: 14px; }
  main { padding: 32px 26px 0; }
  .topbar { padding: 0 26px; }
  .tool-layout { gap: 18px; }
  .panel-heading { padding: 19px; }
  form, .results-body { padding: 20px; }
  .token { letter-spacing: 2px; font-size: 25px; }
  .copy-button span { display: none; }
  .guide-steps { gap: 18px; }
}
@media (max-width: 960px) {
  .sidebar { width: 190px; }
  .brand-light { display: none; }
  .tool-layout { grid-template-columns: 1fr; }
  .results-panel { min-height: 360px; }
  .empty-state { min-height: 300px; }
  .copy-button span { display: inline; }
  .token { font-size: 31px; letter-spacing: 4px; }
  .guide-steps { grid-template-columns: 1fr; gap: 18px; }
  textarea { min-height: 180px; }
  .heading-icon { display: none; }
}
@media (max-width: 640px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; height: auto; padding: 15px 20px; position: static; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { padding: 0; font-size: 20px; }
  .brand-light { display: inline; font-size: 13px; }
  .brand-mark { width: 32px; height: 35px; border-radius: 10px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .sidebar nav { display: flex; }
  .sidebar nav .nav-item:first-child, .nav-heading, .sidebar-note, .sidebar-footer { display: none; }
  .nav-item { padding: 7px 0 7px 8px; margin: 0; font-size: 11px; gap: 6px; }
  .nav-item .icon { width: 15px; height: 15px; }
  .topbar { height: 56px; padding: 0 20px; }
  .topbar-actions { gap: 13px; }
  .breadcrumb { font-size: 10px; gap: 10px; }
  .local-badge { font-size: 9px; padding: 3px 6px; }
  main { padding: 27px 18px 0; }
  .page-heading { margin-bottom: 24px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; margin-bottom: 9px; }
  h1 { font-size: 25px; letter-spacing: -1px; }
  .page-description { font-size: 11px; line-height: 1.9; max-width: 310px; }
  .panel { border-radius: 12px; }
  .panel-heading { padding: 17px 18px; min-height: 64px; }
  h2 { font-size: 14px; }
  form, .results-body { padding: 18px; }
  .field-label label { font-size: 11px; }
  textarea { font-size: 12px; }
  .input-meta { font-size: 9px; }
  .privacy-line { font-size: 9px; }
  .results-footer { padding: 12px 18px; }
  .account-card { padding: 13px; }
  .token { font-size: 29px; letter-spacing: 2px; }
  .code-row { gap: 8px; }
  .copy-button { padding: 7px; }
  .guide { padding: 18px; margin-top: 20px; }
  .guide-heading > span { font-size: 9px; }
  .page-footer { font-size: 8px; align-items: flex-start; }
}
@media (max-width: 370px) {
  main { padding-left: 12px; padding-right: 12px; }
  .copy-button span { display: none; }
  .token { font-size: 27px; letter-spacing: 1px; }
  .brand-light { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
