:root {
  font-family:
    Inter,
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #182230;
  background: #f5f7fb;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-soft: #eef2ff;
  --ink: #182230;
  --muted: #667085;
  --line: #e3e8ef;
  --surface: #fff;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #9a6700;
  --warning-soft: #fff8e6;
  --sidebar: 232px;
  --header: 72px;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.35;
  font-weight: 750;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.45;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1.5;
}
h4 {
  font-size: 15px;
}
p + p {
  margin-top: 8px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: #f8fafc;
  border-color: #adb9ca;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
button.danger {
  color: var(--danger);
  border-color: #f3c5c1;
  background: #fff;
}
button.danger:hover {
  background: var(--danger-soft);
}
button.danger-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.text-button {
  padding: 8px 2px;
  border-color: transparent;
  background: none;
  color: var(--accent);
}
button.icon-button {
  width: 44px;
  padding: 9px;
  flex-shrink: 0;
}
button:disabled {
  background: #f2f4f7;
  border-color: #e4e7ec;
  color: #667085;
  cursor: not-allowed;
  box-shadow: none;
}
button.primary:disabled {
  background: #eef0fc;
  border-color: #dde1f6;
  color: #737c9e;
}
button[aria-busy="true"] {
  cursor: wait;
}
button[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.small {
  width: 16px;
  height: 16px;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px;
  background: #fff;
}
.skip-link:focus {
  top: 12px;
}
.muted,
.hint,
.help {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.help {
  display: block;
  margin-top: 6px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 750;
  color: var(--accent);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.nowrap {
  white-space: nowrap;
}
.text-danger {
  color: var(--danger);
}
.subtle-label {
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #7c8799;
  font-weight: 650;
  text-transform: uppercase;
}
.count-number {
  font-variant-numeric: tabular-nums;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 25px 22px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  flex: none;
}
.brand-mark .icon {
  width: 23px;
  height: 23px;
}
.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.brand-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.2px;
}
.nav-label {
  padding: 14px 24px 9px;
  font-size: 11px;
  color: #7c8799;
  font-weight: 700;
  letter-spacing: 1px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  gap: 4px;
}
.side-nav button {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: none;
  color: #536176;
  min-height: 45px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 550;
  position: relative;
}
.side-nav button:hover {
  background: #f5f7fb;
  color: #344054;
}
.side-nav button.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}
.side-nav .nav-badge {
  margin-left: auto;
  background: #e0e7ff;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 11px;
  min-width: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom p {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}
.workspace-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #98a2b3;
  border-radius: 50%;
  flex: none;
}
.status-dot.online {
  background: #17b26a;
}
.status-dot.warning {
  background: #f79009;
}
.workspace {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 550;
  color: #344054;
}
.breadcrumb .icon {
  width: 14px;
}
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.refresh-note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.refresh-note .icon {
  width: 15px;
}
.profile {
  position: relative;
}
.profile-toggle {
  border: 0;
  background: transparent;
  padding: 6px;
  gap: 10px;
  text-align: left;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ede9fe;
  color: #6941c6;
  font-weight: 750;
  font-size: 13px;
  flex: none;
}
.profile-name {
  display: block;
  font-size: 13px;
  font-weight: 650;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-role {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 25px #18223012;
}
.profile-menu button {
  border: 0;
  justify-content: flex-start;
  width: 100%;
  font-size: 13px;
}
.profile-menu-head {
  padding: 9px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}
.mobile-toggle {
  display: none;
}
.mobile-backdrop {
  display: none;
}
main {
  max-width: 1540px;
  margin: 0 auto;
  padding: 30px 32px 40px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
  animation: appear 0.18s ease-out;
}
.page-heading,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p,
.section-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 7px;
  max-width: 740px;
}
.page-heading .eyebrow {
  margin-bottom: 8px;
  display: block;
}
.page-heading > div {
  min-width: 0;
}
.page-heading button {
  flex-shrink: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.card-header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.card-flush {
  padding: 0;
  overflow: hidden;
}
.card-flush .card-header {
  padding: 22px 24px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cards .card {
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.content-grid.wide-main {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack > .card {
  margin: 0;
}
.aside-help {
  padding: 22px;
  background: #f0f3fa;
  border: 1px solid #e4e9f4;
  border-radius: 12px;
  color: #536176;
}
.aside-help h3 {
  font-size: 14px;
  color: #344054;
  margin-bottom: 10px;
}
.aside-help p,
.aside-help li {
  font-size: 13px;
  line-height: 1.8;
}
.aside-help ol,
.aside-help ul {
  padding-left: 18px;
  margin: 10px 0;
}
.aside-help li + li {
  margin-top: 9px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 20px 22px;
}
.stat-label {
  font-size: 13px;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-icon {
  color: #7c83ba;
  background: #f3f4fd;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.stat-value {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.6px;
  margin: 12px 0 8px;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 14px;
  color: #8a94a6;
  font-weight: 450;
  margin-left: 5px;
}
.stat-foot {
  font-size: 12px;
  color: var(--muted);
}
.stat-foot.attention {
  color: var(--warning);
}
.inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dbe2fc;
  border-radius: 10px;
  background: #f4f6ff;
  color: #3d478a;
  padding: 15px 18px;
  margin-bottom: 20px;
  font-size: 13px;
}
.inline-alert .icon {
  margin-top: 2px;
}
.inline-alert > div {
  min-width: 0;
  flex: 1;
}
.inline-alert strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.inline-alert.warning {
  background: var(--warning-soft);
  border-color: #f6e4b9;
  color: #855b0d;
}
.inline-alert.error {
  background: var(--danger-soft);
  border-color: #f5cec9;
  color: var(--danger);
}
.inline-alert.success {
  background: var(--success-soft);
  border-color: #c1ecd5;
  color: var(--success);
}
.inline-alert button {
  min-height: 36px;
  font-size: 12px;
  padding: 7px 12px;
  align-self: center;
  flex: none;
}
.system-status {
  margin-bottom: 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
}
.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe1fa;
  background: #f4f5ff;
  color: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 12px;
}
.step h4 {
  margin-bottom: 5px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  min-height: 40px;
}
.step button {
  min-height: 32px;
  font-size: 12px;
  padding: 7px 0;
  margin-top: 6px;
  border: 0;
  color: var(--accent);
  background: transparent;
}
.steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 42px;
  right: 3px;
  height: 1px;
  background: var(--line);
}
.summary-scope {
  font-size: 12px;
  color: var(--muted);
  margin: -11px 0 23px;
}
.next-actions {
  display: grid;
  gap: 0;
}
.next-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.next-action:last-child {
  border: 0;
  padding-bottom: 0;
}
.next-action:first-child {
  padding-top: 0;
}
.next-action div {
  min-width: 0;
  flex: 1;
}
.next-action p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.next-action button {
  min-height: 36px;
  font-size: 12px;
  padding: 7px 10px;
}
.next-action .icon {
  color: #7e86a2;
}
.mini-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #344054;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  display: block;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
  line-height: 1.5;
  font-weight: 400;
  font-size: 14px;
  margin-top: 7px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px #e0e7ff;
}
textarea {
  min-height: 126px;
  resize: vertical;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #d92d20;
}
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px #fee4e2;
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  font-weight: 450;
  line-height: 1.6;
  margin-top: 6px;
}
.field-error:empty {
  display: none;
}
.form-feedback:not(:empty) {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--danger-soft);
  border: 1px solid #f8d4d0;
  font-size: 13px;
  color: var(--danger);
}
.form-feedback.success {
  background: var(--success-soft);
  border-color: #c1ecd5;
  color: var(--success);
}
.form-feedback details {
  margin-top: 5px;
}
.required {
  color: var(--accent);
  font-size: 11px;
  margin-left: 5px;
}
.optional {
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
  margin-left: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.inline > label {
  flex: 1;
  min-width: 150px;
  margin-bottom: 0;
}
.inline > button {
  flex: none;
}
.inline + * {
  margin-top: 16px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-actions .hint {
  margin-right: auto;
}
.password-wrap {
  display: block;
  position: relative;
  margin-top: 7px;
}
.password-wrap input {
  margin: 0;
  padding-right: 48px;
}
.password-wrap button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 10px;
  border: 0;
  background: none;
  color: #667085;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.check-list label {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 13px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.check-list label:has(input:checked) {
  background: var(--accent-soft);
  border-color: #a5b4fc;
  color: var(--accent);
}
.check-list input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--accent);
}
fieldset {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
  min-width: 0;
}
legend {
  font-size: 13px;
  font-weight: 650;
  padding: 0 5px;
  color: #475467;
}
fieldset label:last-child {
  margin-bottom: 0;
}
.form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.form-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.form-step h3 {
  font-size: 15px;
}
.segment {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 9px;
  background: #f8fafc;
  margin-bottom: 22px;
}
.segment button {
  flex: 1;
  min-height: 38px;
  font-size: 13px;
  background: none;
  border: 0;
}
.segment button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px #18223015;
}
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid #dce2ff;
  padding: 11px 15px;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 13px;
}
.selection-bar button {
  padding: 7px 12px;
  min-height: 36px;
  font-size: 12px;
}
.selection-bar p {
  font-size: 13px;
  color: #4547a7;
}
.input-note {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.dirty-hint {
  font-size: 12px;
  color: var(--warning);
}
.conflict-box {
  background: var(--warning-soft);
  border: 1px solid #f4dea9;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}
.conflict-box button {
  margin-top: 10px;
  font-size: 12px;
}
.remote-value {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.profile-summary .avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
}
.profile-summary p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.profile-card {
  max-width: 850px;
}
.profile-card .card-header {
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
}
.badge::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge.ok {
  background: #ecfdf3;
  color: #067647;
}
.badge.warn {
  background: #fffaeb;
  color: #946200;
}
.badge.error {
  background: #fff1f0;
  color: #b42318;
}
.badge.info {
  background: #eef2ff;
  color: #4f46e5;
}
.badge.neutral {
  background: #f2f4f7;
  color: #667085;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.account-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  border-radius: 10px;
  color: #4268ae;
  flex: none;
}
.account-heading h3 {
  overflow-wrap: anywhere;
}
.account-heading .hint {
  font-size: 11px;
}
.account-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.account-meta dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.account-meta dd {
  margin: 0;
  font-size: 12px;
  color: #344054;
}
.account-card [data-account-error]:empty {
  display: none;
}
.account-card .job-actions {
  margin: 16px 0;
}
.account-card .job-actions button {
  flex: 1;
  font-size: 12px;
  padding: 9px 10px;
}
.account-card details {
  border-top: 1px solid var(--line);
  margin: 20px -24px -24px;
  padding: 0 24px;
}
.account-card summary {
  padding: 16px 0;
  font-size: 12px;
}
.account-card details[open] {
  padding-bottom: 24px;
}
.account-card details details {
  border: 1px solid var(--line);
  margin: 16px 0;
  padding: 0 16px;
  border-radius: 8px;
  background: #fbfcfe;
}
.account-form > label:first-child {
  margin-top: 8px;
}
details {
  margin-top: 14px;
}
summary {
  font-size: 13px;
  font-weight: 600;
  color: #536176;
  cursor: pointer;
  min-height: 40px;
  display: list-item;
  list-style-position: inside;
  padding: 8px 0;
}
details[open] > summary {
  margin-bottom: 8px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar label {
  margin: 0;
  min-width: 150px;
  flex: 1;
}
.toolbar label.search-field {
  flex: 1.8;
}
.toolbar .search-field input {
  background: #fff;
}
.toolbar select {
  font-size: 13px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
thead {
  background: #f8fafc;
  color: #667085;
}
th {
  font-weight: 550;
  font-size: 12px;
  padding: 12px 18px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: middle;
  color: #475467;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcff;
}
td strong {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}
td .hint {
  font-size: 11px;
  margin-top: 4px;
}
td .check {
  margin: 0;
  font-size: 13px;
}
.table-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.table-actions button {
  padding: 7px 9px;
  min-height: 36px;
  font-size: 12px;
}
.table-actions .icon-button {
  width: 36px;
}
.target-cell {
  overflow-wrap: anywhere;
  min-width: 140px;
  max-width: 350px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination button {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 12px;
}
.result-list {
  display: grid;
  gap: 10px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.result-row > div {
  min-width: 0;
}
.result-row p {
  font-size: 13px;
  margin-top: 5px;
}
.result-row .check {
  margin: 0;
}
.empty-state {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f5fa;
  color: #98a2b3;
  margin: 0 auto 14px;
}
.empty-state h3 {
  font-size: 15px;
  color: #344054;
  margin-bottom: 7px;
}
.empty-state p {
  max-width: 410px;
  margin: 0 auto 18px;
  line-height: 1.8;
}
.empty-state button {
  font-size: 12px;
}
.job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.job-actions button {
  font-size: 12px;
  min-height: 38px;
  padding: 9px 12px;
}
.counts {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.counts span {
  font-size: 12px;
  color: #667085;
}
.counts b {
  color: #344054;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
.job-card h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.job-card .hint {
  font-size: 12px;
}
.job-card .account-heading {
  margin-bottom: 9px;
}
.job-card {
  padding: 22px;
}
.job-card .job-actions {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.job-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
.job-progress progress {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 6px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #edf0f7;
}
.job-progress progress::-webkit-progress-bar {
  background: #edf0f7;
}
.job-progress progress::-webkit-progress-value {
  background: #818cf8;
}
.job-progress progress::-moz-progress-bar {
  background: #818cf8;
}
.message-preview {
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #e4e9f3;
  border-radius: 9px;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.85;
  margin: 16px 0;
  max-height: 300px;
  overflow: auto;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.summary-grid dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.summary-grid dd {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}
.csv-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.csv-summary > div {
  flex: 1;
  min-width: 80px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.csv-summary strong {
  display: block;
  font-size: 22px;
  color: #344054;
}
.operator-edit {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.operator-edit:first-of-type {
  padding-top: 0;
}
.operator-edit:last-child {
  border: 0;
  padding-bottom: 0;
}
.operator-edit > strong {
  display: block;
  margin-bottom: 16px;
}
.operator-edit > label {
  display: inline-block;
  min-width: 170px;
  margin-right: 12px;
}
.operator-edit .check {
  display: flex;
}
.operator-edit fieldset .check {
  margin: 8px 0;
}
.operator-edit button {
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  box-shadow: 0 24px 80px #18223025;
  overflow: auto;
  background: #fff;
}
dialog::backdrop {
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(2px);
}
dialog[open] {
  animation: appear 0.15s ease-out;
}
.dialog-wide {
  width: min(740px, calc(100vw - 32px));
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.dialog-header h2 {
  font-size: 19px;
}
.dialog-header .icon-button {
  border: 0;
  min-height: 36px;
  width: 36px;
  height: 36px;
  color: #667085;
}
.dialog-description {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.8;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.dialog-actions button {
  font-size: 13px;
}
.confirm-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.confirm-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
#confirm-message {
  font-size: 14px;
  line-height: 1.85;
  color: #475467;
  white-space: pre-wrap;
  margin: 16px 0;
}
.modal-impact {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  white-space: pre-wrap;
}
.toast-region {
  position: fixed;
  inset: calc(var(--header) + 14px + env(safe-area-inset-top)) auto auto 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: min(440px, calc(100vw - 32px));
  overflow: visible;
  z-index: 2000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}
.toast-region[popover]:not(:popover-open) {
  display: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 14px 15px 16px;
  background: #fff;
  border: 1px solid #d4ddec;
  border-left: 3px solid #6374c8;
  border-radius: 10px;
  box-shadow: 0 6px 24px #18223017;
  pointer-events: auto;
  animation: toast-in 0.18s ease-out;
  font-size: 13px;
  line-height: 1.65;
}
.toast .toast-symbol {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--accent);
  flex: none;
}
.toast .toast-symbol .icon {
  width: 16px;
  height: 16px;
}
.toast .toast-text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
  overflow-wrap: anywhere;
}
.toast .toast-close {
  padding: 4px;
  min-height: 28px;
  width: 28px;
  align-self: flex-start;
  border: 0;
  background: none;
  color: #667085;
  flex: none;
}
.toast.success {
  border-left-color: #17b26a;
}
.toast.success .toast-symbol {
  color: var(--success);
  background: #ecfdf3;
}
.toast.warning {
  border-left-color: #f79009;
}
.toast.warning .toast-symbol {
  color: var(--warning);
  background: #fff8e6;
}
.toast.error {
  border-left-color: #d92d20;
}
.toast.error .toast-symbol {
  color: var(--danger);
  background: #fff1f0;
}
.toast.leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.16s,
    transform 0.16s;
}
.toast-region::backdrop {
  display: none;
}
.page-error {
  margin-bottom: 20px;
}
.page-error:empty {
  display: none;
}
.footer {
  font-size: 11px;
  color: #8a94a6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  max-width: 1540px;
  margin: 0 auto;
}
.footer p {
  max-width: 800px;
}
.login-page {
  min-height: 100vh;
  background: #f5f7fb;
}
.login-header {
  height: var(--header);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.login-header .brand {
  padding: 0;
}
.login-header .muted {
  font-size: 12px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 90px;
  align-items: center;
  max-width: 1100px;
  min-height: calc(100vh - 150px);
  padding: 50px 36px;
  margin: auto;
}
.login-intro h1 {
  font-size: 40px;
  line-height: 1.45;
  letter-spacing: -1.3px;
  margin: 18px 0;
}
.login-intro > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 460px;
}
.login-features {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.login-feature > .icon {
  color: #777ed0;
  margin-top: 2px;
}
.login-feature strong {
  font-size: 14px;
  font-weight: 650;
}
.login-feature p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.login-card h2 {
  font-size: 23px;
}
.login-card > p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 27px;
}
.login-card .login-submit {
  width: 100%;
  margin-top: 8px;
}
.login-help {
  font-size: 12px !important;
  text-align: center;
  line-height: 1.8;
  margin: 22px 0 0 !important;
  color: var(--muted);
}
.login-footer {
  text-align: center;
  font-size: 11px;
  color: #98a2b3;
  padding: 18px;
}
.skeleton {
  height: 28px;
  width: 80px;
  background: #edf0f7;
  border-radius: 5px;
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 208px;
  }
  .brand {
    padding-left: 18px;
  }
  .brand-name {
    font-size: 15px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 26px 24px;
  }
  .content-grid,
  .content-grid.wide-main {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .stat-card {
    padding: 18px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-icon {
    display: none;
  }
  .card {
    padding: 20px;
  }
  .account-card details {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding: 0 20px;
  }
  .cards {
    gap: 16px;
  }
  .login-layout {
    gap: 55px;
  }
}
@media (max-width: 980px) {
  .content-grid,
  .content-grid.wide-main {
    grid-template-columns: 1fr;
  }
  .content-grid > .aside-help {
    order: 2;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 16px;
  }
  .refresh-note {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr 390px;
    gap: 32px;
  }
  .login-intro h1 {
    font-size: 32px;
  }
  .login-card {
    padding: 26px;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 64px;
    --sidebar: 232px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s;
    z-index: 80;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #10182866;
    z-index: 70;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .mobile-toggle {
    display: inline-flex;
    border: 0;
    background: transparent;
    margin-left: -8px;
  }
  .breadcrumb {
    gap: 8px;
    margin-right: auto;
    font-size: 13px;
  }
  .breadcrumb > span,
  .breadcrumb > .icon {
    display: none;
  }
  .header-actions {
    gap: 0;
  }
  .profile-toggle {
    gap: 5px;
    padding: 4px;
  }
  .profile-name,
  .profile-role,
  .profile-toggle > .icon {
    display: none;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .profile-menu-head {
    display: block;
  }
  .topbar > .mobile-toggle .icon {
    width: 22px;
  }
  .profile-menu {
    right: -2px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 12px;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .eyebrow {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .page-heading > button {
    min-height: 40px;
    font-size: 12px;
    padding: 10px 12px;
    max-width: 150px;
  }
  .page-heading > button .icon {
    display: none;
  }
  main {
    padding: 24px 16px 28px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 27px;
    margin: 10px 0 5px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-foot {
    font-size: 11px;
  }
  .summary-scope {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .card {
    padding: 20px;
    margin-bottom: 16px;
  }
  .card-header {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }
  .card-header h3 {
    font-size: 16px;
  }
  .card-header p {
    font-size: 12px;
  }
  .card-header button {
    font-size: 11px;
    padding: 6px 9px;
    min-height: 34px;
    flex: none;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .steps .step:nth-child(2)::after {
    display: none;
  }
  .step p {
    min-height: 0;
    font-size: 12px;
  }
  .content-grid {
    gap: 16px;
  }
  .aside-help {
    padding: 18px;
  }
  .inline-alert {
    padding: 14px;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 12px;
  }
  .inline-alert > div {
    flex-basis: calc(100% - 34px);
  }
  .inline-alert > button {
    margin-left: 29px;
  }
  .inline-alert strong {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .form-actions {
    margin-top: 20px;
    gap: 10px;
  }
  .form-actions .hint {
    width: 100%;
    margin: 0;
  }
  .form-actions > button {
    flex: 1;
  }
  .toolbar {
    gap: 12px;
  }
  .toolbar label {
    min-width: calc(50% - 12px);
  }
  .toolbar label.search-field {
    min-width: 100%;
  }
  .toolbar > button {
    flex: 1;
  }
  .selection-bar {
    padding: 12px;
    font-size: 12px;
  }
  .selection-bar > div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .table-wrap {
    border-radius: 8px;
  }
  .table-mobile thead {
    display: none;
  }
  .table-mobile,
  .table-mobile tbody {
    display: block;
  }
  .table-mobile tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    gap: 7px 12px;
  }
  .table-mobile tr:last-child {
    border: 0;
  }
  .table-mobile td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
  }
  .table-mobile td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 3px;
  }
  .table-mobile td:first-child {
    grid-column: 1/-1;
    margin-bottom: 4px;
  }
  .table-mobile td:first-child::before {
    display: none;
  }
  .table-mobile .table-actions {
    justify-content: flex-start;
  }
  .table-mobile td:last-child {
    align-self: end;
  }
  .table-mobile .check {
    min-height: 32px;
  }
  .table-mobile .table-actions button {
    min-height: 40px;
  }
  .card-flush .table-wrap {
    padding: 0 18px;
  }
  .card-flush .card-header {
    padding: 20px 18px 0;
  }
  .pagination {
    padding: 14px 0;
    font-size: 11px;
    gap: 8px;
  }
  .card-flush .pagination {
    padding: 14px 18px;
  }
  .pagination button {
    min-height: 40px;
    padding: 8px 11px;
  }
  .pagination span {
    text-align: center;
  }
  .result-row {
    flex-wrap: wrap;
    padding: 14px;
  }
  .job-actions {
    gap: 8px;
  }
  .job-actions button {
    min-height: 44px;
    flex: 1;
    padding: 10px;
    font-size: 12px;
  }
  .counts {
    gap: 8px 14px;
  }
  .counts span {
    font-size: 11px;
  }
  .job-card {
    padding: 18px;
  }
  .job-card .account-heading {
    align-items: flex-start;
  }
  .job-card .account-heading h3 {
    font-size: 14px;
  }
  .job-card .account-heading > span {
    flex-shrink: 0;
  }
  .message-preview {
    font-size: 13px;
    padding: 14px;
  }
  .account-card .job-actions button {
    font-size: 12px;
  }
  .account-card details {
    margin: 16px -20px -20px;
    padding: 0 20px;
  }
  .account-card details[open] {
    padding-bottom: 20px;
  }
  .account-meta {
    gap: 12px;
  }
  .account-meta dd {
    font-size: 12px;
  }
  .account-form details {
    margin-left: 0;
    margin-right: 0;
  }
  .footer {
    font-size: 10px;
    padding: 18px 16px;
    flex-direction: column;
    gap: 6px;
  }
  .profile-summary {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .profile-summary .avatar {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .profile-summary h3 {
    font-size: 16px;
  }
  .profile-summary p {
    font-size: 12px;
  }
  .profile-card {
    padding: 20px;
  }
  .operator-edit > label {
    display: block;
    margin-right: 0;
  }
  .operator-edit button {
    width: 100%;
  }
  dialog {
    padding: 22px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px);
    border-radius: 14px;
  }
  dialog .dialog-header h2 {
    font-size: 18px;
  }
  .dialog-actions {
    gap: 9px;
  }
  .dialog-actions button {
    flex: 1;
    padding: 10px 12px;
    min-height: 44px;
  }
  .toast-region {
    width: calc(100vw - 24px);
    max-width: 440px;
    top: calc(var(--header) + 10px + env(safe-area-inset-top));
  }
  .toast {
    padding: 13px 11px 13px 13px;
    font-size: 12px;
  }
  .toast .toast-close {
    min-height: 32px;
    width: 32px;
  }
  .toast .toast-text {
    padding-top: 3px;
  }
  .summary-grid {
    gap: 14px;
  }
  .summary-grid dd {
    font-size: 13px;
  }
  .login-header {
    padding: 0 20px;
    height: 64px;
  }
  .login-header .muted {
    display: none;
  }
  .login-header .brand-mark {
    width: 32px;
    height: 32px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: calc(100dvh - 112px);
    padding: 36px 20px;
  }
  .login-intro {
    width: 100%;
    max-width: 430px;
  }
  .login-intro h1 {
    font-size: 27px;
    line-height: 1.5;
    margin: 12px 0 10px;
  }
  .login-intro > p {
    font-size: 13px;
    line-height: 1.8;
  }
  .login-intro .eyebrow {
    font-size: 10px;
  }
  .login-features {
    display: none;
  }
  .login-card {
    width: 100%;
    max-width: 430px;
    padding: 26px 22px;
    border-radius: 13px;
  }
  .login-card h2 {
    font-size: 21px;
  }
  .login-card > p {
    font-size: 12px;
    margin-bottom: 22px;
  }
  .login-footer {
    padding: 16px;
    font-size: 10px;
  }
  .login-page .toast-region {
    top: 74px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

#job-detail,
#member-results {
  scroll-margin-top: calc(var(--header) + 20px);
}
/* Guided Telegram connection: shared controls, short steps, and persistent recovery. */
.connection-wizard { width: min(720px, calc(100vw - 32px)); }
.connection-steps { display:flex; list-style:none; padding:0; gap:8px; margin:8px 0 20px; }
.connection-steps li { flex:1; padding:10px 12px; border-radius:8px; background:var(--bg, #f3f5f9); color:#64748b; font-size:14px; }
.connection-steps li[aria-current=step] { color:#3730a3; background:#eef2ff; font-weight:700; box-shadow:inset 0 0 0 1px #c7d2fe; }
.registered-setting { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:1px solid #e2e8f0; border-radius:10px; margin:16px 0; }
.registered-setting p { margin:4px 0 0; }
.api-help { margin:0 0 20px; padding:12px 14px; background:#f8fafc; border-radius:8px; }
.api-help li { margin-bottom:8px; font-size:14px; }
.connection-destination { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; }
.connection-destination strong { font-size:18px; }
.connection-complete { padding:20px 0; }
.connection-complete > svg { width:40px; height:40px; color:#15803d; }
.connection-recovery { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.connection-wizard [hidden] { display:none !important; }
.connection-wizard .dialog-actions { position:sticky; bottom:-1px; background:#fff; padding:16px 0 4px; border-top:1px solid #e2e8f0; flex-wrap:wrap; }
@media (max-width:600px) {
  .connection-wizard { width:calc(100vw - 20px); max-height:calc(100dvh - 24px); padding:20px 16px; }
  .connection-steps li { font-size:13px; padding:10px 8px; }
  .connection-wizard .dialog-actions .primary { width:100%; flex:1 0 100%; min-height:46px; order:-1; }
  .connection-wizard .dialog-actions button { min-height:44px; }
  .registered-setting { align-items:flex-start; }
}

/* Task recipient picker: only the result list scrolls, actions remain visible. */
.target-picker { width:min(920px,calc(100vw - 40px)); height:min(780px,calc(100dvh - 48px)); padding:0; overflow:hidden; }
.target-picker[open] { display:flex; flex-direction:column; }
.picker-top { padding:24px 24px 14px; flex-shrink:0; border-bottom:1px solid var(--line); }
.picker-top .dialog-description { margin-bottom:10px; }
.picker-context { color:var(--accent); background:var(--accent-soft); border-radius:8px; padding:10px 12px; font-size:13px; overflow-wrap:anywhere; }
.picker-search { display:grid; grid-template-columns:1.4fr 1fr auto; gap:12px; align-items:end; margin:16px 0 6px; }
.picker-search label { margin:0; }
.picker-tools,.picker-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.picker-tools { margin-top:12px; flex-wrap:wrap; }
.picker-tools>div,.picker-footer>div { display:flex; gap:8px; }
.picker-tools .check { margin:0; }
.picker-list { overflow:auto; min-height:0; flex:1; overscroll-behavior:contain; }
.picker-list:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.picker-loading { padding:50px 24px; color:var(--muted); text-align:center; }
.picker-table { width:100%; border-collapse:collapse; }
.picker-table th { position:sticky; top:0; background:#f8fafc; z-index:1; }
.picker-table th,.picker-table td { padding:12px 20px; text-align:left; border-bottom:1px solid var(--line); font-size:14px; }
.picker-table .hint { max-width:250px; margin:6px 0 0; }
.picker-target { min-height:44px; margin:0; overflow-wrap:anywhere; }
.picker-target input { flex-shrink:0; width:20px; height:20px; }
.picker-bottom { padding:12px 24px 20px; background:#fff; border-top:1px solid var(--line); flex-shrink:0; }
.picker-bottom .pagination { margin:0 0 12px; }
.picker-bottom .form-feedback { margin:0 0 10px; max-height:80px; overflow:auto; }
.picker-bottom .form-feedback:empty { display:none; }
@media(max-width:600px) {
  .target-picker { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); height:calc(100dvh - 16px); border-radius:12px; }
  .picker-top { padding:16px 14px 10px; }
  .picker-top .dialog-header h2 { font-size:18px; }
  .picker-top .hint { font-size:11px; }
  .picker-search { grid-template-columns:1fr auto; gap:8px; margin-top:10px; }
  .picker-search label:first-child { grid-column:1/-1; }
  .picker-tools { gap:6px; margin-top:8px; }
  .picker-tools button { font-size:12px; padding:8px; min-height:44px; }
  .picker-tools .check { min-height:44px; }
  .picker-table thead { display:none; }
  .picker-table tr { display:grid; grid-template-columns:1fr; padding:8px 14px; border-bottom:1px solid var(--line); }
  .picker-table td { display:block; padding:2px 0; border:0; }
  .picker-table td:nth-child(2) { padding-left:30px; color:var(--muted); font-size:12px; }
  .picker-table td:nth-child(2)::before { content:'담당 계정: '; }
  .picker-table td:nth-child(3) { padding-left:30px; }
  .picker-table .hint { max-width:none; }
  .picker-bottom { padding:10px 14px max(12px,env(safe-area-inset-bottom)); }
  .picker-footer { flex-wrap:wrap; gap:8px; }
  .picker-footer>div { width:100%; }
  .picker-footer button { min-height:44px; word-break:keep-all; }
  .picker-footer .primary { flex:1; }
}

@media(max-width:600px) and (max-height:740px) {
  .picker-top { max-height:48%; overflow-y:auto; overscroll-behavior:contain; }
  .picker-bottom .pagination { margin-bottom:6px; }
}
/* Extraction access check */
.check-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 12px 0 14px;
  background: #fbfcfe;
  font-size: 13px;
}
.check-panel > p + p,
.check-panel .check-headline + p {
  margin-top: 4px;
}
.check-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.check-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}
.check-status > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.check-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.check-panel .summary-grid {
  margin: 14px 0 8px;
}
.check-panel .check-scope {
  margin-top: 4px;
}
.check-system-note {
  margin: 8px 0 12px;
}
.check-panel .inline-alert {
  margin: 12px 0 8px;
}
.check-list-help {
  margin: 6px 0 10px;
  padding-left: 18px;
}
.check-list-help li + li {
  margin-top: 3px;
}
.check-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.check-guide-actions button,
.inline-alert .check-guide-actions button {
  align-self: auto;
}
.check-alt {
  margin-top: 10px;
}
.check-alt .text-button {
  display: inline;
  min-height: 0;
  padding: 0;
  font-size: inherit;
}
.check-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  margin: 8px 0;
}
.check-tech dt {
  color: var(--muted);
  font-size: 12px;
}
.check-tech dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.check-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.check-actions .hint {
  flex: 1 1 220px;
}
#extract-other-accounts {
  margin-top: -6px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .check-panel {
    padding: 14px;
  }
  .check-actions button,
  .check-guide-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* Saved extraction registration, same native modal and toast system. */
.member-import-dialog { width:min(960px, calc(100vw - 24px)); }
.member-import-dialog .member-list { max-height:38vh; overflow:auto; }
.member-actions { position:sticky; bottom:0; padding:12px 0; background:var(--surface,#fff); }
.member-list small { display:block; overflow-wrap:anywhere; color:var(--muted,#657086); }
#member-register-content dd { overflow-wrap:anywhere; }
#member-register-confirm { max-height:90dvh; overflow:auto; }
#member-register-confirm .dialog-actions { position:sticky; bottom:0; background:var(--surface,#fff); padding:12px 0; }
@media(max-width:600px) { .member-import-dialog .picker-tools,.member-import-dialog .picker-search { flex-wrap:wrap; } .member-list .picker-table { min-width:0; } .member-list th,.member-list td { padding:8px 4px; overflow-wrap:anywhere; } .member-list .picker-target { min-width:0; } .member-actions button { width:100%; } }

#member-import-close { flex-shrink:0; white-space:nowrap; }
.member-actions { display:flex; flex-wrap:wrap; gap:8px; }
