@font-face{font-family:USCraftPixel;src:url('brand/minecraft-site.woff2') format('woff2');font-display:swap}
:root{--page:#f4f7fc;--surface:#fff;--surface-soft:#edf3fb;--ink:#102c4b;--muted:#52677f;--blue:#155bd7;--blue-hover:#0a46b5;--blue-soft:#e8f0ff;--navy:#0b2b50;--rail:#092543;--line:#d6e0ef;--strong-line:#8b9cb1;--gold:#d5ac58;--gold-ink:#71510d;--gold-soft:#fff6de;--success:#166c51;--success-soft:#e6f5ef;--danger:#ac3346;--danger-soft:#fff0f2;--stage:#e1ecff;--shadow:0 16px 48px #183c6b12;--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(--blue);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(--blue);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(--blue)}.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}.blue-text,.title-dot{color:var(--blue)}.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(--blue);border:1px solid var(--blue);color:#fff}.primary:hover{background:var(--blue-hover);border-color:var(--blue-hover)}.secondary{background:var(--surface);border:1px solid var(--line);color:var(--ink)}.secondary:hover{background:var(--blue-soft);border-color:var(--blue)}.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(--blue-soft);color:var(--blue)}.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(--blue)}.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:#071a30;color:#d7e8ff;font-size:11px;position:relative;z-index:20;border-bottom:1px solid #2a4260}.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 #4a6382;background:#15334f;color:#f3f7ff;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:#eef5ff;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:#a8bfd9;font-size:10px;margin-top:2px;white-space:nowrap;letter-spacing:.5px}.rail-caption{font-size:12px;letter-spacing:1px;color:#a9bed6;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:#b7cae1;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:#153959;color:#fff}.main-nav a.active{background:#174673;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:#93c2ff}.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:#d4e1f1}.rail-world .mono{font-size:9px;letter-spacing:1.5px;color:#829bb7}.account-button{border-top:1px solid #294463;background:transparent;color:#d6e6f8;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(--blue-soft);color:var(--blue);border-radius:8px;flex:none}.account-button .avatar{background:#234361;color:#cce3ff}.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:#9eb6d1;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}.blue-square{width:7px;height:7px;background:var(--blue);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(--blue);margin-right:6px}.hero-stage{height:430px;background:var(--stage);position:relative;border-radius:12px;overflow:hidden;background-image:linear-gradient(#8baae317 1px,transparent 1px),linear-gradient(90deg,#8baae317 1px,transparent 1px);background-size:28px 28px;border:1px solid #cfdcf2}.stage-topline{position:absolute;left:22px;right:22px;top:18px;display:flex;align-items:center;justify-content:space-between;color:var(--navy);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(--blue);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:#7095cf20;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,#305fab23,transparent 68%);pointer-events:none}.stage-corner{position:absolute;width:44px;height:44px;border:1px solid #8ba5cb66;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:#ffffffdd;backdrop-filter:blur(6px);border-radius:8px;display:flex;gap:12px;align-items:center;padding:10px 12px;z-index:2;color:#102c4b}.stage-caption-mark{width:36px;height:36px;border:1px solid #cedbf0;border-radius:7px;display:grid;place-items:center;color:#155bd7}.stage-caption>div{flex:1}.stage-caption strong{font-size:14px}.stage-caption small{display:block;font-size:10px;color:#52677f;margin-top:3px}.stage-caption .icon-button{color:#155bd7;border:1px solid #c8d9f2;width:36px;min-height:36px}.stage-note{position:absolute;bottom:12px;left:22px;font-size:9px;color:#52677f;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(--blue)}.continue-icon{width:36px;height:36px;background:var(--blue-soft);color:var(--blue);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(--blue)}.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,#e8eef9);padding:26px 16px 16px;transition:border-color .15s,box-shadow .15s}.skin-image-button:hover{border-color:var(--blue);box-shadow:0 5px 14px #12489115}.skin-image-button.selected{border:2px solid var(--blue);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:#586f8c}.card-type{position:absolute;bottom:10px;left:12px;background:#ffffffcc;border-radius:3px;padding:3px 6px;font:9px ui-monospace,monospace;color:#3e5674}.save-button{position:absolute;right:8px;top:5px;width:44px;height:44px;display:grid;place-items:center;background:transparent;color:#4b6587;z-index:2;border-radius:50%}.save-button:hover{background:#fff9;color:#155bd7}.save-button.saved{color:#155bd7}.save-button.saved .icon{fill:#155bd716}.worn-mark{position:absolute;bottom:10px;right:10px;padding:3px 6px;background:#155bd7;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(--navy);color:#fff;border-radius:10px;padding:27px 32px;display:flex;align-items:center;gap:25px;justify-content:space-between}.connect-banner .eyebrow{color:#a5caff}.connect-banner h2{font-size:24px;margin:7px 0 9px}.connect-banner p{font-size:12px;color:#bfd2eb}.connect-banner .primary{background:#e8f1ff;color:#163f73;border-color:#e8f1ff;flex-shrink:0}
.context-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 15px;border:1px solid var(--line);background:var(--blue-soft);border-radius:7px;margin-bottom:20px;font-size:12px;color:var(--ink)}.context-notice .quiet{white-space:nowrap;color:var(--blue);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(--blue-soft);color:var(--blue)}.filter-tabs button.selected{color:var(--blue);background:var(--blue-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(--blue)}.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(#6d90c522 .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:#ffffffa6;color:#456289;border-radius:3px;pointer-events:none}.viewer-tip{position:absolute;bottom:12px;left:0;right:0;text-align:center;font-size:10px;color:#4a668d;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(--blue);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(--blue);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:#7095cf28}.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(--blue)}.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(--blue);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(--blue);background:var(--blue-soft)}.method.selected>.icon{color:var(--blue)}.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(--blue-soft);color:var(--blue);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(--blue)}.release-links .icon{width:11px;height:11px}.notice{display:flex;gap:10px;align-items:flex-start;border-radius:6px;background:var(--blue-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(--blue)}.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:#f4f7fc;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(--blue);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 #001b4960}dialog::backdrop{background:#061a37a8;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(--blue);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(--blue)}.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(--blue);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(--blue);outline-offset:3px}.upload-drop.dragging{background:var(--blue-soft);border-color:var(--blue)}.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(--navy);color:#fff;max-width:calc(100vw - 32px);padding:13px 21px;box-shadow:0 6px 24px #071f4040;border:1px solid #4c6f98;border-radius:8px;font-size:12px;z-index:100;display:flex;align-items:center;gap:10px}.toast .icon{width:16px;height:16px;color:#b8d9ff}#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: #090e17;
  --surface: #0f1826;
  --surface-soft: #152234;
  --surface-hover: #1b2d45;
  --ink: #f0f6fc;
  --muted: #8ca3be;
  --blue: #3b82f6;
  --blue-hover: #60a5fa;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --navy: #091322;
  --rail: #05080f;
  --line: #1c2e44;
  --strong-line: #294464;
  --stage: #0c1524;
  --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(--blue) !important;
  color: #ffffff !important;
  border-color: var(--blue) !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
body.night .primary:hover {
  background: var(--blue-hover) !important;
  border-color: var(--blue-hover) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}
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(--blue);
  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: #0b1422;
  border-color: #1f334d;
  background-image: linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}
body.night .stage-floor {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.28), transparent 70%);
}
body.night .stage-letters {
  color: rgba(59, 130, 246, 0.1);
}
body.night .stage-topline {
  color: #c5dbf5;
}
body.night .stage-live > span {
  background: #60a5fa;
  box-shadow: 0 0 8px #3b82f6;
}
body.night .stage-caption {
  background: rgba(15, 24, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #233a57;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
body.night .stage-caption strong,
body.night #hero-skin-name {
  color: #f0f6fc !important;
  font-weight: 700;
}
body.night .stage-caption small,
body.night #hero-skin-author {
  color: #9ab4d6 !important;
}
body.night .stage-caption-mark {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}
body.night .stage-caption .icon-button {
  background: var(--blue) !important;
  color: #ffffff !important;
  border-radius: 6px;
}
body.night .stage-caption .icon-button:hover {
  background: var(--blue-hover) !important;
}
body.night .viewer-tip {
  color: #8fa7c4;
}
body.night .stage-note {
  color: #7b94b0;
}

