/* Compact JAMES identity; full name remains in the document title. */
header a[aria-label="返回主页"]>div:first-child{width:95px!important;height:26px!important;flex-shrink:0;border-radius:0}
header a[aria-label="返回主页"]>div:first-child img{object-fit:contain!important;border-radius:0!important}
header a[aria-label="返回主页"]>span{display:none!important}
header a[aria-label="返回主页"]::after{content:"token管理平台";font-size:12px;white-space:nowrap}
/* James token管理平台：shared responsive overrides, desktop styles preserved. */
@media(max-width:767px){
 html{scroll-padding-top:56px;-webkit-text-size-adjust:100%}
 body{min-width:0}
 header [aria-label^="系统更新"],header button[aria-label="搜索"]{display:none!important}
 header a[aria-label="返回主页"]{min-width:0;flex:1}
 header a[aria-label="返回主页"]>span{max-width:none;font-size:13px;white-space:nowrap}
 [data-slot="label"],button,[role="tab"],thead th{white-space:nowrap}
 button,[role="combobox"]{touch-action:manipulation}
 input:not([type="checkbox"]):not([type="radio"]),textarea,select{font-size:16px!important;min-width:0}
 div.flex.flex-wrap:has(>input[data-slot="input"])>input[data-slot="input"]{width:calc(50% - 4px)!important;flex:1 1 calc(50% - 4px);max-width:100%}
 [data-slot="tabs-list"]{max-width:100%;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}
 [data-slot="dialog-content"]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow:auto}
 [data-slot="sheet-content"]{max-width:100vw!important;max-height:100dvh}
 [data-slot="sheet-footer"],[data-slot="dialog-footer"]{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 [data-slot="table-container"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 td,th{white-space:nowrap}
 [data-slot="badge"]{white-space:nowrap;flex-shrink:0}
 main{min-width:0;max-width:100%}
 pre{max-width:100%;overflow-x:auto;white-space:pre}
 p{overflow-wrap:anywhere}
 h2{min-width:0}
}
@media(max-width:359px){
 header button[aria-label="更改语言"]{display:none!important}
 header>div{gap:2px!important;padding-inline:6px!important}
 header a[aria-label="返回主页"]>span{font-size:12px}
}
@media(max-width:359px){
 header button[data-james-language]{display:none!important}
 button[data-james-create]{font-size:0!important;gap:3px!important;padding-inline:8px!important}
 button[data-james-create] span{font-size:0!important}
 button[data-james-create]::after{content:"新建 AK";font-size:12px;white-space:nowrap}
}

@media(max-width:374px){button[data-james-ak]{max-width:calc(100vw - 178px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}}
