
@font-face{font-family:Publ;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/login/PretendardJP-Regular.woff2') format('woff2')}
@font-face{font-family:Publ;font-style:normal;font-weight:500;font-display:swap;src:url('/assets/login/PretendardJP-Medium.woff2') format('woff2')}
@font-face{font-family:Publ;font-style:normal;font-weight:700;font-display:swap;src:url('/assets/login/PretendardJP-Bold.woff2') format('woff2')}
:root{color-scheme:light;--bg:#f5f5f8;--surface:#fff;--ink:#1e1e20;--muted:#68686b;--action:#455eef;--line:#e3e5e9;--error:#cb342a}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);font:500 14px/1.6 Publ,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.02em;-webkit-font-smoothing:antialiased}a{color:var(--action);text-decoration:none;text-underline-offset:3px}a:hover{text-decoration:underline}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--action);outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;background:#e3e5e9;color:#aaaab1}.header{height:72px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:20px;color:var(--ink);text-decoration:none}.brand:hover{text-decoration:none}.brand img{width:116px;height:auto}.brand span{font-size:13px;letter-spacing:.06em;border-left:1px solid var(--line);padding-left:20px}.account{display:flex;align-items:center;gap:24px;font-size:13px}.external{color:var(--ink);display:inline-flex;gap:8px;align-items:center}.sidebar{position:absolute;top:72px;bottom:0;min-height:calc(100vh - 72px);width:240px;background:#252528;color:white;display:flex;flex-direction:column}.sidebar-profile{padding:32px 20px;display:flex;align-items:center;flex-direction:column;gap:8px;overflow-wrap:anywhere;text-align:center}.profile-symbol{height:64px;width:64px;border-radius:50%;background:#455eef;display:grid;place-items:center;font-size:26px;font-weight:700;margin-bottom:4px}.sidebar-profile strong{font-size:16px;max-width:100%}.sidebar-profile>span{font-size:12px;color:#aaaab1}.sidebar nav{padding:0 12px;display:flex;flex-direction:column;gap:4px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:10px;color:#d1d1d6}.sidebar nav a[aria-current]{color:#fff;background:#455eef}.sidebar nav a:hover{background:#3c3c40;text-decoration:none}.sidebar nav a[aria-current]:hover{background:#455eef}.sidebar-bottom{margin-top:auto;border-top:1px solid #3c3c40;padding:24px 28px}.sidebar-bottom a,.sidebar-bottom button{color:#d1d1d6}.sidebar :focus-visible{outline-color:white}.text-button{border:0;background:none;padding:0;color:var(--action);font:inherit}.workspace{margin-left:240px;min-height:calc(100vh - 72px)}.console-layout{position:relative;min-height:100vh}main{max-width:1280px;margin:auto;padding:40px 40px 56px;min-width:0;min-height:calc(100vh - 152px)}h1{font-size:28px;line-height:1.4;margin:0 0 12px;font-weight:700;letter-spacing:-.03em}h2{font-size:20px;line-height:1.4;margin:0 0 16px}h3{font-size:16px;margin:0 0 8px}.eyebrow{font-size:12px;color:var(--action);font-weight:700;letter-spacing:.02em;margin-bottom:8px}.intro{color:var(--muted);margin:0;max-width:720px;line-height:1.7}.page-heading{margin-bottom:32px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px;min-width:0}.muted{color:var(--muted)}.small{font-size:12px}input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select{width:100%;height:48px;border:2px solid #f5f5f8;border-radius:14px;background:#f5f5f8;color:var(--ink);padding:0 16px;min-width:0;font-size:14px}input::placeholder{color:#97979b;opacity:1}input:focus,select:focus{border-color:#aaaab1}input[type=radio],input[type=checkbox]{accent-color:var(--action)}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;border:0;border-radius:14px;background:var(--action);color:white;padding:12px 20px;font-weight:700;text-align:center;line-height:1.5}.button:hover{filter:brightness(1.07);text-decoration:none}.button.secondary{background:#f0f1f5;color:var(--ink)}.button.danger{background:#fff1ef;color:var(--error)}.wide{width:100%;margin-top:24px}.notice{background:#eff1ff;border:1px solid #e1e5ff;border-radius:12px;padding:16px;font-size:13px}.notice.error{background:#fff1ef;border-color:#ffddd8;color:var(--error)}hr{border:0;border-top:1px solid var(--line);margin:24px 0}fieldset{border:0;margin:0 0 28px;padding:0;min-width:0}legend{font-weight:700;font-size:16px;margin-bottom:16px}fieldset>label:not(.choice){display:block;font-size:13px;margin:20px 0 8px}.dashboard-grid{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:24px;align-items:start}.choice{display:flex;gap:12px;border:1px solid var(--line);border-radius:14px;padding:16px;margin:10px 0;cursor:pointer}.choice:has(input:checked){border-color:var(--action);background:#f5f6ff}.choice:has(input:disabled){opacity:.55;cursor:default}.choice>span{min-width:0;overflow-wrap:anywhere}.choice input{flex-shrink:0;width:16px;height:16px;margin:4px 0 auto}.choice strong,.choice small{display:block}.choice small{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.6}.choices .wide{margin-top:0}.target{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--line);padding-bottom:20px;overflow-wrap:anywhere}.target small{color:var(--muted)}.target strong{font-size:18px}.copy-block{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:20px 0}.copy-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}.copy-heading h3{font-size:13px;margin:0}.copy{background:#f5f5f8;border:0;border-radius:8px;cursor:pointer;padding:6px 12px;font-size:12px;color:var(--muted)}pre{overflow:auto;background:#f5f5f8;padding:18px;font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;max-width:100%;border-radius:12px;tab-size:2}.copy-block pre{margin:0;border-radius:0;white-space:pre-wrap;overflow-wrap:anywhere}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;font-size:.9em}pre code{font-size:inherit}.authorizations{margin-top:24px;overflow-wrap:anywhere}.authorizations>p{color:var(--muted)}.authorizations fieldset{gap:10px;margin:0 0 12px;padding:0;border:0}.authorizations fieldset label{display:flex;align-items:center;gap:8px;margin:0}.authorizations fieldset input{width:auto;min-height:auto;margin:0}.authorizations fieldset br{display:none}.authorizations fieldset legend{margin-bottom:10px;font-size:13px}.authorizations ul{list-style:none;padding:0}.console-layout main:has(.document){max-width:none}.search{margin:6px 0 16px}.search button{margin-top:8px}.document{line-height:1.8}.document-source{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:28px;font-size:12px}.document article>h1{font-size:26px}.document h2{margin:32px 0 16px;font-size:21px}.document h3,.document h4{margin:28px 0 10px}.document li{margin:8px 0}.document p{overflow-wrap:anywhere}.document blockquote{border-left:3px solid var(--line);margin:20px 0;padding:0 20px;color:var(--muted)}.document img{max-width:100%;height:auto}.document table,.table-scroll{display:block;overflow:auto;max-width:100%}table{border-collapse:collapse;font-size:13px}th,td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--line)}th{background:#f5f5f8}.document [id]{scroll-margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Reuse the existing publ SignIn gradient, logo, field dimensions and card geometry. */
.auth-layout{min-height:100vh;background-color:hsla(242deg,100%,74%,1);background-image:radial-gradient(at 42% 41%,hsla(202deg,100%,61%,.62) 0,transparent 50%),radial-gradient(at 97% 5%,hsla(261deg,100%,40%,.49) 0,transparent 50%),radial-gradient(at 88% 41%,hsla(319deg,65%,78%,.44) 0,transparent 50%),radial-gradient(at 19% 83%,hsla(157deg,100%,63%,.5) 0,transparent 50%),radial-gradient(at 5% 3%,hsla(231deg,100%,61%,1) 0,transparent 50%),radial-gradient(at 98% 68%,hsla(189deg,92%,78%,.58) 0,transparent 50%),radial-gradient(at 40% 90%,hsla(240deg,100%,61%,.65) 0,transparent 50%),radial-gradient(at 64% 67%,hsla(166deg,100%,42%,.77) 0,transparent 50%),radial-gradient(at 100% 100%,hsla(164deg,100%,52%,1) 0,transparent 50%);background-attachment:fixed}.auth-layout .header{background:transparent;border:0;height:80px}.auth-layout .brand,.auth-layout .external{color:white}.auth-layout .brand span{border:0;padding:0;font-size:15px;font-weight:700}.auth-layout .workspace{margin:0;min-height:calc(100vh - 80px)}.auth-layout main{display:flex;align-items:center;justify-content:center;padding:32px 20px 64px;min-height:calc(100vh - 160px)}.auth-card{width:504px;max-width:100%;padding:64px 36px 40px;border-radius:36px;background:white;overflow-wrap:anywhere}.publ-logo{display:block;width:288px;height:80px;object-fit:contain;max-width:100%;margin:0 auto 40px}.login-card .publ-logo{margin-bottom:24px}.login-context{margin:0 0 28px;text-align:center;font-size:13px;color:var(--muted)}.login-card #password{margin-top:16px}.login-card .button{font-size:18px}.login-card .account-links{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0}.account-links a{color:var(--ink);font-size:16px;line-height:40px}.account-links i{width:1px;height:12px;background:var(--line)}.privacy-note{margin:0;text-align:center;line-height:1.6}.auth-card h1:not(.sr-only){font-size:24px;margin-bottom:16px}.back-link{text-align:center;margin:24px 0 0}.auth-layout .header :focus-visible{outline-color:white}.consent-card .publ-logo{width:180px;height:50px}.consent-card form{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}.consent-access{flex-basis:100%;margin:0}.consent-card form .button{flex:1}.consent-card>code{display:block;padding:16px;background:#f5f5f8;border-radius:12px}
@media(max-width:1180px){main{padding:32px 24px 48px}.dashboard-grid{grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:20px}.panel{padding:24px}.sidebar{width:220px}.workspace{margin-left:220px}}
@media(max-width:980px){.dashboard-grid{grid-template-columns:1fr}.sidebar{width:200px}.workspace{margin-left:200px}}
@media(max-width:700px){.header{height:auto;min-height:64px;padding:16px 20px;gap:12px;flex-wrap:wrap}.brand{gap:12px}.brand img{width:90px}.brand span{padding-left:12px}.account{gap:12px;font-size:12px}.sidebar{position:static;min-height:0;width:100%;padding:12px 8px;background:#252528}.sidebar-profile{display:none}.sidebar nav{flex-direction:row}.sidebar nav a{flex:1;justify-content:center;padding:10px 8px;font-size:13px;gap:8px}.sidebar-bottom{padding:12px 20px 0;border:0;margin:0;text-align:right}.sidebar-bottom form{margin:0}.workspace{margin-left:0}.console-layout main{min-height:calc(100vh - 240px)}main{padding:28px 16px 40px}.panel{padding:20px;border-radius:16px}h1{font-size:25px}.page-heading{margin-bottom:24px}.document article>h1{font-size:24px}.auth-layout .header{height:72px}.auth-layout main{min-height:calc(100vh - 180px);padding:24px 16px}.auth-card{padding:48px 24px 32px;border-radius:28px}.publ-logo{width:250px;height:auto}.auth-card h1:not(.sr-only){font-size:22px}.auth-layout .account{max-width:65%}.login-context{font-size:12px}.login-card .account-links{gap:16px}.account-links a{font-size:14px}}

/* Match the original login composition without a decorative footer. */
main{min-height:calc(100vh - 72px)}
.auth-layout .header{justify-content:flex-end}.auth-layout .workspace{min-height:calc(100vh - 80px)}
.auth-layout main{min-height:calc(100vh - 80px)}
.auth-layout main:has(.connection-panel){display:grid;grid-template-columns:minmax(0,1fr) 504px minmax(0,1fr);gap:24px;align-content:center;align-items:center;max-width:none;padding:32px 24px 64px}
.login-card{grid-column:2;width:504px}.login-card .publ-logo{margin-bottom:48px}.login-card .button{height:48px;min-height:48px;padding:0 16px}.login-card .account-links{margin:40px 0 0;gap:16px}.account-links a{font-weight:500}
.connection-panel{grid-column:3;justify-self:end;width:300px;max-width:100%;padding:28px 24px 24px;background:white;border:1px solid #ffffffa6;border-radius:24px;box-shadow:0 12px 48px #27264b29,0 2px 8px #27264b0d}
.connection-heading{display:flex;align-items:center;gap:12px}.connection-heading h2{font-size:18px;margin:0;line-height:1.5}.connection-symbol{display:grid;place-items:center;background:#eff1ff;color:#455eef;width:44px;height:44px;border-radius:14px;flex-shrink:0}.connection-description{font-size:14px;line-height:22px;color:#68686b;margin:22px 0 20px}.connection-privacy{font-size:12px;color:#97979b;margin:0 0 20px}.connection-reference{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eaebef;padding-top:16px;font-size:13px;color:#68686b}
@media(max-width:1180px){.auth-layout main:has(.connection-panel){display:flex;flex-direction:column;gap:24px;padding:32px 20px 40px}.connection-panel{width:504px;max-width:100%}.login-card{max-width:100%}}
@media(max-width:700px){.console-layout main{min-height:calc(100vh - 192px)}.auth-layout main:has(.connection-panel){padding:24px 16px 40px}.auth-layout .workspace,.auth-layout main{min-height:calc(100vh - 72px)}.login-card .publ-logo{margin-bottom:40px}.login-card .account-links{gap:12px;flex-wrap:wrap}.account-links a{line-height:1.5;text-align:center}.connection-panel{padding:24px;border-radius:24px}}

/* SW console: full-height account sidebar; content header sits beside it. */
.console-layout .header{margin-left:240px;height:72px;padding:0 40px}.section-title{font-size:18px;font-weight:700;line-height:1.4}.console-layout .sidebar{top:0;min-height:100vh}.sidebar-profile{padding:24px 20px 32px}.profile-symbol{width:80px;height:80px;font-size:28px;margin-bottom:8px}.sidebar nav a{min-height:40px;padding:10px 16px;font-size:14px;font-weight:700}.sidebar-profile strong{font-size:16px}.console-layout .header .account{margin-left:auto}
@media(max-width:1180px){.console-layout .header{margin-left:220px;padding:0 24px}}
@media(max-width:980px){.console-layout .header{margin-left:200px}}
@media(max-width:700px){.console-layout .header{margin-left:0;padding:16px 20px;height:auto;min-height:64px}.console-layout .sidebar{min-height:0}.section-title{font-size:16px}.sidebar nav a{font-size:13px}}

/* Reference uses a title-only contents column and a plain document, separated by a rule. */
.workspace:has(.reference-grid){background:var(--surface)}
.console-layout main:has(.reference-grid){max-width:none;padding:28px 32px 48px}
.reference-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:0;align-items:start}
.reference-nav{padding:0 20px 0 0;position:sticky;top:24px;max-height:calc(100vh - 48px);overflow:auto;min-width:0}
.connection-result{text-align:center}.connection-result .publ-logo{margin-left:auto;margin-right:auto}.connection-result .intro{margin:16px auto 0}.connection-result-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;margin:12px auto 24px;background:#eff1ff;color:var(--action);font-size:32px;font-weight:700}.consent-details{margin:20px 0;color:var(--muted);font-size:13px}.consent-details summary{cursor:pointer}.consent-app{margin:12px 0}.consent-app small{color:var(--muted)}.consent-access legend{font-size:13px;font-weight:700;margin-bottom:4px}.consent-more,.consent-channels{margin:0 0 10px;font-size:13px}.consent-more summary,.consent-channels summary{cursor:pointer;color:var(--muted)}.consent-more p{color:var(--muted);font-size:12px;line-height:1.6}.consent-channel-list.scroll{max-height:320px;overflow:auto}.consent-channel-list .choice{padding:8px 12px;margin:4px 0;align-items:center}.consent-channel-list .choice input{margin:0}.consent-channel-list .choice small{display:inline;margin:0 0 0 8px}.consent-details code{display:block;margin-top:8px}
.reference-nav h2{font-size:14px;margin:0 0 12px}
.reference-nav a{display:block;padding:8px 10px;color:var(--muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere;border-radius:6px}
.reference-nav a[aria-current]{color:var(--action);background:#eff1ff;font-weight:700}
.reference-grid .document{padding:0 0 0 24px;border-left:1px solid var(--line);min-width:0}
.reference-grid .document-source{justify-content:flex-end;border:0;padding:0;margin:0 0 16px}
.mode-cards{display:grid;gap:12px;margin:16px 0 20px}
.mode-card{border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.mode-card[open]{border-color:var(--action)}
.mode-card summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:16px 18px;cursor:pointer;list-style:none;border-radius:14px}
.mode-card summary::-webkit-details-marker{display:none}
.mode-card summary::after{content:'';grid-column:2;grid-row:1/span 2;align-self:center;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.mode-card[open] summary::after{transform:rotate(-135deg)}
.mode-card summary:focus-visible{outline:2px solid var(--action);outline-offset:2px}
.mode-title{font-weight:700;font-size:15px}.mode-when{grid-column:1;color:var(--muted);font-size:13px;line-height:1.6}
.mode-body{padding:0 18px 16px}.mode-body .copy-block{margin:12px 0}
.connection-readonly{font-size:13px;color:var(--muted)}
.consent-level-tip{font-size:12px;color:var(--muted);margin:8px 0 0}
.grant-list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.grant-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px 24px;min-width:0}
.grant-card.is-expired{background:#fafafb}.grant-card.is-expired h2{color:var(--muted)}
.grant-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.grant-title{min-width:0}.grant-title h2{margin:0;font-size:17px;overflow-wrap:anywhere}.grant-time{margin:4px 0 0;color:var(--muted);font-size:13px}
.grant-chips,.target-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.target-chips{margin-top:14px}
.chip{display:inline-flex;align-items:center;font-size:12px;line-height:1.5;padding:3px 10px;border-radius:999px;border:1px solid var(--line);background:#f5f5f8;color:var(--ink);overflow-wrap:anywhere}
.chip.status.active{background:#ebf8f0;border-color:#c5e9d3;color:#1f7a45}.chip.status.soon{background:#fff6e5;border-color:#ffe2a8;color:#8a5a00}.chip.status.expired{background:#f0f1f5;color:var(--muted)}
.chip.level{background:#eff1ff;border-color:#dfe4ff;color:var(--action)}.chip.level.read{background:#f3f0ff;border-color:#e2dbff;color:#5b3fd6}
.chip.target{background:var(--surface)}.chip.target.account{font-weight:700}
.grant-details{margin-top:14px;font-size:13px}.grant-details summary{cursor:pointer;color:var(--muted);width:max-content}
.grant-details dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px;margin:10px 0 0;padding:12px 14px;background:#f8f8fa;border-radius:10px}
.grant-details dt{color:var(--muted)}.grant-details dd{margin:0;overflow-wrap:anywhere}.grant-details code{font-size:12px}
.grant-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;align-items:flex-start}
.grant-action>summary{list-style:none;min-height:40px;padding:8px 16px;font-size:14px;cursor:pointer}.grant-action>summary::-webkit-details-marker{display:none}
.grant-action[open]{flex-basis:100%}.grant-action[open]>summary{margin-bottom:10px}
.grant-action>summary.button{width:max-content;max-width:100%}.grant-details .channel-code{color:var(--muted);font-size:11px}
.grant-action>form,.grant-action .confirm{border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.grant-action .confirm{border-color:#ffddd8;background:#fffaf9}.grant-action .confirm p{margin:0 0 12px;font-size:13px}
.grant-action fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 16px}.grant-action legend{font-weight:700;font-size:13px;margin-bottom:8px}
.grant-action .check{display:inline-flex;gap:6px;align-items:center;font-size:13px}
.button.danger.solid{background:var(--error);color:#fff}
.authorizations .empty-state{text-align:center;padding:40px 24px}.authorizations .pager{margin:16px 0}.authorizations .reconnect{font-size:13px}
.authorizations .disconnect{margin-top:24px}
@media(max-width:700px){.grant-card{padding:16px}.grant-details dl{grid-template-columns:1fr}.grant-details dd{margin-bottom:6px}}
.reference-grid .document-source{gap:16px}
.workspace:has(.reference-catalog){background:var(--surface)}
.reference-catalog{max-width:1080px}.reference-catalog .intro{margin:0 0 12px}
.reference-links{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;padding:0;margin:0 0 16px}
.reference-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:20px 0 8px;padding:16px;border:1px solid var(--line);border-radius:8px}
.reference-filter label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);min-width:0;flex:1 1 160px}
.reference-filter input,.reference-filter input[type=search],.reference-filter select{font:inherit;color:var(--ink);padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);min-width:0}
.tool-catalog h2{margin:32px 0 4px;font-size:20px}.tool-catalog h3{margin:20px 0 8px;font-size:15px}
.tool-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.tool-list li{padding:10px 0;border-bottom:1px solid var(--line);scroll-margin-top:16px}.tool-list li:target{background:#eff1ff}
.tool-list p{margin:4px 0 0;color:var(--muted);font-size:13px}.tool-head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}.tool-head code{overflow-wrap:anywhere}
.tool-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tool-badge{font-size:11px;line-height:1.6;padding:0 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.tool-badge.read{color:#1f7a45;border-color:#bfe3cc}.tool-badge.write{color:var(--action);border-color:#cdd5ff}.tool-badge.warn{color:var(--error);border-color:#f2c4c0}
.tool-summary{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:0 0 20px;font-size:13px}
.tool-summary dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px;margin:0 0 8px}.tool-summary dt{color:var(--muted)}.tool-summary dd{margin:0;overflow-wrap:anywhere}
@media(max-width:700px){.tool-summary dl{grid-template-columns:1fr}.tool-summary dd{margin-bottom:6px}}
@media(max-width:900px){.reference-grid{grid-template-columns:1fr}.reference-nav{position:static;max-height:200px;padding:0}.reference-grid .document{border-left:0;border-top:1px solid var(--line);padding:20px 0 0;margin-top:16px}}
@media(max-width:700px){.console-layout main:has(.reference-grid){padding:24px 16px 40px}.sidebar nav a{min-width:0;flex-direction:column;gap:4px;padding:8px 4px}.sidebar nav a svg{flex-shrink:0}.sidebar nav a span{overflow-wrap:anywhere}}
/* Signed-out Reference: no side menu, the header and content span the window. */
.console-layout.public-layout .header{margin-left:0}.public-layout .workspace{margin-left:0}.public-layout .brand span{font-size:13px;font-weight:700}.public-layout .small-login{font-size:12px;color:var(--muted)}
@media(max-width:700px){.public-layout .brand img{width:90px;height:auto}.public-layout .brand span{font-size:12px}.public-layout main{min-height:calc(100vh - 140px)}}

.admin-report-list{display:flex;flex-wrap:wrap;gap:8px 24px;margin:24px 0;border-bottom:1px solid #e8e8ec;padding-bottom:16px}.admin-report-list [aria-current="page"]{font-weight:700;text-decoration:underline}.admin-report-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:24px 0}.admin-report-actions .muted{font-size:12px}.admin-report-updated{font-size:15px}.admin-report-list .muted{font-size:12px}.admin-report-frame{width:100%;min-height:75vh;border:1px solid var(--line);border-radius:12px;background:white}

.admin-auth label{display:block;margin:16px 0 6px}.admin-auth .publ-logo{margin-bottom:28px}.admin-auth h1{font-size:24px}.admin-qr{display:block;margin:24px auto;max-width:100%;height:auto}.admin-recovery{padding:0;list-style:none;display:grid;gap:10px}.admin-recovery code{font-size:12px}.admin-layout main{max-width:none}.admin-filter{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin:24px 0}.admin-filter label{flex:1 1 150px;min-width:0}.admin-filter input,.admin-filter select{display:block;margin-top:6px}
/* Match the shared input exclusions so admin filters override their base fill. */
.admin-filter input:not([type=radio]):not([type=checkbox]):not([type=hidden]),.admin-filter select{background:#fff;border-color:var(--line)}
.admin-filter input:not([type=radio]):not([type=checkbox]):not([type=hidden]):focus,.admin-filter select:focus{border-color:var(--action)}
.admin-metrics{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.admin-metrics .panel{flex:1 1 130px;padding:20px}.admin-metrics h2{font-size:14px;color:var(--muted)}.admin-metrics strong{font-size:28px}.admin-table-wrap{width:100%;overflow:auto;margin:16px 0 32px;background:#fff;border:1px solid var(--line);border-radius:12px}.admin-table{width:100%;min-width:520px}.admin-table th{white-space:nowrap}.admin-table td{max-width:260px;overflow-wrap:anywhere}.admin-inline{position:relative;display:flex;align-items:center;gap:12px;min-width:240px}.admin-inline input{max-width:155px}.admin-inline button{min-width:70px}.admin-layout summary{cursor:pointer;margin:16px 0}.admin-health dl{display:grid;grid-template-columns:auto 1fr;gap:8px 20px}.admin-health dd{margin:0;overflow-wrap:anywhere}.admin-link{white-space:pre-wrap;overflow-wrap:anywhere}.admin-layout .panel{margin-bottom:20px}@media(max-width:700px){.admin-layout .account{font-size:11px}.admin-layout .sidebar nav a{overflow-wrap:anywhere;text-align:center}.admin-filter label{flex-basis:100%}.admin-auth{padding:32px 24px}.admin-layout main{padding:24px 16px}.admin-layout .panel{padding:20px}}
/* Admin side menu: fixed to the window so its dark background fills the full height on long pages;
   a long menu scrolls inside it and the logout stays at its bottom. Narrow screens keep the top bar. */
@media(min-width:701px){.admin-layout .sidebar{position:fixed;top:0;bottom:0;left:0;height:auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;z-index:2}}

.admin-layout .sidebar{overflow-y:auto;height:100vh}.admin-layout .sidebar nav a{min-height:38px}.admin-layout .sidebar-profile{padding-bottom:22px}.stat-page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.stat-page-heading h1{margin:0 0 12px}.stat-page-heading p{margin:0}.stat-filters{padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:12px;gap:14px}.stat-filters label{font-size:12px;flex:1 1 130px}.stat-filters label.stat-time{flex:1 1 215px}.stat-filters input,.stat-filters select{height:40px;min-height:40px;font-size:13px}.stat-range{font-size:13px;color:var(--muted);margin:16px 0}.stat-autorefresh{display:flex;align-items:center;gap:8px;font-size:12px;justify-content:flex-end}.stat-autorefresh input{width:16px;height:16px;min-height:0}.stat-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:24px 0}.stat-metrics section{background:#fff;padding:24px;border:1px solid var(--line);border-radius:12px}.stat-metrics h2{font-size:13px;color:var(--muted);margin:0 0 16px}.stat-metrics strong{white-space:nowrap;font-size:clamp(20px,2vw,28px);line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-metrics small{font-size:12px;font-weight:500;color:var(--muted)}.stat-chart{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin:0 0 20px;min-width:0}.stat-chart h2{font-size:16px;margin:0 0 20px}.stat-chart-heading{display:flex;justify-content:space-between;align-items:baseline}.stat-chart-heading>span{font-size:12px}.chart-canvas{position:relative;width:100%;height:280px}.chart-canvas canvas{display:block}.chart-values{margin-top:12px}.chart-values summary{font-size:12px;color:var(--muted)}.chart-values .admin-table-wrap{max-height:360px;overflow:auto}.chart-values .admin-table{min-width:0}.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.stat-rank{list-style:none;padding:0;margin:0}.stat-rank li{margin:14px 0 18px}.stat-rank a{display:flex;justify-content:space-between;gap:16px;font-size:13px;color:var(--ink)}.stat-rank a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stat-rank strong{font-variant-numeric:tabular-nums}.stat-rank meter{display:block;width:100%;height:7px;margin-top:8px;appearance:none;border:0;border-radius:5px;background:#f0f1fa}.stat-rank meter::-webkit-meter-bar{border:0;background:#f0f1fa;border-radius:5px}.stat-rank meter::-webkit-meter-optimum-value{background:#6578f4;border-radius:5px}.stat-rank meter::-moz-meter-bar{background:#6578f4}.stat-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px;margin:0 0 24px}.stat-health dt{font-size:12px;color:var(--muted)}.stat-health dd{font-size:16px;margin:8px 0 0;overflow-wrap:anywhere}.stat-pagination{display:flex;justify-content:flex-end;gap:20px;margin:24px 0}.stat-pagination a{padding:10px 18px;border:1px solid var(--line);background:#fff;border-radius:8px}.stat-retention{font-size:12px;margin-top:32px}.stat-empty{padding:36px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted)}
@media(max-width:1180px){.stat-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid{grid-template-columns:1fr}.stat-health{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:980px){.stat-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-layout .sidebar{height:auto;overflow:visible}.admin-layout .sidebar nav{flex-wrap:wrap}.admin-layout .sidebar nav a{flex:1 0 30%}.stat-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-metrics section,.stat-chart{padding:18px}.stat-metrics strong{font-size:24px}.stat-health{grid-template-columns:1fr}.stat-filters{padding:16px}.stat-page-heading{gap:12px}.stat-page-heading h1{font-size:24px}.stat-page-heading .muted{font-size:12px}}
