@charset "UTF-8";

:root {
  --bg: #f4f7fb;
  --surface: #fff;
  --ink: #14243d;
  --muted: #6a7890;
  --line: #e5ebf3;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #edf4ff;
  --teal: #08988d;
  --teal-soft: #e8f8f4;
  --amber: #ab6b08;
  --amber-soft: #fff5df;
  --red: #c13e4e;
  --red-soft: #fff0f2;
  --shadow: 0 4px 20px #182f5710;
  --radius: 16px;
  --sidebar-width: 232px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
p, h1, h2, h3 { margin: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 16px; height: 16px; }
.initial-loading { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 20px; color: var(--muted); }
.loading-mark { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.noscript { margin: 40px; padding: 20px; background: white; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #3478f6, #19b5b6); box-shadow: 0 5px 12px #2563eb26; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-name { font-size: 17px; font-weight: 750; letter-spacing: -.45px; }
.brand-sub { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--line); z-index: 5; display: flex; flex-direction: column; padding: 28px 18px 20px; }
.sidebar .brand { margin: 0 8px 45px; }
.nav-label { color: #99a5b7; font-size: 11px; letter-spacing: 1px; padding: 0 14px 12px; }
.nav-list { display: grid; gap: 7px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: transparent; border: 0; border-radius: 10px; color: #66748b; text-align: left; font-weight: 550; }
.nav-button:hover { background: #f5f8fc; color: var(--ink); }
.nav-button.active { color: var(--blue); background: var(--blue-soft); font-weight: 650; }
.nav-button .nav-arrow { margin-left: auto; width: 14px; height: 14px; opacity: 0; }
.nav-button.active .nav-arrow { opacity: 1; }
.sidebar-footer { margin-top: auto; padding: 18px 14px 4px; border-top: 1px solid var(--line); }
.sidebar-footer p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 8px; }
.sidebar-footer .footer-title { font-size: 12px; display: flex; align-items: center; gap: 7px; color: #40526c; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 75px; background: #ffffffdd; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 36px; }
.topbar-location { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.topbar-location strong { color: #344963; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.admin-chip { display: flex; align-items: center; gap: 8px; color: #52637d; font-size: 12px; }
.avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: #3b64af; background: #edf3ff; }
.avatar .icon { width: 16px; height: 16px; }
.logout-button { border: none; background: none; padding: 6px 0 6px 13px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.logout-button:hover { color: var(--blue); }
.content { max-width: 1560px; margin: 0 auto; padding: 30px 36px 40px; }
.demo-banner { display: flex; align-items: center; gap: 12px; border: 1px solid #fde0a2; background: #fffaed; color: #925f18; padding: 12px 17px; border-radius: 11px; margin-bottom: 25px; font-size: 12px; line-height: 1.7; }
.demo-banner strong { color: #8a560c; }
.demo-banner .icon { width: 19px; height: 19px; }
.demo-pill { display: inline-flex; align-items: center; background: var(--amber-soft); border: 1px solid #f3dfaf; color: var(--amber); padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 23px; }
.eyebrow { color: #8694a9; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; margin-bottom: 8px; }
.page-heading h1 { font-size: 27px; font-weight: 750; letter-spacing: -.8px; }
.page-heading p { margin-top: 10px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.heading-actions { display: flex; gap: 9px; padding-top: 19px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; font-weight: 550; line-height: 1.2; background: white; color: #4d5f79; white-space: nowrap; }
.button:hover { border-color: #c5d6ef; background: #f8fbff; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 3px 8px #2563eb1a; }
.button.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button.danger { color: var(--red); border-color: #f0c9d0; background: #fff; }
.button.danger:hover { background: var(--red-soft); }
.button.teal { color: #077b75; background: #f0fbf8; border-color: #c7ece4; }
.button:disabled { opacity: .5; }
.button.small { min-height: 33px; padding: 7px 11px; font-size: 12px; }
.button.text { border-color: transparent; background: none; box-shadow: none; color: var(--blue); padding: 6px 7px; min-height: 28px; }
.button.text:hover { background: var(--blue-soft); }
.button.text.danger { color: var(--red); }
.button.text.danger:hover { background: var(--red-soft); }
.button .icon { width: 16px; height: 16px; }
.button.loading .icon { animation: spin 1s linear infinite; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-bottom: 23px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 19px 20px 17px; display: flex; align-items: flex-start; justify-content: space-between; box-shadow: 0 1px 5px #152c4903; min-height: 117px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-number { font-size: 28px; margin-top: 9px; font-weight: 700; letter-spacing: -.9px; line-height: 1.1; }
.stat-detail { font-size: 11px; color: #8c98aa; margin-top: 9px; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #3774e6; background: var(--blue-soft); }
.stat-icon.teal { color: var(--teal); background: var(--teal-soft); }
.stat-icon.purple { color: #8a71d3; background: #f2effb; }
.stat-icon.slate { color: #6f83a3; background: #f0f4f9; }
.flow-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #dce9f6; background: linear-gradient(110deg, #edf5ff, #effaf8); padding: 17px 20px; border-radius: 12px; margin-bottom: 23px; }
.flow-note-copy { display: flex; align-items: center; gap: 11px; }
.flow-note-copy > .icon { color: #3786b8; width: 21px; height: 21px; }
.flow-note strong { font-size: 12px; font-weight: 600; color: #345575; }
.flow-note p { margin-top: 4px; font-size: 11px; color: #6f879a; line-height: 1.6; }
.flow-path { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #5b7890; white-space: nowrap; }
.flow-path .icon { width: 12px; height: 12px; color: #a8bccb; }
.flow-step { border: 1px solid #d8e6f2; border-radius: 6px; padding: 5px 8px; background: #ffffffa6; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-top { padding: 22px 22px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-title { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; }
.count-badge { background: #f0f4fa; border-radius: 5px; padding: 3px 7px; color: #75849a; font-size: 10px; font-weight: 550; }
.panel-tools { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fbfcfe; height: 35px; }
.search-box .icon { color: #98a5b7; width: 15px; height: 15px; }
.search-box input { width: 160px; border: none; outline: none; background: none; font-size: 12px; color: var(--ink); padding: 7px 0; }
.search-box input::placeholder { color: #9ba6b7; }
.filter-select { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 7px 26px 7px 9px; color: #60718a; height: 35px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.data-table th { background: #f9fbfd; color: #8290a5; font-weight: 500; font-size: 11px; padding: 13px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 19px 22px; border-bottom: 1px solid #eef2f7; color: #52627a; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fcfdff; }
.data-table .name-cell { color: #263c59; font-weight: 600; }
.cell-sub { font-size: 10px; color: #8e9aae; margin-top: 6px; font-weight: 400; line-height: 1.45; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: -.2px; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.user-avatar { color: #447ac3; background: #eef4ff; width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.quota-cell { min-width: 110px; }
.quota-copy { display: flex; gap: 3px; font-size: 11px; white-space: nowrap; }
.quota-copy .used { color: #405776; font-weight: 550; }
.usage-bar { height: 4px; border-radius: 8px; background: #edf1f7; margin-top: 9px; width: 105px; overflow: hidden; }
.usage-fill { background: linear-gradient(90deg, #69a6ff, #29b5ba); height: 100%; border-radius: inherit; }
.usage-fill.high { background: #e7b257; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; line-height: 1.2; white-space: nowrap; font-size: 10px; font-weight: 500; }
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.good { color: #078976; background: var(--teal-soft); }
.status.bad { color: #c0495c; background: var(--red-soft); }
.status.warn { color: #a4752b; background: var(--amber-soft); }
.status.neutral { color: #8290a4; background: #f0f3f7; }
.status.blue { color: #3e73c7; background: var(--blue-soft); }
.row-actions { display: flex; gap: 3px; flex-wrap: nowrap; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 22px; background: #fdfefe; border-top: 1px solid var(--line); color: #93a0b2; font-size: 10px; }
.panel-footer-note { display: flex; align-items: center; gap: 6px; }
.panel-footer .icon { width: 13px; height: 13px; }
.empty-state { padding: 57px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.empty-state .empty-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; background: #f0f6ff; color: #72a0da; margin-bottom: 2px; }
.empty-state .empty-icon .icon { width: 27px; height: 27px; }
.empty-state strong { font-size: 14px; font-weight: 600; }
.empty-state p { max-width: 400px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-state .button { margin-top: 6px; }
.page-footnote { color: #8f9aad; margin-top: 20px; font-size: 10px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.7; }
.page-footnote .icon { width: 13px; height: 13px; margin-top: 2px; }
.error-banner { display: flex; gap: 12px; align-items: center; background: var(--red-soft); color: var(--red); padding: 16px 18px; border: 1px solid #f2d5dc; border-radius: 10px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; }
.error-banner .button { margin-left: auto; }
.notice { display: flex; gap: 9px; align-items: flex-start; border: 1px solid #d9e8fa; border-radius: 9px; padding: 12px 14px; background: #f1f7ff; color: #527398; font-size: 11px; line-height: 1.7; }
.notice .icon { width: 16px; height: 16px; margin-top: 1px; }
.notice.warning { border-color: #f1dfb9; background: #fffaef; color: #9a7335; }
.notice.good { border-color: #ccebe2; background: #f0fbf6; color: #398773; }
.notice.danger { border-color: #f2d2d9; background: #fff5f6; color: #b75a68; }

.exit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 0 22px 22px; }
.exit-card { border: 1px solid #e0e8f3; border-radius: 12px; padding: 18px; background: #fff; }
.exit-card:hover { border-color: #c9d9ef; box-shadow: 0 3px 12px #36547b09; }
.exit-card-top { display: flex; gap: 9px; align-items: center; justify-content: space-between; }
.exit-card-icon { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; background: #eef8f7; color: #219b92; }
.exit-card-icon .icon { width: 18px; height: 18px; }
.exit-card h3 { font-size: 13px; font-weight: 650; margin-top: 16px; }
.exit-ip { font-size: 20px; font-weight: 600; color: #294767; margin-top: 8px; letter-spacing: -.6px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.exit-details { margin-top: 20px; display: grid; gap: 10px; font-size: 11px; }
.exit-detail { display: flex; justify-content: space-between; gap: 12px; }
.exit-detail dt { color: #8795a9; }
.exit-detail dd { margin: 0; color: #4a627c; overflow-wrap: anywhere; text-align: right; }
.exit-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.check-item { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #8d9aac; }
.check-item .icon { width: 11px; height: 11px; }
.check-item.verified { color: #3d9683; }
.exit-action { margin-top: 16px; width: 100%; }
.availability-notice { margin-bottom: 23px; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.04fr) minmax(450px, 1fr); background: white; }
.login-story { padding: 43px 55px 36px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: radial-gradient(ellipse at 100% 80%, #caf4ef80, transparent 55%), linear-gradient(140deg, #eaf3ff, #f0f7ff 60%, #eefaf6); border-right: 1px solid #e1edf5; }
.login-story::before { content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid #b4d8ed66; border-radius: 50%; right: -265px; bottom: -170px; }
.login-story::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid #b4d8ed66; border-radius: 50%; right: -194px; bottom: -100px; }
.login-story .brand { position: relative; z-index: 1; }
.login-story-body { margin: auto 0; padding: 60px 0 70px; position: relative; z-index: 1; max-width: 490px; }
.login-story-body .eyebrow { color: #7c9cbd; margin-bottom: 17px; font-size: 11px; }
.login-story h1 { font-size: clamp(31px, 3.2vw, 44px); letter-spacing: -1.5px; line-height: 1.45; color: #24436d; }
.login-story h1 span { color: #277ade; }
.login-intro { color: #6e89a8; font-size: 13px; line-height: 1.9; max-width: 390px; margin-top: 22px; }
.login-feature-list { display: grid; gap: 17px; margin-top: 37px; }
.login-feature { display: flex; align-items: center; gap: 12px; color: #4d7097; font-size: 12px; }
.login-feature-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #ffffffc9; border: 1px solid #d7e8f5; color: #4e93c5; }
.login-feature .icon { width: 15px; height: 15px; }
.login-story-footer { color: #8aa2b9; font-size: 11px; line-height: 1.8; position: relative; z-index: 1; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.login-card { width: 100%; max-width: 360px; }
.login-card .brand { display: none; margin-bottom: 40px; }
.login-card h2 { font-size: 26px; font-weight: 750; letter-spacing: -.6px; }
.login-card .login-sub { color: #8995a7; font-size: 12px; margin-top: 12px; line-height: 1.8; }
.login-card form { margin-top: 34px; }
.login-card .field { margin-bottom: 20px; }
.login-card input { height: 44px; }
.login-card .button { width: 100%; height: 44px; margin-top: 9px; }
.login-private-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: #99a5b5; font-size: 10px; margin-top: 22px; }
.login-private-note .icon { width: 12px; height: 12px; }
.login-error { color: var(--red); background: var(--red-soft); border: 1px solid #f4d2d8; padding: 11px 12px; font-size: 12px; line-height: 1.7; border-radius: 8px; margin-bottom: 18px; }

.dialog { border: 1px solid #e0e7f0; border-radius: 17px; padding: 0; width: min(550px, calc(100% - 36px)); max-height: calc(100vh - 60px); overflow: auto; color: var(--ink); box-shadow: 0 24px 100px #152b4966; }
.dialog.wide { width: min(650px, calc(100% - 36px)); }
.dialog::backdrop { background: #18304d60; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 26px 20px; border-bottom: 1px solid var(--line); }
.dialog-title { font-size: 19px; letter-spacing: -.5px; font-weight: 700; }
.dialog-description { color: #7a8a9e; font-size: 11px; line-height: 1.8; margin-top: 7px; }
.close-button { display: grid; place-items: center; width: 27px; height: 27px; border: none; border-radius: 6px; background: none; color: #9aa7b7; flex-shrink: 0; }
.close-button .icon { width: 19px; height: 19px; }
.close-button:hover { background: #f1f4f8; color: #49607c; }
.dialog-body { padding: 22px 26px 25px; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 17px 26px; border-top: 1px solid var(--line); background: #fbfcfe; }
.dialog .notice { margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 12px; font-weight: 550; color: #3b526f; margin-bottom: 8px; }
.field-required { color: #cf7480; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dfe7f1; background: #fff; border-radius: 8px; padding: 11px 12px; min-height: 41px; color: #304968; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #a3afbf; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8ab4f1; }
.field input[readonly] { background: #f7f9fc; color: #607897; }
.field-help { font-size: 10px; color: #8d9aae; line-height: 1.8; margin-top: 7px; }
.field-help a { font-weight: 550; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }
.form-error { margin: 0 0 18px; color: var(--red); background: var(--red-soft); padding: 11px 12px; border: 1px solid #f4d2d8; border-radius: 8px; font-size: 11px; line-height: 1.8; }
.selected-exit { background: #f4f9ff; border: 1px solid #dfeafb; border-radius: 9px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.selected-exit-label { font-size: 11px; color: #56769b; }
.selected-exit-ip { color: #3b628e; font-size: 13px; margin-top: 5px; }
.selected-exit .icon { color: #76a3d5; }
.form-section-title { display: flex; align-items: center; gap: 7px; color: #527295; font-size: 11px; font-weight: 550; margin: 5px 0 17px; }
.form-section-title .icon { width: 15px; height: 15px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: #f1f4f9; margin-bottom: 15px; }
.segment { flex: 1; border: none; border-radius: 6px; background: none; color: #8190a5; padding: 8px; font-size: 11px; }
.segment.active { background: white; color: var(--blue); box-shadow: 0 1px 5px #22385313; font-weight: 550; }
.private-key-input { min-height: 120px !important; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px !important; }
.wizard-steps { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 24px; }
.wizard-step { display: flex; align-items: center; gap: 6px; color: #a2adbc; font-size: 10px; }
.wizard-step-number { width: 20px; height: 20px; border: 1px solid #dfe6f0; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.wizard-step.active { color: var(--blue); }
.wizard-step.active .wizard-step-number { color: white; background: var(--blue); border-color: var(--blue); }
.wizard-connector { width: 20px; height: 1px; background: #e1e8f1; }
.credential-note { display: flex; align-items: flex-start; gap: 7px; color: #6d899f; font-size: 10px; line-height: 1.8; margin: 14px 0 2px; }
.credential-note .icon { width: 13px; height: 13px; margin-top: 2px; }
.server-advanced { border: 1px solid #e5ebf4; border-radius: 8px; padding: 11px 13px; margin: 15px 0; }
.server-advanced summary { color: #7188a2; font-size: 11px; cursor: pointer; }
.server-advanced .field { margin-top: 15px; }
.fingerprint-confirm { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 1.8; color: #8193a9; margin-top: 11px; }
.fingerprint-confirm input { width: 13px; min-height: 0; height: 13px; flex: 0 0 auto; margin-top: 3px; padding: 0; }

.share-user { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.share-user .user-avatar { width: 38px; height: 38px; border-radius: 10px; }
.share-user strong { font-size: 13px; font-weight: 600; }
.share-user p { font-size: 11px; color: #8190a6; margin-top: 5px; }
.share-qr-wrap { display: flex; flex-direction: column; align-items: center; padding: 12px 0 23px; }
.share-qr-box { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 196px; min-height: 196px; display: grid; place-items: center; }
.share-qr-box img { display: block; width: 172px; height: 172px; object-fit: contain; }
.share-qr-hint { color: #8b9aaf; font-size: 10px; margin-top: 12px; }
.link-with-button { display: flex; gap: 8px; align-items: stretch; }
.link-with-button input { min-width: 0; flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; }
.link-with-button .button { flex-shrink: 0; }
.share-instructions { display: grid; gap: 11px; margin: 19px 0 2px; }
.share-step { display: flex; gap: 9px; align-items: flex-start; color: #6d7f95; font-size: 11px; line-height: 1.7; }
.share-step-number { width: 17px; height: 17px; border-radius: 50%; background: #ecf3fe; color: #5784c4; display: grid; place-items: center; font-size: 9px; flex-shrink: 0; }
.detail-list { display: grid; gap: 16px; margin: 0; }
.detail-row { display: flex; gap: 20px; justify-content: space-between; font-size: 12px; }
.detail-row dt { color: #8290a4; }
.detail-row dd { color: #344f70; margin: 0; text-align: right; overflow-wrap: anywhere; }
.detail-list + .notice { margin-top: 23px; }

.job-visual { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 20px; }
.job-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #eef5ff; color: #5c96e8; margin-bottom: 18px; }
.job-icon .icon { width: 28px; height: 28px; }
.job-icon.good { background: #edf9f5; color: #32a386; }
.job-icon.bad { background: #fff1f3; color: #d67988; }
.job-icon.working .icon { animation: spin 1.4s linear infinite; }
.job-visual h3 { font-size: 15px; font-weight: 650; }
.job-visual p { font-size: 11px; color: #7f8fa6; line-height: 1.8; margin-top: 10px; max-width: 440px; }
.job-progress { width: 100%; height: 5px; overflow: hidden; background: #edf2fa; border-radius: 8px; margin-bottom: 17px; }
.job-progress-fill { height: 100%; background: linear-gradient(90deg, #6296f0, #29b8b3); border-radius: inherit; transition: width .3s; }
.job-progress-fill.indeterminate { width: 32% !important; animation: progress 1.4s ease-in-out infinite; }
.job-progress-copy { display: flex; justify-content: space-between; gap: 15px; color: #8594a8; font-size: 10px; margin-bottom: 8px; }
.job-log { max-height: 170px; overflow: auto; border: 1px solid #e6edf4; border-radius: 9px; background: #f8fafc; padding: 12px 14px; display: grid; gap: 9px; }
.job-log-line { display: flex; gap: 10px; color: #788aa1; font-size: 10px; line-height: 1.7; }
.job-log-line time { color: #a0adbf; flex-shrink: 0; }
.job-manual { margin-top: 19px; }
.job-manual h3 { font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.job-manual p { color: #7d8da4; font-size: 11px; line-height: 1.8; margin-bottom: 13px; }
.job-manual code { color: #5077a6; background: #eef4fc; padding: 3px 6px; border-radius: 5px; }
.manual-text { background: #f8fafc; color: #69809c; border: 1px solid #e4eaf3; padding: 12px; border-radius: 8px; font-size: 10px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 150px; overflow: auto; }
.task-list { display: grid; gap: 12px; }
.task-card { border: 1px solid #e4ebf4; background: #fcfdff; padding: 15px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.task-card-main { min-width: 0; }
.task-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-card-title strong { font-size: 12px; font-weight: 600; color: #496482; }
.task-card-target { color: #95a3b7; font-size: 10px; margin-top: 8px; }
.task-card-message { font-size: 10px; color: #7389a2; line-height: 1.8; margin-top: 8px; overflow-wrap: anywhere; }
.toast-region { position: fixed; right: 25px; bottom: 25px; z-index: 100; display: grid; gap: 10px; max-width: min(410px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; background: #fff; border: 1px solid #dae9e3; box-shadow: 0 7px 25px #20344c22; border-radius: 10px; padding: 13px 16px; color: #467660; font-size: 12px; line-height: 1.8; animation: toast-in .2s ease-out; }
.toast .icon { width: 16px; height: 16px; margin-top: 3px; }
.toast.error { color: #b35c69; border-color: #f1d3da; }
.toast.info { color: #577fac; border-color: #d2e3f6; }
.loading-placeholder { padding: 55px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #8796aa; font-size: 12px; }
.loading-placeholder .loading-mark { width: 22px; height: 22px; border-width: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 1500px) { .content { padding-top: 35px; } .data-table th, .data-table td { padding-left: 27px; padding-right: 27px; } }
@media (max-width: 1200px) {
  :root { --sidebar-width: 207px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .content { padding: 25px; }
  .topbar { padding: 0 25px; }
  .stat-card { padding: 17px; }
  .exit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-path { display: none; }
  .data-table th, .data-table td { padding-left: 16px; padding-right: 16px; }
  .login-story { padding: 40px; }
}
@media (max-width: 950px) {
  :root { --sidebar-width: 185px; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-sub { font-size: 8px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 31px; height: 31px; }
  .stat-icon .icon { width: 17px; height: 17px; }
  .stat-number { font-size: 24px; }
  .stat-detail { max-width: 110px; line-height: 1.5; }
  .panel-top { flex-wrap: wrap; }
  .panel-tools { margin-left: auto; }
  .login-layout { grid-template-columns: 1fr 1fr; }
  .login-story { padding: 32px; }
  .login-form-side { padding: 45px 28px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .sidebar { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px 0; }
  .sidebar .brand { margin: 0 0 18px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9px; }
  .nav-label, .sidebar-footer { display: none; }
  .nav-list { display: flex; gap: 7px; }
  .nav-button { flex: 1; padding: 11px 12px; justify-content: center; border-radius: 8px 8px 0 0; font-size: 12px; gap: 7px; }
  .nav-button .icon { width: 17px; height: 17px; }
  .nav-button .nav-arrow { display: none; }
  .topbar { height: 53px; padding: 0 20px; }
  .topbar-location { font-size: 10px; }
  .topbar-actions { gap: 10px; }
  .admin-chip { font-size: 10px; max-width: 150px; }
  .admin-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .avatar { width: 24px; height: 24px; }
  .logout-button { font-size: 10px; padding-left: 10px; }
  .content { padding: 23px 20px 30px; }
  .demo-banner { padding: 11px 13px; font-size: 10px; margin-bottom: 22px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { font-size: 11px; max-width: 340px; }
  .heading-actions { padding-top: 18px; }
  .heading-actions .button { font-size: 11px; padding: 9px 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { min-height: 106px; padding: 17px; }
  .stat-detail { max-width: none; }
  .flow-note { padding: 15px; }
  .flow-note p { font-size: 10px; }
  .panel-top { padding: 18px; }
  .panel-title { font-size: 13px; }
  .search-box input { width: 140px; }
  .data-table { min-width: 790px; }
  .servers-table { min-width: 670px; }
  .exit-grid { padding: 0 18px 18px; gap: 13px; }
  .exit-card { padding: 16px; }
  .exit-ip { font-size: 18px; }
  .panel-footer { padding: 13px 18px; line-height: 1.6; }
  .panel-footer-note { max-width: 75%; }
  .login-layout { display: block; }
  .login-story { display: none; }
  .login-form-side { min-height: 100vh; padding: 40px 25px; background: linear-gradient(180deg, #f5f9ff, #fff 35%); }
  .login-card .brand { display: flex; }
  .login-card h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .page-heading { gap: 12px; }
  .heading-actions .button.secondary { display: none; }
  .page-heading p { max-width: 230px; }
  .exit-grid { grid-template-columns: 1fr; }
  .panel-tools { width: 100%; margin-top: 2px; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .filter-select { max-width: 115px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .dialog-head { padding: 21px 20px 17px; }
  .dialog-body { padding: 19px 20px 22px; }
  .dialog-footer { padding: 15px 20px; }
  .dialog-title { font-size: 18px; }
  .link-with-button { flex-wrap: wrap; }
  .link-with-button input { flex-basis: 100%; }
  .link-with-button .button { width: 100%; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 15px; }
  .stat-icon { width: 28px; height: 28px; }
  .stat-detail { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
