@font-face{font-family:USCraftPixel;src:url('brand/minecraft-site.woff2') format('woff2');font-display:swap}
:root{--page:#f4f7f2;--surface:#fff;--surface-soft:#eaf1e8;--ink:#182f25;--muted:#52685b;--brand:#16764b;--brand-solid:#16764b;--brand-solid-hover:#105d3b;--brand-hover:#105d3b;--brand-soft:#e1f1e6;--deep:#123e2e;--rail:#12392d;--line:#d6e3d8;--strong-line:#819b89;--gold:#c6b46f;--gold-ink:#71510d;--gold-soft:#fff6de;--success:#166c51;--success-soft:#e6f5ef;--danger:#ac3346;--danger-soft:#fff0f2;--stage:#e4efe1;--shadow:0 16px 48px #2d563e12;--radius:12px;--font:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color-scheme:light;font-family:var(--font)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--page);font-size:14px;line-height:1.55}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}a{color:inherit;text-decoration:none}button:disabled,a[aria-disabled=true]{cursor:not-allowed;opacity:.5;pointer-events:none}input,select{color:var(--ink);background:var(--surface);border:1px solid var(--strong-line);border-radius:7px;min-height:44px;padding:10px 12px;min-width:0}input[type=radio]{accent-color:var(--brand);min-height:auto}input::placeholder{color:var(--muted)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.3}img{max-width:100%}svg.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;z-index:120;top:-60px;left:16px;padding:12px;background:var(--surface);color:var(--brand)}.skip-link:focus{top:8px}.mono,.eyebrow,.small-label{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:600;color:var(--muted)}.small-label{font-size:10px;letter-spacing:1.5px}.brand-text,.title-dot{color:var(--brand)}.button{min-height:44px;border-radius:7px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:600;line-height:1.45;transition:background .15s,border-color .15s}.primary{background:var(--brand-solid);border:1px solid var(--brand);color:var(--on-brand)}.primary:hover{background:var(--brand-solid-hover);border-color:var(--brand-hover)}.secondary{background:var(--surface);border:1px solid var(--line);color:var(--ink)}.secondary:hover{background:var(--brand-soft);border-color:var(--brand)}.danger-button{background:var(--danger);border:1px solid var(--danger);color:#fff}.full{width:100%}.quiet,.icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:7px;background:transparent;border-radius:6px;color:var(--muted);padding:8px;font-size:12px}.quiet:hover,.icon-button:hover{background:var(--brand-soft);color:var(--brand)}.icon-button{width:44px;padding:10px}.text-link{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;min-height:44px;color:var(--brand)}.text-link:hover{text-decoration:underline;text-underline-offset:4px}.text-link .icon{width:17px;height:17px}.badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.3;padding:6px 9px;border:1px solid var(--line);border-radius:4px;color:var(--muted);background:var(--surface)}.badge .icon{width:13px;height:13px}.badge.success{color:var(--success);background:var(--success-soft);border-color:transparent}.badge.warning{color:var(--gold-ink);background:var(--gold-soft);border-color:transparent}
.review-bar{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 22px;background:var(--deep);color:var(--rail-ink);font-size:11px;position:relative;z-index:20;border-bottom:1px solid var(--rail-line)}.review-bar>a{font-family:ui-monospace,monospace;letter-spacing:1px;display:flex;align-items:center;gap:10px}.review-bar label{display:flex;gap:8px;align-items:center}.review-bar select{min-height:28px;font-size:11px;border:1px solid var(--rail-line);background:var(--rail-active);color:var(--rail-ink);border-radius:4px;padding:3px 28px 3px 8px;max-width:198px}.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.rail{background:var(--rail);color:var(--rail-ink);padding:28px 20px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;align-self:start}.brand{display:flex;align-items:center;gap:12px}.logo-mat{width:54px;height:54px;border-radius:10px;background:transparent;display:flex;align-items:center;justify-content:center;flex:none}.logo-mat img{width:48px;height:48px;object-fit:contain}.brand b{font-family:USCraftPixel,var(--font);font-size:24px;font-weight:400;letter-spacing:.6px}.brand small{display:block;color:var(--rail-muted);font-size:10px;margin-top:2px;white-space:nowrap;letter-spacing:.5px}.rail-caption{font-size:12px;letter-spacing:1px;color:var(--rail-muted);margin:36px 12px 16px}.main-nav{display:grid;gap:7px}.main-nav a{display:flex;align-items:center;gap:13px;min-height:52px;padding:0 14px;color:var(--rail-muted);border-radius:7px;font-size:14px;transition:background .15s}.main-nav .nav-index{margin-left:auto;font:10px ui-monospace,monospace;opacity:.45}.main-nav a:hover{background:var(--rail-hover);color:#fff}.main-nav a.active{background:var(--rail-active);color:#fff;position:relative}.main-nav a.active:before{content:'';position:absolute;left:-20px;top:15px;bottom:15px;width:3px;background:var(--gold)}.main-nav a.active .icon{color:var(--rail-accent)}.rail-bottom{margin-top:auto;padding-top:50px}.rail-world{margin:0 12px 28px}.pixel-cross{font-size:36px;color:var(--gold);line-height:1}.rail-world p{margin:12px 0 20px;font-size:14px;line-height:1.9;color:var(--rail-ink)}.rail-world .mono{font-size:9px;letter-spacing:1.5px;color:var(--rail-muted)}.account-button{border-top:1px solid var(--rail-line);background:transparent;color:var(--rail-ink);display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:20px 0 0}.avatar{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand);border-radius:8px;flex:none}.account-button .avatar{background:var(--rail-active);color:var(--rail-ink)}.account-button>span:nth-child(2){min-width:0;flex:1}.account-button strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button small{display:block;font-size:10px;color:var(--rail-muted);margin-top:3px}.account-button>.icon{width:14px}.workspace{min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:var(--page)}.breadcrumbs{display:flex;gap:14px;align-items:center;font-size:12px}.breadcrumbs>span{color:var(--muted)}.breadcrumbs>span:first-child{font-family:USCraftPixel,var(--font);font-size:15px}.topbar-actions{display:flex;align-items:center;gap:12px}main{padding:38px 42px 52px;max-width:1550px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{font-size:38px;letter-spacing:-1.4px;margin:6px 0 9px;font-weight:750}.title-dot{font-size:50px;margin-left:3px}.page-heading p:not(.eyebrow){font-size:14px;color:var(--muted)}.role-chip{display:flex;gap:10px;align-items:center;border:1px solid var(--line);padding:10px 15px;border-radius:8px;background:var(--surface);flex-shrink:0}.role-chip small{display:block;font-size:10px;color:var(--muted);margin-bottom:2px}.role-chip strong{font-size:12px;font-weight:600}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:34px 0 20px;gap:16px}.section-heading h2{font-size:23px;margin-top:7px;font-weight:700}.section-heading .eyebrow{font-size:10px}.site-footer{padding:22px 42px 26px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.site-footer b{font-family:USCraftPixel,var(--font);font-weight:400;font-size:13px}.site-footer small{font-size:9px;letter-spacing:1px}
.home-hero{display:grid;grid-template-columns:1fr 1.04fr;gap:40px;align-items:center}.hero-copy{position:relative;padding:20px 0 10px}.hero-copy .eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.4px}.brand-square{width:7px;height:7px;background:var(--brand-solid);display:block}.hero-copy h1{font-size:61px;letter-spacing:-3px;line-height:1.18;margin:26px 0 21px;font-weight:800;position:relative}.gold-spark{color:var(--gold);font-size:40px;position:absolute;transform:rotate(8deg);margin-left:6px;margin-top:-6px;font-weight:400;line-height:1}.hero-copy p{font-size:15px;color:var(--muted);line-height:1.9}.hero-actions{display:flex;align-items:center;gap:22px;margin-top:27px}.hero-actions .primary{padding:13px 20px}.hero-steps{display:flex;gap:17px;border-top:1px solid var(--line);padding-top:22px;margin-top:34px;font-size:11px;white-space:nowrap;color:var(--muted)}.hero-steps b{font-family:ui-monospace,monospace;font-size:11px;color:var(--brand);margin-right:6px}.hero-stage{height:430px;background:var(--stage);position:relative;border-radius:12px;overflow:hidden;background-image:linear-gradient(var(--stage-grid) 1px,transparent 1px),linear-gradient(90deg,var(--stage-grid) 1px,transparent 1px);background-size:28px 28px;border:1px solid var(--subtle-line)}.stage-topline{position:absolute;left:22px;right:22px;top:18px;display:flex;align-items:center;justify-content:space-between;color:var(--deep);z-index:1}.stage-topline .mono{font-size:10px;letter-spacing:1.8px}.stage-live{font-size:10px;display:flex;align-items:center;gap:6px}.stage-live>span{width:5px;height:5px;background:var(--brand-solid);border-radius:50%}.stage-letters{position:absolute;left:0;right:0;top:45px;text-align:center;font-family:USCraftPixel,var(--font);font-size:135px;color:var(--stage-letters);line-height:1.2;letter-spacing:7px;user-select:none}.stage-floor{position:absolute;left:50%;bottom:12%;width:67%;height:20%;transform:translateX(-50%);background:radial-gradient(ellipse,var(--stage-floor),transparent 68%);pointer-events:none}.stage-corner{position:absolute;width:44px;height:44px;border:1px solid var(--stage-corner);transform:rotate(30deg);border-radius:1px}.stage-corner.c1{left:35px;top:114px}.stage-corner.c2{right:32px;bottom:114px;width:24px;height:24px;background:var(--gold);border-color:transparent;transform:rotate(-12deg)}.viewer{position:relative;width:100%;height:100%;isolation:isolate}.viewer canvas{display:block;position:absolute;inset:0;max-width:100%;cursor:grab;outline:none;touch-action:pan-y}.viewer canvas:active{cursor:grabbing}.viewer-fallback{position:absolute;height:86%;width:auto;max-width:90%;object-fit:contain;left:50%;top:50%;transform:translate(-50%,-50%);transition:opacity .2s;image-rendering:auto}.viewer.ready .viewer-fallback{opacity:0}.hero-stage>.viewer{position:absolute;left:6%;top:34px;right:6%;bottom:80px;width:88%;height:calc(100% - 114px)}.stage-caption{position:absolute;bottom:35px;left:22px;right:22px;border:1px solid #fff9;background:var(--stage-caption-bg);backdrop-filter:blur(6px);border-radius:8px;display:flex;gap:12px;align-items:center;padding:10px 12px;z-index:2;color:var(--ink)}.stage-caption-mark{width:36px;height:36px;border:1px solid var(--line);border-radius:7px;display:grid;place-items:center;color:var(--brand)}.stage-caption>div{flex:1}.stage-caption strong{font-size:14px}.stage-caption small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.stage-caption .icon-button{color:var(--brand);border:1px solid var(--line);width:36px;min-height:36px}.stage-note{position:absolute;bottom:12px;left:22px;font-size:9px;color:var(--muted);letter-spacing:1px}.continue-strip{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:14px 20px;margin-top:27px}.continue-strip:hover{border-color:var(--brand)}.continue-icon{width:36px;height:36px;background:var(--brand-soft);color:var(--brand);border-radius:7px;display:grid;place-items:center}.continue-strip>span:nth-child(2){flex:1}.continue-strip strong{display:block;font-size:13px}.continue-strip small{display:block;font-size:11px;margin-top:3px;color:var(--muted)}.continue-strip>.icon{color:var(--brand)}.skin-grid{display:grid;gap:20px}.home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.skin-card{position:relative;min-width:0}.skin-image-button{position:relative;display:block;width:100%;height:212px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--card-tone,var(--card-tone));padding:26px 16px 16px;transition:border-color .15s,box-shadow .15s}.skin-image-button:hover{border-color:var(--brand);box-shadow:0 5px 14px var(--card-shadow)}.skin-image-button.selected{border:2px solid var(--brand);padding:25px 15px 15px}.skin-image-button img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s}.skin-image-button:hover img{transform:translateY(-3px)}.card-topline{position:absolute;left:13px;top:12px;font-size:9px;letter-spacing:.7px;color:var(--card-meta)}.card-type{position:absolute;bottom:10px;left:12px;background:var(--card-chip-bg);border-radius:3px;padding:3px 6px;font:9px ui-monospace,monospace;color:var(--card-chip-ink)}.save-button{position:absolute;right:8px;top:5px;width:44px;height:44px;display:grid;place-items:center;background:transparent;color:var(--card-control);z-index:2;border-radius:50%}.save-button:hover{background:#fff9;color:var(--brand)}.save-button.saved{color:var(--brand)}.save-button.saved .icon{fill:var(--accent-wash)}.worn-mark{position:absolute;bottom:10px;right:10px;padding:3px 6px;background:var(--brand);color:#fff;border-radius:3px;font-size:10px;display:flex;gap:3px;align-items:center}.worn-mark .icon{width:11px;height:11px}.skin-card h3{font-size:13px;line-height:1.5;margin:12px 0 4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--muted)}.card-bottom p{font-size:10px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-bottom>span{font-size:10px;display:flex;gap:4px;align-items:center;flex-shrink:0}.card-bottom .icon{width:12px;height:12px}.connect-banner{margin-top:38px;background:var(--deep);color:#fff;border-radius:10px;padding:27px 32px;display:flex;align-items:center;gap:25px;justify-content:space-between}.connect-banner .eyebrow{color:var(--brand);font-weight:700}.connect-banner h2{font-size:24px;margin:7px 0 9px}.connect-banner p{font-size:12px;color:var(--muted)}.connect-banner .primary{background:var(--brand-solid)!important;color:var(--on-brand)!important;border-color:var(--brand-solid)!important;flex-shrink:0}.connect-banner .primary:hover{background:var(--brand-solid-hover)!important;color:var(--on-brand)!important}
.context-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 15px;border:1px solid var(--line);background:var(--brand-soft);border-radius:7px;margin-bottom:20px;font-size:12px;color:var(--ink)}.context-notice .quiet{white-space:nowrap;color:var(--brand);font-weight:600}.library-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:26px;align-items:start}.library-content{min-width:0}.filter-bar{display:flex;gap:12px;align-items:center}.search-box{position:relative;flex:1;display:flex;align-items:center;min-width:0}.search-box>.icon{position:absolute;left:13px;width:18px;color:var(--muted)}.search-box input{width:100%;border-color:var(--line);padding-left:40px;font-size:13px;background:var(--surface)}.sort-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.sort-label select{min-width:108px;border-color:var(--line);font-size:12px;padding:8px}.filter-row{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.filter-tabs{display:flex;gap:3px}.filter-tabs button{min-height:44px;border-radius:5px;padding:0 13px;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap}.filter-tabs button:hover{background:var(--brand-soft);color:var(--brand)}.filter-tabs button.selected{color:var(--brand);background:var(--brand-soft);font-weight:650}.source-filter select{border-color:transparent;background:transparent;font-size:11px;min-height:44px;padding:6px}.result-meta{display:flex;justify-content:space-between;gap:10px;margin:17px 0;font-size:11px;color:var(--muted)}.result-meta>span:last-child{font-size:10px}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 14px}.library-grid .skin-image-button{height:191px}.library-grid .skin-card h3{font-size:12px}.library-grid .card-bottom p{font-size:9px}.sample-footer{padding-top:23px;font-size:10px;color:var(--muted)}.inspector{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden;position:sticky;top:20px;box-shadow:var(--shadow)}.inspector-title{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line);font-size:12px}.inspector-title>span:first-child{display:flex;gap:8px;align-items:center;font-weight:600}.inspector-title .icon{width:16px;height:16px;color:var(--brand)}.inspector-title .small-label{font-size:9px;color:var(--muted)}.inspector-stage{height:292px;position:relative;background:var(--stage);overflow:hidden;background-image:radial-gradient(var(--accent-wash) .8px,transparent .8px);background-size:13px 13px}.inspector-stage>.viewer{height:250px;top:5px}.preview-tag{position:absolute;top:14px;left:14px;font-size:10px;padding:4px 7px;background:var(--accent-wash);color:var(--muted);border-radius:3px;pointer-events:none}.viewer-tip{position:absolute;bottom:12px;left:0;right:0;text-align:center;font-size:10px;color:var(--muted);pointer-events:none}.viewer-controls{display:flex;align-items:center;justify-content:space-between;padding:0 11px;border-bottom:1px solid var(--line)}.viewer-controls .icon{width:14px;height:14px}.viewer-controls .quiet{font-size:10px}.inspector-details{padding:19px 18px 18px}.type-label{font-size:10px;color:var(--brand);font-weight:600;letter-spacing:.4px}.inspector-details h2{font-size:20px;margin:5px 0;overflow-wrap:anywhere}.byline{font-size:11px;color:var(--muted)}.slot-note{font-size:11px;color:var(--muted);margin:16px 0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.inspector-details>.button+.button{margin-top:8px}.action-note{font-size:10px;color:var(--muted);line-height:1.8;margin:11px 0 0}.empty-state{text-align:center;border:1px dashed var(--strong-line);border-radius:10px;padding:56px 18px;margin-top:15px;background:var(--surface)}.empty-state>.icon{width:32px;height:32px;color:var(--brand);margin-bottom:16px}.empty-state h3{font-size:17px;margin-bottom:9px}.empty-state p{font-size:12px;color:var(--muted);margin-bottom:24px}.error-state>.icon{color:var(--gold-ink)}
.wardrobe-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:32px;align-items:start}.role-studio{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden;position:sticky;top:20px}.role-studio-head{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid var(--line)}.role-studio-head small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.role-studio-head strong{font-size:15px;overflow-wrap:anywhere}.wardrobe-stage{height:307px;background:var(--stage);position:relative}.wardrobe-watermark{position:absolute;top:18px;left:24px;font:56px USCraftPixel,var(--font);color:var(--stage-letters)}.wardrobe-stage>.viewer{height:100%}.equipment-slots{padding:2px 18px}.equipment-slot{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.equipment-slot:last-child{border:0}.slot-icon{background:var(--surface-soft);width:35px;height:35px;display:grid;place-items:center;border-radius:7px;color:var(--brand)}.slot-icon .icon{width:17px}.equipment-slot>span:nth-child(2){flex:1;min-width:0}.equipment-slot small{display:block;font-size:10px;color:var(--muted)}.equipment-slot strong{display:block;font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.equipment-slot .quiet{font-size:11px}.saved-status{display:flex;align-items:center;gap:6px;color:var(--success);background:var(--success-soft);padding:10px 18px;font-size:11px}.saved-status .icon{width:15px;height:15px}.connect-help{font-size:11px;padding:12px 18px}.wardrobe-items-heading{display:flex;align-items:center;justify-content:space-between}.wardrobe-items-heading h2{font-size:19px}.wardrobe-items-heading h2 span{font-size:12px;color:var(--muted);font-weight:400;margin-left:4px}.wardrobe-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0 17px;margin-bottom:4px}.closet-search{display:flex;align-items:center;gap:6px;min-width:0}.closet-search>.icon{width:15px;color:var(--muted)}.closet-search input{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:11px;padding:9px 0;max-width:160px;min-width:80px}.closet-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px}.closet-grid .skin-image-button{height:187px}.closet-grid .skin-card h3{font-size:12px}.closet-tip{display:flex;gap:10px;border-top:1px solid var(--line);margin-top:25px;padding-top:18px;color:var(--muted);font-size:11px}.closet-tip .icon{width:16px;height:16px}.wardrobe-gate{padding:70px 24px;background:var(--surface);border:1px solid var(--line);border-radius:10px;text-align:center}.wardrobe-gate>.icon{width:38px;height:38px;color:var(--brand);margin-bottom:20px}.wardrobe-gate h2{margin-bottom:10px}.wardrobe-gate p{color:var(--muted);font-size:13px;margin:0 0 25px}
.connect-methods{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:26px}.method{display:flex;align-items:center;gap:15px;text-align:left;padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.method>span{flex:1}.method>.icon{width:25px;height:25px;color:var(--muted)}.method>.icon:last-child{width:18px;height:18px}.method strong{display:block;font-size:15px}.method small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.method.selected{border-color:var(--brand);background:var(--brand-soft)}.method.selected>.icon{color:var(--brand)}.setup-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:26px;align-items:start}.setup-main{padding:26px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.step-heading{display:flex;gap:14px;align-items:flex-start}.step-heading>b{font:14px ui-monospace,monospace;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;width:35px;height:35px;border-radius:6px;flex:none}.step-heading h2{font-size:18px;margin:3px 0 8px}.step-heading p{font-size:11px;color:var(--muted)}.setup-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 20px}.setup-fields label,.upload-fields>label{display:grid;gap:7px;font-size:12px;font-weight:600}.setup-fields select{font-size:13px;border-color:var(--line)}.download-result{padding:18px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:14px;align-items:center}.jar-badge{width:38px;height:47px;border:1px solid var(--strong-line);border-radius:4px;font:11px ui-monospace,monospace;display:grid;place-items:center;background:var(--surface);color:var(--muted);align-self:start;margin-top:3px}.download-result h3{font-size:20px;margin:8px 0 4px}.download-result p{font-size:11px;color:var(--muted)}.download-result small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.download-result .button{grid-column:2;justify-self:start;margin-top:3px}.release-links{display:flex;gap:17px;flex-wrap:wrap;padding:10px 0 6px}.release-links a{display:flex;gap:4px;align-items:center;min-height:38px;font-size:10px;color:var(--brand)}.release-links .icon{width:11px;height:11px}.notice{display:flex;gap:10px;align-items:flex-start;border-radius:6px;background:var(--brand-soft);color:var(--ink);padding:12px;font-size:11px;line-height:1.8}.notice.warning{background:var(--gold-soft);color:var(--gold-ink)}.notice.danger{background:var(--danger-soft);color:var(--danger)}.notice .icon{width:17px;height:17px;margin-top:2px}.notice strong{font-weight:600}.second-step{border-top:1px solid var(--line);padding-top:25px;margin-top:25px}.path-example{border:1px dashed var(--strong-line);padding:15px;margin:20px 0 12px;border-radius:7px;overflow-wrap:anywhere}.path-example span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.path-example code{font:11px/1.8 ui-monospace,monospace;color:var(--brand)}.subtle-note{font-size:11px;line-height:1.8;color:var(--muted)}.setup-aside{padding:24px 0 10px}.setup-aside .eyebrow{font-size:10px}.setup-aside h2{font-size:19px;margin:8px 0 23px}.checklist{list-style:none;margin:0 0 25px;padding:0}.checklist li{display:flex;gap:12px;position:relative;padding-bottom:26px}.checklist li:last-child{padding-bottom:0}.checklist li:not(:last-child):after{content:'';position:absolute;left:12px;top:29px;bottom:3px;width:1px;background:var(--line)}.checklist li>span{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font:11px ui-monospace,monospace;background:var(--surface);flex:none}.checklist strong{font-size:12px;display:block;margin:2px 0 6px}.checklist p{font-size:11px;color:var(--muted)}.setup-aside details{border-bottom:1px solid var(--line);padding:15px 0;font-size:11px;color:var(--muted)}summary{cursor:pointer;font-weight:600;color:var(--ink);min-height:30px;line-height:30px}.setup-aside details p{margin:10px 0}.setup-aside details ol{padding-left:18px;line-height:1.9}.diagnostic{margin-top:15px;border:1px solid var(--line);border-radius:7px;padding:14px;background:var(--surface);font-size:11px}.diagnostic p{display:flex;align-items:center;gap:7px;margin:6px 0}.diagnostic .icon{width:15px;height:15px;color:var(--success)}.diagnostic .pending{color:var(--muted);border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.diagnostic .pending .icon{color:var(--muted)}.auth-panel{max-width:760px;padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.auth-mark{width:70px;height:70px;background:var(--page);border-radius:12px;padding:6px;margin-bottom:24px}.auth-panel h2{font-size:27px;margin:8px 0 12px}.auth-panel>p{font-size:13px;color:var(--muted);margin-bottom:26px}.auth-panel>label{display:block;font-size:12px;font-weight:600}.copy-field{display:flex;gap:14px;align-items:center;margin-top:8px;padding:9px 10px 9px 16px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft)}.copy-field code{flex:1;font-size:12px;overflow-wrap:anywhere;min-width:0}.copy-field .button{font-size:12px;padding:8px 12px;flex-shrink:0}.auth-steps{list-style:none;padding:0;margin:28px 0}.auth-steps li{display:flex;gap:18px;font-size:13px;margin:18px 0}.auth-steps b{color:var(--brand);font:12px ui-monospace,monospace}
:root:has(dialog[open]){overflow:hidden}dialog{padding:26px;width:460px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 28px 100px var(--overlay)}dialog::backdrop{background:var(--overlay);backdrop-filter:blur(3px)}.dialog-heading{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.dialog-heading h2{font-size:23px;margin-top:6px}.dialog-heading .eyebrow{font-size:9px}.dialog-heading>.icon-button{margin:-7px -8px 0 0;flex:none}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-actions .button{min-width:106px}.apply-preview{display:flex;align-items:center;gap:18px;background:var(--surface-soft);border-radius:8px;padding:12px 16px;margin-bottom:21px}.apply-preview img{height:110px;width:65px;object-fit:contain}.apply-preview h3{font-size:17px;line-height:1.45;overflow-wrap:anywhere}.apply-preview p{font-size:11px;color:var(--muted);margin-top:6px}.apply-target{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:15px;font-size:13px}.apply-target small{display:block;color:var(--muted);font-size:10px}.apply-target strong{font-size:13px;display:block;margin-top:3px}.action-progress{display:grid;gap:11px;font-size:12px;margin-top:20px}.action-progress>div{display:flex;align-items:center;gap:8px}.action-progress .icon{width:16px;height:16px;color:var(--success)}.action-progress .failed,.action-progress .failed .icon{color:var(--danger)}.action-progress .pending,.action-progress .pending .icon{color:var(--muted)}.result-head{text-align:center;padding:5px 0 20px}.result-head>.icon{width:43px;height:43px;color:var(--success);margin:10px 0 16px}.result-head h3{font-size:22px}.result-head p{color:var(--muted);font-size:12px;margin-top:9px}.result-head.warning>.icon{color:var(--gold-ink)}.gate-logo{display:block;width:76px;height:76px;margin:0 auto 16px;background:transparent;border-radius:12px;padding:0}.gate-head{text-align:center}.gate-head h2{font-size:24px;line-height:1.4}.gate-head>p{font-size:12px;color:var(--muted);margin:12px 0 21px}.gate-progress{display:flex;gap:14px;justify-content:center;margin:19px 0;font-size:10px;color:var(--muted)}.gate-progress .current{color:var(--brand);font-weight:600}.intent-strip{padding:11px;background:var(--surface-soft);border-radius:6px;font-size:11px;display:flex;gap:7px;align-items:center;color:var(--muted);margin:18px 0}.intent-strip .icon{width:15px;height:15px;color:var(--brand)}.gate-actions{display:grid;gap:10px;margin-top:23px}.gate-actions .quiet{font-size:12px}.gate-demo-note{color:var(--muted);font-size:10px;text-align:center;line-height:1.8;margin-top:13px}.gate-input{display:grid;gap:7px;margin:20px 0 7px;font-size:12px;font-weight:600}.gate-error{font-size:11px;color:var(--danger);margin:8px 0}.account-links{display:grid;gap:6px}.account-links a{padding:14px;border:1px solid var(--line);border-radius:7px;display:flex;justify-content:space-between;align-items:center}.account-links .icon{width:16px}.account-dialog-note{font-size:11px;color:var(--muted);margin-top:18px}.upload-layout{display:grid;grid-template-columns:1fr 1fr;gap:26px}#upload-dialog{width:760px}.upload-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:158px;padding:18px;border:1px dashed var(--strong-line);background:var(--surface-soft);border-radius:9px;position:relative;text-align:center;cursor:pointer}.upload-drop>.icon{color:var(--brand);width:28px;height:28px;margin-bottom:12px}.upload-drop strong{font-size:14px}.upload-drop small{font-size:10px;color:var(--muted);margin-top:7px}.upload-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-drop:focus-within{outline:3px solid var(--brand);outline-offset:3px}.upload-drop.dragging{background:var(--brand-soft);border-color:var(--brand)}.upload-local-preview{min-height:160px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;margin-top:14px;background:repeating-conic-gradient(var(--surface-soft) 0% 25%,var(--surface) 0% 50%) 50%/16px 16px;overflow:hidden;padding:20px}.upload-local-preview>span{font-size:11px;color:var(--muted);text-align:center;background:var(--surface);padding:8px}.upload-local-preview img{max-height:150px;object-fit:contain;image-rendering:pixelated}.sample-button{font-size:10px;margin-top:3px;padding-left:0}.upload-fields>label+label{margin-top:17px}.upload-fields input,.upload-fields select{font-weight:400;font-size:13px}.field-help{font-size:10px;color:var(--muted);line-height:1.8;margin:8px 0 18px}.upload-fields fieldset{border:0;padding:0;margin:0}.upload-fields legend{font-size:12px;font-weight:600;margin:0 0 10px}.radio-label{display:flex;align-items:flex-start;gap:9px;margin:10px 0;cursor:pointer}.radio-label input{margin:4px 0 0;flex:none;width:14px;height:14px}.radio-label>span{font-size:12px}.radio-label small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.cost-estimate{border-top:1px solid var(--line);padding-top:14px;margin-top:18px;display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:10px}.cost-estimate span{color:var(--muted)}.cost-estimate strong{font-size:12px}.upload-feedback{font-size:11px;line-height:1.8;margin-top:16px;color:var(--muted)}.upload-feedback[data-error=true]{color:var(--danger);padding:10px;background:var(--danger-soft);border-radius:6px}.upload-submit-row{border-top:1px solid var(--line);padding-top:20px;margin-top:20px;display:flex;gap:20px;justify-content:space-between;align-items:center}.upload-submit-row p{font-size:11px;color:var(--muted)}.toast{position:fixed;bottom:24px;left:calc(50% + 118px);transform:translateX(-50%);background:var(--deep);color:#fff;max-width:calc(100vw - 32px);padding:13px 21px;box-shadow:0 6px 24px var(--overlay);border:1px solid var(--subtle-line);border-radius:8px;font-size:12px;z-index:100;display:flex;align-items:center;gap:10px}.toast .icon{width:16px;height:16px;color:#c5edcd}#preview-dialog{width:360px;padding:0;overflow:hidden}#preview-dialog .inspector{position:static;box-shadow:none;border:none;border-radius:0}#preview-dialog .mobile-preview-heading{padding:14px 17px 0;margin-bottom:12px}#preview-dialog .mobile-preview-heading h2{font-size:18px;margin-top:3px}#preview-dialog .inspector-title{display:none}
body.night {
  --page: #0b1510;
  --surface: #122219;
  --surface-soft: #1b3023;
  --surface-hover: #24402e;
  --ink: #eff8ed;
  --muted: #a0b5a4;
  --brand: #73d69a;
  --brand-solid: #166e45;
  --brand-solid-hover: #1a7d50;
  --brand-hover: #a7e8ba;
  --brand-soft: rgba(75, 184, 118, 0.16);
  --deep: #0f281c;
  --rail: #08120d;
  --line: #2c4132;
  --strong-line: #6e9279;
  --stage: #15271b;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --gold: #fbbf24;
  --gold-ink: #fde68a;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

body.night .primary {
  background:var(--brand-solid) !important;
  color:var(--on-brand) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 4px 14px var(--accent-wash);
}
body.night .primary:hover {
  background:var(--brand-solid-hover) !important;
  border-color: var(--brand-hover) !important;
  box-shadow: 0 6px 20px var(--accent-wash);
}
body.night .secondary {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}
body.night .secondary:hover {
  background: var(--surface-hover);
  border-color: var(--brand);
  color: #ffffff;
}
body.night .danger-button {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}
body.night .danger-button:hover {
  background: #ef4444 !important;
}

/* Stage & Hero 3D in Night Mode */
body.night .hero-stage {
  background: var(--surface);
  border-color: var(--line);
  background-image: linear-gradient(var(--stage-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}
body.night .stage-floor {
  background: radial-gradient(ellipse, var(--stage-floor), transparent 70%);
}
body.night .stage-letters {
  color: var(--stage-letters);
}
body.night .stage-topline {
  color: var(--line);
}
body.night .stage-live > span {
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}
body.night .stage-caption {
  background: var(--stage-caption-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--subtle-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
body.night .stage-caption strong,
body.night #hero-skin-name {
  color: var(--ink) !important;
  font-weight: 700;
}
body.night .stage-caption small,
body.night #hero-skin-author {
  color: var(--muted) !important;
}
body.night .stage-caption-mark {
  background: var(--accent-wash) !important;
  color: var(--muted) !important;
  border: 1px solid var(--stage-corner) !important;
}
body.night .stage-caption .icon-button {
  background:var(--brand-solid) !important;
  color: #ffffff !important;
  border-radius: 6px;
}
body.night .stage-caption .icon-button:hover {
  background:var(--brand-solid-hover) !important;
}
body.night .viewer-tip {
  color: var(--muted);
}
body.night .stage-note {
  color: var(--muted);
}

/* Topbar & Header */
body.night .topbar {
  background: var(--page);
  border-bottom-color: var(--line);
}
body.night .breadcrumbs > span:first-child {
  color: #ffffff;
}
body.night .role-chip {
  background: var(--surface);
  border-color: var(--line);
}

/* Form Controls in Night Mode */
body.night input,
body.night select {
  background: var(--surface) !important;
  border-color: var(--strong-line) !important;
  color: var(--ink) !important;
}
body.night input:focus,
body.night select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--accent-wash) !important;
}
body.night input::placeholder {
  color: var(--muted);
}

/* Cards & Lists in Night Mode */
body.night .dash-card,
body.night .auth-card,
body.night .setup-aside,
body.night .setup-main {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body.night .dashboard-hero-card {
  background: linear-gradient(135deg, var(--stage) 0%, var(--surface-soft) 100%);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
body.night .dash-avatar-mat {
  background: var(--code-bg);
  border-color: var(--line);
}
body.night .dash-stat-item,
body.night .rule-row,
body.night .shortcut-item {
  background: var(--surface-soft);
  border-color: var(--line);
}
body.night .shortcut-item:hover {
  background: var(--surface-hover);
  border-color: var(--brand);
}

/* Texture & Skin Cards */
body.night .skin-image-button {
  background: var(--surface-soft);
  border-color: var(--brand-soft);
}
body.night .skin-image-button:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-wash);
}
body.night .skin-image-button.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}
body.night .card-type {
  background: var(--card-chip-bg);
  color: var(--ink);
  border: 1px solid var(--subtle-line);
}

/* Badges */
body.night .badge {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--muted);
}
body.night .badge.success {
  background: rgba(52, 211, 153, 0.14) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}
body.night .badge.warning {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

/* Hero Typography Accents */
body.night .gold-spark {
  color: var(--gold) !important;
  text-shadow: 0 0 20px var(--accent-wash);
}
body.night .brand-text {
  color: var(--brand) !important;
  text-shadow: 0 0 24px var(--stage-corner);
}
body.night .connect-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
}
body.night .connect-banner .primary {
  background:var(--brand-solid) !important;
  color:var(--on-brand) !important;
  border-color: var(--brand) !important;
}

/* Dialogs & Overlays */
body.night dialog {
  background: var(--deep);
  border-color: var(--line);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7);
}
body.night .apply-preview {
  background: var(--code-bg);
}
body.night .copy-field {
  background: var(--code-bg);
  border-color: var(--line);
}
@media(min-width:1640px){.home-hero{grid-template-columns:1.05fr 1fr;gap:65px}.hero-copy h1{font-size:72px}.hero-stage{height:470px}.library-layout{grid-template-columns:minmax(0,1fr) 310px}.library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.skin-image-button{height:240px}}
@media(max-width:1250px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.rail{padding:25px 16px}.brand{gap:9px}.brand b{font-size:21px}.brand small{font-size:9px}.logo-mat{width:47px;height:47px}.logo-mat img{width:42px;height:42px}.main-nav a.active:before{left:-16px}.topbar{padding:0 28px}main{padding:29px 28px 42px}.home-hero{gap:25px;grid-template-columns:1fr 1fr}.hero-copy h1{font-size:51px}.hero-actions{gap:13px}.hero-actions .button{font-size:12px;padding:12px 14px}.hero-actions .text-link{font-size:11px}.hero-steps{gap:12px;font-size:10px}.hero-stage{height:406px}.hero-steps b{margin-right:4px}.hero-copy h1 .gold-spark{font-size:30px}.library-layout{grid-template-columns:minmax(0,1fr) 263px;gap:20px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wardrobe-layout{grid-template-columns:285px minmax(0,1fr);gap:23px}.closet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-grid{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.setup-main{padding:20px}.site-footer{padding:22px 28px}.hero-steps{flex-wrap:wrap}.sort-label>span{display:none}.filter-tabs button{padding:0 10px}}
@media(max-width:1020px){.app-shell{grid-template-columns:84px minmax(0,1fr)}.rail{padding:22px 13px}.brand{justify-content:center}.brand>span:last-child,.rail-caption,.main-nav a>span,.rail-world,.account-button>span:nth-child(2),.account-button>.icon{display:none}.main-nav{margin-top:37px;gap:11px}.main-nav a{justify-content:center;padding:0}.main-nav a.active:before{left:-13px}.account-button{justify-content:center}.hero-copy h1{font-size:53px}.hero-stage{height:410px}.home-grid{gap:15px}.home-grid .skin-image-button{height:198px}.toast{left:calc(50% + 42px)}.site-footer>span:nth-child(2){display:none}}
@media(max-width:820px){.home-hero{gap:20px}.hero-copy h1{font-size:45px}.hero-copy .eyebrow{font-size:9px;letter-spacing:1px}.hero-copy p{font-size:13px}.hero-actions{align-items:flex-start;flex-direction:column;gap:4px;margin-top:22px}.hero-steps{margin-top:20px;padding-top:18px;gap:12px}.hero-steps span:last-child{display:none}.hero-stage{height:408px}.stage-topline{left:16px;right:16px}.stage-topline .mono{font-size:8px}.stage-live{font-size:8px}.stage-caption{left:12px;right:12px;padding:8px;gap:8px}.stage-caption-mark{display:none}.stage-caption strong{font-size:12px}.stage-caption small{font-size:9px}.home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 18px}.home-grid .skin-image-button{height:228px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:32px}.page-heading p:not(.eyebrow){font-size:12px}.role-chip{display:none}.library-layout{grid-template-columns:minmax(0,1fr) 234px;gap:18px}.inspector-details{padding:16px 13px}.inspector-details h2{font-size:18px}.inspector-details .button{font-size:12px;padding:11px 8px}.inspector-stage{height:263px}.inspector-stage>.viewer{height:225px}.library-grid .skin-image-button{height:166px}.library-grid .card-bottom>span{display:none}.result-meta>span:last-child{display:none}.filter-bar{flex-wrap:wrap}.sort-label{width:100%;justify-content:flex-end}.sort-label select{min-height:37px}.filter-row{padding-top:3px}.source-filter{margin-left:auto}.filter-tabs button{font-size:11px;padding:0 9px}.wardrobe-layout{grid-template-columns:250px minmax(0,1fr);gap:22px}.closet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.closet-grid .skin-image-button{height:158px}.wardrobe-toolbar{flex-wrap:wrap}.closet-search{width:100%}.closet-search input{width:100%;max-width:none}.wardrobe-stage{height:270px}.role-studio-head{padding:16px}.role-studio-head .badge{font-size:9px;padding:5px}.role-studio-head strong{font-size:12px}.wardrobe-items-heading h2{font-size:16px}.wardrobe-items-heading .text-link{font-size:10px}.closet-grid .card-bottom>span{display:none}.setup-grid{grid-template-columns:minmax(0,1fr)}.setup-aside{padding:22px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.connect-methods{gap:12px}.method{padding:17px 14px;gap:10px}.method strong{font-size:12px}.method small{font-size:10px}.method>.icon{width:20px;height:20px}.method>.icon:last-child{display:none}.connect-banner{padding:24px;gap:16px}.connect-banner h2{font-size:21px}.connect-banner p{font-size:11px}.connect-banner .button{font-size:12px;white-space:nowrap}.page-heading>.button{font-size:12px;padding:10px 12px}.page-heading>.badge{display:none}}
@media(max-width:700px){.review-bar{padding:5px 12px;gap:6px;min-height:37px}.review-bar>a{font-size:9px;gap:4px;letter-spacing:.5px}.review-bar>a span{font-size:0}.review-bar>a span:after{content:'· 本地演示';font-size:9px;letter-spacing:0}.review-bar label{font-size:0;gap:0}.review-bar select{font-size:10px;max-width:162px;min-height:26px}.app-shell{display:block}.rail{height:66px;position:static;padding:10px 20px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.brand{gap:9px}.brand>span:last-child{display:block}.brand b{font-size:20px}.brand small{font-size:8px;margin-top:1px;color:var(--rail-muted)}.logo-mat{width:43px;height:43px;border-radius:8px}.logo-mat img{width:39px;height:39px}.rail-bottom{padding:0;margin:0}.account-button{padding:0;border:0}.account-button .avatar{width:35px;height:35px;background:var(--subtle-line)}.main-nav{position:fixed;left:0;right:0;bottom:0;min-height:65px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:4px 10px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);z-index:30;box-shadow:0 -3px 20px var(--card-shadow)}.main-nav a{display:flex;flex-direction:column;gap:2px;min-height:56px;border-radius:7px;color:var(--muted);font-size:10px;padding:7px 0 5px}.main-nav a>span:not(.nav-index){display:block}.main-nav a.active{background:var(--brand-soft);color:var(--brand)}.main-nav a.active:before{display:none}.main-nav a.active .icon{color:var(--brand)}.main-nav a .icon{width:20px;height:20px}.main-nav a:hover{background:var(--brand-soft);color:var(--brand)}.topbar{height:57px;padding:0 20px;gap:10px}.breadcrumbs{gap:10px;font-size:11px}.breadcrumbs>span:first-child{font-size:12px}.topbar-actions{gap:5px}.topbar .upload-trigger{padding:7px 10px;font-size:11px;min-height:36px}.topbar .upload-trigger .icon{width:14px;height:14px}.topbar .icon-button{width:36px;min-height:36px;padding:8px}.topbar .icon-button .icon{width:17px;height:17px}main{padding:24px 20px 35px}.home-hero{grid-template-columns:minmax(0,1fr);gap:23px}.hero-copy{padding:0}.hero-copy .eyebrow{font-size:9px;letter-spacing:1.2px}.hero-copy h1{font-size:49px;letter-spacing:-2px;line-height:1.17;margin:18px 0 15px}.hero-copy h1 .gold-spark{font-size:32px;margin-left:8px;margin-top:0}.hero-copy p{font-size:13px;line-height:1.8}.hero-actions{flex-direction:row;align-items:center;gap:17px;margin-top:22px}.hero-actions .button{padding:12px 16px;font-size:12px}.hero-actions .text-link{font-size:11px}.hero-steps{margin-top:23px;padding-top:17px;gap:15px;justify-content:space-between;font-size:9px;flex-wrap:nowrap}.hero-steps span:last-child{display:block}.hero-steps b{font-size:10px}.hero-stage{height:345px;border-radius:9px}.stage-topline{top:16px;left:18px;right:18px}.stage-topline .mono{font-size:9px}.stage-live{font-size:9px}.hero-stage>.viewer{top:22px;bottom:82px;height:calc(100% - 104px)}.stage-letters{top:40px;font-size:120px}.stage-caption{left:16px;right:16px;bottom:31px;padding:8px 10px}.stage-caption-mark{display:grid;width:31px;height:31px}.stage-caption strong{font-size:12px}.stage-note{bottom:10px;left:18px}.stage-corner.c1{width:31px;height:31px;left:30px;top:95px}.continue-strip{margin-top:18px;padding:12px 13px;gap:10px}.continue-strip strong{font-size:11px}.continue-strip small{font-size:9px}.continue-strip .continue-icon{width:30px;height:30px}.continue-strip .continue-icon .icon{width:17px;height:17px}.continue-strip>.icon{width:16px;height:16px}.section-heading{margin:30px 0 17px;gap:10px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.section-heading h2{font-size:18px;margin-top:6px}.section-heading .text-link{font-size:10px;gap:4px;white-space:nowrap}.section-heading .icon{width:14px}.home-grid{gap:21px 13px}.home-grid .skin-image-button{height:201px}.skin-card h3{font-size:12px;margin-top:10px}.card-bottom p{font-size:9px}.card-topline{font-size:8px;left:10px}.card-bottom>span{font-size:9px}.save-button{right:4px;top:3px}.connect-banner{margin-top:30px;padding:24px;display:block}.connect-banner h2{font-size:22px}.connect-banner p{font-size:11px}.connect-banner>.button{margin-top:20px}.site-footer{padding:20px 20px 93px;flex-direction:column;gap:8px;font-size:10px}.site-footer small{font-size:8px}.site-footer>span:nth-child(2){display:block}.page-heading{gap:12px;align-items:flex-start;margin-bottom:23px}.page-heading h1{font-size:31px;letter-spacing:-1px;margin:3px 0 7px}.page-heading .title-dot{font-size:38px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.page-heading p:not(.eyebrow){font-size:11px;line-height:1.7}.page-heading>.button{display:none}.library-layout{display:block}.library-layout>.inspector{display:none}.filter-bar{flex-wrap:nowrap;gap:9px}.search-box input{font-size:12px;padding-left:36px}.search-box>.icon{left:11px;width:16px}.sort-label{width:auto}.sort-label select{font-size:11px;min-width:91px;min-height:44px;padding:7px}.filter-row{gap:5px;padding:10px 0}.filter-tabs{gap:1px}.filter-tabs button{padding:0 10px;font-size:11px}.source-filter{width:100%;margin:0;display:flex;justify-content:flex-end}.source-filter select{padding:5px 0;min-height:32px;font-size:10px}.result-meta{margin:13px 0;font-size:10px}.result-meta>span:last-child{display:block;font-size:0}.result-meta>span:last-child:after{content:'点按作品，打开预览';font-size:9px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 13px}.library-grid .skin-image-button{height:211px}.library-grid .card-bottom>span{display:flex}.library-grid .skin-card h3{font-size:12px}.sample-footer{font-size:9px;line-height:1.8}.context-notice{padding:9px 12px;font-size:11px;gap:8px;align-items:flex-start}.context-notice .quiet{font-size:11px;padding:6px;min-height:38px}.wardrobe-layout{display:flex;flex-direction:column;gap:25px}.role-studio{position:static;width:100%}.role-studio-head{padding:15px 18px}.role-studio-head strong{font-size:14px}.role-studio-head .badge{font-size:10px}.wardrobe-stage{height:281px}.wardrobe-watermark{font-size:59px;top:13px}.equipment-slot{padding:10px 0}.wardrobe-items{width:100%}.wardrobe-items-heading h2{font-size:19px}.wardrobe-items-heading .text-link{font-size:11px}.wardrobe-toolbar{flex-wrap:nowrap;padding:9px 0 13px;gap:10px}.closet-search{width:auto;flex:1;max-width:170px}.closet-search input{font-size:10px}.closet-grid .skin-image-button{height:210px}.closet-grid .card-bottom>span{display:flex}.closet-tip{font-size:10px}.connect-methods{grid-template-columns:1fr;gap:10px;margin-bottom:22px}.method{padding:15px 17px;gap:13px}.method strong{font-size:13px}.method small{font-size:10px}.method>.icon:last-child{display:block;margin-left:auto;width:16px}.method>.icon{width:22px;height:22px}.setup-main{padding:20px 17px}.step-heading{gap:11px}.step-heading>b{width:30px;height:30px;font-size:11px}.step-heading h2{font-size:16px;margin-top:2px}.step-heading p{font-size:10px;line-height:1.8}.setup-fields{gap:12px;margin:22px 0 18px}.setup-fields label{font-size:10px}.setup-fields select{font-size:12px}.download-result{padding:14px;gap:11px}.download-result .badge{font-size:9px;padding:5px 7px}.download-result h3{font-size:20px}.download-result p{font-size:10px}.download-result .button{font-size:12px}.release-links{gap:12px}.release-links a{font-size:9px}.notice{font-size:10px}.path-example{padding:12px}.path-example code{font-size:10px}.path-example span{font-size:10px}.subtle-note{font-size:10px}.setup-aside{padding:22px 18px}.setup-aside h2{font-size:19px}.auth-panel{padding:23px 20px}.auth-panel h2{font-size:23px}.auth-panel>p{font-size:12px}.copy-field{padding:10px;flex-wrap:wrap;gap:8px}.copy-field code{font-size:10px}.copy-field .button{font-size:11px;min-height:37px}.auth-steps li{font-size:11px;gap:12px}.auth-panel>.eyebrow{font-size:9px}.toast{bottom:82px;left:50%;width:max-content;font-size:11px;padding:12px 16px;max-width:calc(100vw - 32px)}dialog{padding:22px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 34px);border-radius:12px}.dialog-heading h2{font-size:21px}.dialog-actions{gap:8px;flex-wrap:wrap}.dialog-actions .button{flex:1;min-width:90px;font-size:12px;padding:11px 10px}#preview-dialog{position:fixed;top:auto;bottom:0;left:0;right:0;margin:0;width:100%;max-width:none;max-height:94dvh;border-radius:15px 15px 0 0;padding-bottom:env(safe-area-inset-bottom);overflow:auto}#preview-dialog .inspector-stage{height:250px}#preview-dialog .inspector-stage>.viewer{height:219px}#preview-dialog .inspector-details{padding:14px 20px 20px}#preview-dialog .inspector-details h2{font-size:21px}#preview-dialog .slot-note{margin:12px 0;padding:8px 0}#preview-dialog .inspector-details>.button{font-size:13px;min-height:44px}#preview-dialog .inspector-details .action-note{font-size:10px;margin-top:8px}#preview-dialog .viewer-controls{padding:0 16px}#preview-dialog .viewer-controls .quiet{font-size:11px}#preview-dialog .mobile-preview-heading{padding-top:16px}#upload-dialog{max-width:calc(100vw - 20px);padding:22px 18px}.upload-layout{grid-template-columns:1fr;gap:17px}.upload-drop{min-height:128px}.upload-local-preview{min-height:115px;padding:15px}.upload-local-preview img{max-height:120px}.upload-submit-row{flex-direction:column;align-items:stretch;gap:12px}.upload-submit-row p br{display:none}.upload-submit-row .button{font-size:12px}.empty-state{padding:42px 18px}.empty-state h3{font-size:16px}.empty-state p{font-size:11px}.wardrobe-gate{padding:43px 20px}.wardrobe-gate h2{font-size:21px}.wardrobe-gate p{font-size:12px}.gate-head h2{font-size:23px}.gate-logo{width:67px;height:67px}.gate-progress{gap:12px}}
@media(max-width:359px){.rail{padding:10px 16px}.topbar{padding:0 16px}main{padding:23px 16px 32px}.hero-copy h1{font-size:44px}.hero-steps{font-size:8px;gap:8px}.hero-steps b{font-size:9px}.hero-actions{gap:11px}.hero-actions .button{font-size:11px;padding:11px 13px}.hero-actions .text-link{font-size:10px}.review-bar{padding:5px 10px}.review-bar select{max-width:146px}.hero-stage{height:322px}.home-grid .skin-image-button,.library-grid .skin-image-button,.closet-grid .skin-image-button{height:185px}.filter-tabs button{padding:0 9px;font-size:10px}.filter-bar{gap:7px}.sort-label select{min-width:85px;font-size:10px}.search-box input{font-size:10px}.section-heading h2{font-size:16px}.section-heading .text-link{font-size:9px}.continue-strip small{font-size:8px}.setup-main{padding:18px 14px}.step-heading h2{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.viewer-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:var(--muted);font-size:12px}.viewer-empty>.icon{width:52px;height:52px;opacity:.5}
/* Functional copy stays readable; tiny mono labels above are decorative only. */
.brand small{font-size:11px}.rail-caption{font-size:12px}.account-button small{font-size:12px}.card-bottom p,.library-grid .card-bottom p,.card-bottom>span,.byline,.slot-note,.action-note,.viewer-tip,.viewer-controls .quiet,.type-label{font-size:12px}.role-chip small,.role-studio-head small,.equipment-slot small,.saved-status,.connect-help,.closet-tip,.sample-footer{font-size:12px}.hero-steps,.hero-steps b,.continue-strip small,.stage-caption small{font-size:12px}.setup-fields label,.step-heading p,.download-result p,.download-result small,.release-links a,.notice,.subtle-note,.checklist p,.setup-aside details,.diagnostic,.method small{font-size:12px}.apply-preview p,.apply-target small,.result-head p,.gate-head>p,.gate-demo-note,.gate-error,.intent-strip,.field-help,.upload-drop small,.radio-label small,.upload-feedback,.upload-submit-row p,.cost-estimate,.cost-estimate strong{font-size:12px}.gate-demo-note{line-height:1.7}.badge{font-size:12px}.account-button{padding-top:17px}.stage-caption small{font-size:11px}.stage-note{font-size:11px}.hero-steps{gap:14px;white-space:normal}.brand small{white-space:normal}.card-topline{font-size:10px}.card-type,.worn-mark{font-size:11px}.card-bottom p{max-width:calc(100% - 27px)}
@media(max-width:1250px){.brand small{font-size:10px}.hero-steps,.hero-steps b{font-size:11px}.library-grid .card-bottom p{font-size:11px}}
@media(max-width:1020px){.brand small{font-size:10px}}
@media(max-width:820px){.brand small{font-size:10px}.hero-steps{gap:12px}.hero-steps,.hero-steps b{font-size:11px}.library-grid .card-bottom p{font-size:12px}.card-bottom p{max-width:100%}.inspector-details .button{font-size:13px}.method small{font-size:12px}.setup-fields label{font-size:12px}}
@media(max-width:700px){.brand small{font-size:10px}.main-nav a{font-size:12px}.hero-copy p,.page-heading p:not(.eyebrow){font-size:13px}.hero-steps,.hero-steps b{font-size:11px}.hero-steps{gap:9px}.hero-actions .button,.hero-actions .text-link,.section-heading .text-link{font-size:12px}.continue-strip small{font-size:11px}.continue-strip strong{font-size:12px}.card-bottom p,.library-grid .card-bottom p{font-size:12px}.card-bottom>span{font-size:11px}.skin-card h3,.library-grid .skin-card h3,.closet-grid .skin-card h3{font-size:13px}.filter-tabs button,.sort-label select,.source-filter select,.result-meta,.search-box input{font-size:12px}.result-meta>span:last-child:after{font-size:11px}.source-filter select{min-height:44px}.stage-caption small{font-size:11px}.stage-note{font-size:11px}.setup-main .badge{font-size:11px}.auth-panel>p,.auth-steps li,.copy-field code{font-size:12px}.copy-field code{flex-basis:100%}.gate-demo-note{font-size:11px}.upload-drop small,.field-help,.radio-label small,.upload-feedback,.upload-submit-row p{font-size:12px}.card-bottom p{max-width:calc(100% - 25px)}.hero-stage{height:351px}.hero-steps span:last-child{display:block}.inspector-details .action-note{font-size:12px!important}}
@media(max-width:359px){.hero-steps,.hero-steps b{font-size:10px}.hero-actions{gap:10px}.hero-actions .button,.hero-actions .text-link{font-size:11px}.section-heading .text-link{font-size:10px}.section-heading h2{font-size:16px}.search-box input{font-size:11px}.filter-tabs button{padding:0 9px}.continue-strip small{font-size:10px}}
/* Preserve 44px touch targets even when compact visual chrome is used. */
.brand{min-height:44px}.account-button{min-height:44px;min-width:44px}.radio-label{min-height:44px}.release-links a{min-height:44px}.stage-caption .icon-button{width:44px;min-height:44px}.stage-caption small{font-size:12px}
@media(max-width:700px){.topbar .icon-button{width:44px;min-height:44px}.topbar .upload-trigger{min-height:44px}.stage-caption small{font-size:12px}.rail{height:68px}}
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin:28px 0 16px;padding:8px 0;flex-wrap:wrap}
.pagination-info{font-size:12px;color:var(--muted);margin:0 8px;display:flex;align-items:center;gap:6px}
.pagination-button{min-height:38px;padding:6px 14px;border:1px solid var(--line);background:var(--surface);border-radius:6px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px;color:var(--ink);transition:background .15s,border-color .15s}
.pagination-button:hover:not(:disabled){background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.pagination-button:disabled{opacity:.4;cursor:not-allowed}
.pagination-pages{display:flex;gap:4px;align-items:center}
.pagination-page{min-width:38px;height:38px;display:grid;place-items:center;border-radius:6px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;padding:0 6px;cursor:pointer}
.pagination-page:hover:not(.active){background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.pagination-page.active{background:var(--brand-solid);color:#fff;border-color:var(--brand);cursor:default}
.pagination-ellipsis{padding:0 4px;color:var(--muted);font-size:12px}
.pagination-jump{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;flex-basis:100%;color:var(--muted);font-size:12px}
.pagination-jump input{width:78px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);text-align:center;font:inherit;font-size:16px;font-variant-numeric:tabular-nums}
.pagination-jump input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* --- Modern Dashboard & Profile Styles --- */
.dashboard-layout, .profile-layout { display: flex; flex-direction: column; gap: 24px; }
.dashboard-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; box-shadow: var(--shadow); }
.dash-user-info { display: flex; align-items: center; gap: 18px; }
.dash-avatar-mat { width: 68px; height: 68px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.dash-avatar-mat img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.dash-user-info h2 { font-size: 24px; margin: 4px 0; font-weight: 750; }
.dash-user-info p { font-size: 13px; color: var(--muted); }
.dash-score-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dash-score-value { text-align: right; }
.dash-score-value small { display: block; font-size: 11px; color: var(--muted); }
.dash-score-value strong { font-size: 26px; color: var(--brand); font-weight: 800; font-family: ui-monospace, SFMono-Regular, monospace; }
.dash-sign-hint { font-size: 11px; color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.dashboard-col { display: flex; flex-direction: column; gap: 24px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash-card-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.dash-card-header h3 .icon { width: 18px; height: 18px; color: var(--brand); }
.dash-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-stat-item { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; }
.dash-stat-item strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); font-family: ui-monospace, monospace; }
.dash-stat-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.dash-player-preview { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface-soft); border-radius: 8px; border: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.dash-player-tag span { display: block; font-size: 11px; color: var(--muted); }
.dash-player-tag strong { font-size: 14px; color: var(--brand); font-weight: 700; }
.dash-player-actions { display: flex; align-items: center; gap: 12px; }

.dash-rules-table { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.rule-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rule-row:last-child { border: none; }
.rule-row span { color: var(--muted); }

.announcement-content { font-size: 13px; line-height: 1.8; color: var(--ink); }
.announcement-content p { margin-bottom: 10px; }
.dash-shortcuts { display: flex; flex-direction: column; gap: 10px; }
.shortcut-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s; text-align: left; }
.shortcut-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.shortcut-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.shortcut-item>div { flex: 1; }
.shortcut-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.shortcut-item small { display: block; font-size: 11px; color: var(--muted); }
.shortcut-item>.icon { color: var(--muted); }

/* Profile Styles */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.profile-card.full-width { grid-column: 1 / -1; }
.profile-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-card-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.profile-card-header h3 .icon { width: 18px; height: 18px; color: var(--brand); }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; }
.profile-form input { font-weight: normal; }
.avatar-edit-row { display: flex; gap: 18px; align-items: flex-start; }
.avatar-preview-box { width: 72px; height: 72px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.avatar-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.avatar-action-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.email-status-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface-soft); border-radius: 8px; border: 1px solid var(--line); }
.email-status-row strong { display: block; font-size: 14px; margin-top: 2px; }
.danger-card { border-color: #ffd0d6; background: #fffbfb; }
body.night .danger-card { border-color: #5c2833; background: #1f1418; }

/* Auth Page Styles */
.workspace-shell{max-width:1140px;margin:auto;padding:28px 24px 64px}.workspace-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.workspace-nav{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;margin-bottom:30px;border-bottom:1px solid var(--line)}.workspace-nav a{padding:11px 14px;border-radius:8px;color:var(--muted)}.workspace-nav a[aria-current=page]{background:var(--brand-soft);color:var(--brand);font-weight:700}.workspace-toolbar,.work-actions,.flow-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.workspace-toolbar{margin:20px 0}.workspace-toolbar label{display:flex;gap:6px;flex-direction:column;font-size:12px;color:var(--muted)}.works-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.work-card,.workspace-item{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}.work-card>img{width:100%;height:190px;object-fit:contain;background:var(--stage);border-radius:10px;margin-bottom:14px}.work-card h2,.workspace-item h2{font-size:18px;overflow-wrap:anywhere;margin-bottom:10px}.work-card .work-actions{margin-top:16px}.work-actions .button{min-height:44px;font-size:12px}.workspace-list{display:grid;gap:14px}.workspace-item>*+*{margin-top:12px}.workspace-item small{color:var(--muted)}.notification-content{white-space:pre-wrap;overflow-wrap:anywhere}.workspace-empty{padding:40px 20px;grid-column:1/-1;color:var(--muted);text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:12px}.workspace-feedback{padding:14px 18px;margin:20px 0;background:var(--brand-soft);border:1px solid var(--line);border-radius:10px}.workspace-dialog{width:min(94vw,520px);max-height:90vh;overflow:auto;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink)}.workspace-dialog::backdrop{background:#10203080;backdrop-filter:blur(3px)}.workspace-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.workspace-dialog-head h2{font-size:22px}.workspace-dialog label{display:flex;flex-direction:column;gap:8px;margin:16px 0}.workspace-dialog textarea{min-height:120px;background:var(--surface);border:1px solid var(--strong-line);border-radius:8px;color:var(--ink);font:inherit;padding:12px;resize:vertical}.workspace-dialog .flow-actions{justify-content:flex-end;margin-top:24px}.workspace-dialog p{line-height:1.8;overflow-wrap:anywhere}#workspace-dialog-error,.flow-error{color:var(--danger);padding:12px 0}.flow-card h1{font-size:26px;margin:12px 0 16px;line-height:1.35}.flow-intro{font-size:14px;color:var(--muted);line-height:1.9;margin-bottom:24px;overflow-wrap:anywhere}.flow-card .auth-form{display:flex;flex-direction:column;gap:12px}.flow-card>.button+.button{margin-top:12px}.flow-password{display:flex;gap:8px}.flow-password input{min-width:0;flex:1}.flow-password button{padding:10px;background:var(--surface-soft);border:1px solid var(--line);border-radius:7px}.flow-scopes{padding:18px 18px 18px 34px;border-radius:10px;background:var(--brand-soft);line-height:2;margin-bottom:24px}.flow-actions>form{flex:1}.flow-card [hidden],.workspace-shell [hidden],.workspace-dialog [hidden]{display:none!important}.workspace-shell .page-heading{gap:20px;flex-wrap:wrap}.workspace-shell .page-heading h1{font-size:36px}.flow-card p[data-flow-feedback]{color:var(--danger)}
@media(max-width:800px){.works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-shell{padding:20px 16px 48px}.workspace-header .brand small{display:none}}
@media(max-width:500px){.works-grid{grid-template-columns:1fr}.workspace-header{gap:8px}.workspace-header .brand b{font-size:18px}.workspace-header .logo-mat{width:36px;height:36px}.workspace-header .button{padding:9px;font-size:12px}.workspace-nav{gap:3px}.workspace-nav a{font-size:12px;padding:10px}.workspace-toolbar label{width:100%}.flow-card h1{font-size:23px}}
.auth-page { min-height: 100vh; background: var(--page); color: var(--ink); display: flex; flex-direction: column; }
.auth-layout { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-header { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow); }
.auth-card-head { text-align: center; margin-bottom: 22px; }
.auth-card-head h1 { font-size: 24px; margin: 8px 0 10px; font-weight: 800; }
.auth-card-head p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.verification-card { max-width:460px; }
.verification-mark { width:64px;height:64px;display:grid;place-items:center;margin:0 auto 24px;border:1px solid var(--line);border-radius:20px;background:var(--brand-soft);color:var(--brand); }
.verification-mark .icon { width:30px;height:30px; }
.verification-mark.is-complete { color:var(--success);background:var(--success-soft); }
.verification-address { display:flex;flex-direction:column;gap:7px;padding:18px;margin:24px 0;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;text-align:center;overflow-wrap:anywhere; }
.verification-address span { font-size:11px;color:var(--muted); }
.verification-address strong { font-size:15px;font-weight:600; }
.verification-primary { display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;gap:10px; }
.verification-hint { font-size:12px;line-height:1.8;color:var(--muted);text-align:center;margin-top:16px; }
.verification-footer { display:flex;justify-content:center;align-items:center;gap:14px;border-top:1px solid var(--line);padding-top:18px;margin-top:26px;color:var(--muted);font-size:12px; }
.verification-footer a { display:inline-flex;align-items:center;min-height:44px; }
.verification-footer a:hover { color:var(--brand); }
.email-delivery-hint { color:var(--muted);font-size:12px;line-height:1.8;margin:12px 0; }
.email-delivery-hint summary { cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--brand); }
.email-delivery-hint p { margin:0 0 10px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--muted); position: relative; transition: color .15s; }
.auth-tab.active { color: var(--brand); }
.auth-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background:var(--brand-solid); border-radius: 2px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; }
.form-group input { font-weight: normal; font-size: 13px; }
.field-hint { font-size: 11px; color: var(--muted); font-weight: normal; margin-top: 2px; }
.form-options { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--brand); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-img { height: 44px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 11px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-alert { padding: 12px 14px; border-radius: 7px; font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.auth-alert.error { background: var(--danger-soft); color: var(--danger); border: 1px solid #ffccd3; }
.auth-alert.success { background: var(--success-soft); color: var(--success); border: 1px solid #c2eedc; }
.auth-footer-links { display: flex; justify-content: center; gap: 10px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.auth-footer-links a { color: var(--muted); }
.auth-footer-links a:hover { color: var(--brand); }

/* --- 认证页：密码可见性切换与字段校验（2026-10-30 新增） --- */
.form-group label { font-weight: 600; }
.form-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.form-label-link { font-size: 12px; font-weight: 400; }

/* 密码框：右侧 44x44 切换按钮；输入框预留 48px 内边距，文字不被按钮遮挡 */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 48px; }
/* 隐藏 Edge 原生密码显示按钮，避免与本主题 .password-toggle 重复（2026-10-30） */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}
.password-toggle { position: absolute; top: 0; right: 0; width: 44px; height: 100%; min-height: 44px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); border-radius: 7px; cursor: pointer; }
.password-toggle:hover { color: var(--brand); }
.password-toggle .icon { width: 18px; height: 18px; }
.password-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 密码强度/规则清单 */
.password-requirements { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 400; color: var(--muted); }
.password-requirements li { display: flex; align-items: center; gap: 6px; }
.password-requirements .icon { width: 13px; height: 13px; flex: none; color: var(--muted); opacity: .55; }
.password-requirements li.met { color: var(--success); }
.password-requirements li.met .icon { color: var(--success); opacity: 1; }
/* 密码规则清单：未满足=空心圆，满足=实心对勾（纯 CSS，不依赖 DOM 图标） */
.password-requirements li::before {
  content: '';
  width: 13px;
  height: 13px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .5;
}
.password-requirements li.met::before {
  content: '✓';
  display: grid;
  place-items: center;
  border-color: var(--success);
  background: var(--success);
  color: var(--surface);
  opacity: 1;
  font-size: 9px;
  line-height: 1;
}

/* 字段级错误与无效态 */
.field-error { font-size: 11px; font-weight: 400; color: var(--danger); margin-top: 2px; }
input[aria-invalid="true"] { border-color: var(--danger); }
/* body.night 下的 input 规则带 !important，这里补一条同优先级更高的夜间无效态，保证暗色下红框可见 */
body.night input[aria-invalid="true"] { border-color: var(--danger) !important; }

/* 大写锁定提示（沿用金色提示变量） */
.caps-lock-hint { font-size: 11px; font-weight: 400; color: var(--gold-ink); background: var(--gold-soft); border-radius: 6px; padding: 4px 8px; margin-top: 2px; }

/* 认证页轻量提示条 */
.auth-notice { background: var(--brand-soft); color: var(--ink); border-radius: 7px; padding: 10px 12px; font-size: 12px; }

/* 验证码行：输入框占满剩余宽度（.captcha-row / .captcha-img 既有规则不变） */
.captcha-row input { flex: 1; }

/* 移动端：切换按钮点击区域 ≥44px，输入框内边距同步加大，避免遮挡文字 */
@media (max-width: 700px) {
  .password-field input { padding-right: 52px; }
  .password-toggle { width: 48px; }
}

@media(max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media(max-width: 700px) {
  .dash-stats-row { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-hero-card { flex-direction: column; align-items: flex-start; }
  .dash-score-action { align-items: flex-start; width: 100%; }
  .dash-score-value { text-align: left; }
}

/* ========================================================
   USCraft V2.2 Motion Design & Mobile Navigation Overhaul
   ======================================================== */

:root {
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 0.14s;
  --duration-normal: 0.26s;
  --duration-slow: 0.38s;
}

/* --- Page Transition & Section Enter Motion --- */
@keyframes uscraftPageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-page]:not([hidden]) {
  animation: uscraftPageFadeIn var(--duration-normal) var(--ease-spring) both;
}

/* --- Micro-interactions: Buttons, Cards, Controls --- */
.button, .icon-button, .skin-image-button, .filter-tabs button, .pagination-button, .role-chip {
  transition: transform var(--duration-fast) var(--ease-spring),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-spring);
}

.button:active, .icon-button:active, .filter-tabs button:active, .pagination-button:active, .role-chip:active {
  transform: scale(0.96);
}

.button.primary:hover {
  box-shadow: 0 4px 14px rgba(22, 118, 75, 0.32);
}

/* Skin Card Seamless Whole-Card Lift Architecture */
.skin-grid, .home-grid, .library-grid, .closet-grid {
  content-visibility: visible !important;
  contain: none !important;
  overflow: visible !important;
  padding-top: 10px !important;
  margin-top: -10px !important;
}

.skin-card {
  position: relative !important;
  min-width: 0 !important;
  contain: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform var(--duration-normal) var(--ease-spring) !important;
}

.skin-card:hover {
  transform: translateY(-5px) !important;
}

.skin-card:hover .skin-image-button {
  box-shadow: 0 14px 30px var(--card-shadow) !important;
  border-color: var(--brand) !important;
}

.skin-card:hover img {
  transform: scale(1.04) translateY(-2px) !important;
}

.skin-image-button {
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-spring) !important;
}

.skin-image-button:hover {
  transform: none !important;
}

.save-button {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  z-index: 5 !important;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: var(--card-control) !important;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out) !important;
  transform: none !important;
}

.save-button:hover {
  background: #ffffff !important;
  color: var(--brand) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
  transform: none !important;
}

.save-button.saved {
  background: var(--surface) !important;
  color: var(--brand) !important;
}

body.night .save-button {
  background: rgba(20, 35, 26, 0.6) !important;
  color: var(--muted) !important;
}

body.night .save-button:hover {
  background: var(--surface-soft) !important;
  color: var(--brand) !important;
}

@media(max-width: 700px) {
  .save-button {
    top: 8px !important;
    right: 8px !important;
    width: 36px !important;
    height: 36px !important;
  }
}

/* Modal Dialog Enhanced Spring Animation */
dialog[open] {
  animation: uscraftModalSpring 0.32s var(--ease-spring) both;
}
@keyframes uscraftModalSpring {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
dialog::backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--overlay);
  animation: uscraftBackdropFade 0.22s var(--ease-out) both;
}
@keyframes uscraftBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Avatar Styling (Minecraft Pixel Head & Custom Skins) --- */
.avatar-mat-round {
  overflow: hidden;
  border-radius: 8px;
}
.avatar-head-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

/* --- Dedicated Mobile Bottom Bar (Always 1 Row of 4 Tabs) --- */
.mobile-bottom-bar {
  display: none;
}

@media(max-width: 700px) {
  /* Completely hide desktop sidebar navigation on mobile screens */
  .rail .main-nav {
    display: none !important;
  }

  /* Fixed 1-row 4-tab mobile bottom bar */
  .mobile-bottom-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: 56px !important;
    height: calc(56px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 3px 6px env(safe-area-inset-bottom) !important;
    border-top: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    z-index: 95 !important;
    box-shadow: 0 -4px 20px var(--card-shadow) !important;
  }
  body.night .mobile-bottom-bar {
    background: var(--stage-caption-bg) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
  }

  .mobile-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    height: 100% !important;
    border-radius: 8px !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: color 0.15s, transform 0.12s var(--ease-spring), background 0.15s !important;
  }
  .mobile-tab .icon {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.8 !important;
  }
  .mobile-tab:active {
    transform: scale(0.92) !important;
  }
  .mobile-tab.active {
    color: var(--brand) !important;
    background: var(--brand-soft) !important;
  }
  body.night .mobile-tab.active {
    background: var(--brand-soft) !important;
  }

  .mobile-tab-avatar-wrap {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
  }
  .mobile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
  }
}
.main-nav a .nav-index{display:none}