/* 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(--blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}
body.night input::placeholder {
  color: #5c7490;
}

/* 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, #101c2c 0%, #0d1624 100%);
  border-color: #20354e;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
body.night .dash-avatar-mat {
  background: #090f1a;
  border-color: #243a54;
}
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(--blue);
}

/* Texture & Skin Cards */
body.night .skin-image-button {
  background: #0b1320;
  border-color: #1a2a3e;
}
body.night .skin-image-button:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.25);
}
body.night .skin-image-button.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}
body.night .card-type {
  background: rgba(11, 19, 32, 0.88);
  color: #d6e4f5;
  border: 1px solid #233a57;
}

/* 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: #fbbf24 !important;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.45);
}
body.night .blue-text {
  color: #60a5fa !important;
  text-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}
body.night .connect-banner {
  background: linear-gradient(135deg, #0e1929 0%, #070e17 100%);
  border: 1px solid #1e334d;
}
body.night .connect-banner .primary {
  background: var(--blue) !important;
  color: #ffffff !important;
  border-color: var(--blue) !important;
}

/* Dialogs & Overlays */
body.night dialog {
  background: #0f1928;
  border-color: #243a56;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7);
}
body.night .apply-preview {
  background: #090f1a;
}
body.night .copy-field {
  background: #090f1a;
  border-color: #1e324c;
}
@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:#b1c9e4}.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:#23486d}.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 #0b2b5008}.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(--blue-soft);color:var(--blue)}.main-nav a.active:before{display:none}.main-nav a.active .icon{color:var(--blue)}.main-nav a .icon{width:20px;height:20px}.main-nav a:hover{background:var(--blue-soft);color:var(--blue)}.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(--blue-soft);border-color:var(--blue);color:var(--blue)}
.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(--blue-soft);border-color:var(--blue);color:var(--blue)}
.pagination-page.active{background:var(--blue);color:#fff;border-color:var(--blue);cursor:default}
.pagination-ellipsis{padding:0 4px;color:var(--muted);font-size:12px}

/* --- 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(--blue); 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(--blue); }
.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(--blue); 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(--blue); background: var(--blue-soft); }
.shortcut-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); 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(--blue); }
.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 */
.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; }
.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(--blue); }
.auth-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background: var(--blue); 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(--blue); }
.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(--blue); }

