:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif; color: #20232d; background: #f7f8fb; font-synthesis: none; --brand: #6356d9; --brand-soft: #eeecfb; --surface-muted: #f7f8fb; --border: #e5e7ee; --muted: #6b7080; --danger: #bb3549; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #a49cf0; outline-offset: 3px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 18px max(28px, calc((100vw - 1200px) / 2)); background: white; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #252732; text-decoration: none; font-size: 18px; letter-spacing: -.5px; white-space: nowrap; }
.brand strong { font-weight: 450; color: var(--muted); }
.brand-mark { display: block; width: 41.125px; height: 35px; object-fit: contain; flex-shrink: 0; }
.brand-mark.large { width: 70.5px; height: 60px; margin: 0 auto 30px; }
.header-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); min-width: 0; }
.account > span { overflow: hidden; text-overflow: ellipsis; }
.lang-switcher { position: relative; margin: 0; border: 0; padding: 0; flex-shrink: 0; }
.lang-switcher > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; background: white; color: #484d5d; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary:hover { border-color: #c9cddb; background: #fafbfe; }
.lang-caret { color: var(--muted); font-size: 10px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 148px; padding: 4px; background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px #1411241c; z-index: 40; display: grid; gap: 2px; }
.lang-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: transparent; color: #20232d; padding: 8px 10px; border-radius: 6px; font-size: 12px; text-align: left; white-space: nowrap; }
.lang-option:hover { background: var(--surface-muted); }
.lang-option.selected { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lang-check { font-size: 11px; }
main { max-width: 1200px; padding: 52px 28px 30px; margin: auto; min-height: calc(100vh - 153px); }
.eyebrow { color: var(--brand); letter-spacing: .14em; font-size: 11px; font-weight: 700; margin: 0 0 14px; }
h1 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -.04em; line-height: 1.4; font-weight: 650; margin: 0 0 12px; }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin: 0; }
h3 { font-size: 16px; margin: 0 0 10px; }
p { line-height: 1.7; }
.lede { color: var(--muted); font-size: 14px; margin: 0; }
.endpoint { margin: 28px 0 34px; background: #eeecfb; border: 1px solid #e0dcf7; border-radius: 12px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.endpoint > div { min-width: 0; }
.field-label { display: block; color: #6f668c; font-size: 11px; margin-bottom: 6px; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.endpoint code { color: #453c76; font-size: 14px; }
.setup-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 32px; }
.setup-guides > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 12px; background: white; text-decoration: none; font-size: 14px; }
.setup-guides > a:hover { border-color: var(--brand); }
.setup-guides .hint { margin-top: 4px; }
.login-card + .setup-guides { max-width: 520px; margin: 0 auto 32px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.tab { border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 0 3px 14px; background: none; font-weight: 550; font-size: 14px; }
.tab.selected { color: var(--brand); border-bottom-color: var(--brand); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading p { font-size: 12px; color: var(--muted); margin: 7px 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.button-primary { background: var(--brand); color: white; }
.button-primary:hover { background: #5346c5; }
.button-secondary { background: white; border-color: #dcdfe8; color: #484d5d; }
.button-secondary:hover { background: #f6f7fa; }
.button-danger { background: var(--danger); color: white; }
.button-danger:hover { background: #a52c3e; }
.text-button { border: 0; background: transparent; color: var(--brand); padding: 6px 3px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.text-button:hover { background: #f0edf9; }
.text-button.danger { color: var(--danger); }
.table-wrap { position: relative; border: 1px solid var(--border); border-radius: 12px; background: white; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th { background: #fafbfc; color: var(--muted); font-size: 11px; font-weight: 550; padding: 13px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 20px 18px; vertical-align: middle; border-bottom: 1px solid #eef0f4; }
tr:last-child td { border-bottom: 0; }
.cell-title { font-weight: 550; display: block; max-width: 260px; overflow-wrap: anywhere; }
.cell-detail { color: var(--muted); display: block; font-size: 11px; margin-top: 6px; max-width: 260px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 9px; justify-content: flex-end; }
.id-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.id-cell .text-button { font-size: 10px; }
.date { white-space: nowrap; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 4px 9px; font-size: 11px; line-height: 1.4; white-space: nowrap; background: #f0f1f5; color: #707582; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-active { background: #eaf6f0; color: #267b54; }
.badge-revoked { background: #fff0f2; color: #b3495b; }
.empty { text-align: center; padding: 58px 25px; }
.empty p { color: var(--muted); font-size: 13px; margin: 0; }
.loading { color: var(--muted); font-size: 13px; text-align: center; margin: 20px 0; }
.load-more { display: flex; margin: 20px auto 0; }
.page-note { color: var(--muted); font-size: 11px; margin: 24px 0 0; }
.notice { background: #f0eefb; color: #5d547d; border-radius: 8px; padding: 12px 15px; font-size: 12px; line-height: 1.75; }
.notice-error { background: #fff0f2; color: #ad3448; margin-bottom: 18px; }
.data-use-notice { --warning-background: #fff8e6; --warning-text: #705115; --warning-border: #efd48b; background: var(--warning-background); color: var(--warning-text); border: 1px solid var(--warning-border); margin: 20px 0; }
.data-use-notice > strong { display: block; }
.data-use-notice p { margin: 8px 0 0; }
.data-use-notice ul { padding-left: 18px; margin: 8px 0; }
#error { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
dialog { border: 1px solid var(--border); border-radius: 16px; padding: 28px; width: min(550px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: inherit; box-shadow: 0 24px 90px #1411242b; }
dialog::backdrop { background: #17132765; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.close-button { border: 0; background: none; color: var(--muted); border-radius: 5px; font-size: 24px; line-height: 1; width: 30px; height: 30px; }
.close-button:hover { background: #f1f2f6; }
.dialog-lede { margin: 0 0 23px; font-size: 13px; color: var(--muted); white-space: pre-line; }
label { display: block; font-size: 12px; font-weight: 550; margin-top: 20px; line-height: 1.5; }
input, textarea, select { display: block; width: 100%; border: 1px solid #d9dce6; border-radius: 7px; background: white; color: inherit; padding: 10px 12px; font-size: 13px; margin-top: 7px; }
textarea { resize: vertical; font-family: inherit; min-height: 85px; }
input[readonly] { background: #f8f9fc; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.hint { display: block; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.8; margin: 8px 0 0; }
details { margin: 24px 0 0; border-top: 1px solid var(--border); padding-top: 17px; }
summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--muted); }
.checkbox input { width: 15px; height: 15px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.data-use-confirmation { color: inherit; margin: 16px 0; }
.data-use-confirmation input { cursor: pointer; }
.consent-actions .data-use-confirmation { margin: 0 0 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.form-error { color: var(--danger); font-size: 12px; margin: 17px 0 0; }
.copy-field { display: flex; gap: 8px; margin-top: 7px; }
.copy-field input { min-width: 0; margin: 0; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: 9px; color: white; background: #2c2b3c; box-shadow: 0 8px 30px #17112426; font-size: 12px; z-index: 100; max-width: calc(100vw - 36px); text-align: center; }
.login-card { max-width: 520px; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 48px; margin: 24px auto 45px; text-align: center; box-shadow: 0 8px 35px #24213c05; }
.login-card h1 { font-size: 29px; line-height: 1.6; }
.login-card .lede { line-height: 1.9; margin-top: 20px; }
.login-button { width: 100%; padding: 13px; margin: 32px 0 9px; }
.consent-main { padding-top: 28px; }
.consent-card { max-width: 600px; padding: 32px 40px; margin: 0 auto 32px; text-align: left; }
.consent-card h1 { font-size: 25px; line-height: 1.4; }
.consent-heading { text-align: center; }
.consent-heading .lede { margin-top: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.consent-heading .lede strong { color: var(--brand); font-weight: 650; }
.consent-destination { display: flex; align-items: baseline; gap: 20px; padding: 14px 18px; margin: 20px 0; border-radius: 8px; background: var(--surface-muted); font-size: 13px; }
.consent-destination dt { color: var(--muted); flex-shrink: 0; }
.consent-destination dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.consent-permissions h2 { font-size: 14px; }
.consent-permissions ul { padding: 0; margin: 16px 0; list-style: none; display: grid; gap: 16px; }
.consent-permissions li { display: flex; align-items: flex-start; gap: 12px; }
.permission-check { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.consent-permissions li strong { font-size: 14px; font-weight: 550; }
.consent-permissions li p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.consent-boundary { font-size: 12px; margin: 0; line-height: 1.8; }
.consent-readonly { border-top: 1px solid var(--border); margin: 20px 0 0; padding-top: 16px; color: var(--muted); font-size: 12px; }
.consent-readonly .badge { margin: 0 6px 6px 0; }
.consent-actions { display: grid; gap: 10px; margin-top: 20px; }
.consent-actions .button { padding: 13px; font-size: 14px; white-space: normal; }
.consent-note { text-align: center; margin-top: 18px; }
.guide-main { max-width: 1040px; }
.guide-switcher { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 32px; background: var(--brand-soft); border-radius: 10px; }
.guide-switcher a { padding: 8px 18px; border-radius: 7px; text-decoration: none; font-size: 13px; }
.guide-switcher [aria-current="page"] { background: white; font-weight: 650; }
.guide-heading { margin-bottom: 28px; }
.guide-progress { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 20px 0; margin-bottom: 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; }
.guide-progress a { text-decoration: none; }
.guide-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.guide-step { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px; scroll-margin-top: 20px; min-width: 0; }
.guide-step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.guide-step-heading h2 { line-height: 1.6; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 650; }
.guide-step p, .guide-step li, .guide-troubleshooting p { font-size: 13px; line-height: 1.9; }
.guide-step p:first-child { margin-top: 0; }
.guide-step .hint { font-size: 11px; }
.guide-step ul { padding-left: 20px; }
.guide-step-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-code { background: var(--surface-muted); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.guide-code code { display: block; line-height: 1.9; user-select: all; }
.guide-figure { margin: 0; min-width: 0; }
.guide-figure a { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.guide-prompt { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--brand-soft); font-size: 14px; line-height: 1.8; }
.guide-troubleshooting { padding: 12px 0; }
.guide-troubleshooting summary { font-size: 13px; }
.guide-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 32px 0; }
footer { display: flex; justify-content: space-between; max-width: 1200px; padding: 24px 28px; margin: auto; color: #9398a6; font-size: 11px; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 720px) {
  .site-header { padding: 16px 18px; align-items: flex-start; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 35.25px; height: 30px; }
  .header-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
  .account { gap: 3px; flex-direction: column; align-items: flex-end; font-size: 10px; max-width: 100%; }
  main { padding: 32px 18px 20px; }
  .endpoint { padding: 17px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .endpoint code { font-size: 12px; }
  .setup-guides { grid-template-columns: 1fr; gap: 10px; }
  .setup-guides > a { padding: 15px 18px; }
  .guide-step { padding: 22px 18px; }
  .guide-step-columns { grid-template-columns: 1fr; gap: 20px; }
  .guide-step-heading { align-items: flex-start; }
  .guide-step-heading h2 { font-size: 16px; }
  .guide-progress { gap: 14px; }
  .section-heading { align-items: flex-start; }
  .section-heading p { max-width: 250px; }
  .section-heading .button { padding: 9px 10px; font-size: 12px; }
  table, tbody { display: block; }
  thead { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 1px solid var(--border); }
  tr:last-child { border-bottom: 0; }
  td { padding: 7px 14px; border: 0; min-width: 0; }
  #clients-body td:nth-child(n+3), #connections-body td:first-child, #connections-body td:nth-child(n+4) { grid-column: 1 / -1; }
  td.date::before { content: attr(data-label) ' '; margin-right: 10px; }
  .id-cell code { font-size: 11px; }
  .cell-title { min-width: 135px; }
  .row-actions { gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
  dialog { padding: 22px; }
  .login-card { padding: 35px 24px; margin-top: 10px; }
  .login-card h1 { font-size: 25px; }
  .consent-card { padding: 28px 24px; margin-top: 0; }
  footer { padding: 22px 18px; }
}