/* --- Mobile Bottom Sheet (User Center & Quick Actions) --- */
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 98;
  opacity: 1;
  transition: opacity 0.28s var(--ease-out);
}
.mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 48px var(--card-shadow);
  transform: translateY(0);
  transition: transform 0.32s var(--ease-spring);
  max-height: 86vh;
  overflow-y: auto;
}
.mobile-sheet-backdrop[hidden],
.mobile-sheet[hidden] {
  display: none !important;
}

.mobile-sheet-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.mobile-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--strong-line);
  opacity: 0.45;
}
.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mobile-sheet-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-sheet-user .avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.sheet-user-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.sheet-user-meta small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.sheet-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}

.mobile-sheet-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.sheet-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface-soft);
  border-radius: 10px;
  color: var(--ink);
  transition: background 0.15s, transform 0.12s var(--ease-spring);
}
.sheet-menu-item:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.sheet-menu-item:active {
  transform: scale(0.98);
}
.sheet-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex: none;
}
.sheet-menu-text {
  flex: 1;
  min-width: 0;
}
.sheet-menu-text strong {
  display: block;
  font-size: 13px;
}
.sheet-menu-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.sheet-menu-arrow {
  color: var(--muted);
  width: 16px;
  height: 16px;
}

.sheet-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet-guest-box {
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.sheet-guest-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.sheet-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Frontend Performance & Hardware Acceleration --- */
.viewer {
  position: relative;
  overflow: hidden;
}
.viewer canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.35s var(--ease-spring);
  will-change: opacity, transform;
  z-index: 2;
}
.viewer.ready canvas {
  opacity: 1;
}
.viewer-fallback {
  position: absolute;
  height: 86%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s var(--ease-spring), transform 0.35s var(--ease-spring);
  image-rendering: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.viewer.ready .viewer-fallback {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
}
/* content-visibility removed to prevent clipping */

/* --- Universal Transparent Logo Rule (No solid white boxes) --- */
.logo-mat,
.gate-logo,
.brand .logo-mat,
.auth-header .logo-mat,
.auth-brand .logo-mat,
.dnd-logo {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.logo-mat img,
.gate-logo img,
.dnd-logo img {
  background: transparent !important;
  display: block;
}

/* --- Dashboard Authlib-Injector Drag & Drop Launcher Card --- */
.dnd-launcher-card {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
}
body.night .dnd-launcher-card {
  border-color: var(--brand-soft);
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
}
body.night .dnd-launcher-badge {
  background: var(--surface-soft);
  border-color: var(--brand);
  color: var(--ink);
}
body.night .dnd-launcher-badge:hover {
  background: var(--brand-soft);
  box-shadow: 0 4px 20px var(--accent-wash);
}
body.night .dnd-info strong {
  color: var(--ink);
}
body.night .dnd-info small {
  color: var(--muted);
}
body.night .dnd-url-pill {
  background: var(--code-bg);
  border-color: var(--line);
}
.dnd-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dnd-launcher-badge {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px dashed var(--brand);
  border-radius: 9px;
  cursor: grab;
  user-select: none;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast),
              background var(--duration-fast);
}
.dnd-launcher-badge:active {
  cursor: grabbing;
  transform: scale(0.98);
}
.dnd-launcher-badge:hover {
  background: var(--brand-soft);
  box-shadow: 0 4px 16px rgba(22, 118, 75, 0.16);
}
.dnd-grip {
  color: var(--brand);
  display: flex;
  align-items: center;
}
.dnd-logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dnd-info {
  flex: 1;
  min-width: 0;
}
.dnd-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.dnd-info small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.dnd-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background:var(--brand-solid);
  color: #fff;
  letter-spacing: 0.5px;
  flex: none;
}
.dnd-url-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-soft);
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 11px;
}
.dnd-url-label {
  color: var(--muted);
  font-weight: 600;
  flex: none;
}
.dnd-url-pill code {
  color: var(--brand);
  font-family: ui-monospace, monospace;
  word-break: break-all;
}