@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(21, 91, 215, 0.32);
}

/* Skin Card Dynamic Lift */
.skin-card {
  contain: content;
}
.skin-image-button {
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring),
              border-color var(--duration-fast) var(--ease-out);
}
.skin-image-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21, 91, 215, 0.13);
}
.skin-image-button img {
  transition: transform var(--duration-slow) var(--ease-spring);
  will-change: transform;
}
.skin-image-button:hover img {
  transform: scale(1.05) translateY(-2px);
}

/* 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: rgba(9, 37, 67, 0.45);
  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 rgba(9, 37, 67, 0.08) !important;
  }
  body.night .mobile-bottom-bar {
    background: rgba(20, 40, 63, 0.94) !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(--blue) !important;
    background: var(--blue-soft) !important;
  }
  body.night .mobile-tab.active {
    background: var(--blue-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;
  }
}
    background: transparent !important;
    cursor: pointer !important;
    transition: color 0.15s, transform 0.12s var(--ease-spring), background 0.15s !important;
  }
  .main-nav a .icon,
  .mobile-more-tab .icon {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.8 !important;
  }
  .main-nav a:active,
  .mobile-more-tab:active {
    transform: scale(0.92) !important;
  }
  .main-nav a.active,
  .mobile-more-tab.active {
    color: var(--blue) !important;
    background: var(--blue-soft) !important;
  }
  body.night .main-nav a.active,
  body.night .mobile-more-tab.active {
    background: var(--blue-soft) !important;
  }
  .main-nav a .nav-index {
    display: none !important;
  }
}

/* --- Mobile Bottom Sheet (User Center & Quick Actions) --- */
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 37, 67, 0.52);
  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 rgba(9, 37, 67, 0.22);
  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(--blue-soft);
  color: var(--blue);
}
.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(--blue);
  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;
}
.skin-grid, .home-grid, .library-grid, .closet-grid {
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

/* --- 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: #bcd5f7;
  background: linear-gradient(180deg, #f7faff 0%, var(--surface) 100%);
}
body.night .dnd-launcher-card {
  border-color: #243e5e;
  background: linear-gradient(180deg, #101c2e 0%, var(--surface) 100%);
}
body.night .dnd-launcher-badge {
  background: #0d1624;
  border-color: var(--blue);
  color: var(--ink);
}
body.night .dnd-launcher-badge:hover {
  background: #15253b;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
body.night .dnd-info strong {
  color: #f0f6fc;
}
body.night .dnd-info small {
  color: #8ca3be;
}
body.night .dnd-url-pill {
  background: #090f1a;
  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(--blue);
  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(--blue-soft);
  box-shadow: 0 4px 16px rgba(21, 91, 215, 0.16);
}
.dnd-grip {
  color: var(--blue);
  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(--blue);
  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(--blue);
  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: #060a12;
  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: #7b94b0;
}
.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: #a5caff;
  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: #060a12;
  border-radius: 6px;
  color: #60a5fa;
  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;
}
