:root {
  color-scheme: light;
  --ink: #202637; --muted: #60697c; --line: #dfe3eb; --purple: #6042cf;
  --canvas: #f5f6fa; --danger: #b32d42; --nav: #1c2030;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #8466e9; outline-offset: 3px; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; letter-spacing: -.9px; line-height: 1.3; margin-bottom: 12px; overflow-wrap: anywhere; }
h2 { font-size: 20px; letter-spacing: -.4px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 10px; }
p { color: var(--muted); }
code, .code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
small { font-size: 13px; }
summary { cursor: pointer; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; background: var(--nav); color: #cad0e1; padding: 30px 18px; display: flex; flex-direction: column; overflow-y: auto; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 23px; font-weight: 750; margin: 0 10px 42px; }
.brand-mark { display: grid; place-items: center; background: #7558d9; width: 40px; height: 40px; border-radius: 12px; }
.brand small { display: block; font-size: 11px; letter-spacing: 1px; color: #abb1c8; }
.nav-caption { font-size: 12px; color: #a5adc5; margin: 0 14px 10px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; font-weight: 550; }
.sidebar nav a:hover { background: #2c3247; color: white; text-decoration: none; }
.sidebar nav a.active { background: #373052; color: #eee6ff; box-shadow: inset 3px 0 #ad91ff; }
.sidebar nav a span { width: 20px; text-align: center; }
.owner-nav { margin-top: 32px; }
.sidebar-bottom { margin-top: auto; padding: 24px 10px 0; font-size: 13px; color: #d1d5e3; }
.sidebar-bottom p { color: #a5adc5; font-size: 12px; margin: 8px 0 0; }
.workspace { margin-left: 228px; }
.topbar { min-height: 74px; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; gap: 16px; padding: 14px 36px; }
.environment-badge { display: inline-flex; padding: 5px 10px; background: #f0ebff; border: 1px solid #ded4ff; border-radius: 6px; font-size: 12px; font-weight: 750; letter-spacing: .6px; color: #5736bb; white-space: nowrap; }
.environment-badge.production { background: #fff0f2; color: #ac243a; border-color: #f3c4cc; }
.environment-note { font-size: 13px; color: var(--muted); }
.account-menu { position: relative; margin-left: auto; }
.account-menu summary { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; list-style: none; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #efeafb; color: #5d3bbc; font-weight: 700; flex-shrink: 0; }
.account-menu > div { position: absolute; right: 0; top: 44px; background: white; padding: 22px; width: min(300px,85vw); box-shadow: 0 12px 40px #1b213025; border: 1px solid var(--line); border-radius: 10px; z-index: 20; }
.account-menu > div > a { display: block; margin-top: 16px; }
.account-menu form { margin: 12px 0 0; }
main { max-width: 1500px; padding: 36px; margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 650; color: #6e608e; margin-bottom: 10px; }
.page-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-heading p { margin-bottom: 0; max-width: 760px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; min-height: 44px; line-height: 1.5; font-size: 14px; font-weight: 650; white-space: nowrap; }
.button:hover { text-decoration: none; }
.primary { background: var(--purple); color: white; }
.primary:hover { background: #4e31b5; }
.secondary { background: white; border-color: #cbd1dd; color: #394256; }
.secondary:hover { background: #f8f6ff; border-color: #a895dd; }
.danger { background: var(--danger); color: white; }
.danger-text { color: var(--danger); }
.text-button { border: 0; background: none; color: #655097; padding: 8px 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.section-block { margin-bottom: 32px; }
.section-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-action { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); padding: 20px 16px; border-radius: 12px; }
.quick-action:hover { background: #faf8ff; border-color: #b3a0e7; text-decoration: none; }
.quick-action > div { flex: 1; }
.quick-action strong { display: block; font-size: 15px; }
.quick-action div > span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.quick-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f0ebfd; color: var(--purple); font-size: 21px; flex-shrink: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.service-card, .panel, .resource-card { background: white; border: 1px solid var(--line); border-radius: 12px; }
.service-card { padding: 24px; display: flex; flex-direction: column; }
.card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.card-heading h3 { margin: 0; font-size: 21px; }
.service-card > p { font-size: 14px; }
.status { font-size: 13px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.online, .positive { background: #e8f5ed; color: #226645; }
.offline, .negative { background: #fcecf0; color: #a72e42; }
.attention { background: #fff2d9; color: #885a0d; }
.neutral { background: #eef0f5; color: #596279; }
.metrics { display: grid; gap: 10px; margin: 8px 0 22px; }
.metrics > div { display: flex; justify-content: space-between; gap: 16px; }
.metrics span { font-size: 14px; color: var(--muted); }
.metrics strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.card-link { display: flex; justify-content: space-between; padding-top: 16px; margin-top: auto; border-top: 1px solid var(--line); color: #6040b4; font-weight: 600; font-size: 14px; }
.panel { padding: 28px; }
.account-shortcuts h2 { margin-bottom: 8px; }
.footnote { font-size: 13px; margin-top: 24px; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.resource-card { padding: 22px; display: flex; flex-direction: column; position: relative; }
.resource-card:hover { border-color: #aa93df; background: #fdfcff; text-decoration: none; }
.resource-card h3 { padding-right: 28px; }
.resource-card p { font-size: 14px; margin-bottom: 20px; }
.resource-icon { position: absolute; right: 22px; top: 22px; color: #7653c4; }
.resource-capability { font-size: 13px; color: #67568b; margin-top: auto; }
.notice { border: 1px solid #ded6f2; border-radius: 9px; padding: 16px 20px; background: #f4f0fc; color: #584779; margin: 18px 0; }
.notice p { margin: 5px 0 0; color: inherit; font-size: 14px; }
.notice.success { color: #246245; background: #eaf6ee; border-color: #bfdfcb; }
.notice.failure { color: #9c293e; background: #fff1f3; border-color: #efc7ce; }
.muted { color: var(--muted); font-size: 14px; }
.search-bar { display: flex; align-items: end; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar > label { min-width: 180px; }
.search-bar > label:first-child { width: min(400px,100%); }
label { display: grid; gap: 7px; color: #394256; font-size: 14px; font-weight: 550; }
input:not([type=checkbox]):not([type=hidden]), textarea, select { width: 100%; background: white; border: 1px solid #bcc4d2; border-radius: 7px; padding: 10px 12px; color: #252d40; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #757e90; }
input:focus, textarea:focus, select:focus { border-color: #7651ce; }
input[type=checkbox] { accent-color: var(--purple); width: 18px; height: 18px; cursor: pointer; }
textarea { resize: vertical; line-height: 1.65; }
.list-caption { display: flex; gap: 12px; justify-content: space-between; margin: 22px 0 12px; }
.list-caption span { font-size: 13px; color: var(--muted); }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
th { font-size: 13px; font-weight: 650; color: #596278; background: #f9fafc; padding: 14px 18px; white-space: nowrap; }
td { padding: 18px; border-top: 1px solid #e8ebf1; max-width: 280px; color: #4b556a; vertical-align: top; }
tbody tr:hover { background: #fbfaff; }
.selection-cell { width: 48px; padding-right: 4px; }
.record-cell { min-width: 200px; }
.record-title { color: #293247; font-weight: 650; display: inline-block; overflow-wrap: anywhere; }
.record-summary { margin-bottom: 22px; }
.summary-grid { display: flex; flex-wrap: wrap; gap: 24px 36px; margin: 0; }
.summary-grid > div { flex: 1; min-width: 150px; }
.summary-grid dt { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.summary-grid dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.record-id { color: #687288; font-size: 12px; margin-top: 5px; }
.record-id code { display: block; margin-top: 5px; max-width: 240px; user-select: all; }
.cell-value { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-link { color: #6344b0; white-space: nowrap; font-size: 14px; }
.batch-panel { padding: 18px 22px; background: white; border: 1px solid var(--line); border-radius: 10px; margin-top: 16px; }
.batch-panel > summary { font-weight: 600; }
.selection-count { font-size: 13px; color: #624a93; margin-left: 10px; }
.batch-panel > p { font-size: 14px; margin: 14px 0; }
.batch-toolbar { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.batch-toolbar label { flex: 1; min-width: 180px; }
.empty, .empty-state { text-align: center; padding: 48px 24px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { margin-bottom: 20px; }
.pagination { display: flex; gap: 24px; justify-content: center; align-items: center; font-size: 14px; color: var(--muted); margin: 24px; }
.back-link { display: inline-block; color: #65508e; font-size: 14px; margin-bottom: 20px; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #6a6280; margin-bottom: 20px; }
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.field.wide { grid-column: 1/-1; }
.field > label { display: flex; align-items: center; margin-bottom: 8px; }
.field-help { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.field-link { font-size: 13px; color: #6040a3; display: inline-block; margin-top: 8px; }
.required { color: #b12242; }
.manual-reference, [data-reference-manual] { margin-top: 12px; }
.system-details { margin-top: 20px; padding: 20px 24px; }
.system-details summary { font-weight: 550; }
.system-details summary > span { font-size: 12px; color: var(--muted); margin-left: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 22px 0 0; }
.detail-grid dt { font-size: 13px; color: var(--muted); }
.detail-grid dd { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 20px 0; position: sticky; bottom: 12px; background: #ffffffed; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; box-shadow: 0 4px 18px #2026370c; z-index: 2; }
.editor-actions > span { font-size: 13px; color: var(--muted); margin-right: auto; }
.operation-panel { margin-top: 32px; border-top: 3px solid #8565d5; }
.operation-form { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; }
.operation-form > label, .operation-field { flex: 1; min-width: 220px; }
.operation-form .operation-choice { flex-basis: 100%; }
.operation-help { flex-basis: 100%; margin: 0; }
.operation-form > button { margin-left: auto; }
.image-editor img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; margin: 12px 0; }
.image-editor small { display: block; color: var(--muted); margin: 8px 0; }
.image-editor p { margin: 8px 0; font-size: 14px; }
.advanced { margin-top: 14px; font-size: 13px; color: var(--muted); }
.advanced textarea { margin-top: 12px; max-height: 180px; overflow-wrap: anywhere; font-family: ui-monospace,monospace; font-size: 12px; }
.help-box { padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: white; margin-top: 20px; }
.help-box p { margin: 12px 0 0; }
.account-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.god-account h2 { font-size: 18px; }
.god-account > code { display: block; color: #424c63; }
.god-account > .muted { margin: 14px 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.account-actions button { font-size: 13px; }
.credential { margin: 24px 0; background: #fffbf5; border-color: #e8d8be; }
.credential label + label { margin-top: 24px; }
.credential code { font-size: 18px; color: #684620; user-select: all; padding: 8px 0; }
.credential .copy-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.narrow { max-width: 850px; margin-left: 0; }
.stack { display: grid; gap: 22px; }
.compact { gap: 10px; min-width: 180px; }
.result-summary { margin: 24px 0; }
.result-summary h2 { font-size: 24px; }
.result-actions { margin-top: 24px; }
.auth-page { min-height: 100vh; display: flex; background: white; }
.auth-card { width: 100%; max-width: 500px; padding: 60px 40px; margin: auto; align-self: center; }
.auth-card h1 { font-size: 28px; }
.auth-card .muted { font-size: 15px; margin-bottom: 30px; }
.auth-brand { font-size: 52px; font-weight: 850; letter-spacing: -3px; margin-bottom: 28px; line-height: 1; }
.auth-brand span { color: var(--purple); }
.auth-card .primary { width: 100%; }
.auth-card footer { font-size: 13px; color: var(--muted); text-align: center; margin-top: 28px; }
.auth-side { width: 46%; background: #201e35; position: relative; overflow: hidden; display: grid; place-items: center; }
.auth-side p { color: #b3a9ce; font-size: 30px; letter-spacing: 2px; font-weight: 700; line-height: 1.6; z-index: 1; margin-top: 300px; }
.orb { position: absolute; width: 280px; height: 280px; border-radius: 50%; top: calc(50% - 260px); background: radial-gradient(circle at 35% 30%,#c5b9f4 0,#8567d2 30%,#3c2d61 70%); }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px); background-size: 60px 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: white; color: #322051; z-index: 100; }
.skip-link:focus { top: 10px; }
@media (max-width: 1200px) {
  .resource-grid, .account-grid, .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metrics > div { flex-direction: column; gap: 4px; }
  main { padding: 28px; }
  .topbar { padding: 14px 28px; }
}
@media (max-width: 850px) {
  .sidebar { position: static; width: auto; padding: 16px; overflow: visible; }
  .brand { margin: 0 0 14px; font-size: 20px; }
  .brand small { display: inline; margin-left: 10px; }
  .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar nav a { padding: 10px 12px; font-size: 14px; }
  .owner-nav { margin-top: 10px; }
  .workspace { margin-left: 0; }
  .auth-side { display: none; }
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 28px; }
  .editor-grid, .detail-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
}
@media (max-width: 570px) {
  main { padding: 24px 16px; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .environment-note { order: 3; flex-basis: 100%; }
  .account-menu summary { font-size: 12px; }
  .page-heading { display: block; }
  .page-heading > .button { margin-top: 18px; }
  .resource-grid, .account-grid, .quick-grid { grid-template-columns: 1fr; }
  .section-heading, .list-caption { align-items: start; flex-direction: column; gap: 6px; }
  .panel { padding: 20px; }
  .table-panel { padding: 0; }
  .editor-actions { padding: 12px; flex-wrap: wrap; bottom: 6px; }
  .editor-actions > span { flex-basis: 100%; }
  .operation-form > label, .operation-field { min-width: 100%; }
  .operation-form > button { width: 100%; }
  .auth-card { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
