*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#0e1119;color:#eef1f8;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.sitehead{height:78px;border-bottom:1px solid #252c39;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px);background:#10141d}.brand{font-size:16px;letter-spacing:.02em}.brand strong{font-weight:800}.mark{display:inline-grid;place-items:center;margin-right:10px;background:#4666dc;border-radius:10px;width:34px;height:34px;color:white}.sitehead nav{display:flex;gap:26px;font-size:12px;letter-spacing:.1em;color:#aeb7ca}.sitehead nav a:hover{color:#fff}.wrap{max-width:1220px;margin:auto;padding:0 28px;min-height:70vh}.hero{padding:90px 0 48px}.eyebrow{color:#8da1ff;font-size:11px;letter-spacing:.22em;font-weight:700}.hero h1{font-size:clamp(36px,6vw,70px);line-height:1.13;letter-spacing:-.045em;margin:18px 0}.hero h1 em{font-style:normal;color:#9aafff}.hero p{color:#8f9aae}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 30px}.chip{padding:8px 17px;color:#aeb7c8;border-radius:100px;font-size:13px;transition:.2s}.chip.active,.chip:hover{background:#4258a7;color:white}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 20px}.work{min-width:0;transition:transform .2s}.work:hover{transform:translateY(-4px)}.cover{aspect-ratio:4/3;background:#202637;border-radius:12px;overflow:hidden;position:relative}.cover img{width:100%;height:100%;object-fit:cover;display:block}.count{position:absolute;right:10px;top:10px;border-radius:8px;padding:3px 9px;background:#0d1019bd;font-size:12px}.work-info{padding:10px 3px}.work-info h2{font-size:14px;margin:0 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-info span{font-size:12px;color:#8894a9}.empty{color:#9ca7bc;padding:60px 0}.pagination{display:flex;justify-content:center;gap:10px;margin:45px 0}.pagination a{padding:6px 13px;border-radius:7px;background:#1b2332}.pagination a.current{background:#506de0}footer{text-align:center;color:#738096;font-size:12px;padding:75px 20px 30px}.back{display:inline-block;margin:30px 0 28px;color:#9aa8c1;font-size:13px}.detail-head{max-width:900px;margin:0 auto 36px}.detail-head h1{font-size:clamp(27px,4vw,44px);margin:12px 0}.description{color:#aab5c8;white-space:normal}.photo-section{max-width:1000px;margin:0 auto 52px}.photo-section>a{display:block;background:#171c27;text-align:center;border-radius:10px;overflow:hidden}.detail-image{display:block;width:auto;height:auto;max-width:100%;max-height:82vh;margin:auto}.photo-meta{display:flex;align-items:flex-start;gap:16px;padding:18px 4px}.photo-index{color:#6f85e7;font-weight:700}.photo-meta h2{font-size:17px;margin:0}.photo-meta p{font-size:13px;color:#a5afc1;margin:4px 0}.hint{margin-left:auto;white-space:nowrap;font-size:11px;color:#8996ac}.tags{display:flex;gap:9px;flex-wrap:wrap;max-width:1000px;margin:auto}.tags span{background:#20283a;color:#aebffb;padding:5px 12px;border-radius:20px;font-size:12px}.end-nav{max-width:1000px;margin:45px auto;color:#a6b8ff}.panel{max-width:900px;margin:35px auto;padding:28px;border:1px solid #30384b;background:#171d2a;border-radius:16px}.login{max-width:420px}.panel h1{font-size:25px}.panel form,.upload-form{display:flex;flex-direction:column;gap:22px}.panel label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:650}.panel input:not([type=file]),.panel textarea,.panel select{background:#0f1521;color:#f0f3ff;border:1px solid #3a465d;padding:12px;border-radius:8px;outline:none;width:100%;min-width:0}.panel input:focus,.panel textarea:focus,.panel select:focus{border-color:#8094ff}.panel button{border:0;background:#526ce3;color:white;border-radius:9px;padding:13px 22px;font-weight:700}.adminbar{display:flex;justify-content:space-between;align-items:center;margin:48px 0 0}.adminbar h1{margin:6px 0}.adminbar>a{color:#a8b7ef;font-size:13px}.drop{border:2px dashed #465578;border-radius:14px;padding:26px;text-align:center;align-items:center;cursor:pointer;background:#1c2638}.drop-icon{font-size:34px;color:#91a7ff}.drop small{color:#9ba9c2;font-weight:400}.drop input{max-width:100%;font-size:13px}.previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.preview-card{display:flex;flex-direction:column;gap:8px;background:#111825;padding:12px;border-radius:10px;min-width:0}.preview-card img{width:100%;height:140px;object-fit:contain;background:#090d14}.preview-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aeb7ca}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}[hidden]{display:none!important}.notice{background:#1d3b33;border:1px solid #347b66;border-radius:10px;padding:12px;margin-top:20px}.error{color:#ff9999}.admin-list{max-width:900px;margin:45px auto}.admin-item{display:flex;align-items:center;gap:14px;border-bottom:1px solid #30394b;padding:13px 0}.admin-item img{width:68px;height:55px;object-fit:cover;border-radius:6px}.admin-item div{flex:1;min-width:0}.admin-item small{display:block;color:#96a1b5}.admin-item a{font-size:12px;color:#b2c1ff}@media(max-width:850px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{padding-top:65px}}@media(max-width:600px){.sitehead{height:65px;padding:0 16px}.brand{font-size:12px}.mark{width:29px;height:29px;margin-right:5px}.sitehead nav{gap:12px;font-size:10px}.wrap{padding:0 15px}.hero{padding:55px 0 25px}.hero h1{font-size:39px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 11px}.cover{border-radius:8px}.work-info h2{font-size:12px}.work-info span{font-size:11px}.panel{padding:16px;margin:20px auto}.form-grid{grid-template-columns:1fr}.previews{grid-template-columns:1fr}.detail-image{max-height:none}.photo-meta{gap:10px}.hint{font-size:10px}.adminbar{margin-top:25px}}
.work-info time{display:block;color:#8794ae;font-size:11px;margin-top:4px;font-variant-numeric:tabular-nums}.tags a,.tag-pill{background:#20283a;color:#aebffb;padding:5px 12px;border-radius:20px;font-size:12px}.tags a:hover{background:#344878}.tag-filter{margin:-8px 0 26px;color:#aebffb;font-size:14px}.tag-filter a{margin-left:12px;color:#9ba9c2;font-size:12px}.preview-card img{height:190px}.field-help,.muted{color:#99a7bd;font-size:12px;font-weight:400}.date-panel{background:#111a2b;border:1px solid #394c76;padding:17px;border-radius:14px}.date-panel input{color-scheme:dark;accent-color:#8199ff}.date-panel input::-webkit-calendar-picker-indicator{cursor:pointer;filter:brightness(1.7)}.date-panel .date-summary{font-size:14px;color:#b3c4ff;margin-top:10px;font-weight:700}.date-panel small{color:#9baac3}.category-manager{margin-top:20px}.category-manager h2{margin:0 0 5px}.category-items{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.category-pill{display:flex;align-items:center;gap:10px;background:#202b43;border:1px solid #394a70;border-radius:30px;padding:5px 6px 5px 14px;font-size:13px}.panel .category-pill button.category-remove{border-radius:50%;background:#3a4561;color:#c7d0e5;width:27px;height:27px;padding:0}.panel .category-pill button.category-remove:hover{background:#943f51;color:#fff}.category-add{display:flex;gap:9px}.category-add input{flex:1}.category-add button{white-space:nowrap}.tag-pill{display:inline-block}.tags{align-items:center}
@media(max-width:600px){.category-add{flex-wrap:wrap}.category-add button{width:100%}}
/* v0.3: quieter editorial details and tighter controls */
:root{--accent:#92b8ff;--line:#313b50}body{letter-spacing:.005em}.sitehead{background:#111722}.panel{border-radius:12px}.panel button{transition:background .18s,transform .18s}.panel button:hover{filter:brightness(1.12)}
.category-manager .category-items{display:flex;flex-wrap:wrap;gap:8px}.category-manager .category-pill{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;width:auto!important;margin:0!important;padding:5px 6px 5px 13px!important;border-radius:99px!important;min-height:0!important}.category-manager .category-pill span{white-space:nowrap}.category-manager .category-pill button.category-remove{flex:0 0 24px;width:24px;height:24px;padding:0;line-height:1}.category-manager .category-add{display:flex!important;flex-direction:row!important;align-items:center;gap:10px}.category-manager .category-add input{flex:1;min-width:0}.category-manager .category-add button{width:auto;flex:0 0 auto;padding:12px 20px}
.tag-suggestions{background:#121a29;border:1px solid #303e58;padding:12px 14px;border-radius:10px;margin-top:-10px}.tag-suggestions strong{font-size:12px;color:#b7c8e9;display:block;margin-bottom:9px}.tag-suggestions .tags{margin:0}.tag-suggestions .tag-pill{border:1px solid #455574;background:#202b41;color:#c0d4ff;cursor:pointer;font-size:12px}.tag-suggestions .tag-pill:hover{background:#354b76}.preview-card{position:relative;cursor:grab;border:1px solid #2c3850}.preview-card.dragging{opacity:.45}.preview-card .photo-position{position:absolute;left:18px;top:18px;background:#111a2dcc;padding:2px 9px;border-radius:7px;font-size:12px}.preview-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#a2b0c7}.panel .preview-actions button.remove-photo{padding:5px 10px;background:#4a2833;color:#ffced7;font-size:12px;border-radius:6px}.photo-section{margin-bottom:26px}.photo-actions{display:flex;justify-content:flex-end;padding:12px 2px}.photo-actions a{font-size:14px;font-weight:650;color:#a4c6ff;text-decoration:underline;text-underline-offset:3px}.photo-actions a:hover{color:#fff}.post-footer{max-width:1000px;margin:48px auto 30px;border-top:1px solid #30394b;padding:26px 0}.post-footer h2{font-size:clamp(22px,3vw,30px);margin:0 0 8px}.post-footer .description{color:#c0c9d9}.post-footer .tags{margin:20px 0}.post-date{font-size:12px;color:#8f9db5;margin-top:20px}.delete-post-form{max-width:900px;margin:0 auto;display:flex;justify-content:flex-end}.danger-button{background:#552c38;color:#ffd5db;border:1px solid #8e495c;border-radius:8px;padding:9px 18px;cursor:pointer}.admin-item a{white-space:nowrap}
@media(max-width:600px){.category-manager .category-add{flex-wrap:nowrap!important}.category-manager .category-add button{width:auto!important;padding:12px!important}.preview-actions{flex-wrap:wrap}}

/* v0.3.2: upload size summary */
.upload-size-summary{margin:14px 0 20px;padding:14px 16px;border:1px solid #354461;border-radius:12px;background:#111a2b;display:flex;flex-direction:column;gap:7px;font-size:13px;color:#dce6fb}.upload-size-summary strong{font-size:14px}.upload-size-summary small{color:#9daecb}.upload-size-item{display:flex;justify-content:space-between;gap:18px;align-items:center;border-top:1px solid #29354b;padding-top:7px}.upload-size-item span:first-child{overflow-wrap:anywhere;min-width:0}.upload-size-item span:last-child{white-space:nowrap}.upload-size-item.over-limit,.upload-size-warning{color:#ff9ca7!important}@media(max-width:600px){.upload-size-item{align-items:flex-start;flex-direction:column;gap:2px}}

/* v0.4 — pixiv-inspired neutral dark palette. Artwork remains the focus. */
:root{color-scheme:dark;--accent:#0096fa;--accent-hover:#0086e0;--canvas:#1f1f1f;--surface:#2b2b2b;--surface-hover:#353535;--line:#393939;--muted:#a4a4a4}
html,body{background:var(--canvas);color:#f5f5f5}body{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;letter-spacing:0;line-height:1.65}
a:hover{color:#56baff}.sitehead{height:64px;background:#202020;border-bottom:1px solid #353535}.mark{background:var(--accent);border-radius:7px}.sitehead nav{color:#bdbdbd}.sitehead nav a:hover{color:#fff}
.hero{padding:56px 0 40px}.hero h1{font-size:clamp(32px,5vw,54px);letter-spacing:-.035em}.hero h1 em,.eyebrow{color:var(--accent)}.hero p,.work-info span,.work-info time,.post-date,.description{color:#aaa}
.filters{border-bottom:1px solid #353535;gap:5px;margin-bottom:26px}.chip{border-radius:0;padding:12px 15px;color:#aaa;font-weight:600;border-bottom:2px solid transparent}.chip.active,.chip:hover{color:var(--accent);background:transparent;border-bottom-color:var(--accent)}
.gallery{gap:22px 16px}.work:hover{transform:none}.cover{border-radius:7px;background:#292929}.count{border-radius:6px;background:#000a}.work-info h2{font-size:14px}.work-info span{color:#929292}.work-info time{color:#858585}
.back,.end-nav,.adminbar>a,.admin-item a,.photo-actions a,.tag-filter a{color:var(--accent)}.back:hover,.end-nav a:hover,.photo-actions a:hover{color:#70c8ff}
.detail-head{margin-bottom:22px}.photo-section{max-width:1000px;margin-bottom:22px}.photo-section>a{background:#161616;border-radius:5px}.photo-actions{padding:8px 4px 4px}.photo-actions a{color:#47b2ff}.detail-image{max-height:84vh}
.post-footer{border-top:1px solid #393939;padding-top:26px}.post-footer .description{color:#d0d0d0}.tags a,.tag-pill{background:transparent;color:#3eafff;border-radius:4px;padding:4px 7px}.tags a:hover,.tag-pill:hover{background:#333;color:#8fd2ff}
.panel{background:#292929;border:1px solid #3a3a3a;border-radius:10px}.panel input:not([type=file]),.panel textarea,.panel select{background:#202020;border-color:#474747;color:#f5f5f5;border-radius:5px}.panel input:focus,.panel textarea:focus,.panel select:focus{border-color:var(--accent);box-shadow:0 0 0 2px #0096fa33}.panel button{background:var(--accent);border-radius:7px}.panel button:hover{background:var(--accent-hover);filter:none}.drop{background:#252525;border-color:#565656;border-radius:8px}.drop-icon{color:var(--accent)}.drop small,.field-help,.muted{color:#aaa}.preview-card{background:#202020;border-color:#424242;border-radius:7px}.preview-card img{background:#111}.preview-card .photo-position{background:#000b}.upload-size-summary,.date-panel,.tag-suggestions{background:#222;border-color:#444;border-radius:7px;color:#ddd}.upload-size-item{border-color:#3b3b3b}.upload-size-summary small,.tag-suggestions strong,.date-panel small{color:#aaa}.tag-suggestions .tag-pill{background:#303030;border-color:#474747;color:#4eb6ff}.tag-suggestions .tag-pill:hover{background:#3b3b3b}.category-manager .category-pill{background:#343434;border-color:#484848}.panel .category-pill button.category-remove{background:#494949}.admin-item{border-color:#444}.admin-item small{color:#aaa}.notice{background:#21392f;border-color:#3d6855}.pagination a{background:#333}.pagination a.current{background:var(--accent)}
.expand-images{max-width:1000px;margin:4px auto 30px;padding:14px 20px 20px;text-align:center;background:#272727;border-radius:7px;display:flex;flex-direction:column;align-items:center;gap:12px}.expand-images>span{font-size:12px;color:#aaa}.expand-images button{font-size:14px;font-weight:700;line-height:1.4;font-family:inherit;background:#f5f5f5;color:#242424;border:0;border-radius:999px;padding:12px 34px;min-width:240px;cursor:pointer;transition:background .2s}.expand-images button:hover{background:#dcefff}.expand-images button:disabled{cursor:default;background:#444;color:#bbb}.expand-images button span{font-size:12px;font-weight:400}.remaining-images[hidden]{display:none!important}.remaining-images .photo-section{animation:fadeInGallery .22s ease both}@keyframes fadeInGallery{from{opacity:.6}to{opacity:1}}
@media(max-width:600px){.sitehead{height:58px}.hero{padding:40px 0 24px}.hero h1{font-size:34px}.filters{gap:0}.chip{padding:10px 12px}.gallery{gap:17px 10px}.detail-image{max-height:none}.expand-images{padding:14px}.expand-images button{width:100%;min-width:0}}

/* v0.4.1 admin navigation, status badges, floating back-to-top */
.admin-tabs{max-width:900px;margin:22px auto 0;display:flex;gap:6px;border-bottom:1px solid #424242}
.admin-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:#aaa;padding:13px 20px;font-weight:700;cursor:pointer}
.admin-tab:hover,.admin-tab.active{color:#0096fa;border-bottom-color:#0096fa}
.admin-tab-panel[hidden]{display:none!important}
.admin-list{margin-top:26px}
.admin-item{position:relative;flex-wrap:wrap;padding-top:35px}
.post-status{position:absolute;top:7px;left:0;font-size:11px;font-weight:700;border-radius:4px;padding:2px 9px}
.status-draft{background:#424242;color:#ddd}
.status-scheduled{background:#19374a;color:#6bc6ff}
.status-published{background:#1c392d;color:#8be0b3}
.back-to-top{position:fixed;right:25px;bottom:25px;z-index:999;border:1px solid #515151;background:#303030ed;color:#fff;width:48px;height:48px;border-radius:50%;font-size:24px;cursor:pointer;box-shadow:0 5px 20px #0006;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .25s,transform .25s,visibility .25s}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:#0096fa;border-color:#0096fa}
@media(max-width:600px){.admin-tab{padding:12px 13px;font-size:13px}.back-to-top{right:14px;bottom:16px;width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.back-to-top{transition:none}}

/* v0.4.2: status beside edit/preview; reversible image expansion */
.admin-item{position:static;flex-wrap:nowrap;padding:13px 0;gap:14px}
.admin-item-actions{display:flex;flex:0 0 auto!important;align-items:center;justify-content:flex-end;gap:15px;min-width:0}
.admin-item-actions .post-status{position:static;display:inline-flex;align-items:center;max-width:100%;font-size:11px;font-weight:700;border-radius:4px;padding:3px 9px;white-space:nowrap}
.expand-images button:disabled{cursor:pointer;background:#f5f5f5;color:#242424}
@media(max-width:680px){.admin-item{flex-wrap:wrap}.admin-item-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:10px}.admin-item-actions .post-status{white-space:normal}}

/* v0.4.4: pixiv-style tabs — white active text, blue underline only */
.chip.active,.chip:hover{color:#f5f5f5!important;border-bottom-color:#0096fa}
.admin-tab.active,.admin-tab:hover{color:#f5f5f5!important;border-bottom-color:#0096fa}

/* v0.5 typography, pagination, pinning, profile, true on-demand admin panels */
.chip:hover,.admin-tab:hover{border-bottom-color:transparent!important;color:#f5f5f5!important}.chip.active,.admin-tab.active{border-bottom-color:#0096fa!important;color:#f5f5f5!important}
.chip,.admin-tab{transition:color .22s ease,font-weight .22s ease}.chip:hover,.admin-tab:hover{font-weight:800}
.pagination{align-items:center;gap:15px}.pagination a,.pagination a.current{background:transparent!important;color:#ddd;padding:8px 9px;border-radius:0;transition:color .2s ease}.pagination a.current{color:#0096fa!important;font-weight:800}.pagination a:hover{color:#fff}
.pinned-works,.latest-works{margin:28px 0}.pinned-works h2,.latest-works h2{font-size:17px;font-weight:700;margin:12px 0 18px}.pinned-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}.pinned-works{padding-bottom:24px;border-bottom:1px solid #383838}
.admin-lazy-frame{display:block;width:100%;height:350px;border:0;background:transparent;overflow:hidden}.admin-tab-panel{max-width:900px;margin:0 auto}.admin-embed{background:#1f1f1f;padding:0 5px;overflow-x:hidden}.admin-embed .admin-list{margin:20px auto}.admin-embed .admin-item{gap:12px}.pin-checkbox{display:flex;flex-direction:column;align-items:center;font-size:11px;color:#aaa;gap:3px;cursor:pointer}.pin-checkbox input{accent-color:#0096fa;width:18px;height:18px}.pin-actions{display:flex;gap:14px;align-items:center;justify-content:flex-end;margin:20px 0}.pin-actions button{background:#0096fa;color:white;border:0;border-radius:6px;padding:10px 18px;font-weight:700}.pin-actions small{color:#aaa}.admin-item-title{flex:1;min-width:0}
.settings-panel{margin:20px auto}.settings-preview{display:block;max-width:100%;object-fit:cover;border-radius:7px;background:#1c1c1c}.header-preview{width:100%;aspect-ratio:3/1}.avatar-preview{width:100px;height:100px;border-radius:50%}.crop-dialog{background:#282828;color:#fff;border:1px solid #555;border-radius:12px;width:min(94vw,780px);max-height:90vh;overflow:auto;padding:20px}.crop-dialog::backdrop{background:#000b}.crop-dialog p{color:#bbb;font-size:13px}.crop-stage{background:#151515;overflow:hidden}.crop-stage canvas{width:100%;height:auto;display:block;touch-action:none;cursor:grab}.crop-dialog label{display:block;margin:16px 0}.crop-dialog input[type=range]{width:100%;accent-color:#0096fa}.crop-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.crop-actions button{padding:10px 15px;border:1px solid #555;background:#333;color:#fff;border-radius:6px;cursor:pointer}.crop-actions button.primary{background:#0096fa;border:0}
.profile-page{max-width:960px;margin:40px auto 80px;background:#272727;border-radius:10px;overflow:hidden}.profile-cover{aspect-ratio:3/1;background:linear-gradient(115deg,#383838,#222);overflow:hidden}.profile-cover img{width:100%;height:100%;object-fit:cover}.profile-body{padding:0 30px 40px}.profile-identity{display:flex;align-items:flex-end;gap:18px;margin-top:-36px;position:relative}.profile-avatar{width:112px;height:112px;border-radius:50%;border:5px solid #272727;object-fit:cover;background:#333}.profile-placeholder{display:grid;place-items:center;font-size:36px}.profile-identity h1{margin:0;font-size:26px}.profile-identity span{color:#aaa;font-size:13px}.profile-bio{white-space:normal;line-height:1.9;margin:28px 0;color:#ddd}.profile-links{display:flex;flex-wrap:wrap;gap:12px}.profile-links a{border:1px solid #494949;border-radius:7px;padding:10px 17px;font-size:13px}.profile-links a:hover{border-color:#0096fa}
@media(max-width:680px){.pinned-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pin-checkbox{flex-direction:row}.admin-embed .admin-item{flex-wrap:wrap}.profile-body{padding:0 18px 28px}.profile-avatar{width:88px;height:88px}.profile-identity h1{font-size:21px}.admin-tabs{gap:0}.admin-tab{padding:12px 14px}}

/* v0.5.1: ensure embedded admin tabs and profile form occupy the full content width */
#admin-list-panel,#admin-settings-panel{display:block;width:100%;max-width:900px;min-width:0;margin-inline:auto}
#admin-list-panel[hidden],#admin-settings-panel[hidden]{display:none!important}
#admin-list-panel iframe,#admin-settings-panel iframe{display:block;width:100%!important;min-width:100%!important;max-width:100%;box-sizing:border-box;border:0}
.admin-embed{width:100%;min-width:0;box-sizing:border-box}
.admin-embed .settings-panel{display:block;width:calc(100% - 20px);max-width:860px;box-sizing:border-box;margin:20px auto}
@media(max-width:600px){.admin-embed .settings-panel{width:calc(100% - 10px);padding:16px}}
/* v0.5.2: tab content always fills the same width as the tab bar. */
.admin-tabs,#admin-compose,#admin-list-panel,#admin-settings-panel{width:100%;max-width:900px;min-width:0;box-sizing:border-box;margin-left:auto;margin-right:auto}
#admin-list-panel,#admin-settings-panel{overflow:visible}
#admin-list-panel iframe,#admin-settings-panel iframe{display:block!important;width:100%!important;min-width:100%!important;max-width:100%!important;border:0!important;box-sizing:border-box!important}

/* v0.5.3: consistent dark UI and gallery details */
.pinned-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
.pinned-works h2,.latest-works h2{font-size:20px!important;color:rgb(214,214,214)!important;font-weight:700;line-height:1.4}
.count{display:inline-flex;align-items:center;gap:5px;border-radius:999px!important;background:rgba(0,0,0,.76)!important;padding:4px 10px!important;color:#fff;font-weight:650;line-height:1.2}
.count-symbol{display:inline-block;width:12px;height:12px;position:relative;border:1.5px solid currentColor;border-radius:3px;flex:none}
.count-symbol::after{content:'';position:absolute;inset:2px 2px auto auto;width:6px;height:6px;border:1.3px solid currentColor;border-radius:1px;background:rgba(0,0,0,.6)}
.admin-tabs .admin-tab{background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;color:#aaa!important;box-shadow:none!important;outline-offset:3px;transition:color .22s ease,background-color .22s ease!important;font-weight:600!important}
.admin-tabs .admin-tab:hover:not(.active){color:#f5f5f5!important;border-bottom-color:transparent!important;background:transparent!important;font-weight:700!important}
.admin-tabs .admin-tab.active,.admin-tabs .admin-tab.active:hover{color:#f5f5f5!important;border-bottom-color:#0096fa!important;background:transparent!important;font-weight:700!important}
.admin-tabs .admin-tab:focus:not(:focus-visible){outline:none!important}
/* Embedded documents must occupy the same wide canvas as the parent tabs. */
#admin-list-panel,#admin-settings-panel{display:block!important;max-width:900px;width:100%!important;min-width:0!important;margin-inline:auto!important}
#admin-list-panel[hidden],#admin-settings-panel[hidden]{display:none!important}
#admin-list-panel .admin-lazy-frame,#admin-settings-panel .admin-lazy-frame{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;border:0!important;box-sizing:border-box!important}
.admin-embed{width:100%!important;min-width:0!important;margin:0!important;padding:0 12px!important}
.admin-embed .admin-list{width:100%!important;max-width:900px!important;margin:20px auto!important}
.admin-embed .settings-panel{width:100%!important;max-width:860px!important;margin:20px auto!important}
@media(max-width:680px){.pinned-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pinned-works h2,.latest-works h2{font-size:20px!important}}

/* v0.5.4: gallery card polish and compact responsive crop editor */
.work-info{padding:5px 3px 0!important}
.work-info h2{font-size:14px!important;line-height:1.4!important;margin:0!important;font-weight:700}
.cover .count{top:5px!important;right:5px!important;background:rgba(0,0,0,.53)!important;border-radius:999px!important;padding:3px 8px!important;gap:4px!important;backdrop-filter:blur(3px)}
.crop-dialog{box-sizing:border-box;width:min(92vw,740px)!important;max-width:92vw!important;max-height:min(88dvh,820px)!important;overflow-y:auto!important;padding:clamp(12px,2vw,20px)!important;overscroll-behavior:contain}
.crop-dialog h3{margin:0 0 6px}.crop-dialog p{margin:0 0 12px}
.crop-stage{width:100%;display:flex;justify-content:center;align-items:center;max-height:min(52dvh,440px);border-radius:8px}
.crop-stage canvas{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:min(52dvh,440px)!important;object-fit:contain}
.crop-dialog[data-kind="avatar"] .crop-stage{max-height:min(44dvh,370px)}
.crop-dialog[data-kind="avatar"] .crop-stage canvas{max-height:min(44dvh,370px)!important;border-radius:50%}
.crop-dialog label{margin:10px 0!important}.crop-actions{position:sticky;bottom:-1px;background:#282828;padding:10px 0 0;z-index:2}
@media(max-width:600px){.crop-dialog{max-height:90dvh!important;width:96vw!important;max-width:96vw!important}.crop-stage,.crop-stage canvas{max-height:43dvh!important}.crop-dialog[data-kind="avatar"] .crop-stage,.crop-dialog[data-kind="avatar"] .crop-stage canvas{max-height:38dvh!important}}

/* v0.5.5 compact profile matching the reference mockup */
.profile-page{max-width:768px;margin:28px auto 64px;border-radius:12px}
.profile-cover{height:130px;aspect-ratio:auto}
.profile-cover img{width:100%;height:100%;object-fit:cover;object-position:center}
.profile-body{padding:0 16px 18px}
.profile-identity{align-items:center;gap:14px;margin-top:14px}
.profile-avatar{width:68px;height:68px;flex:0 0 68px;border:0}
.profile-identity h1{font-size:19px;line-height:1.4}
.profile-identity span{font-size:12px}
.profile-bio{margin:12px 0 16px;line-height:1.7;font-size:13px}
.profile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-top:1px solid #444;padding-top:16px}
.profile-links a{display:flex;align-items:center;padding:10px 12px;font-size:13px;min-width:0}
@media(max-width:600px){.profile-page{margin:14px 12px 32px}.profile-cover{height:110px}.profile-body{padding:0 12px 16px}.profile-avatar{width:58px;height:58px;flex-basis:58px}.profile-links{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-links a{font-size:12px;padding:9px 8px}}

/* v0.5.6 UI stability and cleaner profile */
.chip,.admin-tab{font-weight:600!important;font-size:13px!important;transition:color .22s ease,opacity .22s ease!important;transform:none!important;text-shadow:none!important}
.chip:hover,.chip.active,.admin-tab:hover,.admin-tab.active{font-weight:600!important;font-size:13px!important;transform:none!important;text-shadow:none!important}
.chip:hover:not(.active),.admin-tab:hover:not(.active){border-bottom-color:transparent!important}
.work-info span,.work-info time{display:none!important}
.profile-links{border-top:0!important;padding-top:0!important}
.profile-bio{margin-bottom:20px!important}
.profile-file-field{display:flex;flex-direction:column;gap:8px;margin:0 0 18px}
.profile-file-field>label{font-size:13px;font-weight:650;cursor:default}
.profile-file-field>input[type=file]{display:block;max-width:100%;font-size:13px}
.profile-file-field>.settings-preview{display:block;cursor:default!important;pointer-events:none!important}
@media(max-width:600px){.chip,.admin-tab,.chip:hover,.admin-tab:hover{font-size:13px!important}}

/* v0.5.7: keep the crop editor near the visible top of its embedded settings frame. */
.crop-dialog{position:fixed!important;top:16px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin:0!important;max-height:calc(100dvh - 32px)!important;z-index:9999!important}
@media(max-width:600px){.crop-dialog{top:8px!important;max-height:calc(100dvh - 16px)!important}}
/* More breathing room and an inline SVG for the multiple-image count. */
.cover .count{top:5px!important;right:5px!important;padding:5px 11px!important;gap:6px!important;line-height:1.3!important}
.count-symbol{display:inline-flex!important;align-items:center;justify-content:center;width:15px!important;height:15px!important;border:0!important;border-radius:0!important;background:none!important}
.count-symbol::after{display:none!important}
.count-symbol svg{display:block;width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linejoin:round}

/* v0.5.8: one consistent header crop across editor, preview and public profile */
.profile-cover {
  height: auto !important;
  aspect-ratio: 24 / 5 !important;
}
.profile-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.header-preview {
  width: 100%;
  height: auto !important;
  aspect-ratio: 24 / 5 !important;
  object-fit: fill;
}
@media (max-width:600px) {
  .profile-cover { height: auto !important; aspect-ratio: 24 / 5 !important; }
}

/* v0.5.9: compact, public-profile-like image settings; crop dimensions unchanged */
.admin-embed .profile-media-settings {
  display:flex;flex-direction:column;gap:0;margin:0 0 22px;
  border:1px solid #424242;border-radius:11px;overflow:hidden;
  background:#242424;
}
.admin-embed .profile-media-settings .profile-header-field {
  margin:0;gap:7px;padding:14px 14px 0;
}
.admin-embed .profile-media-settings .header-preview {
  margin-top:4px;border-radius:7px 7px 0 0;
  width:100%;height:auto!important;aspect-ratio:24/5!important;
  object-fit:fill!important;
}
.admin-embed .profile-media-settings .profile-avatar-field {
  display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-end;
  gap:15px;padding:14px;margin:0;min-height:94px;
}
.admin-embed .profile-avatar-field .avatar-preview {
  flex:0 0 64px;width:64px;height:64px;border-radius:50%;
  object-fit:cover;pointer-events:none;
}
.admin-embed .profile-avatar-controls {display:flex;flex-direction:column;gap:6px;min-width:0}
.admin-embed .profile-avatar-controls label {font-size:13px;font-weight:650}
.admin-embed .profile-avatar-controls p {font-size:12px;margin:0;color:#aaa}
.admin-embed .profile-avatar-controls input[type=file] {font-size:12px;max-width:100%}
@media(max-width:600px) {
 .admin-embed .profile-media-settings .profile-header-field {padding:10px 10px 0}
 .admin-embed .profile-media-settings .profile-avatar-field {padding:12px;gap:10px}
 .admin-embed .profile-avatar-field .avatar-preview {flex-basis:54px;width:54px;height:54px}
}

/* v0.6.0: roomier desktop header; mobile unchanged */
@media (min-width: 601px) {
  .sitehead { height: 75px; padding: 0 max(7vw, 24px); }
}

/* v0.6.1: desktop header navigation readability */
@media (min-width: 601px) { .sitehead nav { font-size: 14px; } }

/* v0.6.2: keep desktop header centered and prevent narrow-window overflow */
.sitehead { min-width:0; }
.sitehead .brand { display:flex; align-items:center; min-width:0; flex-shrink:1; }
.sitehead .brand strong { min-width:0; }
.sitehead nav { align-items:center; flex-shrink:0; white-space:nowrap; }
@media (min-width:601px) and (max-width:900px) {
  .sitehead { padding-left:24px; padding-right:24px; gap:12px; }
  .sitehead nav { gap:clamp(10px, 2vw, 20px); font-size:13px; }
  .sitehead .brand { font-size:clamp(12px, 1.6vw, 16px); letter-spacing:0; }
  .sitehead .mark { flex-shrink:0; margin-right:7px; }
}
@media (min-width:601px) and (max-width:700px) {
  .sitehead { padding-left:16px; padding-right:16px; }
  .sitehead nav { gap:10px; font-size:12px; letter-spacing:0.03em; }
  .sitehead .brand { font-size:12px; }
  .sitehead .mark { width:29px; height:29px; margin-right:5px; }
}

/* Narrow screens: optical vertical alignment for header navigation */
@media (max-width: 600px) {
  .sitehead nav {
    transform: translateY(2px);
  }
}

/* v0.6.3: consistent 4:1 profile cover, clearer biography and avatar */
.profile-cover,
.header-preview,
.admin-embed .profile-media-settings .header-preview {
  height:auto!important;
  aspect-ratio:4 / 1!important;
}
.profile-bio { font-size:14px!important; }
.profile-avatar { width:80px!important; height:80px!important; flex:0 0 80px!important; }
@media (max-width:600px) {
  .profile-cover { height:auto!important; aspect-ratio:4 / 1!important; }
  .profile-avatar { width:70px!important; height:70px!important; flex-basis:70px!important; }
}

/* Touch-friendly photo order handle (mobile/tablet only) */
.preview-actions .photo-drag-handle{display:inline-flex;align-items:center;min-height:36px;padding:6px 8px;margin:-6px -8px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.preview-card.touch-sorting{opacity:.78;outline:2px solid var(--accent,#0096fa);z-index:3;position:relative}

/* vrc-photo: simple mobile photo ordering + one unified file picker */
/* The upload label remains the accessible clickable file-picker trigger. */
.drop{position:relative}
.drop input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important}
.mobile-sort-controls{display:none}
@media(max-width:600px){
 .preview-card{cursor:default}
 .preview-actions .desktop-drag-label{display:none!important}
 .mobile-sort-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .panel .mobile-sort-controls .mobile-sort-button{background:#363636;color:#f4f4f4;border:1px solid #565656;border-radius:7px;padding:9px 12px;font-size:13px;min-height:40px;touch-action:manipulation}
 .panel .mobile-sort-controls .mobile-sort-button:disabled{opacity:.35;cursor:default}
 .preview-actions{gap:10px}
}

/* v0.7: spacious work rows, bulk tools and feedback */
.admin-embed .admin-item.work-row{padding:13px 0!important;gap:14px!important;border-bottom:1px solid #393939;align-items:center}
.work-row .admin-item-title{line-height:1.55}.work-row .admin-item-title small{display:block;line-height:1.6;margin-top:5px}
.bulk-checkbox,.work-row .pin-checkbox{flex:0 0 auto;display:flex;align-items:center;justify-content:center;min-width:23px}
.bulk-checkbox input,.work-row .pin-checkbox input{width:19px;height:19px;accent-color:#0096fa;cursor:pointer}
.works-toolbar,.bulk-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0 18px}
.works-toolbar{justify-content:space-between}.works-toolbar select,.bulk-toolbar select{width:auto;max-width:100%;min-height:38px;background:#292929;color:#fff;border:1px solid #4a4a4a;border-radius:7px;padding:6px 10px}
.bulk-toolbar{background:#252525;border:1px solid #3b3b3b;border-radius:10px;padding:12px}
.bulk-toolbar label{display:flex;align-items:center;gap:7px;white-space:nowrap}.bulk-toolbar button{padding:10px 14px;border-radius:7px}
#pin-feedback{color:#9bdfb8;font-size:12px}.edit-cancel-top{margin:10px 0 14px}.edit-cancel-top a{display:inline-block;border:1px solid #4a4a4a;border-radius:7px;padding:10px 14px;text-decoration:none}
.drop.drop-active{border-color:#0096fa!important;background:rgba(0,150,250,.09)!important}
@media(max-width:680px){.admin-embed .admin-item.work-row{gap:14px!important;padding:13px 0!important}.work-row .admin-item-title{flex-basis:calc(100% - 155px)}.work-row .admin-item-actions{padding-left:45px}.bulk-toolbar{align-items:stretch}.bulk-toolbar select,.bulk-toolbar button{flex:1 1 160px}}

.crop-new-photo{background:#303b48;border:1px solid #53677b;border-radius:6px;color:#d6eafa;padding:8px 10px;cursor:pointer}.upload-crop-dialog{width:min(94vw,820px)}.upload-crop-dialog .crop-stage canvas{touch-action:none;cursor:grab;aspect-ratio:16/9}


/* v0.7.1: public gallery spacing only; keep 4 desktop / 2 mobile columns.
   Admin "投稿した作品" layout intentionally stays at its previous design. */
@media (min-width: 681px) {
  .latest-works .gallery, .pinned-works .gallery { column-gap: 22px; row-gap: 36px; }
}
@media (max-width: 680px) {
  .latest-works .gallery, .pinned-works .gallery { column-gap: 14px; row-gap: 28px; }
}
.latest-works .work-info, .pinned-works .work-info { padding-top: 9px!important; }
/* v0.7.2: 投稿した作品の操作モードを整理 */
.admin-embed .works-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-wrap:wrap;margin:20px 0 14px}
.admin-embed .sort-label{display:flex;align-items:center;gap:12px;font-weight:700;color:#d9e1ed}
.admin-embed .select-shell{display:inline-flex;position:relative;min-width:0}
.admin-embed .select-shell:after{content:"";position:absolute;right:13px;top:50%;width:7px;height:7px;border-right:2px solid #9fb3ca;border-bottom:2px solid #9fb3ca;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.admin-embed .select-shell select,.admin-embed .works-toolbar select,.admin-embed .bulk-toolbar select{appearance:none;-webkit-appearance:none;background:#292b30!important;color:#eef4ff!important;border:1px solid #454c58!important;border-radius:9px!important;padding:10px 35px 10px 14px!important;min-height:42px;font-size:14px;font-weight:600;cursor:pointer}
.admin-embed .select-shell select:focus-visible,.admin-embed button:focus-visible{outline:2px solid #159dff;outline-offset:3px}
.admin-embed .bulk-mode-button{border:1px solid #2877ad;background:#17334a;color:#91d1ff;padding:10px 17px;border-radius:9px;font-weight:700;cursor:pointer;min-height:42px}
.admin-embed .bulk-mode-button[aria-expanded="true"]{background:#087fc7;color:#fff;border-color:#087fc7}
.admin-embed #pin-feedback{margin-left:auto;color:#70d8b2;font-size:12px}
.admin-embed .bulk-toolbar[hidden]{display:none!important}
.admin-embed .bulk-toolbar{display:flex;gap:10px;align-items:center;background:#242930;border:1px solid #3c5266;border-radius:11px;padding:14px;margin:12px 0 16px}
.admin-embed #bulk-count{color:#a9c9e7;font-weight:700;white-space:nowrap}
.admin-embed .bulk-apply{background:#0099f6!important;border:1px solid #0099f6!important;color:white!important;font-weight:700;cursor:pointer;min-height:42px;padding:10px 19px!important}
.admin-embed .bulk-cancel{background:transparent;border:1px solid #555d69;border-radius:8px;color:#d4dce8;min-height:42px;padding:9px 14px;cursor:pointer}
.admin-embed .work-row{transition:background .15s,border-color .15s;border-radius:8px;padding-left:8px!important;padding-right:8px!important}
.admin-embed .work-row.is-selected{background:rgba(0,150,250,.14);box-shadow:inset 0 0 0 1px rgba(36,165,255,.55)}
.admin-embed .work-row .bulk-checkbox{display:none!important}
.admin-embed .bulk-active .work-row .bulk-checkbox{display:flex!important}
.admin-embed .work-row .pin-auto{display:none!important}
.admin-embed .pin-toggle{border:1px solid #454b54;background:transparent;color:#b6bdc8;border-radius:7px;padding:5px 8px;cursor:pointer;font-size:11px;white-space:nowrap}
.admin-embed .pin-toggle.is-pinned{color:#f4cf79;background:#453a22;border-color:#8c713c}
.admin-embed .pin-toggle:disabled{opacity:.3;cursor:not-allowed}
@media(max-width:680px){.admin-embed .work-row .admin-item-actions{padding-left:0!important;gap:9px}.admin-embed .bulk-toolbar{align-items:stretch}.admin-embed .bulk-toolbar .select-shell{flex:1 1 180px}.admin-embed .bulk-toolbar select{width:100%!important}.admin-embed #pin-feedback{margin-left:0}.admin-embed .pin-toggle{font-size:11px}}

/* v0.7.5: works list pagination and per-page selector */
.admin-embed .works-per-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.admin-embed .works-per-label .select-shell{min-width:92px}
.admin-embed .works-page-footer{display:flex;flex-direction:column;align-items:center;gap:10px;margin:24px 0 10px}
.admin-embed .works-page-count{color:#aab1bf;font-size:13px}
.admin-embed .works-pagination{margin:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px}
.admin-embed .works-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:6px 11px;border-radius:8px!important;border:1px solid #414650;background:#282b31!important;color:#e2e6ee!important;font-size:13px;font-weight:600}
.admin-embed .works-pagination a.current{background:#0b89d1!important;border-color:#0b89d1;color:#fff!important;pointer-events:none}
.admin-embed .works-pagination a:hover:not(.current){background:#343b47!important;border-color:#69778a}
.admin-embed .works-pagination .page-ellipsis{color:#9da8b8;padding:0 3px}
@media(max-width:680px){.admin-embed .works-per-label{font-size:13px}.admin-embed .works-pagination a{min-width:33px;min-height:34px;padding:5px 8px}.admin-embed .works-page-footer{margin-top:18px}}

/* v0.7.5.1: restore v0.7.3 status controls */
/* v0.7.3: clean actions and publication state */
.admin-embed .bulk-mode-button,.admin-embed .bulk-mode-button[aria-expanded="true"]{background:#292b30;color:#eef4ff;border:1px solid #454c58}
.admin-embed .pin-toggle:not(.is-pinned){border:0;background:transparent;color:#b6bdc8}
.admin-embed .pin-toggle.is-pinned{border:1px solid #8c713c}
.admin-embed .status-toggle{appearance:none;-webkit-appearance:none;background:#1c493a;color:#91f0c2;border:1px solid transparent;border-radius:6px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;max-width:115px}
.admin-embed .status-toggle:has(option[value="draft"]:checked){background:#41434a;color:#e5e8ef}
.admin-embed .status-toggle:has(option[value="scheduled"]:checked){background:#4c3b20;color:#f5d59b}
.admin-embed .status-toggle:disabled{opacity:.65;cursor:wait}
.admin-embed .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}

/* v0.7.6: unify admin pagination with the public gallery */
.admin-embed .works-pagination{gap:15px;margin:0}
.admin-embed .works-pagination a,.admin-embed .works-pagination a.current{min-width:0;min-height:0;padding:8px 9px;border:0!important;border-radius:0!important;background:transparent!important;color:#ddd!important;font-size:14px;font-weight:400;transition:color .2s ease}
.admin-embed .works-pagination a.current{color:#0096fa!important;font-weight:800;pointer-events:none}
.admin-embed .works-pagination a:hover:not(.current){background:transparent!important;border:0!important;color:#fff!important}
.admin-embed .works-page-footer{gap:6px}
.admin-embed .works-page-count,.gallery-page-count{display:block;text-align:center;color:#aeb7ca;font-size:12px;font-weight:400}
.gallery-page-count{margin:-28px 0 38px}
@media(max-width:680px){.admin-embed .works-pagination a,.admin-embed .works-pagination a.current{min-width:0;min-height:0;padding:8px 7px}}

/* v0.7.6.1: align the per-page dropdown chevron without affecting other selects */
.admin-embed .works-per-label .select-shell{display:inline-flex;align-items:center;position:relative;min-width:100px}
.admin-embed .works-per-label .select-shell select{width:100%!important;min-width:100px;padding-right:44px!important;appearance:none!important;-webkit-appearance:none!important}
.admin-embed .works-per-label .select-shell::after{right:18px;top:50%;transform:translateY(-70%) rotate(45deg)}

/* v0.8.1 — refined public dark-mode header and gallery spacing */
.sitehead{width:100%;padding:0 28px!important;background:#292929;border-bottom:0;justify-content:center;}
.sitehead-inner{width:100%;max-width:1164px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;}
/* Main .wrap is max-width:1220px including 28px padding on both sides. */
body{background:#202020;}
.filters{border-bottom:1px solid #343434;}
/* Keep the active filter underline; let whitespace separate gallery sections. */
.pinned-section,.recent-section{border-color:transparent;}
@media(max-width:600px){.sitehead{padding:0 15px!important}.sitehead-inner{gap:8px}.sitehead nav{gap:10px}}

/* v0.8.2 — public gallery: less chrome, more breathing room */
/* Match the public content and header alignment while preserving side gutters. */
.wrap{max-width:1260px;}
.sitehead-inner{max-width:1204px;}
/* Keep the selected category underline, remove only the full-width rule. */
.filters{border-bottom:0!important;}
/* Separate sections through spacing rather than horizontal borders. */
.pinned-works{border-bottom:0!important;padding-bottom:0;margin-bottom:44px;}
.latest-works{margin-top:0;}
/* Increase existing public card spacing by exactly 5px. */
@media(min-width:681px){
  .latest-works .gallery,.pinned-works .gallery{column-gap:27px;row-gap:41px;}
}
@media(max-width:680px){
  .latest-works .gallery,.pinned-works .gallery{column-gap:19px;row-gap:33px;}
}
@media(max-width:600px){.sitehead-inner{max-width:none;}}

/* v0.8.3 — detail: understated photo metadata and sharing */
.detail-toolbar{max-width:1000px;margin:4px auto 30px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.detail-publish{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#aaa;line-height:1.65;font-variant-numeric:tabular-nums}
.detail-publish .detail-category{color:#c9c9c9}
.detail-share{display:flex;align-items:center;gap:9px}
.detail-share-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 13px;border:1px solid #393939;border-radius:8px;background:#292929;color:#eaeaea;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.detail-share-button:hover,.detail-share-button:focus-visible{background:#363636;border-color:#555;color:#fff}
.detail-share-button:focus-visible{outline:2px solid #159dff;outline-offset:2px}
.share-x{font-size:15px;font-weight:700;line-height:1}
.post-footer{border-top:0!important;margin-top:32px!important;padding-top:0!important}
.post-taxonomy{margin-top:24px;font-size:13px;color:#bdbdbd;display:flex;flex-direction:column;gap:6px}
.taxonomy-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}
.taxonomy-row>a,.taxonomy-links a{color:#159dff;text-decoration:none}
.taxonomy-row>a:hover,.taxonomy-links a:hover{text-decoration:underline;text-underline-offset:3px;color:#7bd0ff}
.taxonomy-links{display:flex;flex-wrap:wrap;gap:6px 10px}
@media(max-width:600px){.detail-toolbar{align-items:flex-start;margin-bottom:25px}.detail-share{width:100%}.detail-share-button{flex:1;padding:9px 10px}.post-footer{margin-top:25px!important}}

/* v0.8.4 — metadata above the photograph and lightweight recommendations */
.detail-toolbar{margin:22px auto 28px;max-width:1000px;}
.post-footer h2{font-size:clamp(22px,3vw,25px)!important;}
.detail-recommendations{max-width:1000px;margin:54px auto 18px;}
.detail-recommendations>h2{font-size:20px;line-height:1.4;margin:0 0 19px;color:#e5e5e5;font-weight:700;}
.detail-recommendation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;}
.detail-recommendation{display:block;min-width:0;color:#e8e8e8;text-decoration:none;}
.detail-recommendation-cover{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:#181818;}
.detail-recommendation-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease;}
.detail-recommendation:hover .detail-recommendation-cover img{transform:scale(1.025);}
.detail-recommendation-title{display:block;margin-top:8px;font-size:13px;font-weight:600;line-height:1.55;overflow-wrap:anywhere;}
.detail-recommendation:hover .detail-recommendation-title{color:#65bdff;}
@media(max-width:680px){.detail-recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px}.detail-recommendations{margin-top:44px}.detail-toolbar{margin-top:22px;margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.detail-recommendation-cover img{transition:none}}


/* v0.8.5 — typography, quieter links and recommendation separator */
/* Readable Japanese/Latin system stack; exact ysoft font pending source CSS verification. */
body{font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,-apple-system,BlinkMacSystemFont,sans-serif;}
.sitehead nav a{font-weight:700;}
/* Keep brand blue for the hero and selected category; soften action links only. */
.back,.back:link,.end-nav a,.end-nav a:link,.adminbar>a,.admin-item a,.photo-actions a,.taxonomy-row>a,.taxonomy-links a{color:#4c8fe8;text-decoration:none;}
.back:hover,.end-nav a:hover,.adminbar>a:hover,.admin-item a:hover,.photo-actions a:hover,.taxonomy-row>a:hover,.taxonomy-links a:hover{color:#75abf5;text-decoration:none;}
.photo-actions a{font-weight:400;font-size:14px;text-decoration:none;}
/* The back-to-gallery link now precedes recommendations. Equal 24px rhythm. */
.end-nav{max-width:1000px;margin:42px auto 0;padding:0 0 24px;border-bottom:1px solid #383838;font-size:14px;}
.detail-recommendations{margin:24px auto 18px;}
@media(max-width:680px){.end-nav{margin-top:34px;padding-bottom:24px}.detail-recommendations{margin-top:24px;}}

/* v0.8.6 — brand hierarchy and compact detail metadata */
.sitehead .brand{display:inline-flex;align-items:center;line-height:1;}
.sitehead .brand-svg{display:block;width:205px;height:30px;max-width:100%;object-fit:contain;object-position:left center;}
.hero .eyebrow{display:none;}
.hero h1{margin:0 0 14px;line-height:1.12;}
.hero-site-name{display:block;color:#fff;font-size:clamp(34px,5vw,54px);font-weight:800;letter-spacing:-.035em;white-space:nowrap;}
.hero-studio{color:#168fff;}
.hero-photography{display:block;color:#fff;font-size:clamp(27px,3.5vw,38px);font-weight:700;letter-spacing:-.025em;margin-top:8px;}
.hero p{margin:18px 0 0;}
.detail-toolbar{margin-bottom:18px;}
@media(max-width:600px){.sitehead .brand-svg{width:153px;height:25px}.hero-site-name{font-size:clamp(29px,8vw,40px)}.hero-photography{font-size:clamp(25px,7vw,32px);margin-top:7px}.detail-toolbar{margin-bottom:18px;}}

/* v0.8.7: genuine Montserrat outlines for brand-only assets (no Google Fonts request). */
.hero .hero-wordmark{display:block;width:min(100%, 422px);height:auto;}
.sitehead .brand-svg{width:205px;height:auto;}
@media(max-width:600px){.sitehead .brand-svg{width:153px;height:auto;}}

/* v0.8.8 - Profile statuses and boundaries */
.profile-extras{margin:30px 0 26px;display:grid;gap:26px}
.profile-extra-section h2{font-size:19px;line-height:1.4;margin:0 0 15px;font-weight:700}
.profile-status-list{display:grid;gap:12px}
.profile-status{display:flex;align-items:center;gap:12px;color:#dedede;font-size:14px;line-height:1.6}
.profile-status-dot{flex:0 0 14px;width:14px;height:14px;border-radius:50%}
.profile-boundaries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.profile-boundary{border:1px solid #505050;border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:#ddd}
.profile-extra-editor{margin:24px 0 12px;padding-top:18px;border-top:1px solid #444}
.profile-extra-editor h3{margin:12px 0;font-size:18px}
.profile-extra-editor .muted{margin-bottom:14px}
@media(max-width:680px){.profile-extras{gap:24px}.profile-boundaries{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-boundary{padding:10px 11px;font-size:13px}}
@media(max-width:380px){.profile-boundaries{grid-template-columns:1fr}}

/* v0.8.9 profile refinements */
.profile-identity h1{font-size:20px}
.profile-links-section{margin:24px 0 26px}
.profile-links-section h2,.profile-extra-section h2{font-size:15px;line-height:1.5;font-weight:700;margin:0 0 14px}
.profile-extras{margin:0 0 12px;gap:24px}
.profile-status-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:12px}
.boundary-editor-label{display:block;margin:12px 0 6px}
.boundary-editor-row{display:flex;align-items:stretch;gap:8px;margin-bottom:8px}
.boundary-editor-row input{flex:1;min-width:0}
.boundary-editor-row select{flex:0 0 92px;width:92px;background:#292929;color:#f5f5f5;border:1px solid #505050;border-radius:6px;padding:8px;min-height:42px}
@media(max-width:600px){.profile-status-list{grid-template-columns:1fr}.profile-identity h1{font-size:20px}}

/* v0.9.0: Profile bio +1px (14px -> 15px) */
.profile-page .profile-bio{font-size:15px!important}

/* v0.9.1: Responsive status columns based on available card width. */
.profile-status-list{grid-template-columns:repeat(auto-fit,minmax(min(100%, 145px),1fr));}
@media(max-width:600px){.profile-status-list{grid-template-columns:repeat(auto-fit,minmax(min(100%, 145px),1fr));}}

/* v0.9.3: Limit status grid to 2 columns, switch to 1 only when narrow */
.profile-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
@media (max-width: 380px) {
  .profile-status-list { grid-template-columns: minmax(0, 1fr); }
}

/* v0.9.5 - profile owner quick edit link */
.profile-edit-toolbar{max-width:960px;margin:30px auto -28px;display:flex;justify-content:flex-end;align-items:center}
.profile-edit-toolbar a{color:#168fff;font-size:14px;font-weight:600;text-decoration:none}
.profile-edit-toolbar a:hover{color:#65b6ff;text-decoration:none}
@media(max-width:800px){.profile-edit-toolbar{margin:18px 12px -8px}}


/* v0.9.10 — mobile single-row category rail with a visible overflow cue */
.filter-scroll-shell{position:relative;min-width:0}
.filter-scroll-cue{display:none}
@media(max-width:680px){
  .filter-scroll-shell{margin:0 0 26px;isolation:isolate}
  .filter-scroll-shell .filters{
    display:flex;flex-wrap:nowrap!important;align-items:stretch;
    gap:5px;min-width:0;width:100%;overflow-x:auto;overflow-y:hidden;
    margin:0!important;padding:0 20px 0 0;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    scrollbar-width:none;scroll-snap-type:x proximity;
  }
  .filter-scroll-shell .filters::-webkit-scrollbar{display:none}
  .filter-scroll-shell .chip{
    flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;
    padding:11px 13px!important;
  }
  .filter-scroll-shell::after{
    content:"";position:absolute;right:0;top:0;bottom:0;width:43px;
    pointer-events:none;z-index:1;
    background:linear-gradient(to right,rgba(31,31,31,0),#1f1f1f 83%);
  }
  .filter-scroll-cue{
    display:flex;align-items:center;justify-content:center;
    position:absolute;right:0;top:0;bottom:0;width:16px;
    color:#70c3ff;font-size:22px;font-weight:700;
    pointer-events:none;z-index:2;
  }
}

/* v0.9.11 — centered scroll chevron and discoverability label */
@media(max-width:680px){
  .filter-scroll-shell{padding-top:19px}
  .filter-scroll-hint{
    display:block;position:absolute;top:0;right:2px;
    color:#9d9d9d;font-size:10px;line-height:14px;
    letter-spacing:.02em;pointer-events:none;
  }
  .filter-scroll-cue{
    top:19px;bottom:0;width:22px;
    display:flex;align-items:center;justify-content:center;
  }
  .filter-scroll-cue::before{
    content:"";display:block;width:9px;height:9px;
    border-top:2.5px solid currentColor;
    border-right:2.5px solid currentColor;
    transform:translate(-2px,-2px) rotate(45deg);
  }
  .filter-scroll-shell::after{top:19px}
}
@media(min-width:681px){.filter-scroll-hint{display:none}}

/* v0.9.12: non-destructive free crop and broad image drop target */
.upload-wide-active{outline:2px dashed #168fff!important;outline-offset:-4px;background:rgba(22,143,255,.045)!important}
.free-crop-dialog{width:min(94vw,900px)!important;max-width:94vw!important}
.free-crop-dialog .free-crop-stage{display:flex;align-items:center;justify-content:center;min-height:180px;max-height:min(52dvh,500px);padding:8px;overflow:hidden}
.free-crop-dialog .free-crop-stage canvas{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:min(48dvh,480px)!important;aspect-ratio:auto!important;object-fit:contain;touch-action:none;cursor:move}
.free-crop-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.free-crop-toolbar button{border:1px solid #505050;background:#343434;color:#ddd;padding:7px 12px;border-radius:6px;cursor:pointer;font-size:13px}
.free-crop-toolbar button.is-active{background:#145e92;border-color:#168fff;color:#fff}
@media(max-width:600px){.free-crop-dialog .free-crop-stage{max-height:48dvh}.free-crop-dialog .free-crop-stage canvas{max-height:44dvh!important}}

/* Category order editor — desktop and mobile */
.category-manager .category-sort-list{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:16px 0 20px}
.category-manager .category-sort-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #454545;border-radius:8px;background:#303030;min-width:0}
.category-manager .category-sort-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:650}
.category-manager .category-sort-controls,.category-manager .category-sort-delete{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;flex:0 0 auto}
.category-manager .category-sort-controls .category-move{width:34px;height:34px;min-width:34px;padding:0!important;border:1px solid #545454!important;border-radius:6px!important;background:#3a3a3a!important;color:#eee!important;line-height:1!important;font-size:18px!important;cursor:pointer}
.category-manager .category-sort-controls .category-move:hover:not(:disabled){border-color:#0096fa!important;color:#6ac5ff!important}
.category-manager .category-sort-controls .category-move:disabled{opacity:.25;cursor:default}
.category-manager .category-sort-delete .category-remove{width:34px;height:34px;padding:0!important;border-radius:6px!important;background:#4b2d36!important;color:#ffd5dc!important}
@media(max-width:600px){.category-manager .category-sort-row{gap:7px;padding:8px}.category-manager .category-sort-controls .category-move,.category-manager .category-sort-delete .category-remove{width:32px;min-width:32px;height:32px}}

/* Crop handles show native diagonal resize cursors; inside shows grab. */
.free-crop-dialog .free-crop-stage canvas{cursor:grab}

/* Works list filtering */
.works-filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0 18px}
.works-filter-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#aaa}
.works-filter-form input[type=search]{background:#202020;color:#eee;border:1px solid #555;border-radius:6px;padding:10px;min-width:220px}
.works-filter-form button{padding:10px 18px}

/* Compact unified controls and title-only search */
.admin-embed .works-toolbar-unified{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 12px}
.admin-embed .works-toolbar-unified .sort-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.admin-embed .works-toolbar-unified .pin-counter{margin-left:auto}
.admin-embed .works-title-search{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}
.admin-embed .works-title-search>label{color:#d9e1ed;font-weight:700;white-space:nowrap}
.admin-embed .works-title-search-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.admin-embed .works-title-search input[type=search]{background:#292b30;color:#eef4ff;border:1px solid #454c58;border-radius:9px;padding:10px 13px;min-height:42px;width:240px;max-width:calc(100vw - 85px);font-size:14px}
.admin-embed .works-title-search button{background:#343840;color:#eef4ff;border:1px solid #454c58;border-radius:9px;padding:10px 17px;min-height:42px;cursor:pointer}
@media(max-width:680px){.admin-embed .works-toolbar-unified{gap:10px}.admin-embed .works-toolbar-unified .pin-counter{margin-left:0}}

/* v0.9.14: Profile layout and works mobile redesign */
.admin-embed .settings-panel .profile-settings-toolbar{margin:0 0 26px!important;max-width:none!important;width:100%!important}
.admin-embed .settings-panel .profile-settings-intro{margin:0 0 18px!important;text-align:left!important}
.admin-embed .settings-panel{padding-top:20px!important}
@media(max-width:680px){
 .admin-embed .admin-list{padding:0 7px!important;box-sizing:border-box!important}
 .admin-embed .works-toolbar-unified{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px!important;row-gap:12px!important;margin:18px 0 22px!important;align-items:end!important}
 .admin-embed .works-toolbar-unified .sort-label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;min-width:0!important;font-size:13px}
 .admin-embed .works-toolbar-unified .select-shell{display:block!important;width:100%!important;min-width:0!important}
 .admin-embed .works-toolbar-unified select{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .admin-embed .works-toolbar-unified #bulk-mode-toggle{width:100%!important;min-height:42px!important;align-self:end!important;margin:0!important}
 .admin-embed .works-toolbar-unified #pin-feedback{grid-column:1/-1!important;margin:0!important}
 .admin-embed .works-toolbar-unified #pin-feedback:empty{display:none!important}
 .admin-embed .works-toolbar-unified .pin-counter{grid-column:1/-1!important;margin:0!important;justify-self:start!important;font-size:12px!important}
 .admin-embed .works-title-search{display:block!important;margin:0 0 22px!important}
 .admin-embed .works-title-search>label{display:block!important;margin-bottom:8px!important;font-size:13px!important}
 .admin-embed .works-title-search-controls{display:flex!important;flex-wrap:nowrap!important;width:100%!important;gap:8px!important}
 .admin-embed .works-title-search input[type=search]{flex:1 1 auto!important;min-width:0!important;width:0!important;max-width:none!important}
 .admin-embed .works-title-search button{flex:0 0 auto!important}
 .admin-embed .admin-item.work-row{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;column-gap:12px!important;row-gap:10px!important;align-items:start!important;padding:16px 2px!important;margin:0!important;border-radius:0!important}
 .admin-embed .admin-item.work-row>img{grid-column:1!important;grid-row:1!important;width:66px!important;height:66px!important;object-fit:cover!important;border-radius:8px!important;max-width:66px!important}
 .admin-embed .work-row .admin-item-title{grid-column:2!important;grid-row:1!important;min-width:0!important;flex:none!important;max-width:100%!important;overflow-wrap:anywhere!important;line-height:1.4!important}
 .admin-embed .work-row .admin-item-title strong{display:block!important;font-size:14px!important}
 .admin-embed .work-row .admin-item-title small{font-size:11px!important;line-height:1.5!important;margin-top:5px!important;overflow-wrap:anywhere!important}
 .admin-embed .work-row .admin-item-actions{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;padding:0!important;gap:9px!important;min-width:0!important;box-sizing:border-box!important}
 .admin-embed .work-row .admin-item-actions a{white-space:nowrap!important}
 .admin-embed .work-row .bulk-checkbox{grid-column:1!important;grid-row:1!important;z-index:2!important;align-self:start!important;justify-self:start!important}
 .admin-embed .bulk-active .work-row>img{opacity:.7}
 .admin-embed .works-page-footer{max-width:100%!important}
}
@media(max-width:360px){.admin-embed .work-row .admin-item-actions{gap:6px!important}.admin-embed .work-row .admin-item-actions a{font-size:11px!important}}

/* v0.9.15 — restore profile breathing room; compact mobile work controls */
.admin-embed .settings-panel{margin-top:28px!important}
@media(max-width:680px){
 .admin-embed .settings-panel{margin-top:25px!important}
 .admin-embed .admin-list{margin-top:12px!important}
 .admin-embed .admin-list>h2{font-size:20px!important;margin:0 0 15px!important}
 .admin-embed .works-toolbar-unified{gap:10px!important;margin:0 0 12px!important;align-items:end!important}
 .admin-embed .works-toolbar-unified .sort-label{font-size:11px!important;gap:5px!important;color:#aaa!important}
 .admin-embed .works-toolbar-unified select{min-height:38px!important;height:38px!important;padding:7px 30px 7px 10px!important;font-size:13px!important;border-radius:8px!important}
 .admin-embed .works-toolbar-unified #bulk-mode-toggle{min-height:38px!important;height:38px!important;padding:7px 10px!important;font-size:13px!important;border-radius:8px!important}
 .admin-embed .works-toolbar-unified .pin-counter{grid-column:1/-1!important;font-size:11px!important;color:#999!important;justify-self:end!important;margin-top:-2px!important}
 .admin-embed .works-title-search{margin:0 0 14px!important}
 .admin-embed .works-title-search>label{font-size:11px!important;color:#aaa!important;margin-bottom:5px!important}
 .admin-embed .works-title-search input[type=search]{min-height:39px!important;height:39px!important;padding:7px 11px!important;font-size:13px!important}
 .admin-embed .works-title-search button{min-height:39px!important;height:39px!important;padding:7px 13px!important;font-size:13px!important}
 .admin-embed .admin-item.work-row{grid-template-columns:58px minmax(0,1fr)!important;column-gap:11px!important;row-gap:9px!important;padding:13px 0!important}
 .admin-embed .admin-item.work-row>img{width:58px!important;height:58px!important;max-width:58px!important}
 .admin-embed .work-row .admin-item-title strong{font-size:13px!important}
 .admin-embed .work-row .admin-item-title small{font-size:10px!important}
 .admin-embed .work-row .admin-item-actions{gap:8px!important}
 .admin-embed .work-row .admin-item-actions a,.admin-embed .work-row .admin-item-actions button{font-size:12px!important}
}

/* v0.9.16 — category rows: explicit mobile flex reset */
@media(max-width:680px){
.category-manager .category-items.category-sort-list{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important}
.category-manager .category-sort-row{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;width:100%!important;box-sizing:border-box!important;padding:9px!important}
.category-manager .category-sort-name{display:block!important;flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere!important}
.category-manager form.category-sort-controls,.category-manager form.category-sort-delete{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;flex:0 0 auto!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.category-manager .category-sort-controls button.category-move,.category-manager .category-sort-delete button.category-remove{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;line-height:1!important;font-size:17px!important}
}
.admin-embed .work-row[data-edit-url]{cursor:pointer}
.admin-embed .work-row[data-edit-url]:focus-visible{outline:2px solid #168fff;outline-offset:-2px}
.admin-embed .work-row .work-preview-link{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #555;border-radius:7px;color:#f2f2f2;text-decoration:none;font-size:12px;white-space:nowrap}
.admin-embed .work-row .work-preview-link:hover{border-color:#168fff;color:#79c6ff}
.post-pin-option{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:18px 0;color:#f2f2f2;font-weight:650}
.post-pin-option input{width:18px;height:18px;accent-color:#168fff}
.post-pin-option small{display:block;flex-basis:100%;color:#999;font-size:12px;font-weight:400}

/* v0.9.17 — spacing between tabs and profile card (parent frame) */
#admin-settings-panel:not([hidden]){padding-top:28px!important;box-sizing:border-box}
@media(max-width:680px){#admin-settings-panel:not([hidden]){padding-top:24px!important}}

/* v0.9.18 — pin control alongside publish setting */
.form-grid:has(> .post-pin-option){align-items:end}
.form-grid > .post-pin-option{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px;margin:0 0 4px;min-width:0;font-size:13px;font-weight:600;cursor:pointer}
.form-grid > .post-pin-option input{margin:0;width:17px;height:17px;flex:0 0 auto}
.form-grid > .post-pin-option small{flex-basis:100%;margin-left:24px;font-size:11px;line-height:1.5}
@media(max-width:680px){.form-grid:has(> .post-pin-option){display:flex;flex-direction:column;align-items:stretch}.form-grid > .post-pin-option{margin:4px 0 0}}

/* v0.9.19 — accessible star toggle in posting form */
.form-grid > .post-pin-option{position:relative;display:flex;align-items:center;gap:12px;align-self:stretch;margin:0;padding:4px 0;cursor:pointer}
.form-grid > .post-pin-option input[type="checkbox"]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.form-grid > .post-pin-option .post-pin-star{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;font-size:29px;line-height:1;color:#818995;background:#303238;border:1px solid #4b515a;border-radius:9px;transition:color .15s,background .15s,border-color .15s}
.form-grid > .post-pin-option input:checked + .post-pin-star{color:#f4c45f;background:#453a22;border-color:#9c7934}
.form-grid > .post-pin-option input:focus-visible + .post-pin-star{outline:2px solid #168fff;outline-offset:3px}
.form-grid > .post-pin-option .post-pin-copy{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.form-grid > .post-pin-option .post-pin-title{font-weight:700;font-size:13px;line-height:1.4}
.form-grid > .post-pin-option small{display:block;flex-basis:auto;margin:0;font-size:11px;line-height:1.5;color:#999}
/* Vertically center profile intro against preview button */
.admin-embed .settings-panel .profile-settings-heading{align-items:center!important}
.admin-embed .settings-panel .profile-settings-heading .profile-settings-intro{margin:0!important;line-height:1.6}
@media(max-width:560px){.admin-embed .settings-panel .profile-settings-heading{align-items:flex-start!important}}

/* v0.9.20: pin icon centered in its box and with publish select */
.form-grid:has(> .post-pin-option){align-items:stretch}
.form-grid > .post-pin-option{align-self:stretch;align-items:center;justify-content:flex-start;margin:0;padding:22px 0 0;line-height:normal}
.form-grid > .post-pin-option .post-pin-star{display:flex;align-items:center;justify-content:center;padding:0 0 3px;font-family:Arial,sans-serif;line-height:1}
.form-grid > .post-pin-option .post-pin-copy{gap:4px}
@media(max-width:680px){.form-grid > .post-pin-option{padding:0;margin:4px 0 0}}

/* v0.9.21 — structural alignment instead of accumulating offsets */
.form-grid:has(> .post-pin-option){align-items:stretch}
.form-grid > .post-pin-option{box-sizing:border-box;display:flex;align-items:center;align-self:stretch;margin:0;padding:20px 0 0;min-height:0}
.form-grid > .post-pin-option .post-pin-star{box-sizing:border-box;display:grid;place-items:center;padding:0;line-height:1;font-family:Arial,sans-serif}
.form-grid > .post-pin-option .post-pin-copy{display:flex;flex-direction:column;justify-content:center;gap:4px}
.admin-embed .settings-panel .profile-settings-heading{align-items:center!important}
.admin-embed .settings-panel .profile-settings-heading .profile-settings-intro{display:flex!important;align-items:center!important;align-self:center!important;min-height:42px!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
@media(max-width:680px){.form-grid > .post-pin-option{padding:0;margin:4px 0 0}}
@media(max-width:560px){.admin-embed .settings-panel .profile-settings-heading .profile-settings-intro{min-height:0!important}}

/* v0.9.22 — align pin control with the actual select, not the heading above it.
   Both controls share a 46px bottom-aligned row; no top-padding offset. */
@media(min-width:681px){
  .form-grid:has(> .post-pin-option){align-items:end}
  .form-grid > .post-pin-option{
    box-sizing:border-box;
    height:46px;
    min-height:46px;
    align-self:end;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:0;
    margin:0;
  }
}
.form-grid > .post-pin-option .post-pin-star{align-self:center;flex-shrink:0}
.form-grid > .post-pin-option .post-pin-copy{align-self:center}

/* v0.9.23 SP: keep the pin star beside its title and helper copy. */
@media(max-width:680px){
 .form-grid > .post-pin-option{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%;box-sizing:border-box;padding:0!important}
 .form-grid > .post-pin-option .post-pin-star{flex:0 0 42px!important;width:42px!important;align-self:center!important}
 .form-grid > .post-pin-option .post-pin-copy{display:flex!important;flex:1 1 0;min-width:0;flex-direction:column!important;align-self:center!important}
 .form-grid > .post-pin-option .post-pin-title{display:block;white-space:normal}
 .form-grid > .post-pin-option small{display:block;flex-basis:auto!important;margin:0!important;white-space:normal}
}

/* v0.9.24: more breathing room between work search and first result */
.admin-embed .works-title-search{margin-bottom:38px!important}
@media(max-width:680px){.admin-embed .works-title-search{margin-bottom:32px!important}}

/* v0.9.25 — breathing room below active works tab */
#admin-list-panel:not([hidden]){padding-top:24px;box-sizing:border-box}

/* AJAX category status and taller hashtag field */
.upload-form #tags-input{min-height:122px;resize:vertical}
#category-feedback:not(:empty){padding:8px 0;color:#79c8ff}

/* Fixed-work order editor */
.pin-sort-panel{margin:12px 0 18px;padding:16px;border:1px solid var(--border,#3d4148);border-radius:12px;background:var(--panel,#24262b)}
.pin-sort-heading{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:12px}.pin-sort-heading span{font-size:12px;opacity:.7}
#pin-sort-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}#pin-sort-list li{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #50545d;border-radius:8px;background:#30333a;cursor:grab;min-width:0}#pin-sort-list li:active{cursor:grabbing}.pin-drag-handle{font-size:21px;opacity:.7}.pin-sort-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#pin-sort-list button{flex-shrink:0;padding:5px 12px;border-radius:6px;border:1px solid #666;background:#41454d;color:#fff;cursor:pointer}#pin-sort-list button:disabled{opacity:.3;cursor:default}.pin-sort-footer{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}#pin-sort-save{border:0;border-radius:7px;background:#1685df;color:white;padding:9px 16px;font-weight:700;cursor:pointer}#pin-sort-save:disabled{opacity:.45;cursor:default}#pin-sort-message{font-size:13px}

/* Pin gallery editor and embedded tab visual cleanup — 2026-10-22 */
html:has(body.admin-embed),body.admin-embed{background:transparent!important}
body.admin-embed{padding:0!important}
.admin-embed .admin-list{margin:12px auto!important}
.admin-embed .admin-item.work-row{border-radius:0!important;overflow:visible!important;border-left:0!important;border-right:0!important;box-shadow:none!important}
.admin-embed .admin-item.work-row::before,.admin-embed .admin-item.work-row::after{border-radius:0!important}
.admin-embed .admin-item.work-row:last-child{border-bottom:1px solid #393939!important}
.pin-gallery-grid{list-style:none;padding:0;margin:4px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 24px}
.pin-gallery-grid>li{min-width:0;cursor:grab;user-select:none;touch-action:pan-y}
.pin-gallery-grid>li.dragging{opacity:.45;cursor:grabbing}
.pin-gallery-card{min-width:0}
.pin-gallery-cover{position:relative;aspect-ratio:4/3;background:#292929;border-radius:7px;overflow:hidden}
.pin-gallery-cover img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.pin-gallery-position{position:absolute;top:8px;left:8px;border-radius:6px;background:#000b;color:#fff;font-size:12px;font-weight:700;padding:2px 9px}
.pin-gallery-title{font-size:14px;font-weight:700;margin:8px 2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pin-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;min-height:32px}
.pin-gallery-drag{font-size:11px;color:#929292}
.pin-gallery-arrows{display:none;gap:8px}
.pin-gallery-arrows button{background:#30343a;color:#fff;border:1px solid #4b5058;border-radius:6px;min-width:42px;min-height:36px}
.pin-gallery-arrows button:disabled{opacity:.3}
.pin-sort-status{font-size:12px;color:#9aa6b8;min-height:20px;margin:12px 0}
@media(max-width:680px){.pin-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}.pin-gallery-arrows{display:flex}.pin-gallery-drag{display:none}.pin-gallery-title{font-size:12px}}
@media(max-width:390px){.pin-gallery-grid{grid-template-columns:1fr}}

/* Fixed works gallery — four columns and compact management controls */
.admin-pins-embed .pin-gallery-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:5px 0 17px}
.admin-pins-embed .pin-gallery-heading strong{font-size:15px;font-weight:700}
.admin-pins-embed .pin-gallery-heading p{font-size:12px;color:#aaa;margin:5px 0 0;line-height:1.5}
.admin-pins-embed .pin-gallery-count{font-size:12px;color:#bbb;white-space:nowrap}
.admin-pins-embed .pin-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 14px}
.admin-pins-embed .pin-gallery-controls{margin-top:7px;min-height:30px}
.admin-pins-embed .pin-gallery-drag{font-size:10px}
.admin-pins-embed .pin-unfix{margin-left:auto;padding:5px 9px;background:#4a2630;border:1px solid #66323f;color:#ffd6de;border-radius:6px;font-size:11px;white-space:nowrap;cursor:pointer}
.admin-pins-embed .pin-unfix:hover{background:#69303e}
.admin-pins-embed .pin-unfix:disabled{opacity:.5;cursor:wait}
/* Remove outer profile panel background only; preserve inner editor panels */
body.admin-embed .settings-panel{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;max-width:860px!important}
@media(max-width:680px){.admin-pins-embed .pin-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.admin-pins-embed .pin-gallery-heading{align-items:flex-start;flex-direction:column;gap:6px}.admin-pins-embed .pin-gallery-arrows{display:flex}.admin-pins-embed .pin-gallery-drag{display:none}}
@media(max-width:390px){.admin-pins-embed .pin-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-pins-embed .pin-gallery-cover{aspect-ratio:1/1}.admin-pins-embed .pin-gallery-controls{flex-wrap:wrap}.admin-pins-embed .pin-unfix{margin-left:0}}

/* Original image controls: neutral, quiet, and separated */
.photo-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 4px 4px}
.photo-actions .original-toggle,.photo-actions a,.photo-actions a:link{font:inherit;font-size:14px;font-weight:400;line-height:1.6;color:#f2f2f2;text-decoration:none;background:transparent;border:0;padding:4px 0;cursor:pointer}
.photo-actions .original-toggle:hover,.photo-actions a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.photo-actions .original-toggle:disabled{opacity:.6;cursor:wait}
.photo-actions-separator{display:block;width:1px;height:15px;background:#606060;flex:none}
@media(max-width:420px){.photo-actions{gap:9px}.photo-actions .original-toggle,.photo-actions a,.photo-actions a:link{font-size:12px}}


/* 2026-10-22 — consistent 24px space below all four admin tabs.
   Parent panel owns vertical spacing; iframe documents must not add it again. */
#admin-compose:not([hidden]),
#admin-list-panel:not([hidden]),
#admin-pins-panel:not([hidden]),
#admin-settings-panel:not([hidden]) {
  box-sizing: border-box;
  padding-top: 24px !important;
}
/* First post form starts immediately after the shared panel gap. */
#admin-compose > .upload-form { margin-top: 0 !important; }
/* The iframe starts at the same vertical position in each tab. */
#admin-list-panel > .admin-lazy-frame,
#admin-pins-panel > .admin-lazy-frame,
#admin-settings-panel > .admin-lazy-frame { margin-top: 0 !important; }
/* Avoid a second top gap inside embedded views. */
body.admin-embed .admin-list { margin-top: 0 !important; }
body.admin-embed .settings-panel { margin-top: 0 !important; padding-top: 0 !important; }
body.admin-pins-embed .pin-gallery-heading { margin-top: 0 !important; }
@media (max-width:680px) {
  #admin-compose:not([hidden]),
  #admin-list-panel:not([hidden]),
  #admin-pins-panel:not([hidden]),
  #admin-settings-panel:not([hidden]) { padding-top: 24px !important; }
}


/* VRChat STUDIO: profile editor aligned with the new-post card (2026-10-22).
   Scoped to the embedded profile only; other tabs remain unchanged. */
body.admin-embed:has(.settings-panel #profile-form) .settings-panel {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 28px !important;
  background: #292929 !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
body.admin-embed:has(.settings-panel #profile-form) #profile-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
body.admin-embed:has(.settings-panel #profile-form) #profile-form > label {
  margin: 0 !important;
  gap: 8px !important;
}
body.admin-embed:has(.settings-panel #profile-form) #profile-form > label > input,
body.admin-embed:has(.settings-panel #profile-form) #profile-form > label > textarea {
  margin: 0 !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-media-settings {
  margin: 0 !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-ogp-settings,
body.admin-embed:has(.settings-panel #profile-form) .profile-extra-editor {
  margin: 4px 0 0 !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-extra-editor > label {
  margin: 0 0 22px !important;
  gap: 8px !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-extra-editor .boundary-editor-row {
  margin-bottom: 20px !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-extra-editor .boundary-editor-label {
  margin-bottom: 8px !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-extra-editor h3 {
  margin: 22px 0 8px !important;
}
body.admin-embed:has(.settings-panel #profile-form) .profile-extra-editor h3:first-child {
  margin-top: 0 !important;
}
@media (max-width: 600px) {
  body.admin-embed:has(.settings-panel #profile-form) .settings-panel {
    padding: 16px !important;
  }
  body.admin-embed:has(.settings-panel #profile-form) #profile-form {
    gap: 22px;
  }
}

/* Profile OGP modal: accessible close control, no layout shift */
.ogp-preview-trigger{display:inline-flex;align-items:center;min-height:36px;padding:4px 0;background:none;border:0;color:#d8d8d8;cursor:pointer;font:inherit;text-align:left}.ogp-preview-trigger:hover{text-decoration:underline;color:#fff}.ogp-preview-trigger:focus-visible,.ogp-preview-close:focus-visible{outline:2px solid #159dff;outline-offset:3px}
.ogp-preview-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(92vw,1040px);max-width:92vw;max-height:90dvh;overflow:auto;padding:20px;background:#1f1f1f;color:#f3f3f3;border:1px solid #484848;border-radius:12px;box-shadow:0 18px 70px #000a}.ogp-preview-dialog::backdrop{background:rgba(0,0,0,.78)}.ogp-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.ogp-preview-head h3{margin:0;font-size:17px}.ogp-preview-close{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:96px;min-height:48px;padding:10px 16px;border:1px solid #666;border-radius:9px;background:#393939;color:#fff;font-size:16px;font-weight:700;cursor:pointer;flex-shrink:0}.ogp-preview-close:hover{background:#505050;border-color:#aaa}.ogp-preview-image-wrap{display:flex;align-items:center;justify-content:center;min-height:120px;background:#141414;border-radius:7px;overflow:hidden}.ogp-preview-image-wrap img{display:block;width:100%;height:auto;max-height:calc(90dvh - 155px);object-fit:contain;aspect-ratio:1200/630}.ogp-preview-error{padding:30px;color:#ddd}.ogp-preview-meta{margin:12px 0 0;text-align:center;font-size:12px;color:#aaa}@media(max-width:600px){.ogp-preview-dialog{padding:12px;width:96vw;max-width:96vw}.ogp-preview-head h3{font-size:14px}.ogp-preview-close{min-width:88px;min-height:48px;font-size:14px;padding:8px 12px}}

/* OGP modal: center in the visible viewport regardless of scroll position. */
html body .ogp-preview-dialog[open]{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;width:min(92vw,1040px)!important;max-width:92vw!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overscroll-behavior:contain;z-index:99999!important}
@media(max-width:600px){html body .ogp-preview-dialog[open]{width:96vw!important;max-width:96vw!important;max-height:calc(100dvh - 16px)!important}}
/* Restore the subtle inline preview link. */
html body .ogp-preview-trigger{display:inline!important;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#aaa!important;font-size:inherit!important;font-weight:400!important;text-decoration:none!important}
html body .ogp-preview-trigger:hover{color:#eee!important;text-decoration:underline!important}
.status-editor-label{display:inline-flex;align-items:center;gap:9px}
.status-editor-dot{display:inline-block;width:13px;height:13px;flex:0 0 13px;border-radius:50%}
/* Orange status dot on the public profile. */
.profile-status-dot[style*="#facc15"],.profile-status-dot[style*="#eab308"],.profile-status-dot[style*="#fbbf24"],.profile-status-dot[style*="#ffc107"],.profile-status-dot[style*="#ffcc00"]{background-color:#f59e0b!important}

/* v1.20: paired categories and portrait-aware thumbnails */
.category-pair{display:flex;flex-direction:column;gap:12px;min-width:0}.category-pair>label{min-width:0}
.cover img.portrait-cover{object-position:center 28%}
@media(max-width:600px){.category-pair{gap:10px}}

/* v1.21: slightly lower portrait framing, aligned tag field */
.cover img.portrait-cover{object-position:center 36%}
@media(min-width:601px){
  .upload-form .form-grid:has(.category-pair)>label:has(#tags-input){display:flex;flex-direction:column;min-height:0}
  .upload-form .form-grid:has(.category-pair)>label:has(#tags-input) #tags-input{flex:1 1 auto;min-height:0;height:100%;resize:vertical}
}

/* v1.22: portrait subject lower in frame; tag textarea aligns with subcategory select */
.cover img.portrait-cover { object-position: center 20%; }
@media (min-width: 601px) {
  .upload-form .form-grid:has(.category-pair) > label:has(#tags-input) {
    position: relative; display: flex; flex-direction: column; min-height: 0;
  }
  .upload-form .form-grid:has(.category-pair) > label:has(#tags-input) #tags-input {
    flex: 1 1 auto; height: auto; min-height: 0; box-sizing: border-box;
  }
  .upload-form .form-grid:has(.category-pair) > label:has(#tags-input) > .field-help {
    position: absolute; top: calc(100% + 7px); left: 0;
  }
  .upload-form .form-grid:has(.category-pair) { margin-bottom: 18px; }
}

/* v1.23: portrait framing 24 percent; space below hashtag help */
.cover img.portrait-cover { object-position: center 24%; }
.upload-form .tag-suggestions { margin-top: 10px; }

/* 2026-10-22: unified gallery footer spacing */
footer:not(.post-footer){background:#292929;padding:30px 20px;margin-top:56px;}
@media(max-width:600px){footer:not(.post-footer){padding:24px 16px;margin-top:36px;}}


/* v1.25: optional light theme (dark appearance unchanged) */
html[data-theme="light"]{color-scheme:light;--canvas:#f7f8fa;--surface:#fff;--surface-hover:#edf1f5;--line:#e0e3e9;--muted:#646b77}
html[data-theme="light"],html[data-theme="light"] body{background:#f7f8fa;color:#22252c}
html[data-theme="light"] .sitehead{background:#fff;border-bottom-color:#e8e9ee}
html[data-theme="light"] .sitehead nav{color:#505765}
html[data-theme="light"] .sitehead nav a:hover{color:#0086e0}
html[data-theme="light"] .hero p,html[data-theme="light"] .description,html[data-theme="light"] .work-info span,html[data-theme="light"] .work-info time,html[data-theme="light"] .post-date{color:#646b77}
html[data-theme="light"] .filters,html[data-theme="light"] .admin-tabs{border-bottom-color:#e1e4ea}
html[data-theme="light"] .chip,html[data-theme="light"] .admin-tab{color:#606977}
html[data-theme="light"] .chip.active,html[data-theme="light"] .chip:hover,html[data-theme="light"] .admin-tab.active,html[data-theme="light"] .admin-tab:hover{color:#007bd0}
html[data-theme="light"] .cover{background:#e9ebef}
html[data-theme="light"] .panel{background:#fff;border-color:#e1e4e9;color:#242830}
html[data-theme="light"] .panel input:not([type=file]),html[data-theme="light"] .panel textarea,html[data-theme="light"] .panel select{background:#fff;border-color:#cbd0d8;color:#242830}
html[data-theme="light"] .panel input::placeholder,html[data-theme="light"] .panel textarea::placeholder{color:#818793}
html[data-theme="light"] .drop,html[data-theme="light"] .preview-card,html[data-theme="light"] .date-panel,html[data-theme="light"] .upload-size-summary,html[data-theme="light"] .tag-suggestions{background:#f7f8fa;border-color:#dce0e6;color:#333842}
html[data-theme="light"] .preview-card img{background:#e8eaef}
html[data-theme="light"] .category-manager .category-pill,html[data-theme="light"] .category-sort-row{background:#f4f5f7;border-color:#e1e3e8;color:#282d35}
html[data-theme="light"] .tag-suggestions .tag-pill{background:#eef5fd;border-color:#d5e5f6;color:#0076cb}
html[data-theme="light"] .field-help,html[data-theme="light"] .muted,html[data-theme="light"] .tag-suggestions strong,html[data-theme="light"] .date-panel small,html[data-theme="light"] .upload-size-summary small{color:#606b7a}
html[data-theme="light"] .photo-section>a{background:#e8ebf0}
html[data-theme="light"] .post-footer{border-top-color:#e1e4e9}
html[data-theme="light"] .post-footer .description{color:#434a55}
html[data-theme="light"] .expand-images{background:#eff1f5}
html[data-theme="light"] .pagination a{background:#e9edf2;color:#333}
html[data-theme="light"] .pagination a.current{background:#0096fa;color:#fff}
html[data-theme="light"] .tags a:hover{background:#e7eff9}
html[data-theme="light"] .admin-item{border-color:#e1e4e9}
html[data-theme="light"] .admin-item small{color:#657080}
html[data-theme="light"] .notice{background:#e9f6ef;border-color:#b7dfc9;color:#22563b}
html[data-theme="light"] footer:not(.post-footer){background:#eceef1;color:#66707d}
html[data-theme="light"] .date-panel input{color-scheme:light}
html[data-theme="light"] .date-panel input::-webkit-calendar-picker-indicator{filter:none}
html[data-theme="light"] .theme-toggle{background:#f0f2f6;border-color:#d8dce4;color:#303641}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;padding:0;border:1px solid #474747;border-radius:8px;background:#303030;color:#fff;cursor:pointer;flex-shrink:0;line-height:1;font-size:18px}
.theme-toggle:hover{border-color:#0096fa}
.sitehead nav{align-items:center}
@media(max-width:600px){.theme-toggle{width:31px;height:31px;font-size:16px}}

/* v1.26: sticky footer without fixed positioning */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* .wrap is the shared page container; preserve its centered max-width. */
body > .wrap { flex: 1 0 auto; width: 100%; }
body > footer:not(.post-footer) { flex-shrink: 0; }

/* Work description links and custom text selection */
.description .description-external-link{color:#38cfc5;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.description .description-external-link::before{content:"▶ ";font-size:.8em;text-decoration:none}
.description .description-external-link:hover{color:#8ff5ed}
::selection{background-color:var(--accent,#0096fa);color:#fff}
::-moz-selection{background-color:var(--accent,#0096fa);color:#fff}

/* Detail navigation and restrained description links */
.post-footer .description .description-external-link{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.post-footer .description .description-external-link:hover,.post-footer .description .description-external-link:visited{color:inherit}
.post-footer .description .description-external-link::before{content:"▶";display:inline-block;font-size:.62em;line-height:1;vertical-align:middle;margin-right:.38em;text-decoration:none}
.detail-top-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:30px 0 28px}
.detail-breadcrumb{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;font-size:13px;color:#a9a9a9}
.detail-breadcrumb a{color:inherit;text-decoration:none;white-space:nowrap}
.detail-breadcrumb a:hover{color:#eee}
.detail-breadcrumb .breadcrumb-separator{color:#777;font-size:17px;line-height:1}
.detail-breadcrumb .breadcrumb-current{color:#ddd;overflow-wrap:anywhere;min-width:0}
.detail-top-navigation .detail-edit-link{margin:0 0 0 auto;white-space:nowrap}
.end-nav{text-align:left;color:inherit}
.end-nav .return-to-gallery{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid #444;border-radius:8px;background:#2b2b2b;color:#eee;font-size:13px;font-weight:600;text-decoration:none;transition:background-color .15s,border-color .15s}
.end-nav .return-to-gallery:hover{background:#333;border-color:#666;color:#fff}
@media(max-width:600px){.detail-top-navigation{margin:20px 0 22px}.detail-breadcrumb{font-size:12px}.end-nav .return-to-gallery{font-size:13px}}

/* Header navigation: simple Japanese labels */
.sitehead .site-main-nav{display:flex;align-items:center;gap:clamp(18px,2.3vw,34px);letter-spacing:normal}
.sitehead .site-main-nav a{display:flex;align-items:center;justify-content:center;color:#f5f5f5;text-decoration:none;white-space:nowrap}
.sitehead .site-main-nav .nav-ja{font-size:14px;font-weight:700;letter-spacing:.025em;line-height:1.4}
.sitehead .site-main-nav a:hover .nav-ja,.sitehead .site-main-nav a:focus-visible .nav-ja{color:#4c8fe8}
@media(max-width:600px){
 .sitehead .site-main-nav{gap:clamp(8px,2.5vw,15px)}
 .sitehead .site-main-nav .nav-ja{font-size:clamp(10px,2.6vw,12px);letter-spacing:0}
 .sitehead .brand-svg{width:clamp(112px,34vw,153px)}
}
@media(max-width:360px){.sitehead .site-main-nav{gap:7px}.sitehead .site-main-nav .nav-ja{font-size:10px}.sitehead .brand-svg{width:108px}}

/* Mobile header: two rows, keep desktop navigation unchanged. */
@media (max-width:600px){
  .sitehead{height:auto;min-height:0;padding:12px 15px 10px!important;}
  .sitehead-inner{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:12px;}
  .sitehead .brand{align-self:flex-start;flex-shrink:0;}
  .sitehead .brand-svg{width:153px;height:auto;max-width:100%;}
  .sitehead .site-main-nav{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;}
  .sitehead .site-main-nav a{min-height:30px;}
  .sitehead .site-main-nav .nav-ja{font-size:clamp(11px,2.9vw,13px);letter-spacing:0;}
}

/* Mobile header: 1–3 links share a single row with the logo; 4+ use two rows. */
@media (max-width:600px){
  .sitehead{height:auto;min-height:58px;padding:0 15px!important;}
  .sitehead-inner{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-height:58px;}
  .sitehead .brand{align-self:auto;flex-shrink:1;min-width:0;}
  .sitehead .brand-svg{width:clamp(108px,34vw,153px);max-width:100%;height:auto;}
  .sitehead .site-main-nav{width:auto;flex:0 0 auto;justify-content:flex-end;gap:clamp(8px,2.5vw,15px);flex-wrap:nowrap;}
  .sitehead .site-main-nav .nav-ja{font-size:clamp(10px,2.6vw,12px);}
  .sitehead-inner:has(.site-main-nav > a:nth-child(4)){flex-direction:column;align-items:stretch;justify-content:center;gap:12px;padding:12px 0 10px;}
  .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .brand{align-self:flex-start;}
  .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .brand-svg{width:153px;}
  .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .site-main-nav{width:100%;justify-content:space-between;gap:8px;}
  .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .site-main-nav .nav-ja{font-size:clamp(11px,2.9vw,13px);}
}

/* Privacy link: same typography as copyright, only a small vertical gap. */
footer .footer-privacy{font-size:inherit;line-height:inherit;margin:0 0 5px;padding:0;}
footer .footer-privacy a{color:inherit;text-decoration:none;}
footer .footer-privacy a:hover{text-decoration:underline;}
.privacy-content{max-width:850px;margin:50px auto 70px;line-height:1.9;}
.privacy-content h1{font-size:clamp(24px,4vw,32px);margin-bottom:26px;}
.privacy-content h2{font-size:19px;margin:30px 0 10px;}
.privacy-content p{margin:10px 0;color:inherit;}
.privacy-content a{color:#48aaff;text-decoration:underline;text-underline-offset:3px;}

/* YouTube embeds in the work description (2026-10-27). */
.post-footer .description .youtube-embed{position:relative;width:100%;max-width:760px;aspect-ratio:16/9;margin:14px 0 8px;border-radius:10px;overflow:hidden;background:#111}
.post-footer .description .youtube-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.post-footer .description .youtube-watch-link{display:inline-block;margin:0 0 12px;color:#59b7ff;text-decoration:underline;text-underline-offset:3px}

/* Fix: work description is a div so video blocks remain valid DOM children. */
.post-footer .description .youtube-embed{display:block;position:relative;width:min(100%,760px);height:auto;aspect-ratio:16/9;margin:16px 0 8px;border:0;border-radius:10px;overflow:hidden;background:#101010}
.post-footer .description .youtube-embed iframe{display:block;position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;border:0;vertical-align:top}

/* Category management: side-by-side on desktop and mobile */
.category-manager-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.category-manager-column{min-width:0}.category-manager-column h3{font-size:16px;margin:12px 0}.category-manager-column .category-sort-row{display:flex;align-items:center;gap:6px;justify-content:space-between;min-width:0;padding:8px}.category-manager-column .category-sort-name{min-width:0;overflow-wrap:anywhere;font-size:13px}.category-row-actions{display:flex;align-items:center;flex:0 0 auto;gap:3px}.category-row-actions form{display:flex;gap:2px;margin:0}.category-row-actions button{min-width:27px;padding:5px 6px;font-size:13px}.category-manager-column .category-add{display:flex;gap:5px;min-width:0}.category-manager-column .category-add input{min-width:0;flex:1;width:0}.category-manager-column .category-add button{flex:0 0 auto;padding:8px 7px}.category-visibility button{background:transparent;border:1px solid #50535a;border-radius:5px;color:inherit;cursor:pointer}@media(max-width:600px){.category-manager-columns{gap:7px}.category-manager-column .category-sort-row{display:block;padding:7px}.category-manager-column .category-sort-name{display:block;margin-bottom:5px}.category-row-actions{justify-content:flex-end;flex-wrap:wrap}.category-row-actions button{min-width:24px;padding:4px}.category-manager-column .category-add{flex-wrap:wrap}.category-manager-column .category-add input{flex:1 1 100%;width:100%}.category-manager-column .category-add button{width:100%}}

/* Category visibility: explicit text labels and distinct state colors. */
.category-manager .category-visibility button{min-width:64px!important;padding:7px 9px!important;border-radius:7px!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important;line-height:1.2!important}
.category-manager .category-visibility.is-visible button{background:#153c31!important;border:1px solid #28745b!important;color:#b6f3d5!important}
.category-manager .category-visibility.is-hidden button{background:#503a24!important;border:1px solid #9a6a32!important;color:#ffe0ac!important}
.category-manager .category-visibility button:focus-visible{outline:2px solid #fff!important;outline-offset:2px!important}
@media(max-width:600px){.category-manager .category-visibility button{min-width:57px!important;padding:6px 5px!important;font-size:11px!important}}


/* 2026-11-02 category management spacing and input/button alignment */
.category-manager .category-manager-column .category-add{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important}
.category-manager .category-manager-column .category-add input[name="new_category"]{box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 12px!important;border-radius:8px!important}
.category-manager .category-manager-column .category-add button[name="add_category"]{box-sizing:border-box!important;flex:0 0 auto!important;width:auto!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 12px!important;border-radius:8px!important;white-space:nowrap!important}
.category-manager .category-manager-column .category-sort-row{gap:10px!important}
.category-manager .category-manager-column .category-row-actions{gap:9px!important}
.category-manager .category-manager-column .category-row-actions form{gap:5px!important;margin:0!important}
@media(max-width:600px){
 .category-manager .category-manager-columns{gap:8px!important}
 .category-manager .category-manager-column .category-row-actions{gap:5px!important}
 .category-manager .category-manager-column .category-add{gap:5px!important}
 .category-manager .category-manager-column .category-add input[name="new_category"]{height:40px!important;min-height:40px!important;padding:0 7px!important;font-size:12px!important}
 .category-manager .category-manager-column .category-add button[name="add_category"]{height:40px!important;min-height:40px!important;padding:0 6px!important;font-size:12px!important}
}

/* Mobile header navigation: right-aligned rather than space-between. */
@media(max-width:600px){
 .sitehead .site-main-nav{justify-content:flex-end!important;gap:clamp(12px,3.5vw,22px)!important}
 .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .site-main-nav{justify-content:flex-end!important;gap:clamp(12px,3.5vw,22px)!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important}
 .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .site-main-nav::-webkit-scrollbar{display:none}
}

/* v7 mobile header: center logo, keep navigation right-aligned. */
@media(max-width:600px){
 .sitehead-inner:has(.site-main-nav > a:nth-child(4)){display:flex!important;flex-direction:column!important;align-items:stretch!important}
 .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .brand{align-self:center!important;margin-left:auto!important;margin-right:auto!important}
 .sitehead-inner:has(.site-main-nav > a:nth-child(4)) .site-main-nav{justify-content:flex-end!important}
}

/* v8: centered mobile brand and navigation; non-admin header only */
@media(max-width:700px){
 .sitehead-inner:not(:has(.admin-menu-toggle)){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important}
 .sitehead-inner:not(:has(.admin-menu-toggle)) .brand{align-self:center!important;margin:0 auto!important}
 .sitehead-inner:not(:has(.admin-menu-toggle)) .site-main-nav{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:clamp(10px,3vw,22px)!important;flex-wrap:wrap!important}
}

/* v9: compact top-aligned mobile drawer and usable two-column category manager */
@media(max-width:700px){
 .sitehead .site-main-nav.admin-nav{justify-content:flex-start!important;align-content:flex-start!important;align-items:stretch!important;gap:0!important}
 .sitehead .site-main-nav.admin-nav a{flex:0 0 56px!important;min-height:56px!important;max-height:56px!important;align-self:stretch!important;justify-content:flex-start!important;margin:0!important}
 .category-manager .category-manager-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .category-manager .category-manager-column{min-width:0!important;width:100%!important}
 .category-manager .category-manager-column .category-sort-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-width:0!important;width:100%!important;padding:9px!important}
 .category-manager .category-manager-column .category-sort-name{display:block!important;flex:none!important;width:100%!important;min-width:0!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important;line-height:1.4!important;margin:0!important}
 .category-manager .category-manager-column .category-row-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:5px!important;width:100%!important;min-width:0!important}
 .category-manager .category-manager-column .category-row-actions form{flex:0 0 auto!important;gap:4px!important}
 .category-manager .category-manager-column .category-add{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;width:100%!important}
 .category-manager .category-manager-column .category-add input[name="new_category"]{flex:0 0 44px!important;width:100%!important;min-width:0!important;height:44px!important;font-size:13px!important}
 .category-manager .category-manager-column .category-add button[name="add_category"]{width:100%!important;min-height:40px!important}
}

/* v10: mobile category management is stacked, with full-width readable rows */
@media(max-width:700px){
 .category-manager .category-manager-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 .category-manager .category-manager-column{min-width:0!important;width:100%!important}
 .category-manager .category-manager-column .category-sort-row{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;padding:10px!important}
 .category-manager .category-manager-column .category-sort-name{display:block!important;flex:1 1 100%!important;min-width:0!important;word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important}
 .category-manager .category-manager-column .category-row-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;width:100%!important}
 .category-manager .category-manager-column .category-add{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;align-items:stretch!important;width:100%!important}
 .category-manager .category-manager-column .category-add input[name="new_category"]{flex:1 1 auto!important;width:0!important;min-width:0!important;height:44px!important;font-size:14px!important}
 .category-manager .category-manager-column .category-add button[name="add_category"]{flex:0 0 auto!important;width:auto!important;height:44px!important;padding:0 12px!important;font-size:14px!important}
}

/* VRCS homepage hero copy update (2026-11-06) */
.hero .hero-photography{font-size:clamp(22px,3.3vw,38px);letter-spacing:-.035em;white-space:normal;overflow-wrap:anywhere;}
.hero .hero-tagline{font-size:clamp(15px,2vw,21px);letter-spacing:.01em;margin-top:14px;color:#aaa;}
@media(max-width:600px){.hero .hero-photography{font-size:clamp(21px,5.2vw,30px)}.hero .hero-tagline{font-size:16px;margin-top:12px}}

/* Mizuki name accent in homepage hero */
.hero .mizuki-accent{color:#95C6FF;}

/* VRCS hero: compact tagline, preserving wordmark proportions */
.hero .hero-photography{font-size:clamp(19px,2.35vw,28px);line-height:1.35;margin-top:10px;letter-spacing:-.025em;overflow-wrap:normal;}
@media(max-width:600px){.hero .hero-photography{font-size:clamp(17px,4.3vw,23px);line-height:1.4;margin-top:8px;}}

/* VRCS hero tagline: centered under wordmark */
.hero .hero-site-name{width:max-content;max-width:100%;}
.hero .hero-photography{display:block;width:max-content;max-width:100%;font-size:clamp(13px,1.55vw,18px);line-height:1.5;letter-spacing:0;font-weight:700;text-align:center;margin:6px 0 0;white-space:nowrap;overflow-wrap:normal;}
.hero .hero-tagline-rule{color:#aaa;font-weight:400;margin:0 .4em;}
@media(max-width:600px){.hero .hero-photography{font-size:clamp(10px,2.7vw,15px);margin-top:5px;}.hero .hero-tagline-rule{margin:0 .15em;}}

/* VRCS hero tagline refinement: center relative to the wordmark */
.hero h1{width:min(422px,100%);max-width:100%;}
.hero .hero-site-name{display:block;width:100%;max-width:100%;}
.hero .hero-photography{display:block;width:100%;max-width:100%;margin:6px 0 0;text-align:center;color:#d7d7d7;font-weight:500;letter-spacing:0;white-space:nowrap;}
.hero .hero-tagline-rule{color:#d7d7d7;font-weight:700;margin:0 .4em;}
.hero .mizuki-accent{color:#95c6ff;}
@media(max-width:600px){.hero .hero-photography{margin-top:5px;font-size:clamp(10px,2.7vw,15px)}.hero .hero-tagline-rule{margin:0 .15em;}}

/* Unified Illustrator SVG hero (2026-11-06). */
.hero h1{width:min(100%, 500px);max-width:100%;margin:0 0 14px;}
.hero .hero-wordmark{display:block;width:100%;max-width:450px;height:auto;}
@media(max-width:600px){.hero h1{width:100%;}.hero .hero-wordmark{width:100%;max-width:none;}}
