:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  color: #151515;
  background: #fff;
  --ink: #151515;
  --muted: #66635e;
  --paper: #fff;
  --soft: #faf9f7;
  --border: #e7e5e1;
  --border-strong: #938d83;
  --red: #a32e29;
  --radius: 9px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #75716b; opacity: 1; }
svg, img { display: block; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.45; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
code, pre { font-family: var(--mono); }
::selection { background: #e7e5e1; color: var(--ink); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.spaced { margin-top: 20px; }
.danger { color: var(--red) !important; }
.session-policy { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.session-policy > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.session-policy p { margin: 0 0 12px; max-width: 680px; }

/* Only the supplied wordmark identifies the service. */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 3px; }
.brand img { width: 128px; height: auto; }
.brand:focus-visible { outline-offset: 8px; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px; color: var(--muted); }
.boot p { margin: 0; }
.boot-error { text-align: center; }
.boot-error h1 { font-size: 24px; font-weight: 650; margin: 0; color: var(--ink); }

/* One control language across login, settings and dialogs. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; transition: background-color 120ms, border-color 120ms; }
.button.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.primary:hover:not(:disabled) { background: #37342f; border-color: #37342f; }
.button.secondary, .button.outlined, .button.passkey { color: var(--ink); background: var(--paper); border-color: var(--border-strong); }
.button.passkey { border-color: var(--ink); }
.button.secondary:hover:not(:disabled), .button.outlined:hover:not(:disabled), .button.passkey:hover:not(:disabled) { background: var(--soft); border-color: var(--ink); }
.button.subtle { color: var(--muted); background: transparent; }
.button.subtle:hover:not(:disabled) { background: #f1f0ed; color: var(--ink); }
.button.danger-solid { color: #fff; background: var(--red); border-color: var(--red); }
.button.danger-solid:hover:not(:disabled) { background: #842522; }
.button:disabled { background: #eeece8; color: #69645d; border-color: #d7d3cd; }
.button[aria-busy="true"] { background: #e7e5e1; color: #4c4943; }
.button.full { width: 100%; }
.button.small { min-height: 44px; padding: 9px 13px; font-size: 13px; }
.button .icon { width: 18px; height: 18px; }
.icon-button { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); flex-shrink: 0; }
.icon-button:hover:not(:disabled) { color: var(--ink); background: #f1f0ed; }
.text-button { background: transparent; border: 0; padding: 9px 4px; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.6; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { color: #716b64; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge, .pill { display: inline-flex; align-items: center; background: #f3f1ed; color: #5c5851; border-radius: 5px; padding: 3px 8px; font-size: 12px; line-height: 1.7; font-weight: 500; white-space: nowrap; }
.badge.active { color: #39362f; background: #eeece5; }
.badge.pending { color: #79551f; background: #fcf2e0; }
.pill { padding: 7px 10px; }
.count { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 12px; }

/* Wordmark, one task, then alternate methods. */
.auth-shell, .email-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.auth-header, .email-header { width: 100%; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 48px; }
.auth-service-note { font-size: 13px; color: var(--muted); }
.auth-main, .email-main { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; padding: 52px 24px 72px; }
.auth-body { width: 100%; max-width: 400px; }
.auth-card { width: 100%; }
.auth-card h1, .auth-card h2, .email-card h1 { font-size: 30px; letter-spacing: -0.035em; font-weight: 650; margin: 0 0 10px; }
.auth-card > h1 + form { margin-top: 26px; }
.auth-subtitle { font-size: 14px; line-height: 1.85; margin: 0 0 28px; color: var(--muted); }
.field { display: block; margin-bottom: 20px; }
.field > span:first-child { display: block; margin-bottom: 8px; color: #393630; font-size: 13px; font-weight: 600; }
.input-wrap { display: block; position: relative; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field input:disabled, .field textarea:disabled { color: var(--muted); background: #f1efeb; border-color: var(--border-strong); cursor: not-allowed; }
.field textarea { resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.field input.password-input { padding-right: 52px; }
.password-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; height: 42px; width: 42px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.password-toggle:hover { background: var(--soft); color: var(--ink); }
.password-toggle .icon { width: 19px; height: 19px; }
.field-hint { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 7px 0 20px; }
.divider { display: flex; align-items: center; gap: 16px; margin: 27px 0 22px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.passkey-hint { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; margin: 10px 0 0; }
.provider-list { display: grid; gap: 10px; }
.provider-button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 11px 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 14px; font-weight: 500; text-align: left; }
.provider-button:hover:not(:disabled) { background: var(--soft); border-color: var(--ink); }
.provider-button > .icon { width: 18px; height: 18px; color: var(--muted); margin-left: auto; }
.provider-button:disabled { color: #716b64; background: #faf9f7; border-color: var(--border); }
.provider-button small { margin-left: auto; color: #706a62; font-size: 12px; font-weight: 400; white-space: nowrap; }
.provider-logo { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 5px; font-size: 18px; font-weight: 750; }
.provider-logo.google { color: #315fb8; font-family: Arial, sans-serif; }
.provider-logo.naver { color: #fff; background: #087f40; font-size: 15px; }
.provider-logo.apple { color: var(--ink); }
.provider-logo.apple svg { width: 24px; height: 24px; }
.provider-logo.other { background: #eeece8; color: var(--ink); }
.auth-switch { font-size: 13px; color: var(--muted); margin: 24px 0 0; text-align: center; }
.auth-switch button, .recovery-link button { color: var(--ink); background: transparent; border: 0; min-height: 44px; padding: 8px 4px; font-size: inherit; }
.auth-switch button { margin-left: 4px; font-weight: 600; }
.auth-switch button:hover, .recovery-link button:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-links { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 14px; }
.auth-links > button { color: var(--muted); background: transparent; border: 0; min-height: 44px; padding: 8px 3px; font-size: 13px; }
.auth-links > button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.auth-card > .provider-list { margin-top: 20px; }
.auth-links .auth-switch { margin: 0; }
.recovery-link { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.auth-links-secondary { margin-top: 5px; }
.login-recovery-link { display: flex; justify-content: flex-end; margin-top: 4px; }
.login-recovery-link > button { min-height: 44px; padding: 9px 0 9px 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.login-recovery-link > button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.auth-footer, .email-footer { max-width: 1184px; width: calc(100% - 96px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 0 25px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.interaction-banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px; margin-bottom: 26px; color: #4f4c46; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; line-height: 1.8; }
.interaction-banner > .icon { width: 18px; height: 18px; margin-top: 2px; }
.interaction-banner > span { flex: 1; min-width: 0; }
.interaction-banner > .text-button { min-height: 44px; align-self: center; flex-shrink: 0; }
.form-error { color: #8b2924; background: #fff7f5; border: 1px solid #e6bfb8; border-radius: var(--radius); padding: 12px 14px; margin: 12px 0 20px; font-size: 13px; line-height: 1.8; }

/* Group settings by task, with details beside controls. */
.dashboard { display: flex; min-height: 100dvh; background: var(--paper); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: 224px; padding: 36px 22px 26px; background: var(--paper); border-right: 1px solid var(--border); }
.sidebar .brand { margin: 0 12px; }
.sidebar .brand img { width: 120px; }
.workspace-label { margin: 56px 12px 14px; color: var(--muted); font-size: 12px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 48px; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 11px 12px; background: transparent; color: var(--muted); font-size: 14px; text-align: left; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item.selected { color: var(--ink); background: #f1efeb; font-weight: 600; }
.nav-item:hover:not(.selected) { color: var(--ink); background: var(--soft); }
.sidebar-bottom { margin-top: auto; padding: 32px 12px 0; color: var(--muted); font-size: 12px; }
.personal-note { margin: 0; }
.dashboard-main { flex: 1; min-width: 0; margin-left: 224px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding: 18px 40px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb span { display: inline-block; padding: 0 12px; color: var(--muted); }
.account-menu { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f0eeea; border: 1px solid var(--border); color: #4d4941; font-size: 13px; font-weight: 650; flex-shrink: 0; }
.account-menu strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.account-menu > div > span { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; margin-top: 2px; }
.account-menu > .icon-button { margin-left: 9px; }
.account-actions { position: relative; min-width: 0; }
.account-actions > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px; border-radius: 8px; list-style: none; cursor: pointer; }
.account-actions > summary::-webkit-details-marker { display: none; }
.account-actions > summary:hover { background: var(--soft); }
.account-actions > summary > .icon { width: 16px; height: 16px; color: var(--muted); transform: rotate(90deg); }
.account-actions[open] > summary > .icon { transform: rotate(-90deg); }
.account-identity { min-width: 0; max-width: 230px; }
.account-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13px; font-weight: 600; }
.account-identity > span { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.account-actions-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 20; display: grid; width: 184px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--paper); box-shadow: 0 5px 18px rgb(29 26 22 / 7%); }
.account-actions-menu > button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; font-size: 13px; text-align: left; }
.account-actions-menu > button:hover { background: var(--soft); }
.account-actions-menu > button .icon { width: 17px; height: 17px; color: var(--muted); }
.mobile-brand, .mobile-nav { display: none; }
.dashboard-content { max-width: 1120px; margin: 0 auto; padding: 48px 40px 0; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.section-intro h1, .section-intro h2 { margin: 0 0 9px; font-size: 29px; font-weight: 650; letter-spacing: -0.035em; }
.section-intro p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0; }
.section-intro > .button { margin-top: 2px; flex-shrink: 0; }
.settings-stack { display: flex; flex-direction: column; }
.settings-section { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0 24px; padding: 26px 0 18px; border-top: 1px solid var(--border); min-width: 0; }
.section-heading h3 { margin: 0 0 7px; font-size: 15px; font-weight: 650; }
.section-heading p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
.section-content { min-width: 0; }
.card { min-width: 0; padding: 24px; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; }
.card h3 { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.card p { margin: 8px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.card-heading p { margin: 5px 0 0; }
.card-heading > .icon { width: 19px; height: 19px; margin-top: 3px; color: var(--muted); }
.card-heading h3 > .icon { display: inline-block; width: 19px; height: 19px; vertical-align: middle; margin-right: 7px; }
.settings-section .card { border: 0; border-radius: 0; padding: 0 0 24px; background: transparent; }
.settings-section .card + .card { border-top: 1px solid var(--border); padding-top: 24px; }
.settings-section .card:last-child { padding-bottom: 8px; }
.settings-section .empty-state.compact { padding: 4px 0 12px; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.card-actions > .text-button { margin-left: auto; }
.card-actions .button { min-height: 44px; padding: 9px 14px; font-size: 13px; }
.method-row, .setting-row, .settings-row { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 8px 0; }
.method-row + .method-row { border-top: 1px solid var(--border); }
.method-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #f3f1ee; color: #615b53; flex-shrink: 0; }
.method-icon .icon { width: 18px; height: 18px; }
.method-info { flex: 1; min-width: 0; }
.method-info strong { display: block; color: #37332e; font-size: 14px; line-height: 1.7; font-weight: 550; overflow-wrap: anywhere; }
.method-info span, .method-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.method-info strong .badge { display: inline-flex; margin-left: 6px; font-size: 11px; font-weight: 500; vertical-align: middle; }
.linked-row { display: flex; align-items: center; gap: 13px; min-height: 70px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.linked-row:last-child { border-bottom: 0; }
.linked-row .provider-logo { width: 30px; height: 30px; }
.linked-row .text-button { padding-inline: 8px; }
.empty-state { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty-state.compact { padding: 12px 0; text-align: left; }
.empty-state strong { font-size: 14px; font-weight: 500; color: #514c45; }
.empty-state p { margin: 5px 0 0; font-size: 13px; }
.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: var(--muted); background: var(--soft); margin: 0 auto 13px; }
.empty-state.compact .empty-icon { display: none; }
.account-id { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 12px; align-items: center; margin-top: 15px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft); }
.account-id code { color: #4b463e; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.account-id-details { margin-top: 14px; }
.account-id-details > summary { font-size: 13px; color: var(--muted); cursor: pointer; min-height: 44px; padding: 10px 0; }
.advanced-settings { min-width: 0; }
.advanced-settings > summary { cursor: pointer; list-style-position: inside; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 550; padding: 6px 0; }
.advanced-settings > summary::marker { color: var(--muted); }
.advanced-settings[open] > summary { margin-bottom: 16px; }
.advanced-settings .card { margin-top: 14px; }
.dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 23px 0 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.page-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 23px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.page-footnote .icon { width: 16px; height: 16px; margin-top: 4px; }

/* Session and activity rows. */
.session-row { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.session-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.session-row .method-icon { width: 40px; height: 40px; }
.session-row .text-button { padding-inline: 8px; white-space: nowrap; }
.activity-card { padding: 0 24px; }
.table-header { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.activity-row { display: flex; align-items: center; gap: 13px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border: 0; }
.activity-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; color: #655f57; background: var(--soft); border-radius: 8px; }
.activity-icon .icon { width: 17px; height: 17px; }
.activity-row > div { min-width: 0; }
.activity-row strong { font-size: 14px; font-weight: 500; color: #37332e; }
.activity-row p { margin: 3px 0 0; font-size: 12px; }
.activity-row time { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; flex-shrink: 0; }

/* Technical content is secondary, quiet and readable. */
.integration-stack { display: flex; flex-direction: column; gap: 20px; }
.integration-details { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--paper); }
.integration-details > summary { min-height: 56px; padding: 15px 18px; cursor: pointer; font-size: 15px; font-weight: 550; line-height: 1.7; list-style-position: inside; }
.integration-details > summary:hover { background: var(--soft); }
.integration-details[open] > summary { border-bottom: 1px solid var(--border); }
.integration-detail-body { min-width: 0; padding: 20px 18px; }
.integration-detail-body p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0 0 17px; }
.integration-detail-body h3 { color: var(--ink); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.feature-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--soft); color: var(--muted); margin-bottom: 15px; }
.code-block { min-width: 0; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-label { display: flex; align-items: center; justify-content: space-between; min-height: 51px; padding: 3px 9px 3px 17px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 500; }
.code-label .icon-button { width: 40px; height: 40px; }
.code-block pre { color: #37332e; font-size: 13px; line-height: 1.9; overflow-x: auto; padding: 17px; margin: 0; }
.code-line { background: var(--soft); border: 1px solid var(--border); border-radius: 7px; padding: 13px; color: #555047; font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: auto; }
.challenge-details { padding-top: 16px; margin-top: 21px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.challenge-details summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.challenge-details pre { padding: 14px; background: var(--soft); border: 1px solid var(--border); border-radius: 7px; color: #555047; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.recovery-banner { display: flex; align-items: flex-start; gap: 12px; padding: 17px; margin-bottom: 32px; background: #fffaf0; border: 1px solid #e7d9b9; border-radius: var(--radius); color: #6d511e; }
.recovery-banner .icon { margin-top: 2px; }
.recovery-banner strong { font-size: 14px; font-weight: 600; }
.recovery-banner p { font-size: 13px; line-height: 1.8; margin: 6px 0 0; }
.consent-wrap { display: flex; justify-content: center; padding: 12px 0 28px; }
.authorization-page .consent-wrap { width: 100%; max-width: 470px; padding: 0; }
.consent-card { width: 100%; max-width: 470px; padding: 30px; }
.consent-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #5e5850; background: var(--soft); margin-bottom: 23px; }
.consent-card h1, .consent-card h2 { font-size: 27px; letter-spacing: -0.03em; line-height: 1.5; margin: 0; font-weight: 650; }
.consent-card p { margin: 15px 0 24px; font-size: 14px; }
.consent-client { color: var(--muted); font-size: 13px; }
.permission-list { margin: 0 0 24px; padding: 1px 16px; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); }
.permission-list > div { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.permission-list > div:last-child { border: 0; }
.permission-list .icon { width: 17px; height: 17px; color: #5e5850; margin-top: 4px; }
.permission-list strong { display: block; font-size: 13px; font-weight: 550; }
.permission-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.8; }
.cancel-link { display: block; width: 100%; min-height: 44px; padding: 8px; margin-top: 13px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-align: center; }
.cancel-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* White dialogs and focused feedback. */
.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 28px 20px; overflow-y: auto; background: rgb(29 26 22 / 38%); }
.modal { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 56px); overflow: auto; padding: 34px 32px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 60px rgb(29 26 22 / 14%); }
.modal-close { position: absolute; right: 12px; top: 12px; }
.modal-symbol { display: grid; place-items: center; width: 42px; height: 42px; color: #60594f; background: var(--soft); border-radius: 9px; margin-bottom: 22px; }
.modal h2 { padding-right: 10px; margin: 0 0 11px; font-size: 24px; font-weight: 650; letter-spacing: -0.025em; word-break: keep-all; }
.modal:has(.recovery-codes) h2 { padding-right: 0; }
.modal > p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0 0 26px; }
.modal > p strong { color: #5f4930; font-weight: 600; }
.modal-action-row { display: flex; gap: 10px; }
.modal-action-row > .button { flex: 1; min-width: 0; white-space: nowrap; }
.secret-box { padding: 18px; margin-bottom: 16px; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.secret-box > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; }
.secret-box code { display: block; color: #39352f; font-size: 18px; letter-spacing: 1px; overflow-wrap: anywhere; line-height: 1.8; margin: 14px 0 9px; }

/* Authenticator enrollment shows the scan and verification in order. */
.modal.totp-enrollment { max-width: 520px; }
.modal .totp-intro { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0 0 24px; }
.enrollment-progress { display: flex; gap: 20px; padding: 0 22px 0 0; margin: 0 0 26px; list-style: none; }
.enrollment-progress > li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.enrollment-progress .step-number { width: 25px; height: 25px; flex-shrink: 0; border-color: var(--border); font-size: 11px; }
.enrollment-progress > li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.enrollment-progress > li[aria-current="step"] .step-number { color: #fff; border-color: var(--ink); background: var(--ink); }
.totp-stage { min-width: 0; }
.totp-stage > p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0 0 18px; }
.totp-stage form { margin-top: 22px; }
.totp-stage[data-totp-stage="scan"] > .button { margin-top: 16px; }
.enrollment-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; margin-top: 20px; }
.enrollment-actions > .button { min-width: 0; padding-inline: 12px; white-space: nowrap; }
.totp-enrollment:not([data-enrollment-expired="true"]) .enrollment-expiry { margin: 0; padding: 0; border: 0; }
.totp-enrollment:not([data-enrollment-expired="true"]) .enrollment-expiry-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: 0; border: 0; white-space: nowrap; }
.enrollment-steps { display: flex; flex-direction: column; }
.enrollment-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; min-width: 0; }
.enrollment-step + .enrollment-step { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.step-number { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; font-family: var(--mono); font-size: 12px; color: #504a41; background: var(--paper); }
.enrollment-step > div { min-width: 0; }
.enrollment-step h3 { font-size: 14px; font-weight: 600; line-height: 1.7; margin: 2px 0 6px; }
.enrollment-step p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.qr-panel { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; margin: 18px auto 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.totp-qr { display: block; width: 224px; height: auto; max-width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.qr-panel .qr-status { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 9px 0 0; text-align: center; }
.qr-status:empty { display: none; }
.totp-enrollment[data-qr-ready="true"] .qr-status:not([role="alert"]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: 0; border: 0; white-space: nowrap; }
.totp-enrollment[data-enrollment-expired="true"] .qr-panel { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.totp-enrollment[data-enrollment-expired="true"] .qr-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; text-align: left; }
.totp-enrollment .authenticator-link { margin: 0 0 5px; }
.authenticator-link[aria-disabled="true"] { color: var(--muted); cursor: default; text-decoration: none; }
.manual-setup { margin-top: 8px; }
.manual-setup > summary { min-height: 44px; padding: 10px 0; color: var(--muted); font-size: 13px; cursor: pointer; line-height: 1.8; }
.manual-setup > summary:hover { color: var(--ink); }
.manual-setup > p { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.manual-setup .secret-box { margin: 8px 0 0; padding: 15px 13px; }
.manual-setup .secret-box code { font-size: 16px; letter-spacing: .6px; margin: 12px 0 7px; }
.manual-setup .secret-box p { text-align: left; font-size: 12px; line-height: 1.8; margin: 12px 0 0; }
.enrollment-step form { margin-top: 16px; }
.enrollment-step form .field { margin-bottom: 18px; }
.field input.otp-input[inputmode="numeric"] { min-height: 56px; font-family: var(--mono); font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: .27em; text-align: center; padding: 12px 14px; }
.field input.otp-input[inputmode="text"], .field input.recovery-input { font-family: var(--mono); font-size: 16px; letter-spacing: 0; text-align: left; }

/* Six actual inputs keep keyboard, paste and autofill focus visible. */
.otp-field { display: block; min-width: 0; padding: 0; margin: 0 0 20px; border: 0; }
.otp-field legend { display: block; width: 100%; padding: 0; margin-bottom: 10px; color: #393630; font-size: 13px; font-weight: 600; line-height: 1.7; }
.otp-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 352px; margin: 0 auto; }
.otp-digit { display: block; min-width: 0; width: 100%; height: 56px; padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; caret-color: var(--ink); appearance: none; transition: border-color 120ms ease, background-color 120ms ease; }
.otp-digit:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.otp-field[aria-invalid="true"] .otp-digit, .otp-field[data-invalid="true"] .otp-digit, .otp-inputs[aria-invalid="true"] .otp-digit, .otp-digit[aria-invalid="true"] { border-color: var(--red); }
.otp-field[aria-invalid="true"] .otp-digit:focus, .otp-field[data-invalid="true"] .otp-digit:focus, .otp-inputs[aria-invalid="true"] .otp-digit:focus, .otp-digit[aria-invalid="true"]:focus { outline-color: var(--red); }
.otp-digit:disabled, .otp-field:disabled .otp-digit { color: var(--muted); background: #f1efeb; border-color: var(--border-strong); cursor: not-allowed; opacity: 1; }
.otp-error { margin: 10px 0 0; color: var(--red); font-size: 13px; line-height: 1.8; }
.enrollment-expiry { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.8; }
.enrollment-expiry > span { flex: 1; min-width: 150px; }
.enrollment-expiry > .text-button { min-height: 44px; background: transparent; border: 0; padding: 8px 2px; color: var(--ink); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.totp-enrollment[data-enrollment-expired="true"] .enrollment-expiry { display: block; margin-top: 24px; padding: 0; border: 0; }
.mfa-account { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.mfa-account > span { display: block; font-size: 12px; color: var(--muted); }
.mfa-account strong { display: block; color: var(--ink); font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.mfa-help { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 14px 0 0; }
.mfa-help button, .mfa-help > a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 2px; border: 0; background: transparent; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.auth-help { margin-top: 18px; color: var(--muted); font-size: 13px; }
.auth-help > summary { min-height: 44px; padding: 10px 2px; cursor: pointer; list-style-position: inside; text-align: center; }
.auth-help > summary:hover { color: var(--ink); }
.auth-help-content { display: flex; flex-direction: column; gap: 0; padding: 4px 0 6px; }
.auth-help-content > button, .auth-help-content > a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 3px; color: var(--ink); border: 0; background: transparent; font-size: 13px; }
.auth-help-content > button:hover, .auth-help-content > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.recovery-note { padding: 14px; border: 1px solid var(--border); background: var(--soft); border-radius: var(--radius); color: var(--muted); font-size: 13px; line-height: 1.85; margin: 18px 0; }
.recovery-confirm { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 13px; color: var(--ink); line-height: 1.8; }
.recovery-confirm input { width: 18px; height: 18px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--ink); }
.authenticator-link { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 14px 0 20px; font-size: 13px; color: #47423b; }
.authenticator-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.recovery-codes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 14px; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft); }
.recovery-codes code { color: #3d3831; font-size: 13px; line-height: 1.7; letter-spacing: 0; text-align: center; overflow-wrap: anywhere; }
.info-box { padding: 14px; color: #575047; border: 1px solid var(--border); background: var(--soft); border-radius: var(--radius); font-size: 13px; line-height: 1.85; }
.notifications { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: grid; gap: 10px; max-width: 440px; width: calc(100% - 48px); pointer-events: none; }
.notice { display: flex; align-items: center; gap: 11px; padding: 11px 12px 11px 16px; color: #36322c; background: var(--paper); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 5px 22px rgb(29 26 22 / 9%); font-size: 13px; line-height: 1.8; pointer-events: auto; }
.notice > .icon { width: 19px; height: 19px; color: #585248; }
.notice > span { flex: 1; min-width: 0; }
.notice.error { color: #8b2924; background: #fffaf9; border-color: #c89189; }
.notice.error > .icon { color: var(--red); }

/* Email confirmation follows the same narrow page structure. */
.email-header > .text-button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.email-card { width: 100%; max-width: 420px; min-width: 0; }
.email-symbol { width: 44px; height: 44px; display: grid; place-items: center; color: #5b554c; background: var(--soft); border-radius: 9px; margin-bottom: 24px; }
.email-card h3 { margin: 27px 0 13px; font-size: 15px; font-weight: 600; }
.email-card > p, .email-login > p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 15px 0 27px; }
.email-account { display: grid; gap: 9px; padding: 16px; margin: 23px 0; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); }
.email-account > span:first-child { font-size: 12px; color: var(--muted); }
.email-account strong { font-size: 14px; font-weight: 550; line-height: 1.8; overflow-wrap: anywhere; }
.email-account .badge { justify-self: start; }
.mail-status { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 15px 0 0; overflow-wrap: anywhere; }
.mail-status.preview, .mail-status.disabled { color: #625b52; background: var(--soft); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.email-result { margin-top: 20px; }
.email-login .provider-list { margin-top: 18px; }

@media (max-width: 1100px) {
  .sidebar { width: 200px; padding-inline: 17px; }
  .dashboard-main { margin-left: 200px; }
  .topbar, .dashboard-content { padding-inline: 30px; }
  .settings-section { grid-template-columns: 145px minmax(0, 1fr); gap: 0 20px; }
}
@media (max-width: 880px) {
  .settings-section { display: block; padding-top: 26px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h3 { font-size: 16px; }
  .section-intro { flex-wrap: wrap; gap: 17px; }
}
@media (max-width: 700px) {
  .auth-header, .email-header { padding: 26px 22px; gap: 16px; }
  .brand img { width: 111px; }
  .auth-service-note { font-size: 12px; }
  .auth-main, .email-main { align-items: flex-start; padding: 36px 24px 44px; }
  .auth-card h1, .auth-card h2, .email-card h1 { font-size: 28px; }
  .auth-subtitle { margin-bottom: 28px; }
  .auth-footer, .email-footer { width: calc(100% - 44px); padding: 21px 0 23px; gap: 12px; flex-wrap: wrap; }
  .field input, .field textarea { font-size: 16px; min-height: 50px; }
  .button { min-height: 48px; }
  .button.small, .card-actions .button { min-height: 44px; font-size: 13px; }
  .provider-button { min-height: 50px; }
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; }
  .topbar { min-height: 86px; padding: 20px 22px; gap: 15px; border-bottom: 0; }
  .topbar > .mobile-brand { display: block; }
  .breadcrumb { display: none; }
  .account-menu { gap: 5px; }
  .account-menu > div { display: none; }
  .account-menu > .icon-button { margin-left: 0; }
  .account-actions > summary { gap: 8px; }
  .account-identity { display: none; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 4px; padding: 0 20px 14px; border-bottom: 1px solid var(--border); }
  .mobile-nav button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 10px 2px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; white-space: nowrap; }
  .mobile-nav button .icon { display: none; }
  .mobile-nav:has(button:only-child) { grid-template-columns: minmax(0, 150px); }
  .mobile-nav button.selected { background: #f1efeb; color: var(--ink); font-weight: 600; }
  .dashboard-content { padding: 32px 22px 0; }
  .section-intro { margin-bottom: 29px; }
  .section-intro h1, .section-intro h2 { font-size: 27px; }
  .section-intro p { font-size: 13px; }
  .section-intro > .button { min-height: 44px; font-size: 13px; padding: 9px 13px; }
  .settings-section { padding: 24px 0 15px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h3, .settings-section .card h3 { font-size: 15px; }
  .card { padding: 20px; }
  .method-row, .setting-row, .settings-row { gap: 10px; }
  .method-icon { width: 33px; height: 33px; }
  .method-info strong .badge { margin-left: 0; }
  .card-actions { gap: 8px; }
  .card-actions > .text-button { margin-left: 0; }
  .account-id { gap: 5px 8px; padding: 12px; }
  .account-id code { font-size: 11px; }
  .linked-row { gap: 10px; }
  .dashboard-footer { margin-top: 30px; padding: 20px 0 24px; flex-wrap: wrap; gap: 7px 16px; }
  .session-row { gap: 10px; padding: 20px 0; align-items: flex-start; }
  .session-row .method-icon { width: 32px; height: 32px; margin-top: 3px; }
  .session-row .text-button { padding-inline: 2px; flex-shrink: 0; }
  .activity-card { padding: 0 16px; }
  .activity-row { gap: 9px; align-items: flex-start; padding: 18px 0; }
  .activity-row strong { font-size: 13px; }
  .activity-row time { max-width: 100px; white-space: normal; text-align: right; line-height: 1.8; }
  .code-block pre { font-size: 12px; padding: 14px; }
  .page-footnote { font-size: 12px; }
  .consent-wrap { padding: 0 0 16px; }
  .consent-card { padding: 24px 20px; }
  .consent-card h1, .consent-card h2 { font-size: 25px; }
  .modal-overlay { padding: 20px 14px; }
  .modal { max-height: calc(100dvh - 40px); padding: 31px 22px; border-radius: 11px; }
  .modal > p { font-size: 13px; }
  .modal-close { right: 10px; top: 10px; }
  .modal-action-row > .button { padding-inline: 12px; font-size: 13px; gap: 8px; }
  .enrollment-progress { gap: 12px; margin-bottom: 24px; }
  .enrollment-progress > li { font-size: 12px; gap: 6px; }
  .enrollment-actions { gap: 8px; }
  .enrollment-actions > .button { font-size: 13px; gap: 7px; }
  .enrollment-step { display: block; }
  .enrollment-step > .step-number { float: left; margin: 1px 10px 0 0; }
  .enrollment-step h3 { min-height: 28px; padding-top: 2px; margin-bottom: 7px; }
  .enrollment-step h3 + p { clear: both; }
  .qr-panel { padding: 12px; margin-top: 16px; }
  .totp-qr { width: 224px; }
  .enrollment-step + .enrollment-step { margin-top: 18px; padding-top: 18px; }
  .manual-setup .secret-box code { font-size: 16px; }
  .field input.otp-input[inputmode="numeric"] { font-size: 24px; min-height: 56px; }
  .otp-inputs { gap: 6px; max-width: 342px; }
  .otp-digit { height: 56px; font-size: 22px; border-radius: 7px; }
  .secret-box { padding: 16px 13px; }
  .secret-box code { font-size: 17px; letter-spacing: .5px; }
  .recovery-codes { padding: 18px 10px; gap: 8px; }
  .recovery-codes code { font-size: 13px; letter-spacing: 0; }
  .notifications { right: 14px; bottom: 14px; width: calc(100% - 28px); }
  .notice { padding: 10px 9px 10px 13px; gap: 9px; }
  .email-header > .text-button { font-size: 12px; gap: 4px; }
  .email-header > .text-button .icon { display: none; }
}
@media (max-width: 370px) {
  .auth-header, .email-header, .topbar { padding-inline: 18px; }
  .auth-main, .email-main { padding-inline: 20px; }
  .auth-service-note { max-width: 110px; text-align: right; }
  .dashboard-content { padding-inline: 18px; }
  .mobile-nav { padding-inline: 16px; }
  .method-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Operator service management follows the same quiet settings layout. */
.application-intro{align-items:flex-start;gap:20px}.application-intro>.button{flex-shrink:0}.applications-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px;align-items:start}.application-list{display:grid;gap:9px;min-width:0}.application-list-item{display:grid;gap:6px;text-align:left;width:100%;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--paper);color:var(--ink);min-width:0}.application-list-item:hover{border-color:var(--border-strong);background:var(--soft)}.application-list-item.selected{border-color:var(--ink);background:var(--soft)}.application-list-item strong{font-size:14px;font-weight:650;overflow-wrap:anywhere;line-height:1.6}.application-list-item span,.application-list-item small{font-size:12px;color:var(--muted);line-height:1.7}.application-detail{min-width:0}.application-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:22px;border-bottom:1px solid var(--border)}.application-detail-heading h2{font-size:22px;line-height:1.5;font-weight:650;margin:0;overflow-wrap:anywhere}.application-detail-heading p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0 0}.application-detail-heading>.button{flex-shrink:0}.application-panel{padding:25px 0;border-bottom:1px solid var(--border);min-width:0}.application-panel h3{font-size:15px;font-weight:650;margin:0 0 12px}.application-panel h4{font-size:13px;font-weight:600;margin:20px 0 12px}.application-panel .card-heading{margin:0 0 12px}.application-panel .card-heading h3{margin:0}.application-panel .card-heading p{font-size:13px;margin:7px 0 0}.application-uris{list-style:none;padding:0;margin:0;display:grid;gap:9px}.application-uris li{padding:11px 12px;border:1px solid var(--border);border-radius:6px;background:var(--soft);line-height:1.8;min-width:0}.application-uris code,.application-config code{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere;word-break:break-word}.application-member{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);min-width:0}.application-member:last-child{border-bottom:0}.application-member .method-info strong{font-size:13px}.application-member .method-info span{font-size:12px;overflow-wrap:anywhere}.application-member>.button{flex-shrink:0}.application-member>.text-button{flex-shrink:0}.member-role select,.field select{font:inherit;font-size:14px;line-height:1.5;min-height:44px;padding:10px 11px;border:1px solid var(--border-strong);border-radius:var(--radius);color:var(--ink);background:var(--paper)}.field select{width:100%;min-height:48px}.member-role{flex-shrink:0}.member-role select:disabled{color:var(--muted);background:var(--soft)}.application-add-member{margin-top:18px}.application-add-member>summary,.application-logout-options>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;font-weight:550;list-style-position:inside;gap:7px}.application-add-member>summary::before,.application-logout-options>summary::before{content:'+';font-size:17px;line-height:1;margin-right:3px}.application-add-member[open]>summary::before,.application-logout-options[open]>summary::before{content:'−'}.application-add-member form{margin-top:12px}.application-search{display:flex;gap:8px;align-items:center}.application-search input{min-width:0}.application-search .button{flex-shrink:0}.application-members-footnote{margin:14px 0 0}.application-config{margin:16px 0 0;display:grid;gap:14px}.application-config>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px}.application-config dt{font-size:12px;color:var(--muted);line-height:1.8}.application-config dd{margin:0;line-height:1.8;min-width:0}.application-secret-actions{margin-top:20px}.application-secret-actions>.field-hint{margin-bottom:12px}.application-secret{padding:18px 15px;margin:22px 0;border:1px solid var(--border);border-radius:8px;background:var(--soft);min-width:0}.application-secret code{font-family:var(--mono);font-size:15px;line-height:1.9;overflow-wrap:anywhere;word-break:break-all}.application-checkbox{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.8;margin:0 0 10px}.application-checkbox input{width:18px;height:18px;margin-top:4px;accent-color:var(--ink);flex-shrink:0}.application-logout-options{margin:0 0 20px}.application-logout-options .field{margin-top:12px}.application-empty{padding:25px 15px;border:1px dashed var(--border-strong);border-radius:8px;min-width:0}.application-empty h2{font-size:16px;font-weight:600;line-height:1.6;margin:0 0 10px}.application-empty p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.application-select-hint{padding:30px}.application-restricted h2{font-size:18px;margin:0 0 12px}.application-restricted p{font-size:14px;line-height:1.8;color:var(--muted)}
@media(max-width:1100px){.applications-layout{grid-template-columns:185px minmax(0,1fr);gap:22px}.application-detail-heading{flex-wrap:wrap}.application-panel .card-heading{flex-wrap:wrap}.application-member{gap:8px}.member-role select{font-size:13px;max-width:100px}}
@media(max-width:880px){.applications-layout{display:block}.application-list{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:28px}.application-list .application-empty{grid-column:1/-1}.application-select-hint{margin-top:20px}.application-member .method-info{flex:1}.application-detail-heading{flex-wrap:nowrap}}
@media(max-width:700px){.application-intro{display:block}.application-intro>.button{margin-top:16px}.applications-layout{display:block}.application-list{gap:10px;margin-bottom:25px}.application-list-item{padding:13px}.application-list-item strong{font-size:14px}.application-list-item span,.application-list-item small{font-size:12px}.application-detail-heading h2{font-size:21px}.application-detail-heading>.button{font-size:13px;padding-inline:12px}.application-panel{padding:22px 0}.application-member{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:6px;padding:15px 0}.application-member .method-info{grid-column:1/-1}.application-member>.button,.application-member>.text-button{grid-column:2;grid-row:2}.member-role{grid-column:1;grid-row:2;justify-self:start}.application-config>div{display:block}.application-config dd{margin-top:5px}.application-config dt{font-size:12px}.application-uris code,.application-config code{font-size:12px}.application-search{gap:7px}.application-search input,.field select,.member-role select{font-size:16px}.member-role select{max-width:none;font-size:16px;min-height:44px}.application-secret code{font-size:14px}.application-empty{padding:22px 16px}.application-list .application-empty{grid-column:1/-1}.application-add-member .application-search-results .application-member{grid-template-columns:minmax(0,1fr) auto}.application-search-results .application-member .method-info{grid-column:1;grid-row:1}.application-search-results .application-member>.button{grid-column:2;grid-row:1}.application-checkbox{font-size:13px}.application-checkbox input{width:20px;height:20px;margin-top:2px}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.field select:focus,.member-role select:focus{outline:2px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
.application-panel>.card-heading>div{flex:1;min-width:0}.application-panel .card-heading:has(.count){flex-wrap:nowrap}.application-panel .card-heading .count{flex-shrink:0}

/* A familiar profile editor; sharing and account options stay within reach. */
.dashboard-content:has(.profile-editor) { max-width: 760px; }
.dashboard-content:has(.profile-editor) > .section-intro { max-width: 640px; margin-inline: auto; margin-bottom: 24px; }
.profile-layout { display: grid; gap: 16px; max-width: 640px; margin-inline: auto; min-width: 0; }
.profile-scope-picker { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.profile-scope-picker > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; }
.profile-scope-picker > summary::-webkit-details-marker { display: none; }
.profile-scope-picker > summary > .icon { width: 17px; height: 17px; margin-left: auto; color: var(--muted); transform: rotate(90deg); }
.profile-scope-picker[open] > summary > .icon { transform: rotate(-90deg); }
.profile-scope-picker > summary span { color: var(--muted); font-size: 12px; }
.profile-scope-picker > summary strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.profile-scope-options { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; padding: 8px; border-top: 1px solid var(--border); }
.profile-scope-options > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 7px; background: var(--paper); color: var(--ink); text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.profile-scope-options > button:hover, .profile-scope-options > button[aria-current="page"] { background: #f3f2ef; }
.profile-scope-options strong { font-size: 14px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.profile-scope-options small { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.profile-scope-status { color: #79551f; font-size: 11px; margin-left: auto; flex-shrink: 0; }
.profile-content, .profile-panel { min-width: 0; }
.profile-panel { max-width: 720px; }
.profile-editor { padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--paper); }
.profile-editor .profile-panel-heading { padding: 0; margin: 0; border: 0; }
.profile-editor .profile-panel-heading > p { margin: 0 0 20px; font-size: 13px; }
.profile-editor .field > span:first-child { font-size: 14px; font-weight: 550; margin-bottom: 9px; }
.profile-editor .field input, .profile-editor .field textarea, .profile-editor .field select { background: #fbfaf9; border-color: #d7d3cc; font-family: inherit; font-size: 15px; line-height: 1.65; }
.profile-editor .field textarea { min-height: 112px; resize: vertical; }
.profile-editor .field input:disabled, .profile-editor .field textarea:disabled, .profile-editor .field select:disabled { background: #f3f2ef; color: var(--muted); }
.profile-editor .field input:focus, .profile-editor .field textarea:focus, .profile-editor .field select:focus { border-color: var(--ink); background: var(--paper); }
.profile-editor .profile-avatar-editor { display: flex; flex-direction: column; gap: 10px; padding: 0 0 26px; margin: 0 0 24px; border-bottom: 1px solid var(--border); text-align: center; }
.profile-editor .profile-avatar-editor .profile-photo { width: 104px; height: 104px; font-size: 34px; background: #f2f0ec; color: #655f57; }
.profile-editor .profile-avatar-editor > div:last-child { width: 100%; }
.profile-editor .profile-avatar-editor .profile-upload { border: 0; background: transparent; padding: 9px 16px; min-height: 44px; color: var(--ink); font-weight: 600; }
.profile-editor .profile-avatar-editor .profile-upload:hover { background: var(--soft); }
.profile-photo-options { font-size: 12px; color: var(--muted); }
.profile-photo-options > summary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; cursor: pointer; }
.profile-photo-options .profile-field-note { margin: 0 0 8px; font-size: 12px; }
.profile-photo-draft-note { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.profile-extra-settings, .profile-sharing-settings { min-width: 0; border-top: 1px solid var(--border); }
.profile-extra-settings > summary, .profile-sharing-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 15px 0; font-size: 14px; font-weight: 550; cursor: pointer; list-style: none; }
.profile-extra-settings > summary::-webkit-details-marker, .profile-sharing-settings > summary::-webkit-details-marker { display: none; }
.profile-extra-settings > summary::after, .profile-sharing-settings > summary::after { content: ''; width: 7px; height: 7px; margin-right: 3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex-shrink: 0; }
.profile-extra-settings[open] > summary::after, .profile-sharing-settings[open] > summary::after { transform: rotate(225deg); }
.profile-extra-settings[open] > summary, .profile-sharing-settings[open] > summary { margin-bottom: 6px; }
.profile-editor .profile-media-manager { margin: 0; border-top: 1px solid var(--border); }
.profile-editor .profile-media-manager > summary { min-height: 56px; padding-block: 15px; font-size: 14px; color: var(--muted); }
.profile-editor .profile-consent-form { margin: 0; padding: 0 0 20px; border: 0; }
.profile-editor .profile-consent-fields > legend { font-size: 14px; }
.profile-character-count { display: block; margin: 6px 0 0; text-align: right; font-size: 12px; line-height: 1.6; color: var(--muted); font-variant-numeric: tabular-nums; }
.profile-edit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.profile-edit-actions > [data-profile-draft-status] { flex: 1; min-width: 120px; margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.profile-edit-actions > .profile-actions { margin: 0; }
.profile-edit-actions .button { min-width: 80px; }
.profile-editor .profile-save-note { padding: 0; border: 0; background: transparent; font-size: 12px; margin: 8px 0 16px; }
.profile-affected-services { margin: 8px 0 12px; color: var(--muted); font-size: 12px; }
.profile-affected-services > summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.profile-affected-services > p { margin: 0 0 12px; line-height: 1.8; }
.profile-editor .profile-schema-value:has(.profile-inherited-field) { padding-bottom: 0; border: 0; margin-bottom: 24px; }
.profile-editor .profile-inherit { min-height: 44px; padding: 6px 0; color: var(--muted); font-size: 12px; }
.profile-editor .profile-inherited-field .profile-field-note { font-size: 12px; }
.profile-editor .profile-image-field h3 { text-align: center; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.profile-editor .profile-inherited-photo .profile-avatar-editor { border: 0; padding-bottom: 0; margin-bottom: 4px; }
.profile-editor .profile-inherited-photo { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.profile-editor .profile-inherited-photo .profile-inherit { justify-content: center; }
.profile-editor .profile-inherited-photo > .profile-field-note { text-align: center; }
.profile-panel-heading { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.profile-panel-heading h2 { margin: 0 0 8px; font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.profile-panel-heading p, .profile-field-note, .profile-field-purpose { color: var(--muted); font-size: 13px; line-height: 1.85; }
.profile-panel-heading p { margin: 0; }
.profile-field-note { margin: 8px 0 0; }
.profile-field-purpose { margin: -8px 0 20px; }
.profile-locale-note { margin: -10px 0 22px; }
.profile-save-note { padding: 14px 16px; margin: 24px 0 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.85; }
.profile-photo-control { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; min-width: 0; }
.profile-photo { display: grid; place-items: center; width: 88px; height: 88px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 25px; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-control > div:last-child { min-width: 0; }
.profile-photo-control .text-button { padding-inline: 12px; }
.profile-upload { position: relative; cursor: pointer; }
.profile-upload:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.profile-upload:has(input:disabled) { color: var(--muted); background: var(--soft); cursor: not-allowed; }
.profile-media-manager { margin: -12px 0 28px; }
.profile-media-manager > summary { min-height: 44px; padding: 10px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.profile-media-list { display: grid; gap: 10px; margin-top: 12px; }
.profile-media-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.profile-media-item > img { width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; object-fit: cover; }
.profile-media-item > div { flex: 1; min-width: 0; }
.profile-media-item strong { display: block; font-size: 12px; font-weight: 550; }
.profile-media-item small { display: block; font-size: 12px; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.profile-actions > .button { max-width: 100%; }
.profile-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; color: var(--ink); font-size: 13px; line-height: 1.8; cursor: pointer; }
.profile-checkbox > input { width: 19px; height: 19px; flex-shrink: 0; margin: 0; accent-color: var(--ink); }
.profile-checkbox > span { min-width: 0; overflow-wrap: anywhere; }
.profile-checkbox:has(input:disabled) { color: var(--muted); cursor: default; }
.profile-value-checkbox { margin-bottom: 20px; }
.profile-choices { min-width: 0; padding: 0; margin: 0 0 22px; border: 0; }
.profile-choices legend { color: #393630; padding: 0; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.profile-required { display: inline; margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.profile-inherited-field { margin-bottom: 12px; }
.profile-schema-value:has(.profile-inherited-field) { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.profile-schema-value:has(.profile-inherited-field) .profile-field-purpose { margin: 8px 0 0; }
.profile-inherited-field .field { margin-bottom: 6px; }
.profile-inherited-field .profile-field-note { margin-top: 0; }
.profile-image-field h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.profile-inherited-field .profile-photo-control { margin-bottom: 8px; }
.profile-empty, .profile-loading { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 18px 0; }
.profile-completion { padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; color: #5f4931; background: #fcf8f0; font-size: 13px; line-height: 1.85; margin: 0 0 24px; }
.profile-conflict { padding: 18px; margin: 24px 0; border: 1px solid #bc9981; border-radius: 8px; background: #fcf8f0; color: var(--ink); }
.profile-conflict h3, .profile-conflict h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; word-break: keep-all; overflow-wrap: normal; }
.profile-conflict p { margin: 0; color: #65523f; font-size: 13px; line-height: 1.85; }
.profile-conflict summary { min-height: 44px; padding: 10px 0; font-size: 13px; cursor: pointer; }
.profile-conflict dl { display: grid; gap: 12px; margin: 5px 0 16px; }
.profile-conflict dt { color: var(--muted); font-size: 12px; }
.profile-conflict dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.profile-consent-form { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border); }
.profile-consent-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.profile-consent-fields > legend { font-size: 16px; font-weight: 650; padding: 0; margin: 0 0 7px; }
.profile-consent-fields > .profile-field-note { margin: 0 0 18px; }
.profile-consent-fields > .profile-field-note:last-child { margin: 15px 0 0; }
.profile-consent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 13px 0; border-top: 1px solid var(--border); }
.profile-consent-row strong { display: block; font-size: 14px; font-weight: 550; line-height: 1.7; }
.profile-consent-row p { margin: 4px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.profile-consent-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.profile-permission-controls { display: flex; align-items: center; gap: 18px; }
.consent-card .profile-consent-fields { margin-bottom: 28px; }
.consent-card .profile-consent-fields p { font-size: 12px; line-height: 1.85; }
.consent-card .profile-consent-row p { margin: 4px 0 0; }
.profile-setup-wrap { max-width: 620px; }
.profile-setup-wrap .consent-card { padding: 28px; }
.profile-setup-wrap .profile-field-note { margin-top: 0; }
.profile-schema-field { position: relative; min-width: 0; padding: 18px; margin: 24px 0; border: 1px solid var(--border); border-radius: 9px; }
.profile-schema-field > legend { color: var(--muted); padding: 0 7px; font-size: 13px; font-weight: 600; }
.profile-schema-tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: -4px 0 12px; }
.profile-schema-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.profile-schema-grid .field { min-width: 0; }
.profile-schema-grid .field:has([data-schema-property="purpose"]), .profile-schema-grid .field:has([data-schema-property="options"]) { grid-column: 1 / -1; }
.profile-schema-grid input, .profile-schema-grid textarea { min-width: 0; }
.profile-schema-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.profile-schema-preview { margin-top: 26px; padding: 20px; border: 1px dashed var(--border-strong); border-radius: 9px; }
.profile-schema-preview h4 { margin: 0 0 20px; }
.profile-schema-editor .schema-dirty-note { margin: 12px 0 0; }
.profile-retire-warning { margin: 22px 0; padding: 16px; border: 1px solid #c39e89; border-radius: 8px; background: #fff8f3; }
.profile-retire-warning h4 { margin: 0 0 8px; color: #7f3e29; font-size: 14px; }
.profile-retire-warning p { margin: 5px 0 12px; color: #654b3f; font-size: 13px; line-height: 1.85; }
.rotate-up { transform: rotate(-90deg); }
.rotate-down { transform: rotate(90deg); }
@media (max-width: 1100px) {
  .profile-schema-grid { display: block; }
}
@media (max-width: 700px) {
  .profile-layout { gap: 22px; }
  .profile-scope-picker > summary { padding: 13px 15px; min-height: 56px; }
  .profile-scope-picker > summary span { font-size: 11px; }
  .profile-scope-picker > summary strong { font-size: 13px; }
  .profile-scope-options > button { flex-wrap: wrap; gap: 1px 12px; }
  .profile-scope-options strong { font-size: 13px; }
  .profile-scope-options small { font-size: 11px; }
  .profile-editor { padding: 0; border: 0; border-radius: 0; }
  .profile-editor .field input, .profile-editor .field textarea, .profile-editor .field select { font-size: 16px; }
  .profile-editor .profile-avatar-editor { padding-bottom: 20px; margin-bottom: 24px; }
  .profile-editor .profile-avatar-editor .profile-photo { width: 96px; height: 96px; font-size: 31px; }
  .profile-edit-actions { gap: 8px; margin-top: 20px; padding-top: 18px; }
  .profile-edit-actions > [data-profile-draft-status] { flex-basis: 100%; }
  .profile-edit-actions > .profile-actions { width: 100%; }
  .profile-edit-actions .button.primary { flex: 1; }
  .profile-edit-actions .button { min-width: 88px; }
  .profile-panel-heading { margin-bottom: 23px; padding-bottom: 20px; }
  .profile-panel-heading h2 { font-size: 21px; }
  .profile-photo-control { gap: 15px; margin-bottom: 25px; }
  .profile-photo { width: 72px; height: 72px; font-size: 22px; }
  .profile-photo-control .text-button { padding-inline: 5px; font-size: 12px; }
  .profile-photo-control .profile-field-note { font-size: 12px; }
  .profile-actions { gap: 8px; }
  .profile-actions > .button { font-size: 13px; padding-inline: 13px; }
  .profile-checkbox > input { width: 20px; height: 20px; }
  .profile-consent-row { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 13px 0; }
  .profile-permission-controls { gap: 24px; }
  .profile-conflict { padding: 15px; }
  .profile-conflict .profile-actions > .button { width: 100%; }
  .profile-schema-field { padding: 15px 13px; }
  .profile-schema-preview { padding: 15px; }
  .profile-schema-flags { display: block; }
  .profile-setup-wrap .consent-card { padding: 23px 18px; }
}
@media(max-width:880px){.application-list:has(.application-list-item:only-child){grid-template-columns:1fr}}
