:root { color-scheme: light; --ink: #202827; --muted: #62706c; --line: #dce3df; --red: #c83b32; --green: #177052; --paper: #f5f7f5; --mono: ui-monospace, Consolas, monospace; font-family: "Segoe UI", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif; background: #fff; color: var(--ink); }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
button, input, select, textarea, a { font: inherit; }
button, a { touch-action: manipulation; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; transition: background .16s, border-color .16s; }
button:hover { background: #e9efeb; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--red); color: #fff; border-color: var(--red); font-weight: 600; }
button.primary:hover:not(:disabled) { background: #ad3028; border-color: #ad3028; }
button.danger { background: #b32d29; color: white; border-color: #b32d29; }
button.quiet { border-color: transparent; background: transparent; color: inherit; }
button.quiet:hover:not(:disabled) { background: #758a7f15; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 44px; height: 44px; padding: 0; flex: none; }
input, select, textarea { min-height: 46px; width: 100%; min-width: 0; border: 1px solid #b9c6be; border-radius: 4px; padding: 11px 13px; background: #fff; color: var(--ink); }
input::placeholder { color: #73817a; }
input:read-only { background: #eef2ef; }
textarea { resize: vertical; line-height: 1.6; }
label { display: block; font-size: 13px; font-weight: 600; margin: 22px 0 9px; }
:focus-visible { outline: 2px solid #41aa84; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 18px; background: white; color: var(--ink); }
.skip-link:focus { top: 12px; }
header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 48px; border-bottom: 1px solid #cedad222; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 600; color: #f2f4f1; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand>span { font: 10px/1.5 var(--mono); color: #c8d1cc; padding-left: 18px; margin-left: 6px; border-left: 1px solid #9aa9a44d; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #d1d9d4; text-decoration: none; font-size: 13px; }
.back-link:hover { color: #fff; }
.operator { display: flex; align-items: center; gap: 24px; font-size: 12px; color: #d1d9d4; }
.session-indicator { display: inline-flex; align-items: center; gap: 9px; font: 12px/1.5 var(--mono); min-width: 92px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8fd9b3; flex: none; }
main { width: 100%; min-width: 0; flex: 1; }
.eyebrow { font: 10px/1.6 var(--mono); color: var(--muted); margin: 0 0 14px; }
.scope { margin: 16px 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
footer { min-height: 92px; padding: 22px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; border-top: 1px solid #cedad222; color: #c0cdc4; font-size: 11px; }
.footer-brand { font-size: 13px; color: #e0e8e1; }
.footer-brand>span { color: #8b9c90; padding: 0 9px; }
.footer-signature { font: 9px/1.6 var(--mono); color: #bdccc1; }
#message { margin: 0 auto; width: min(1264px, calc(100% - 64px)); font-size: 13px; line-height: 1.7; color: #99d5b9; }
#message:not(:empty) { padding: 14px 0 24px; }
#message.error, .dialog-error { color: #f0a193; }
body.authenticated { background: var(--paper); color: var(--ink); color-scheme: light; }
.authenticated .back-link { display: none; }
.authenticated header { background: #131c18; border-bottom: 2px solid #bd3b32; }
#workspace { max-width: 1360px; padding: 42px 48px 28px; margin: auto; }
.title-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.title-line .eyebrow { font-size: 10px; margin-bottom: 10px; }
.title-line h1 { font-size: 30px; line-height: 1.4; font-weight: 600; margin: 0; }
.title-line>button { flex: none; font-size: 13px; padding: 12px 19px; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 32px 0 28px; padding: 22px 0 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats>div { padding: 0 30px; border-left: 1px solid var(--line); }
.stats>div:first-child { padding-left: 0; border-left: 0; }
.stats dt { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.stat-index { font: 9px/1.5 var(--mono); color: #8b9890; margin-right: 4px; }
.stats dd { margin: 12px 0 0; font-size: 34px; font-weight: 450; line-height: 1.2; font-variant-numeric: tabular-nums; }
.active-dot { background: #16734f; }.revoked-dot { background: #ba4238; }.expired-dot { background: #90988b; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #c4cec7; }
.tabs { display: flex; gap: 22px; }
.tabs button { padding: 15px 0; min-height: 56px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 13px; color: var(--muted); gap: 8px; }
.tabs button[aria-selected=true] { border-bottom-color: var(--red); color: var(--ink); font-weight: 600; }
.tabs .icon { width: 16px; height: 16px; }
#search-form { display: flex; align-items: center; margin-bottom: 8px; width: 300px; max-width: 100%; border: 1px solid #d0d9d2; border-radius: 4px; background: white; }
#search { border: 0; min-height: 42px; height: 42px; font-size: 12px; background: transparent; }
#search-form .icon-button { height: 44px; min-height: 44px; }
.table-scroll { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; table-layout: fixed; }
th { position: relative; padding: 17px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 500; background: #eaf0eb66; }
td { padding: 21px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; line-height: 1.7; }
th:first-child,td:first-child { padding-left: 12px; }th:last-child,td:last-child { padding-right: 12px; }
th:first-child { width: 31%; }th:nth-child(2) { width: 10%; }th:nth-child(3) { width: 19%; }th:nth-child(4) { width: 27%; }th:nth-child(5) { width: 13%; }
#events-panel th:first-child { width: 17%; }#events-panel th:nth-child(2) { width: 9%; }#events-panel th:nth-child(3) { width: 29%; }#events-panel th:nth-child(4) { width: 25%; }#events-panel th:nth-child(5) { width: 20%; }
tbody tr:hover { background: #fff9; }
.wallet { font: 11px/1.8 var(--mono); overflow-wrap: anywhere; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .icon-button { width: 36px; height: 44px; min-width: 36px; color: #4e6657; }
.row-actions .revoke-action { color: #b13b31; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; }
.status-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-active { color: #196d4c; }.status-revoked { color: #b23b30; }.status-expired { color: #697365; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty-icon { width: 28px; height: 28px; fill: none; stroke: #849a8b; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.empty p { margin: 14px 0 0; font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font: 11px/1.6 var(--mono); color: var(--muted); }
.pagination>div { display: flex; align-items: center; gap: 4px; }.pagination-divider { height: 16px; border-left: 1px solid var(--line); margin: 0 8px; }
.authenticated footer { min-height: 78px; padding: 20px 48px; border-top: 1px solid var(--line); color: var(--muted); }
.authenticated .footer-brand { color: #334a3b; }.authenticated .footer-signature { color: #697f6e; }.authenticated #message { color: var(--green); }.authenticated #message.error { color: #b33029; }
dialog { width: 520px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 30px; border: 1px solid #c7d2ca; border-top: 3px solid var(--red); border-radius: 6px; background: #fbfcfa; color: var(--ink); color-scheme: light; overflow: auto; box-shadow: 0 24px 100px #0c191940; }
dialog::backdrop { background: #101d17b3; backdrop-filter: blur(5px); }
dialog .eyebrow { font-size: 9px; margin: 0 0 12px; }.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.dialog-heading h2 { font-size: 24px; font-weight: 600; line-height: 1.4; margin: 0; }
.dialog-heading>.icon-button { margin: -8px -10px -8px 0; }
dialog input,dialog textarea { font-size: 14px; }#address { font-family: var(--mono); font-size: 12px; }#revoke-address { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dialog-scope { display: flex; align-items: center; gap: 8px; color: #576e5d; font-size: 11px; }.dialog-scope .icon { width: 15px; height: 15px; }
.full { width: 100%; margin-top: 10px; min-height: 48px; justify-content: space-between; font-size: 14px; }.dialog-error { margin: 12px 0 0; min-height: 20px; font-size: 12px; line-height: 1.6; color: #b32d29; }
@media(max-width:900px) { header { padding: 20px 28px; }#workspace { padding: 32px 28px 26px; }footer,.authenticated footer { padding-left: 28px; padding-right: 28px; }.footer-signature { width: 100%; font-size: 8px; } }
@media(max-width:700px) { header { min-height: 80px; padding: 16px 20px; gap: 12px; flex-wrap: wrap; }.brand { font-size: 22px; gap: 8px; }.brand img { width: 28px; height: 28px; }.brand>span { font-size: 8px; padding-left: 10px; margin-left: 3px; }.back-link { font-size: 11px; gap: 4px; }.back-link .icon { width: 15px; height: 15px; }.operator { width: 100%; justify-content: space-between; gap: 12px; }.operator button { min-height: 44px; font-size: 11px; padding: 7px 0; }footer,.authenticated footer { padding: 20px; gap: 14px 18px; min-height: 130px; }.footer-brand { font-size: 12px; }.footer-policy { font-size: 10px; }.footer-signature { font-size: 8px; }#workspace { padding: 28px 20px 24px; }.title-line { gap: 14px; align-items: flex-end; }.title-line h1 { font-size: 25px; }.title-line .eyebrow { font-size: 8px; max-width: 160px; }.title-line>button { font-size: 12px; padding: 10px 12px; }.title-line>button .icon { width: 16px; height: 16px; }.stats { margin: 25px 0 16px; padding: 20px 0; }.stats>div { padding: 0 15px; }.stats dt { font-size: 11px; gap: 7px; }.stat-index { display: none; }.stats dd { font-size: 28px; margin-top: 12px; }.workspace-bar { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 12px; }.tabs { gap: 24px; }.tabs button { min-height: 48px; padding: 12px 0; }#search-form { width: 100%; margin: 0; }table { min-width: 780px; }.pagination { margin-top: 10px; }.pagination .icon-button { width: 38px; }#message { width: calc(100% - 40px); }dialog { padding: 24px 20px; }.dialog-heading h2 { font-size: 22px; } }
@media(max-width:360px) { .brand>span { display: none; }footer { justify-content: center; text-align: center; }.footer-signature { width: 100%; }.stats>div { padding: 0 12px; } }
@media(prefers-reduced-motion:reduce) { * { transition: none !important; } }
/* The governance entrance is a separate light control desk, not the Signet gate. */
body:not(.authenticated) { background: #fff; color: #191c22; }
body:not(.authenticated) header { min-height: 88px; border-bottom: 1px solid #dfe2e7; padding: 20px 48px; background: white; }
body:not(.authenticated) .brand { color: #191c22; font-size: 23px; }
body:not(.authenticated) .brand img { filter: grayscale(1); }
body:not(.authenticated) .brand>span { color: #344fc7; border-color: #d5d9e2; font-size: 10px; }
body:not(.authenticated) .back-link { color: #535b68; font-size: 12px; }
body:not(.authenticated) .back-link:hover { color: #244bf2; }
body:not(.authenticated) footer { background: #f1f3f6; border-color: #dfe2e7; color: #555e6d; min-height: 96px; }
body:not(.authenticated) .footer-brand { color: #1c2129; }
body:not(.authenticated) .footer-brand>span { color: #737c8c; }
body:not(.authenticated) .footer-signature { color: #586274; }
body:not(.authenticated) #message { color: #196d4c; }
body:not(.authenticated) #message.error { color: #b33029; }
#login-view { width: min(1120px, calc(100% - 96px)); min-height: calc(100svh - 184px); margin: auto; padding: 72px 0; display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,1fr); align-content: center; text-align: left; }
.login-intro { padding: 12px 72px 12px 0; min-width: 0; }
.registry-label { display: flex; align-items: center; gap: 12px; color: #3f4d70; font-size: 10px; margin: 0 0 24px; }
.registry-label::before { content: ""; width: 18px; height: 4px; background: #244bf2; flex: none; }
#login-title { margin: 0; font-size: 48px; line-height: 1.16; font-weight: 600; color: #191c22; }
#login-title>span { display: block; margin-top: 17px; font-size: 20px; line-height: 1.5; font-weight: 400; color: #5a6270; }
.login-details { margin: 44px 0 0; max-width: 380px; border-top: 1px solid #222630; }
.login-details>div { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 13px 0; border-bottom: 1px solid #e2e5eb; font-size: 12px; line-height: 1.6; }
.login-details dt { color: #626a77; flex: none; }
.login-details dd { margin: 0; color: #232935; font-weight: 500; text-align: right; }
.registry-reference { margin: 22px 0 0; font: 9px/1.6 var(--mono); color: #687181; overflow-wrap: anywhere; }
.login-auth { padding: 18px 0 18px 72px; border-left: 1px solid #dfe2e7; min-width: 0; }
.auth-index { margin: 0 0 23px; color: #626d83; font-size: 10px; }
#auth-title { font-size: 25px; font-weight: 600; line-height: 1.4; margin: 0; }
.login-form { width: 100%; max-width: 360px; margin-top: 30px; }
#web-login { width: 100%; min-height: 54px; padding: 14px 16px; font-size: 13px; justify-content: flex-start; background: #244bf2; border: 1px solid #244bf2; color: white; border-radius: 4px; }
#web-login:hover:not(:disabled) { background: #183cd1; border-color: #183cd1; }
#web-login:disabled { opacity: .55; }
.login-arrow { margin-left: auto; }
#login-state { min-height: 40px; margin: 14px 0 0; padding-bottom: 12px; border-bottom: 1px solid #e2e5eb; color: #5a6270; font-size: 12px; }
#login-pending { margin-top: 24px; }
.qr-frame { width: 204px; height: 204px; padding: 11px; border: 1px solid #d8dce4; border-radius: 0; background: white; margin: 0 auto 18px; }
#login-qr { width: 180px; height: 180px; display: block; }
.login-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.link-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid #d3d9e4; border-radius: 4px; text-decoration: none; font-size: 12px; color: #293a76; background: #f6f8fc; }
.link-button:hover { background: #eaf0ff; border-color: #a1b1e7; }
#cancel-login { font-size: 12px; color: #505a6e; padding: 10px 12px; }
#login-expiry { text-align: center; color: #5c6680; font: 11px/1.7 var(--mono); margin: 14px 0 0; }
.login-policy { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11px; line-height: 1.7; color: #606a7b; margin: 22px 0 0; }
.login-policy .icon { width: 15px; height: 15px; color: #3d57b5; }
.policy-divider { margin: 0 3px; color: #a0a7b4; }
body:not(.authenticated) :focus-visible { outline-color: #244bf2; }
@media(max-width:1000px) {
  #login-view { width: calc(100% - 64px); grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .login-intro { padding-right: 36px; }
  .login-auth { padding-left: 36px; }
  #login-title { font-size: 40px; }
}
@media(max-width:700px) {
  body:not(.authenticated) header { min-height: 80px; padding: 16px 20px; gap: 10px; }
  body:not(.authenticated) .brand { font-size: 21px; }
  body:not(.authenticated) .brand>span { font-size: 8px; margin-left: 2px; padding-left: 10px; }
  body:not(.authenticated) .back-link { font-size: 11px; gap: 4px; }
  #login-view { width: calc(100% - 40px); min-height: 0; padding: 44px 0 40px; display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; text-align: left; }
  .login-intro { padding: 0; }
  .registry-label { font-size: 9px; margin-bottom: 20px; }
  #login-title { font-size: 38px; }
  #login-title>span { font-size: 17px; margin-top: 10px; }
  .login-details { max-width: none; margin-top: 28px; }
  .login-details>div { min-height: 44px; padding: 10px 0; }
  .registry-reference { margin-top: 14px; font-size: 8px; }
  .login-auth { border-left: 0; border-top: 2px solid #212630; padding: 28px 0 0; }
  .auth-index { font-size: 9px; margin-bottom: 14px; }
  #auth-title { font-size: 23px; }
  .login-form { max-width: none; margin-top: 22px; }
  #web-login { min-height: 52px; font-size: 12px; padding: 14px; gap: 8px; }
  #login-state { min-height: 36px; font-size: 11px; }
  .login-policy { margin-top: 18px; font-size: 10px; }
  body:not(.authenticated) footer { min-height: 110px; padding: 22px 20px; gap: 12px 20px; text-align: left; justify-content: space-between; }
  #login-view:has(#login-pending:not([hidden])) { padding: 32px 0; gap: 0; }
  #login-view:has(#login-pending:not([hidden])) .login-intro { display: none; }
  #login-view:has(#login-pending:not([hidden])) .login-auth { border-top: 0; padding-top: 0; }
}
@media(max-width:360px) {
  body:not(.authenticated) .brand>span { display: none; }
  #login-title { font-size: 34px; }
  .login-actions { gap: 6px; }
  .link-button { font-size: 11px; padding: 10px; }
}