/* --- Connect Server Owner Guide Styling --- */
.connect-methods {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}
.server-cmd-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin: 16px 0 10px;
}
.server-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.server-cmd-head .mono {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.server-cmd-box pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand-soft);
  background: transparent;
}
.server-cmd-box code {
  color: inherit;
  font-family: inherit;
}
.server-prop-box {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 14px;
}
.server-prop-box pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: var(--surface-soft);
  border-radius: 6px;
  color: var(--brand);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.server-quick-card {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 14px;
}
.server-generator-fields {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}
.small-btn {
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
}

/* The skin guide presents one task per step; reference material stays folded. */
.connect-guide .page-heading{margin-bottom:24px}
.connect-guide>.guide-methods{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px;margin-bottom:28px}
.connect-guide>.guide-methods .method{min-width:0;padding:14px 18px;gap:12px;min-height:66px}
.connect-guide>.guide-methods .method strong{font-size:14px;line-height:1.5}
.connect-guide>.guide-methods .method small{font-size:12px;line-height:1.6;margin-top:2px}
.connect-guide>.guide-methods .method>.icon{flex:none;width:21px;height:21px}
.skin-guide{min-width:0}
.guide-route-picker{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.guide-route-picker>span{font-size:12px;color:var(--muted);margin-right:6px}
.guide-route-picker button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;line-height:1.5;padding:9px 13px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface)}
.guide-route-picker button.selected{border-color:var(--brand);color:var(--brand);background:var(--brand-soft);font-weight:600}
.guide-recommend-tag{display:inline-flex;align-items:center;gap:4px;flex:none;padding:5px 7px;border-radius:5px;background:var(--brand-solid);color:#fff;font-size:12px;font-weight:700;line-height:1;letter-spacing:.03em;vertical-align:middle}
.guide-recommend-tag .icon{width:12px;height:12px;flex:none}
.guide-flow-heading{margin-bottom:20px}
.guide-flow-heading h2,.guide-route-note h2{font-size:24px;line-height:1.45;margin:0 0 8px}
.guide-flow-heading p,.guide-route-note p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.guide-route-note{padding:22px 24px;border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:9px;background:var(--surface);margin-bottom:26px}
.guide-route-note .button{margin-top:16px}
.guide-route-note .subtle-note{margin-top:12px}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:16px;align-items:stretch}
.guide-step{min-width:0;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.guide-step-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.guide-step-heading>b{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:var(--brand-soft);color:var(--brand);font:600 14px ui-monospace,monospace}
.guide-step-heading h3{font-size:17px;line-height:1.5;margin:0}
.guide-step>p,.guide-inline-help p{font-size:13px;line-height:1.85;color:var(--muted);margin:0 0 16px}
.guide-step>p strong{color:var(--ink);font-weight:600}
.guide-step .button{width:100%;min-width:0;white-space:normal;font-size:14px;text-align:center}
.guide-file{display:flex;align-items:center;gap:12px;padding:14px 0 20px;min-width:0}
.guide-file-tag{display:grid;place-items:center;flex:none;width:36px;height:42px;border:1px solid var(--strong-line);border-radius:5px;color:var(--brand);background:var(--surface-soft);font:10px ui-monospace,monospace}
.guide-file>div{min-width:0}
.guide-file strong{display:block;font-size:13px;margin-bottom:5px}
.guide-file code{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.guide-text-button{display:inline-flex;align-items:center;gap:6px;color:var(--brand);background:transparent;border:0;padding:10px 0;min-height:40px;font-size:12px;line-height:1.5;text-align:left}
.guide-text-button .icon{width:14px;height:14px;flex:none}
.guide-folder-tree{padding:14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;font-size:11px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.guide-folder-tree div{border-left:1px solid var(--strong-line);margin:7px 0 0 3px;padding-left:12px}
.guide-folder-tree code{font:11px/1.8 ui-monospace,monospace;color:var(--ink)}
.guide-folder-tree .guide-tree-file{color:var(--brand)}
.guide-inline-help{margin-top:10px}
.guide-inline-help summary{font-size:12px;color:var(--brand);line-height:1.7;padding:7px 0}
.guide-inline-help p{margin:8px 0}
.guide-checks{list-style:none;margin:20px 0;padding:0}
.guide-checks li{position:relative;padding-left:16px;font-size:13px;line-height:1.8;margin:10px 0;color:var(--ink)}
.guide-checks li:before{content:'';position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;background:var(--brand-solid)}
.guide-step .guide-step-note{font-size:12px;padding-top:16px;border-top:1px solid var(--line);margin-bottom:0}
.guide-support{margin-top:28px}
.guide-support>h2{font-size:14px;color:var(--muted);margin:0 0 12px;font-weight:500}
.guide-faq{border:1px solid var(--line);border-radius:8px;background:var(--surface);margin:8px 0;overflow-wrap:anywhere}
.guide-faq>summary{font-size:14px;line-height:1.7;padding:15px 18px}
.guide-faq[open]>summary{border-bottom:1px solid var(--line)}
.guide-faq-body{padding:18px;max-width:850px}
.guide-faq-body>p{font-size:13px;line-height:1.85;color:var(--muted);margin:0 0 14px}
.guide-faq-body>.subtle-note{margin:12px 0}
.guide-troubleshooting{padding-left:20px;margin:0 0 18px;font-size:13px;line-height:1.9;color:var(--muted)}
.guide-troubleshooting li{margin:6px 0}
.extralist-code{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;font:12px/1.8 ui-monospace,monospace;margin:12px 0}
.dedicated-csl .step-heading{margin-top:22px}
.dedicated-csl .step-heading h3{font-size:18px;margin:3px 0 8px}
.guide-faq .diagnostic-result{padding-top:12px;border-top:1px solid var(--line);margin-top:16px;font-size:13px;line-height:1.8}
.guide-faq .diagnostic-result p{margin:8px 0}
.guide-faq .diagnostic-result .icon{width:16px;height:16px;vertical-align:middle;margin-right:6px}
.guide-auth-note{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.8;color:var(--muted);margin:20px 0 0}
.guide-auth-note .icon{flex:none;width:15px;height:15px;margin-top:3px}
.connect-guide button:focus-visible,.connect-guide summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
#csl-panel [hidden]{display:none!important}
@media(max-width:1100px){
 .guide-steps{grid-template-columns:minmax(0,1fr)}
 .guide-step{padding:22px 24px}
 .guide-step .button{width:auto}
 .guide-folder-tree{max-width:440px}
 .guide-file{padding:0 0 16px}
 .guide-text-button{margin-left:10px}
}
@media(max-width:700px){
 .connect-guide .page-heading{margin-bottom:20px}
 .connect-guide>.guide-methods{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px;margin-bottom:20px}
 .connect-guide>.guide-methods .method{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:10px 5px;min-height:66px;text-align:center}
 .connect-guide>.guide-methods .method strong{font-size:12px}
 .connect-guide>.guide-methods .method small{display:none}
 .connect-guide>.guide-methods .method>.icon{display:block;width:18px;height:18px}
 .guide-route-picker{gap:6px;margin-bottom:20px}
 .guide-route-picker>span{flex-basis:100%;margin-bottom:3px}
 .guide-route-picker button{padding:8px 9px;font-size:11px}
 .guide-route-picker button{gap:6px}
 .guide-route-picker .guide-recommend-tag{padding:4px 6px;font-size:11px}
 .guide-flow-heading h2,.guide-route-note h2{font-size:20px}
 .guide-flow-heading p,.guide-route-note p{font-size:13px}
 .guide-step{padding:20px}
 .guide-step .button{width:100%}
 .guide-step-heading h3{font-size:17px}
 .guide-step .guide-text-button{margin-left:0}
 .guide-faq>summary{font-size:13px;padding:14px}
 .guide-faq-body{padding:14px}
 .guide-route-note{padding:18px}
}

/* Public launcher setup: one drag action, with a manual PCL fallback. */
.auth-guide{max-width:960px;min-width:0}
.auth-quick-card{padding:26px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-bottom:20px}
.auth-section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.auth-section-heading h3{font-size:19px;line-height:1.5;margin:0}
.auth-quick-card>p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 18px}
.auth-guide .auth-drag-card{width:100%;min-width:0;min-height:100px;padding:18px 20px;gap:16px;text-align:left;background:var(--brand-soft);margin:18px 0 10px;border-width:2px}
.auth-guide .dnd-info strong{font-size:18px;line-height:1.5}
.auth-guide .dnd-info small{font-size:13px;line-height:1.6;margin-top:4px}
.auth-guide .dnd-logo{width:38px;height:38px}
.auth-guide .dnd-logo img{width:32px;height:32px}
.auth-guide .dnd-tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:8px 10px}
.auth-guide .dnd-tag .icon{width:14px;height:14px}
.auth-guide .auth-drag-caption{font-size:12px;line-height:1.8;margin:0 0 18px}
.auth-quick-checks{padding-left:20px;font-size:13px;line-height:1.9;color:var(--ink);margin:18px 0 4px}
.auth-quick-checks li{margin:8px 0}
.auth-guide .guide-text-button{margin:0}
.auth-manual .guide-faq-body{max-width:none;padding:24px}
.pcl-manual-steps{padding:0 0 0 22px;margin:0}
.pcl-manual-steps>li{padding-left:6px;margin:0 0 26px;font-size:14px;line-height:1.8}
.pcl-manual-steps>li:last-child{margin-bottom:14px}
.pcl-manual-steps>li::marker{font-weight:700;color:var(--brand)}
.pcl-manual-steps p{font-size:13px;line-height:1.85;color:var(--muted);margin:8px 0}
.pcl-setting-path{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:var(--ink);margin:14px 0}
.pcl-setting-path span{padding:5px 9px;background:var(--surface-soft);border:1px solid var(--line);border-radius:5px}
.pcl-setting-path .icon{width:12px;height:12px;flex:none;color:var(--muted)}
.pcl-login-choice{padding:12px 14px;border:1px solid var(--brand);border-radius:6px;background:var(--brand-soft);color:var(--ink);font-size:14px;font-weight:600;line-height:1.7;margin:10px 0 16px}
.auth-address-block{margin-top:14px}
.auth-address-block>span{font-size:12px;font-weight:600}
.auth-address-block .copy-field{margin-top:6px}
.pcl-manual-steps .pcl-address-note{font-size:12px;margin-top:12px}
.dnd-launcher-badge{text-align:left;font-family:inherit}
@media(max-width:700px){
 .auth-quick-card{padding:20px}
 .auth-section-heading{gap:9px}
 .auth-section-heading h3{font-size:17px}
 .auth-quick-card>p{font-size:13px}
 .auth-guide .auth-drag-card{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;padding:16px 12px;min-height:116px}
 .auth-guide .auth-drag-card>.dnd-grip{display:none}
 .auth-guide .dnd-logo{width:24px;height:28px}
 .auth-guide .dnd-logo img{width:24px;height:24px}
 .auth-guide .dnd-info strong{font-size:15px}
 .auth-guide .dnd-info small{font-size:12px}
 .auth-guide .dnd-tag{grid-column:2;justify-self:start;font-size:11px;padding:6px 8px}
 .auth-manual>summary{font-size:13px}
 .auth-manual .guide-faq-body{padding:16px}
 .pcl-manual-steps{padding-left:18px}
 .pcl-manual-steps>li{padding-left:3px}
 .pcl-login-choice{font-size:13px;padding:10px}
 .auth-address-block .copy-field{padding:10px}
 .auth-address-block .copy-field code{font-size:12px;flex-basis:100%;overflow-wrap:anywhere}
 .guide-route-picker button>span:first-child{font-weight:600}
}

/* Green identity: pixel U / new growth. Warm neutrals keep skin previews central. */
.brand b{letter-spacing:.5px}
.auth-header .brand small{color:var(--muted)}
.logo-mat img,.gate-logo{image-rendering:auto}
.main-nav a.active:before{background:var(--brand)}
.rail .main-nav a.active{background:var(--rail-active);color:var(--rail-active-ink)}
.rail .main-nav a.active .icon{color:var(--rail-accent)}
body.night .rail .main-nav a.active{background:var(--rail-active);color:var(--ink)}
body.night .rail .main-nav a.active .icon{color:var(--brand)}
.primary{border-color:var(--brand-solid)}
body.night .primary,body.night .connect-banner .primary{border-color:var(--brand-solid)!important}
body.night .primary:hover{border-color:var(--brand-solid-hover)!important}
body.night .stage-caption .icon-button{background:var(--brand-solid)!important}
body.night .stage-caption .icon-button:hover{background:var(--brand-solid-hover)!important}
body.night .save-button,body.night .card-topline{color:var(--muted)}
body.night .save-button.saved{color:var(--brand)}
body.night .save-button.saved .icon{fill:rgba(115,214,154,.15)}
body.night .stage-note,body.night .viewer-tip{color:var(--muted)}
@media(max-width:700px){.rail .main-nav a.active{background:var(--brand-soft);color:var(--brand)}.rail .main-nav a.active .icon{color:var(--brand)}}

/* Visible action feedback: local state first, notification for the result. */
[aria-busy=true].button,[aria-busy=true].save-button { opacity:1; cursor:progress; }
[aria-busy=true]>.icon,[aria-busy=true]>.dnd-tag>.icon,.form-feedback[data-type=pending]>.icon,.sign-feedback[data-type=pending] .icon { animation:feedback-spin .9s linear infinite; }
.button[data-claimed=true]:disabled,body.night .button[data-claimed=true]:disabled { opacity:1; color:var(--brand); background:var(--brand-soft); border-color:var(--line); }
.button[data-feedback=success] { color:var(--brand); background:var(--brand-soft); border-color:var(--brand); }
.dnd-launcher-badge[data-feedback=success] { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.dnd-tag { display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.button[aria-busy=true] { min-height:44px; }
.save-button[aria-busy=true] { background:var(--surface); color:var(--brand); }
.dash-score-action { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; width:320px; max-width:100%; gap:10px 16px; }
.dash-score-value { text-align:left; }
.dash-score-value strong { display:inline-block; transform-origin:left center; }
.dash-score-action>.button { min-width:116px; }
.dash-sign-hint { grid-column:1/-1; font-size:12px; line-height:1.6; text-align:left; }
.sign-feedback { grid-column:1/-1; display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); text-align:left; color:var(--ink); min-width:0; }
.sign-feedback>div { min-width:0; }
.sign-feedback strong { display:block; font-size:15px; margin:0 0 4px; }
.sign-feedback p { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.sign-feedback small { display:block; margin-top:8px; font-size:12px; color:var(--muted); line-height:1.6; }
.sign-result-icon { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--surface); color:var(--brand); }
.sign-feedback[data-type=success] { background:var(--brand-soft); border-color:var(--brand); }
.sign-feedback[data-type=success] strong { color:var(--brand); }
.sign-feedback[data-type=warning] { background:var(--gold-soft); border-color:var(--gold); }
.sign-feedback[data-type=warning] .sign-result-icon { color:var(--gold-ink); }
.sign-feedback[data-type=error] { background:var(--danger-soft); border-color:var(--danger); }
.sign-feedback[data-type=error] .sign-result-icon { color:var(--danger); }
.sheet-sign-feedback { margin:-4px 0 16px; }
.sheet-score-card { gap:12px; }
.sheet-score-card>.button { min-height:44px!important; flex:none; }
.form-feedback { display:flex; align-items:flex-start; gap:9px; margin:14px 0 0; padding:12px 14px; border:1px solid var(--danger); border-radius:8px; background:var(--danger-soft); color:var(--danger); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.form-feedback>.icon { width:19px; height:19px; margin-top:1px; }
.form-feedback[data-type=success] { color:var(--brand); background:var(--brand-soft); border-color:var(--brand); }
.form-feedback[data-type=pending] { color:var(--muted); background:var(--surface-soft); border-color:var(--line); }
.toast { inset:auto; top:90px; right:24px; bottom:auto; left:auto; margin:0; transform:none; width:min(410px,calc(100% - 32px)); max-width:calc(100% - 32px); display:flex; align-items:flex-start; gap:12px; padding:16px 12px 16px 16px; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:12px; background:var(--surface); color:var(--ink); box-shadow:0 10px 40px #0003; z-index:1000; font-size:14px; overflow:visible; animation:feedback-enter .2s ease-out; }
.toast::backdrop { background:transparent; pointer-events:none; }
.toast-symbol { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; color:var(--brand); background:var(--brand-soft); }
.toast .toast-symbol>.icon { width:21px; height:21px; color:inherit; }
.toast-copy { flex:1; min-width:0; padding-top:1px; }
.toast-copy strong { display:block; font-size:15px; line-height:1.4; margin-bottom:5px; }
.toast-copy p { font-size:13px; line-height:1.65; color:var(--muted); overflow-wrap:anywhere; }
.toast-close { display:grid; place-items:center; width:44px; height:44px; flex:none; margin:-6px -5px -6px 0; padding:0; background:transparent; border-radius:6px; color:var(--muted); }
.toast-close:hover { background:var(--surface-soft); color:var(--ink); }
.toast .toast-close>.icon { color:inherit; width:18px; height:18px; }
.toast[data-type=error] { border-left-color:var(--danger); }
.toast[data-type=error] .toast-symbol { color:var(--danger); background:var(--danger-soft); }
.toast[data-type=warning] { border-left-color:var(--gold); }
.toast[data-type=warning] .toast-symbol { color:var(--gold-ink); background:var(--gold-soft); }
.toast[data-type=success] .toast-copy strong { color:var(--brand); }
.auth-alert { font-size:14px; padding:15px 16px; border-left-width:4px!important; }
.auth-alert strong { display:block; margin-bottom:4px; font-size:15px; }
.auth-alert p { font-size:13px; }
.auth-card .button[aria-busy=true]::before { content:''; width:16px; height:16px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:feedback-spin .9s linear infinite; flex:none; }
@keyframes feedback-spin { to { transform:rotate(360deg); } }
@keyframes feedback-enter { from { opacity:0; translate:0 -6px; } to { opacity:1; translate:0 0; } }
@media(max-width:700px) {
  .dash-score-action { width:100%; gap:10px; }
  .dash-score-action>.button { min-width:110px; }
  .dash-sign-hint { text-align:left; }
  .toast { top:max(12px,env(safe-area-inset-top)); right:12px; left:auto; bottom:auto; width:calc(100% - 24px); max-width:calc(100% - 24px); padding:14px 10px 14px 12px; gap:10px; }
  .toast-symbol { width:30px; height:30px; }
  .sign-feedback { padding:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .toast,[aria-busy=true]>.icon,[aria-busy=true]>.dnd-tag>.icon,.form-feedback>.icon,.sign-feedback .icon,.auth-card .button[aria-busy=true]::before { animation:none!important; }
}

body.mobile-sheet-open { overflow:hidden; }
.mobile-sheet { max-height:86dvh; overscroll-behavior:contain; }
.mobile-sheet[data-closing=true],.mobile-sheet-backdrop[data-closing=true] { pointer-events:none; }
body.night .button[data-claimed=true]:disabled { color:var(--brand)!important; background:var(--brand-soft)!important; border-color:var(--line)!important; box-shadow:none; }

/* Shared palette surfaces for presets and the administrator's saved colors. */
.rail{color:var(--rail-ink)}
.brand small,.rail-caption,.rail-world .mono,.account-button small{color:var(--rail-muted)}
.main-nav a{color:var(--rail-muted)}
.main-nav a:hover{background:var(--rail-hover);color:var(--rail-ink)}
.rail .main-nav a.active,body.night .rail .main-nav a.active{background:var(--rail-active);color:var(--rail-active-ink)}
.rail .main-nav a.active .icon,body.night .rail .main-nav a.active .icon{color:var(--rail-accent)}
.account-button{color:var(--rail-ink);border-color:var(--rail-line)}
.account-button .avatar{background:var(--rail-active);color:var(--rail-active-ink)}
.connect-banner{background:var(--banner);color:var(--banner-ink)}
.connect-banner p{color:var(--rail-muted)}
.primary,body.night .primary,body.night .connect-banner .primary{color:var(--on-brand)!important}
.primary:hover,body.night .primary:hover{color:var(--on-brand)!important}
body.night .stage-caption .icon-button{color:var(--on-brand)!important}
body.night .primary{box-shadow:0 4px 14px var(--accent-wash)}
body.night .primary:hover{box-shadow:0 6px 20px var(--accent-wash)}
.stage-caption{color:var(--ink);background:var(--stage-caption-bg);border-color:var(--line)}
.stage-caption small,.stage-note,.viewer-tip{color:var(--muted)}
.stage-caption-mark{border-color:var(--line);color:var(--brand)}
.skin-image-button,body.night .skin-image-button{background:var(--card-tone)}
.card-type{background:var(--card-chip-bg);color:var(--card-chip-ink)}
.card-topline,.save-button{color:var(--card-control)}
.save-button.saved,.save-button:hover{color:var(--brand)}
.save-button.saved .icon,body.night .save-button.saved .icon{fill:var(--accent-wash)}
.copy-field,body.night .copy-field{background:var(--code-bg);border-color:var(--line)}
.dnd-launcher-badge,body.night .dnd-launcher-badge{background:var(--surface-soft);border-color:var(--strong-line);color:var(--ink)}
.dnd-launcher-badge .dnd-info strong,.dnd-launcher-badge .dnd-tag{color:var(--brand)}
.mobile-bottom-bar{background:var(--stage-caption-bg)!important}
body.night .mobile-bottom-bar{background:var(--stage-caption-bg)!important}
body.night .button[data-claimed=true]:disabled{color:var(--brand)!important;background:var(--brand-soft)!important;box-shadow:none}
@media(max-width:700px){.rail{color:var(--ink)}.brand small{color:var(--muted)}}

.primary,body.night .primary,body.night .connect-banner .primary{border-color:var(--brand-border)!important}
.secondary:hover,body.night .secondary:hover{color:var(--ink)}

/* --- Comprehensive Contrast & Text Visibility Fixes --- */
.connect-banner {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  color: var(--ink) !important;
}
.connect-banner .eyebrow {
  color: var(--brand) !important;
  font-weight: 700 !important;
}
.connect-banner h2 {
  color: var(--ink) !important;
}
.connect-banner p {
  color: var(--muted) !important;
}
.connect-banner .primary,
.connect-banner .button.primary {
  background: var(--brand-solid) !important;
  color: var(--on-brand) !important;
  border: 1px solid var(--brand-solid) !important;
  box-shadow: 0 4px 14px var(--card-shadow) !important;
}
.connect-banner .primary:hover,
.connect-banner .button.primary:hover {
  background: var(--brand-solid-hover) !important;
  color: var(--on-brand) !important;
}
.stage-topline,
.stage-topline .mono,
.stage-topline .stage-live {
  color: var(--muted) !important;
}
.dnd-launcher-badge .dnd-tag {
  background: var(--brand-solid) !important;
  color: var(--on-brand) !important;
  border-radius: 4px !important;
}
.preview-tag {
  background: var(--surface) !important;
  color: var(--brand) !important;
  border: 1px solid var(--line) !important;
}
pre, code, .copy-field code, .extralist-code code {
  color: var(--ink) !important;
}
body.night .connect-banner {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
body.night .connect-banner .eyebrow {
  color: var(--brand) !important;
}
body.night .connect-banner h2 {
  color: var(--ink) !important;
}
body.night .connect-banner p {
  color: var(--muted) !important;
}

/* Mojang Verification Pro Badge */
.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 2.5px 6.5px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.28);
  letter-spacing: 0.3px;
  flex-shrink: 0;
  text-decoration: none;
}
.badge-pro .icon,
.badge-pro svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  flex-shrink: 0;
}
.badge.badge-pro {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.28);
}
.card-bottom p {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.card-bottom p .uploader-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#account-name {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
#account-name .badge-pro {
  margin-left: 2px;
  font-size: 10px;
  padding: 2px 5px;
}
#dash-nickname {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mojang-prompt-card:hover {
  border-color: #7c3aed !important;
}

/* Keep ownership status readable while long account names truncate. */
#account-name,#sheet-username,.account-dialog-name{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:nowrap}
.account-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-premium-badge{flex:none;margin-left:0;white-space:nowrap}
#account-name .account-premium-badge{margin-left:0;font-size:10px;padding:3px 5px}
#sheet-username .account-premium-badge,.account-dialog-name .account-premium-badge{font-size:11px}
.sheet-user-meta,.mobile-sheet-user{min-width:0}
.sheet-user-meta{flex:1}
.account-dialog-name{justify-content:center}
/* Handoff refinement: legible filter state, stable loading, no animated shimmer. */
.library-filter-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px;min-width:0;font-size:12px}
.filter-summary-label{color:var(--muted);flex:none}
.filter-summary-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;overflow-wrap:anywhere;padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);text-align:left}
.filter-summary-chip .icon{width:14px;height:14px;flex:none}
.filter-summary-chip:hover,.filter-summary-chip:focus-visible{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
#share-library{min-height:44px;flex:none;font-size:12px;background:transparent;border-radius:6px;padding:0 6px}
.result-meta{align-items:center;flex-wrap:wrap}
.filter-summary-clear{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px;color:var(--brand);background:transparent;border-radius:6px;margin-left:auto;font-weight:600;white-space:nowrap}
.filter-summary-clear:hover{background:var(--brand-soft)}
.filter-summary-clear .icon{width:15px;height:15px}
.library-skeleton{min-width:0;pointer-events:none}
.library-skeleton .skin-image-button{width:100%;background:var(--surface-soft);border:1px solid var(--line);box-shadow:none;position:relative}
.library-skeleton .skin-image-button::after{content:'';position:absolute;inset:20% 32%;border-radius:8px;background:var(--line);opacity:.5}
.skeleton-title,.skeleton-caption{height:12px;margin-top:13px;border-radius:3px;background:var(--line);width:65%}
.skeleton-caption{height:10px;margin-top:9px;width:42%;opacity:.65}
.pagination-button{min-height:44px}
@media(max-width:700px){.library-filter-summary{gap:6px;font-size:11px}.filter-summary-chip{padding:4px 7px}.filter-summary-clear{font-size:12px}}
/* USCraft handoff: component geometry and original vector artwork.
   All interactive/surface colors inherit the active administrator palette. */
:root{--font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--handoff-radius:14px}
body{font-family:var(--font);-webkit-font-smoothing:antialiased}
.brand-wordmark{display:block;line-height:1!important;font-family:var(--font)!important;letter-spacing:0!important}
.brand-wordmark-svg{display:block;width:116px;height:33px;fill:currentColor;color:var(--ink)}
.brand small{font-size:10px;letter-spacing:.04em;margin-top:3px}
.breadcrumb-wordmark{display:block;width:74px;height:23px;fill:currentColor;color:var(--muted)}
.breadcrumbs>span:first-child{font-family:var(--font);line-height:1}
.topbar{height:76px;background:var(--surface);padding-inline:38px}
.rail{border-right:1px solid var(--line)}
.main-nav a{min-height:46px;border-radius:8px;font-size:13px}
svg.icon{stroke-width:1.7}
.eyebrow,.small-label{font-family:var(--font);letter-spacing:.14em}
@media(min-width:1051px){.app-shell{grid-template-columns:216px minmax(0,1fr)}.rail{padding:28px 16px 20px}.brand{gap:8px}.brand .logo-mat{width:43px;height:43px;flex:none}.brand .logo-mat img{width:43px;height:43px;object-fit:contain}.main-nav a{padding-inline:13px}}
main{max-width:1316px;padding:36px 38px 48px}
.home-hero{grid-template-columns:1.06fr 1fr;gap:34px;min-height:420px}
.hero-copy{padding:12px 0 8px}
.hero-copy h1{font-size:clamp(40px,4.05vw,60px);letter-spacing:-.05em;line-height:1.16;font-weight:750;margin:25px 0 23px}
.hero-copy>p{font-size:14px;line-height:1.95;max-width:420px}
.hero-brand-spark{display:inline-block;width:31px;height:31px;vertical-align:top;margin:5px 0 0 10px}
.hero-actions{gap:20px;margin-top:25px}
.hero-steps{max-width:455px;font-size:11px;padding-top:20px;margin-top:32px;gap:16px}
.hero-stage{height:424px;border-radius:18px;background:linear-gradient(135deg,var(--stage),var(--surface));border-color:var(--line);isolation:isolate}
.hero-stage::before{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--stage-grid) 1px,transparent 1px),linear-gradient(90deg,var(--stage-grid) 1px,transparent 1px);background-size:27px 27px;mask-image:linear-gradient(135deg,#000,transparent 80%);pointer-events:none}
.stage-brand-spark{position:absolute;left:30px;top:95px;width:42px;height:42px;opacity:.65;pointer-events:none}
.stage-brand-pixels{position:absolute;right:14px;top:75px;width:130px;height:117px;pointer-events:none}
.stage-caption{border-radius:10px;padding:11px 13px;background:var(--surface);border-color:var(--line)}
.stage-caption-mark{border:0;border-radius:8px;background:var(--brand-soft);width:35px;height:35px}
.stage-caption>.icon-button{width:38px;height:38px;border-radius:8px}
.section-heading{margin:32px 0 20px}
.section-heading h2{font-size:23px;letter-spacing:-.03em}
.skin-grid{gap:20px}
.skin-card{transition:none!important}
.skin-card:hover{transform:none!important}
.skin-image-button,body.night .skin-image-button{border-radius:12px;background:linear-gradient(145deg,var(--surface),var(--surface-soft));border:1px solid var(--line);padding:29px 16px 21px;transition:border-color .16s,background .16s!important}
.skin-card:hover .skin-image-button{box-shadow:none!important;border-color:var(--brand)!important;background:var(--brand-soft)}
.skin-card:hover img{transform:none!important}
.skin-image-button.selected,body.night .skin-image-button.selected{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)!important}
.skin-card h3{font-size:13px;line-height:1.6;margin:10px 0 4px;font-weight:600}
.card-bottom{font-size:11px}
.card-bottom p{font-size:11px}
.card-type{border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);padding:3px 6px;font-family:var(--font);font-size:10px;left:10px;bottom:10px}
.card-topline{font-size:10px;letter-spacing:.04em;left:12px;top:14px;color:var(--muted);max-width:calc(100% - 66px)}
.save-button,body.night .save-button{width:44px!important;height:44px!important;top:7px!important;right:7px!important;background:var(--surface)!important;border:1px solid var(--line);backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;color:var(--muted)!important}
.save-button:hover,body.night .save-button:hover,.save-button.saved,body.night .save-button.saved{background:var(--brand-soft)!important;color:var(--brand)!important;border-color:var(--brand);box-shadow:none!important}
.save-button .icon{width:18px;height:18px}
.home-grid .skin-image-button{height:231px}
.inspector,.role-studio{border-radius:18px;box-shadow:none;border-color:var(--line)}
.inspector-title,.role-studio-head{padding:17px 19px}
.inspector-details{padding:20px}
.inspector-details h2{font-size:21px;line-height:1.4;overflow-wrap:anywhere}
.button,.icon-button,input,select,.search-box{border-radius:9px}
.button{min-height:44px;font-size:13px;font-weight:600;box-shadow:none;transition:background .16s,border-color .16s,color .16s}
.button.primary:hover{box-shadow:none!important}
.button:active,.icon-button:active,.filter-tabs button:active,.pagination-button:active,.role-chip:active{transform:none}
.search-box input{border-color:var(--strong-line);font-size:13px}
.sort-label select,.source-filter select{border:1px solid var(--strong-line);background:var(--surface);padding:9px 28px 9px 11px;min-height:44px;border-radius:9px;font-size:12px}
.filter-tabs{gap:4px;flex-wrap:wrap}
.filter-tabs button{font-size:12px;border-radius:7px;padding-inline:12px}
.result-meta{font-size:12px;line-height:1.6}
.connect-banner,.continue-strip,.context-notice{border-radius:12px;background:var(--surface);border-color:var(--line);box-shadow:none}
.connect-banner{padding:23px 26px;gap:24px;margin-top:32px}
.connect-banner h2{font-size:22px}
.connect-banner p{font-size:12px}
.page-heading h1{font-size:32px;letter-spacing:-.035em}
.page-heading p:not(.eyebrow){font-size:14px}
.setup-main,.setup-aside,.auth-panel,.auth-quick-card,.settings-block,.dashboard-hero-card,.dashboard-stat-card{border-radius:14px;box-shadow:none}
.settings-block h2,.setup-aside h2{letter-spacing:-.02em}
dialog{border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow)}
dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--overlay)}
.upload-drop,.upload-local-preview{border-radius:12px}
@media(max-width:1050px){main{padding:28px}.topbar{padding-inline:28px}.home-hero{gap:26px}.hero-actions{gap:12px;flex-wrap:wrap}.hero-stage{height:400px}.brand-wordmark-svg{width:106px;height:30px}}
@media(max-width:700px){
 .rail{border-right:0;border-bottom:1px solid var(--line)}
 .brand-wordmark-svg{width:108px;height:31px}.brand small{font-size:9px}.topbar{height:56px;padding-inline:20px}.breadcrumb-wordmark{width:63px;height:19px}
 main{padding:26px 20px 36px}.home-hero{display:flex;flex-direction:column;gap:24px;align-items:stretch;min-height:0}
 .hero-copy{padding:0}.hero-copy h1{font-size:44px;letter-spacing:-.05em;margin:20px 0 17px}.hero-copy>p{font-size:13px;line-height:1.85}.hero-brand-spark{width:27px;height:27px;margin-left:8px}
 .hero-actions{gap:16px;flex-wrap:wrap;margin-top:22px}.hero-steps{gap:12px;margin-top:24px;font-size:10px;padding-top:17px}
 .hero-stage{height:354px}.stage-brand-spark{left:23px;top:84px;width:36px;height:36px}.stage-brand-pixels{width:110px;height:100px;right:6px;top:60px}
 .stage-caption{padding:9px 10px}.stage-caption strong{font-size:12px}.stage-caption small{font-size:10px}
 .section-heading{margin:27px 0 17px}.section-heading h2{font-size:21px}.section-heading .text-link{font-size:11px}
 .skin-grid{gap:22px 12px}.home-grid .skin-image-button,.library-grid .skin-image-button,.closet-grid .skin-image-button{height:210px;padding:34px 8px 25px}
 .skin-card h3{font-size:12px}.card-bottom p,.card-bottom>span{font-size:10px}.card-topline{font-size:9px;left:9px;top:13px}.card-type{font-size:9px;left:8px;bottom:8px;padding:2px 4px}
 .save-button,body.night .save-button{top:5px!important;right:5px!important}
 .page-heading h1{font-size:29px}.page-heading p:not(.eyebrow){font-size:13px}.filter-tabs{gap:2px}.filter-tabs button{font-size:11px;padding-inline:8px}.sort-label select{font-size:11px;max-width:148px;padding-inline:9px}.source-filter select{font-size:11px}.search-box input{font-size:12px}
 .result-meta{font-size:11px}.result-meta>span:last-child:after{font-size:10px}
 .connect-banner{padding:21px}.connect-banner h2{font-size:21px}.connect-banner p{font-size:12px;line-height:1.8}
 .mobile-bottom-bar,body.night .mobile-bottom-bar{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--surface)!important;box-shadow:none!important}
}
@media(prefers-reduced-motion:reduce){.skin-image-button,.button{transition:none!important}}
.site-footer b{font-family:var(--font);font-weight:600;letter-spacing:-.02em}
.wardrobe-watermark{font-family:var(--font);font-weight:700;letter-spacing:-.04em}
.rail-brand-spark{display:block;width:30px;height:30px;margin-bottom:14px}

