/* Shared Bluefoot Diary identity. Loaded after page-specific layout styles. */
:root{--brand-bg:#040404;--brand-fg:#f4f8f9;--brand-muted:#aaaeb3;--brand-blue:#70d9ed;--brand-line:#ffffff20;--brand-font:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
html,body{background:var(--brand-bg);font-family:var(--brand-font);color:var(--brand-fg)}
.brand-header{position:fixed;z-index:40;top:48px;left:50%;transform:translateX(-50%);width:92%;max-width:1120px;min-height:64px;padding:10px 28px;border:1px solid #ffffff0c;border-radius:50px;background:#121212b8;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:24px;font-family:var(--brand-font);box-sizing:border-box;transition:top .32s cubic-bezier(.22,1,.36,1),min-height .32s cubic-bezier(.22,1,.36,1),padding .32s cubic-bezier(.22,1,.36,1),background-color .32s,border-color .32s,box-shadow .32s}
.brand-header a{text-decoration:none;color:var(--brand-muted)}
.brand-header .brand-logo{display:flex;align-items:center;min-height:44px;gap:9px;font-size:17px;font-weight:650;white-space:nowrap;color:var(--brand-fg);line-height:1.4}
.brand-logo img{display:block;width:34px;height:34px;object-fit:contain}
.brand-header .brand-links{display:flex;align-items:center;justify-content:center;gap:64px;margin:0;justify-self:center;font-size:16px}
.brand-header .brand-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;white-space:nowrap}
.brand-header a:hover,.brand-header [aria-current]{color:var(--brand-fg)}
.brand-header .brand-language{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;margin-left:auto;justify-self:end;border:0;font-size:12px;flex-shrink:0;box-sizing:border-box}
.brand-header .brand-menu{display:none}
.brand-header a:focus-visible,.brand-header summary:focus-visible{outline:2px solid var(--brand-blue);outline-offset:3px}
body.tools-page main.wrap{max-width:1120px;padding:146px 24px 0}
body.tools-page h1,body.tools-page h2,body.tools-page h3{font-family:var(--brand-font);font-weight:600;letter-spacing:-.025em}
html[lang=zh-CN] body.tools-page h1,html[lang=zh-CN] body.tools-page h2,html[lang=zh-CN] body.tools-page h3{letter-spacing:-.005em}
body.tools-page .primary,body.tools-page .tool-entry>span{background:#fff;color:#040404;box-shadow:none}
body.tools-page .primary:hover{background:#e9edf0}
body.tools-page .console.is-playing .primary{background:var(--brand-fg);color:#040404}
.site-footer,body.tools-page>footer{font-family:var(--brand-font);color:var(--brand-muted);font-size:13px;border-color:#ffffff16}
@media(max-width:1000px){.brand-header{column-gap:20px}.brand-header .brand-links{gap:28px;font-size:15px}.brand-header .brand-links a{padding:0 6px}}
@media(max-width:760px){
 .brand-header{display:flex;top:20px;min-height:54px;width:92%;padding:5px 10px 5px 15px;gap:8px}
 .brand-header .brand-logo{font-size:17px}.brand-logo img{width:34px;height:34px}
 .brand-header .brand-links{display:none}.brand-header .brand-language{margin-left:auto}
 .brand-header .brand-menu{display:block;position:static}
 .brand-menu summary{list-style:none;cursor:pointer;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--brand-muted)}
 .brand-menu summary::-webkit-details-marker{display:none}
 .brand-menu nav{position:absolute;top:calc(100% + 8px);right:0;display:flex;flex-direction:column;min-width:190px;padding:12px;background:#161819;border:1px solid #ffffff20;border-radius:20px;box-shadow:0 16px 40px #0008}
 .brand-menu nav a{display:flex;align-items:center;min-height:46px;padding:10px 16px;font-size:15px}
 body.tools-page main.wrap{padding:100px 16px 0}
 .site-footer,body.tools-page>footer{font-size:12px}
}
@media(max-width:360px){.brand-header .brand-logo{font-size:15px}.brand-logo img{width:30px;height:30px}.brand-header{padding-left:12px;gap:8px}}

/* Shared select indicator. Keep native selection and tool-specific field layout. */
body.tools-page main.wrap select:not([multiple]):not([size]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bbc6cb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px 16px;cursor:pointer}
body.tools-page main.wrap :not(.pick)>select:not([multiple]):not([size]){background-position:right 12px center;padding-right:38px}
body.tools-page main.wrap select:focus-visible{outline:2px solid var(--brand-blue);outline-offset:3px}
body.tools-page main.wrap select:disabled{cursor:not-allowed}
@media(forced-colors:active){body.tools-page main.wrap select:not([multiple]):not([size]){appearance:auto;-webkit-appearance:auto;background-image:none}}

body.tools-page details#settings>summary{list-style:none;position:relative;padding-right:32px}body.tools-page details#settings>summary::-webkit-details-marker{display:none}body.tools-page details#settings>summary:after{content:'+';position:absolute;right:0;top:14px;font-size:24px;color:var(--brand-muted)}body.tools-page details#settings[open]>summary:after{content:'−'}body.tools-page details#settings>summary:focus-visible{outline:2px solid var(--brand-blue);outline-offset:3px}

/* ICP filing remains visible in the document footer, including narrow screens. */
footer .icp-filing{font-size:12px;font-weight:400;line-height:1.6;color:inherit;text-decoration:none;white-space:nowrap;opacity:.75}footer .icp-filing:hover{text-decoration:underline;opacity:1}footer .icp-filing:focus-visible{outline:2px solid #70d9ed;outline-offset:4px}

.site-footer,body.tools-page>footer{flex-wrap:wrap}footer .icp-filing{flex-basis:100%;display:inline-flex;align-items:center;min-height:44px}

/* Keep navigation in reach while reading, with stable horizontal spacing. */
.brand-header.is-compact{top:calc(14px + env(safe-area-inset-top,0px));min-height:56px;padding-top:5px;padding-bottom:5px;background:#111113ed;border-color:#ffffff14;box-shadow:0 8px 30px #0003}
@media(max-width:760px){
 .brand-header.is-compact{top:calc(12px + env(safe-area-inset-top,0px));min-height:56px;padding-top:5px;padding-bottom:5px}
}
@media(prefers-reduced-motion:reduce){.brand-header{transition:none}}

.site-footer a{display:inline-flex;align-items:center;min-height:44px}
