@import url("common.css?v=019bc899");
/* XIUSoft account. Tokens follow the account DESIGN.md of the previous page (navy register, cyan
   signal, cream identity record); a light theme was added. Theme: system by default,
   <html data-theme="light|dark"> overrides. No inline styles anywhere (strict CSP). */
:root {
  color-scheme: dark;
  --ink: #071017; --surface: #0b1520; --raised: #0f1e2a; --soft: #132634;
  --line: rgba(218, 238, 242, .14); --line-strong: rgba(218, 238, 242, .27);
  --text: #fff; --text-soft: #eef5f7; --body: #c7d5db; --muted: #8ca0aa; --faint: #7a8f9a;
  --accent: #67e8f9; --accent-hover: #a5f3fc; --on-accent: #06222b;
  --link: #67e8f9;
  --cream: #fff0d4; --on-cream: #17212a; --cream-muted: #51606b;
  --warn: #f2c46f; --warn-bg: rgba(242, 196, 111, .1);
  --danger: #f09a9a; --danger-bg: rgba(240, 154, 154, .1); --danger-solid: #f09a9a; --on-danger: #2a0b0b;
  --ok: #86e0a8; --ok-bg: rgba(134, 224, 168, .1);
  --focus: #67e8f9;
  --r-ctl: 8px; --r-panel: 12px; --r-sm: 6px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", system-ui, sans-serif;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f4f7f9; --surface: #fff; --raised: #f7fafb; --soft: #e9f0f3;
  --line: rgba(11, 21, 32, .13); --line-strong: rgba(11, 21, 32, .3);
  --text: #07121b; --text-soft: #0b1b27; --body: #33454f; --muted: #52646e; --faint: #5f717b;
  --accent: #0e7490; --accent-hover: #0b5e75; --on-accent: #fff; --link: #0a6179;
  --cream: #fff0d4; --on-cream: #17212a; --cream-muted: #51606b;
  --warn: #8a5a00; --warn-bg: #fff5dc; --danger: #b42318; --danger-bg: #fdecea; --danger-solid: #b42318; --on-danger: #fff;
  --ok: #146c43; --ok-bg: #e5f6ec; --focus: #0e7490;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--body); font-size: 15px; line-height: 1.6; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1:focus-visible { outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-ctl); text-decoration: none; }
.skip-link:focus { top: 8px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); color: var(--body); text-decoration: none; border: 1px solid transparent; }
.nav a:hover { background: var(--raised); color: var(--text); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); font-weight: 600; }
.nav .danger-link { margin-top: 12px; color: var(--danger); }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--line); min-height: 64px; flex-wrap: wrap; }
.topbar .who { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
main { width: 100%; max-width: 1120px; padding: 36px 28px 64px; margin: 0 auto; flex: 1; }
main > * + * { margin-top: 28px; }
main > div:not([class]) > * + * { margin-top: 16px; }
main > div:not([class]) > h2.sec { margin-top: 32px; margin-bottom: 0; }
.notice .field, .notice form { margin-top: 12px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; color: var(--text); font-weight: 750; overflow-wrap: anywhere; }
.page-head p { margin-top: 8px; max-width: 64ch; color: var(--body); }
h2.sec { font-size: 1.05rem; color: var(--text); font-weight: 700; margin-bottom: 12px; }

/* ---- components ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.panel > * + * { margin-top: 16px; }
.record { background: var(--cream); color: var(--on-cream); border-radius: var(--r-panel); padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; align-items: center; }
.record .avatar { width: 64px; height: 64px; border-radius: 50%; background: #17212a; color: var(--cream); display: grid; place-items: center; font-size: 26px; font-weight: 700; grid-row: span 2; }
.record h2 { font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.record p { color: var(--cream-muted); overflow-wrap: anywhere; }
.record dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; border-top: 1px solid rgba(23, 33, 42, .18); padding-top: 14px; margin-top: 6px; }
.record dt { font-size: 12px; letter-spacing: .06em; color: var(--cream-muted); }
.record dd { font-weight: 600; overflow-wrap: anywhere; }
.rows { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.rows > li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; flex-wrap: wrap; }
.rows > li + li { border-top: 1px solid var(--line); }
.row-main { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 260px; }
.row-main .icon { color: var(--accent); width: 24px; height: 24px; }
.row-title { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--body); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.badge.off { color: var(--muted); }
.badge.bad { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: var(--r-sm); background: var(--soft); color: var(--body); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--raised); }
.notice .icon { margin-top: 2px; }
.notice > div > * + * { margin-top: 4px; }
.notice strong { color: var(--text); }
.notice.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.notice.warn .icon { color: var(--warn); }
.notice.bad { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.notice.bad .icon { color: var(--danger); }
.notice.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.notice.ok .icon { color: var(--ok); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: var(--r-ctl); font-weight: 650; font-size: 14.5px; text-decoration: none; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text-soft); transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--soft); color: var(--text); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.danger { background: var(--danger-solid); border-color: var(--danger-solid); color: var(--on-danger); }
.btn.danger:hover { filter: brightness(1.08); color: var(--on-danger); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.btn.ghost { background: transparent; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; transform: none; pointer-events: none; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-weight: 600; color: var(--text-soft); font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], select { width: 100%; min-height: 44px; padding: 9px 12px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--text); }
input:disabled { opacity: .65; }
select { appearance: none; padding-inline-end: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
:root[dir="rtl"] select { background-position: 18px 50%, 13px 50%; }
form.stack > * + * { margin-top: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-select { width: auto; min-height: 40px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
ul.plain { list-style: disc; padding-inline-start: 1.2em; }
ul.plain li + li { margin-top: 6px; }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps .icon { width: 18px; height: 18px; }
.steps .ok { color: var(--ok); }
.steps .bad { color: var(--danger); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

/* ---- sign-in ---- */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100dvh; }
.auth-aside { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 40px 48px; display: flex; flex-direction: column; gap: 40px; }
.auth-aside h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; color: var(--text); font-weight: 750; }
.auth-aside p.lead { margin-top: 16px; max-width: 42ch; font-size: 16px; }
.aside-note { margin-top: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.aside-note strong { color: var(--cream); display: flex; gap: 8px; align-items: center; }
.aside-note p { margin-top: 6px; font-size: 14px; }
:root[data-theme="light"] .aside-note strong { color: var(--text); }
.products-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-body { width: 100%; max-width: 480px; margin: 0 auto; padding: 48px 24px; flex: 1; }
.auth-body > * + *, .auth-body > div > * + * { margin-top: 22px; }
.auth-body h2 + p { margin-top: 8px; }
.auth-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; color: var(--text); font-weight: 750; }
.provider { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: var(--r-ctl); background: var(--raised); border: 1px solid var(--line-strong); color: var(--text-soft); text-align: start; }
.provider:hover { background: var(--soft); }
.provider .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.provider strong { color: var(--text); font-weight: 650; }
.provider[disabled] { opacity: .5; }
.providers { display: grid; gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.linklike { background: none; padding: 4px 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.center-note { text-align: center; }

@media (max-width: 899px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar { position: static; height: auto; flex-direction: column; gap: 10px; padding: 12px 16px 8px; border-inline-end: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .nav a { white-space: nowrap; flex: none; padding: 8px 12px; }
  .nav .danger-link { margin-top: 0; }
  .topbar { padding: 10px 16px; }
  main { padding: 24px 16px 48px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { padding: 24px 16px; gap: 20px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .auth-aside .aside-note { margin-top: 0; }
  .auth-body { padding: 28px 16px 40px; }
  .panel, .record { padding: 18px; }
  .rows > li { padding: 14px 16px; }
}
@media (max-width: 420px) {
  .auth-aside h1 { font-size: 1.9rem; }
  .record { grid-template-columns: 1fr; }
  .record .avatar { grid-row: auto; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
@media (forced-colors: active) { .btn, .provider, .badge, .panel, .rows, .notice { border: 1px solid CanvasText; } }

/* ===== XIUSoft design v2: dark default (light only via data-theme="light"), cobalt + yellow ===== */
:root{--ink:var(--xs-bg);--surface:var(--xs-panel);--raised:var(--xs-soft);--soft:#232a3a;--accent:var(--xs-accent);--accent-hover:var(--xs-accent-hover);--on-accent:var(--xs-on-accent);--link:#8fb0f5;--focus:var(--xs-focus);--cobalt:var(--xs-cobalt);--sun:var(--xs-sun);--cream:var(--xs-cream);--r-ctl:14px;--r-panel:24px}
body{font-size:15.5px}
a{text-decoration-thickness:1px}
.btn,.provider,.linklike{transition:background-color .15s,transform .15s,border-color .15s}
.btn{border-radius:999px;padding:10px 22px}
.btn.small{padding:6px 14px}
.btn.primary{box-shadow:none}
input[type="text"],input[type="email"],input[type="password"],select{border-radius:14px;min-height:52px;background:var(--surface);border-color:var(--xs-line-strong);transition:border-color .15s,box-shadow .15s}
input:focus-visible,select:focus-visible{outline:0;border-color:var(--accent);box-shadow:0 0 0 4px rgba(127,162,242,.25)}
.provider{border-radius:16px;min-height:58px;background:var(--surface);border-color:var(--xs-line)}
.provider:hover:not([disabled]){border-color:var(--accent)}
.panel{border-radius:var(--r-panel);padding:28px;background:var(--surface);border-color:var(--xs-line)}
.rows{border-radius:var(--r-panel);background:var(--surface);border-color:var(--xs-line)}
.rows>li+li{border-color:var(--xs-line)}
.record{background:var(--cobalt);color:var(--cream);border-radius:28px;padding:28px}
.record .avatar{background:var(--sun);color:#14171f}
.record p,.record dt{color:#e3e9f7}
.record dl{border-top-color:rgba(251,246,234,.25)}
.sidebar{background:var(--xs-bg-deep);border-inline-end:0;padding:24px 16px}
.nav a{border-radius:14px;border:0;color:var(--xs-muted);font-weight:500}
.nav a:hover{background:var(--surface);color:var(--text)}
.nav a[aria-current="page"]{background:var(--cobalt);color:var(--cream);font-weight:700}
.nav .danger-link{color:#f09a9a}
.content{background:var(--ink)}
.topbar{border-bottom:0}
.page-head h1{font-size:clamp(1.9rem,4vw,3rem);font-weight:800;letter-spacing:-.045em}
.row-main .icon{color:var(--accent)}
.badge,.tag{border-radius:999px}
.notice{border-radius:16px}
.auth-aside{background:var(--cobalt);color:var(--cream);border:0;border-radius:0 40px 40px 0;padding:48px 56px;--text:#fbf6ea;--body:#e3e9f7;--muted:#e3e9f7}
.auth-aside h1{font-size:clamp(2.4rem,4.6vw,4rem);font-weight:800;letter-spacing:-.045em;line-height:1.08}
.auth-aside p.lead{font-size:18px}
.auth-aside .tag{background:transparent;border:1.5px solid #8da6dd;color:var(--cream);padding:4px 14px}
.aside-note{background:rgba(14,17,23,.28);border:0;border-radius:20px;padding:20px 24px}
.aside-note strong{color:var(--sun)}
.auth-body{padding-top:72px}
.auth-body h2{font-weight:800;letter-spacing:-.045em}
@media (max-width:899px){.auth-aside{border-radius:0 0 32px 32px;padding:28px 20px}.auth-body{padding-top:32px}.sidebar{background:var(--surface)}}

/* ===== shared chrome layout: same container, header and footer as the static sites ===== */
:root[data-theme="light"]{--accent:var(--xs-accent);--accent-hover:var(--xs-accent-hover);--on-accent:var(--xs-on-accent);--link:#1d3f88;--focus:var(--xs-focus)}
html{scroll-padding-top:96px}
.page{min-height:100dvh;display:flex;flex-direction:column;background:var(--ink)}
.shell{display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;width:100%;padding-block:32px 72px;flex:1;min-height:0}
.sidebar{position:sticky;top:96px;align-self:start;height:auto;padding:0;background:none;border:0;overflow:visible;display:block}
.content{min-width:0;background:none;display:block}
.topbar{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:0;padding:0 0 28px;border:0;background:none;backdrop-filter:none}
.shell main{max-width:none;margin:0;padding:0}
.auth{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);min-height:640px;margin:40px 0 72px;border-radius:40px;overflow:hidden;background:var(--surface);border:1px solid var(--xs-line)}
.auth-aside{border-radius:0;min-height:0;padding:48px;gap:32px}
.auth-aside .aside-note{margin-top:auto}
.auth-body{max-width:520px;margin:0 auto;padding:56px 40px;width:100%;flex:none}
.auth-single{max-width:640px;margin:48px auto 72px}
.auth-single .auth-body{padding:0}
@media (max-width:899px){
  .shell{grid-template-columns:minmax(0,1fr);gap:16px;padding-block:20px 48px}
  .sidebar{position:static}
  .auth{grid-template-columns:minmax(0,1fr);margin:20px 0 48px;border-radius:28px}
  .auth-aside{padding:28px 22px}
  .auth-body{padding:28px 22px 36px}
  .auth-single{margin:24px auto 48px}
}