/* --- Fluent Navigation & Page Transition System --- */
.main-nav a {
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.12s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease !important;
  position: relative;
  overflow: visible;
  user-select: none;
}

.main-nav a:hover {
  background: var(--rail-hover, #F0F4F8) !important;
  color: var(--brand) !important;
  transform: translateX(2px);
}

.main-nav a:hover .icon {
  transform: scale(1.15) rotate(-3deg);
}

.main-nav a:active {
  transform: scale(0.95) !important;
  transition: transform 0.08s ease-out !important;
}

.main-nav a .icon {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.2s ease !important;
  transform-origin: center center;
}

.main-nav a.active {
  background: var(--soft, #EAF4FF) !important;
  color: var(--brand) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(23, 111, 178, 0.09) !important;
}

.main-nav a.active .icon {
  color: var(--brand) !important;
  transform: scale(1.08);
}

.main-nav a.active:before {
  content:  !important;
  position: absolute !important;
  left: -16px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--brand) !important;
  animation: navPillSlide 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

@keyframes navPillSlide {
  0% {
    opacity: 0;
    transform: scaleY(0.2) translateX(-6px);
  }
  100% {
    opacity: 1;
    transform: scaleY(1) translateX(0);
  }
}

/* Page entrance motion */
@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.996);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-enter,
main > section:not([hidden]) {
  animation: pageReveal 0.34s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: opacity, transform;
}

/* Staggered entrance for main components */
main > section:not([hidden]) .page-heading {
  animation: pageReveal 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main > section:not([hidden]) .home-hero,
main > section:not([hidden]) .library-toolbar,
main > section:not([hidden]) .wardrobe-layout,
main > section:not([hidden]) .dashboard-layout,
main > section:not([hidden]) .profile-layout,
main > section:not([hidden]) .connect-guide {
  animation: pageReveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

main > section:not([hidden]) .home-grid,
main > section:not([hidden]) .library-grid,
main > section:not([hidden]) .closet-grid {
  animation: pageReveal 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes labelFade {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.page-label-enter {
  animation: labelFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: inline-block;
}

/* Mobile bottom nav motion */
.mobile-bottom a {
  transition: transform 0.12s ease, color 0.2s ease !important;
  user-select: none;
}

.mobile-bottom a:active {
  transform: scale(0.92) !important;
}

.mobile-bottom a.active .icon {
  animation: tabBounce 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes tabBounce {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.24); }
  100% { transform: scale(1); }
}

/* Discreet Collapsible Danger Drawer */
.profile-danger-drawer {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 14px;
}

.profile-danger-drawer summary {
  padding: 13px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.profile-danger-drawer summary:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.drawer-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-summary-title .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.drawer-summary-hint {
  font-size: 11px;
  opacity: 0.65;
}

.profile-danger-drawer[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--danger);
}

.profile-danger-drawer[open] .drawer-summary-title .icon {
  color: var(--danger);
}

.profile-danger-inner {
  padding: 18px 20px;
  background: var(--surface);
}

.profile-danger-inner p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.button.danger-button.outline {
  background: transparent !important;
  border: 1px solid var(--danger) !important;
  color: var(--danger) !important;
  font-size: 13px;
}

.button.danger-button.outline:hover {
  background: var(--danger) !important;
  color: #ffffff !important;
}

#btn-submit-delete-account:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
