:root{--bg:#f4f4f7;--panel:#fff;--line:#e6e6ec;--text:#18181d;--muted:#82828d;--soft:#a6a6af;--accent:#7c5cff;--accent2:#ff5f91;--shadow:0 18px 50px rgba(30,30,42,.10)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;background:var(--bg);color:var(--text)}button,input{font:inherit}button{color:inherit}a{color:inherit;text-decoration:none}
.admin-topbar{height:68px;position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 22px 0 18px;background:rgba(249,249,251,.88);border-bottom:1px solid rgba(218,218,225,.82);backdrop-filter:blur(22px) saturate(150%)}
.brand-zone{display:flex;align-items:center;gap:11px}.brand-mark{width:36px;height:36px;border-radius:11px;background:#18181d;display:grid;place-items:center;position:relative;box-shadow:inset 0 0 0 1px #000}.brand-mark i{position:absolute;width:14px;height:14px;border-radius:4px;transform:rotate(12deg)}.brand-mark i:first-child{background:var(--accent);left:7px;top:7px}.brand-mark i:last-child{background:var(--accent2);right:6px;bottom:6px;mix-blend-mode:screen}.brand-copy{display:grid;gap:2px}.brand-copy b{font-size:14px;font-weight:760;letter-spacing:-.02em}.brand-copy strong{font-weight:920}.brand-copy small{font-size:9px;color:var(--muted);font-weight:750;letter-spacing:.05em}.top-actions{display:flex;gap:8px;align-items:center}
button.primary,.primary{border:0;border-radius:10px;background:#18181d;color:#fff;min-height:36px;padding:0 14px;font-size:11px;font-weight:850;cursor:pointer;box-shadow:0 5px 14px rgba(18,18,24,.15);transition:.16s}.primary:hover{transform:translateY(-1px);background:#28282f}.quiet{border:1px solid #e0e0e7;background:#fff;border-radius:10px;min-height:36px;padding:0 13px;font-size:11px;font-weight:800;cursor:pointer}
.admin-shell{display:grid;grid-template-columns:176px minmax(0,1fr);min-height:calc(100vh - 68px)}.admin-sidebar{position:sticky;top:68px;height:calc(100vh - 68px);padding:18px 12px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:rgba(252,252,253,.8)}.admin-sidebar nav{display:grid;gap:5px}.admin-sidebar nav button{display:flex;align-items:center;gap:11px;min-height:42px;border:0;background:transparent;border-radius:11px;padding:0 12px;text-align:left;color:#676771;cursor:pointer}.admin-sidebar nav button span{width:19px;text-align:center;font-size:15px}.admin-sidebar nav button b{font-size:11px}.admin-sidebar nav button:hover{background:#eeeef3;color:#222}.admin-sidebar nav button.active{background:#ece8ff;color:#5f49c8}.sidebar-bottom{margin-top:auto;padding:14px 10px;border-top:1px solid var(--line);display:grid;gap:4px}.sidebar-bottom span{font-size:8px;font-weight:900;letter-spacing:.13em;color:#8f8f99}.sidebar-bottom small{font-size:9px;color:#aaaab3}
.admin-content{padding:40px clamp(24px,4.2vw,68px) 70px;overflow:hidden}.admin-page{max-width:1320px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}.page-head.compact{margin-bottom:25px}.eyebrow{display:block;font-size:8px;font-weight:900;letter-spacing:.18em;color:#9b9ba5;margin-bottom:8px}.page-head h1{margin:0;font-size:clamp(34px,4vw,56px);letter-spacing:-.055em;line-height:.95}.page-head p{margin:13px 0 0;color:#85858f;font-size:12px}.primary.large{height:44px;padding:0 18px;border-radius:12px}.project-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.project-stats{display:flex;align-items:baseline;gap:6px}.project-stats b{font-size:21px}.project-stats span{font-size:10px;color:#8d8d96}.project-search{display:flex;align-items:center;gap:7px;width:min(280px,42vw);height:36px;padding:0 10px;border:1px solid #e1e1e7;border-radius:10px;background:#fff}.project-search span{color:#9a9aa4}.project-search input{width:100%;border:0;outline:0;font-size:10px;background:transparent}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{min-width:0;border:1px solid #e4e4e9;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(31,31,43,.045);transition:.18s}.project-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.project-cover{height:182px;position:relative;padding:20px;background:linear-gradient(135deg,#f7f3ff,#fff1f6);overflow:hidden}.project-cover:before,.project-cover:after{content:"";position:absolute;border-radius:50%}.project-cover:before{width:180px;height:180px;background:#ff7fa838;right:-45px;top:-60px}.project-cover:after{width:120px;height:120px;background:#7c5cff24;left:-30px;bottom:-60px}.mini-site{position:relative;z-index:2;width:82%;height:128px;margin:auto;background:#fff;border:1px solid #25252b;border-radius:12px;box-shadow:9px 9px 0 #18181d;overflow:hidden}.mini-nav{display:block;height:17px;border-bottom:1px solid #ddd}.mini-title{position:absolute;left:13px;top:34px;width:42%;height:28px;background:#18181d;border-radius:4px}.mini-art{position:absolute;right:10px;top:27px;width:37%;height:80px;border-radius:10px;background:linear-gradient(135deg,#7c5cff,#ff5f91)}.project-status{position:absolute;z-index:3;right:12px;top:12px;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #e3e3e8;font-size:8px;font-weight:850;color:#666670}.project-status.published{color:#21845d;background:#f1fff8;border-color:#cfeedd}.project-card-body{padding:15px}.project-card-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.project-card-title>div{min-width:0}.project-card-title b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.project-card-title span{display:block;margin-top:4px;color:#8d8d96;font-size:9px}.project-menu{border:0;background:transparent;color:#9999a3;cursor:pointer}.project-meta-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0 12px;padding-top:11px;border-top:1px solid #efeff2;font-size:9px;color:#94949e}.project-template{padding:4px 6px;border-radius:6px;background:#f1efff;color:#6854c7;font-weight:800}.project-actions{display:grid;grid-template-columns:1fr auto;gap:7px}.project-actions button,.project-actions a{height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:820;cursor:pointer}.edit-project{border:1px solid #dedee5;background:#18181d;color:#fff}.open-site{padding:0 10px;border:1px solid #dedee5;background:#fff}
.empty-projects{min-height:380px;border:1px dashed #d8d8df;border-radius:18px;background:#fafafd;display:grid;place-items:center;align-content:center;text-align:center;padding:30px}.empty-projects b{font-size:15px}.empty-projects p{font-size:10px;color:#92929c}.empty-orbit{width:92px;height:72px;position:relative;margin-bottom:20px}.empty-orbit:before{content:"";position:absolute;inset:8px 2px;border:1px solid #cccbd6;border-radius:50%;transform:rotate(-8deg)}.empty-orbit i{position:absolute;border-radius:6px;transform:rotate(12deg)}.empty-orbit i:first-child{width:24px;height:24px;background:var(--accent);left:18px;top:17px}.empty-orbit i:last-child{width:24px;height:24px;background:var(--accent2);right:17px;bottom:13px}
.template-filter-row{display:flex;gap:7px;margin:0 0 18px;overflow:auto}.template-filter-row button{white-space:nowrap;border:1px solid #dedee5;border-radius:999px;background:#fff;padding:7px 11px;font-size:9px;font-weight:800;color:#777780}.template-filter-row button.active{background:#18181d;color:#fff;border-color:#18181d}.template-filter-row button:disabled{opacity:.45}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-card{border:1px solid #e3e3e9;border-radius:18px;background:#fff;overflow:hidden;transition:.18s}.template-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.template-preview{height:245px;padding:20px;background:#f8f4ff;position:relative;overflow:hidden}.template-preview:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-45px;top:-50px;background:#ff5f9140}.template-preview-window{position:relative;width:92%;height:205px;margin:auto;border:2px solid #18181d;border-radius:15px;background:#fff;box-shadow:10px 10px 0 #18181d;overflow:hidden}.template-preview-window .bar{height:19px;border-bottom:1px solid #ddd}.template-preview-window .hero{height:112px;display:grid;grid-template-columns:1fr .82fr;gap:8px;padding:13px;background:linear-gradient(135deg,#fff,#fff5f7)}.template-preview-window .hero b{font-size:24px;line-height:.82;letter-spacing:-.07em}.template-preview-window .art{border:2px solid #18181d;border-radius:10px;background:linear-gradient(135deg,#7c5cff,#ff5f91)}.template-preview-window .rows{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:8px}.template-preview-window .rows i{height:37px;border:1px solid #ddd;border-radius:7px;background:#fff}.template-card-body{padding:16px}.template-card-body>span{font-size:8px;color:#8e8e98;font-weight:850;letter-spacing:.1em}.template-card-body h2{margin:7px 0 6px;font-size:18px}.template-card-body p{min-height:43px;margin:0 0 14px;font-size:10px;line-height:1.55;color:#85858f}.template-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.template-tag{font-size:8px;padding:5px 7px;border-radius:999px;background:#f1efff;color:#6854c7;font-weight:850}.use-template{border:0;border-radius:9px;background:#18181d;color:#fff;padding:9px 12px;font-size:9px;font-weight:850;cursor:pointer}
.template-coming{opacity:.58}.template-coming .template-preview{filter:grayscale(.7)}.template-coming .use-template{background:#ececf1;color:#8b8b95;cursor:not-allowed}
.create-dialog{width:min(540px,calc(100vw - 24px));max-width:none;padding:0;border:0;border-radius:19px;background:#fff;box-shadow:0 30px 90px rgba(16,16,22,.28)}.create-dialog::backdrop{background:rgba(17,17,23,.68);backdrop-filter:blur(7px)}.create-shell{display:grid}.dialog-head,.dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px}.dialog-head{border-bottom:1px solid #ececf1}.dialog-head>div{display:grid}.dialog-head b{font-size:15px}.dialog-head button{width:32px;height:32px;border:1px solid #dfdfe5;background:#fff;border-radius:9px;font-size:17px}.dialog-body{display:grid;gap:14px;padding:18px}.selected-template{display:grid;grid-template-columns:68px 1fr;gap:12px;align-items:center;padding:12px;border:1px solid #e4e4e9;border-radius:13px;background:#fafafd}.selected-template .thumb{width:68px;height:52px;border-radius:9px;background:linear-gradient(135deg,#7c5cff,#ff5f91);border:2px solid #18181d;box-shadow:4px 4px 0 #18181d}.selected-template b{font-size:12px}.selected-template span{display:block;margin-top:4px;font-size:9px;color:#8d8d96}.dialog-body label{display:grid;gap:7px}.dialog-body label>span{font-size:9px;font-weight:850;color:#777780}.dialog-body input{height:43px;border:1px solid #dcdce3;border-radius:10px;padding:0 11px;outline:0;font-size:11px}.dialog-body input:focus{border-color:#9b8cff;box-shadow:0 0 0 3px #eeeaff}.dialog-note{padding:10px 11px;border-radius:10px;background:#f5f5f8;color:#8b8b95;font-size:9px;line-height:1.5}.dialog-foot{border-top:1px solid #ececf1}.dialog-foot>button{border:1px solid #dedee5;background:#fff;border-radius:9px;padding:9px 13px;font-size:10px;font-weight:800}.dialog-foot .primary{background:#18181d;color:#fff;border-color:#18181d}
@media(max-width:1050px){.project-grid,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.admin-topbar{padding:0 12px}.brand-copy small,.top-actions .quiet{display:none}.admin-shell{grid-template-columns:1fr}.admin-sidebar{display:none}.admin-content{padding:26px 14px 60px}.page-head{align-items:flex-start;flex-direction:column}.page-head .large{width:100%}.project-grid,.template-grid{grid-template-columns:1fr}.project-toolbar{gap:10px}.project-search{width:58vw}.template-preview{height:220px}.template-preview-window{height:180px}}

/* admin project destructive actions */
.danger-link{border:0;background:transparent;color:#b42318;font-size:9px;font-weight:850;cursor:pointer;padding:4px 0}
.danger-link:hover{text-decoration:underline}
.project-actions{grid-template-columns:minmax(0,1fr) auto auto}
.project-actions .danger-outline{padding:0 10px;border:1px solid #efc8c3;background:#fffafa;color:#b42318}
.project-actions .danger-outline:hover{background:#fff1ef;border-color:#e8aaa2}
@media(max-width:520px){.project-actions{grid-template-columns:1fr 1fr}.project-actions .edit-project{grid-column:1/-1}}

/* admin 1.0.2 layout cleanup */
[hidden]{display:none!important}
.admin-topbar{justify-content:flex-start}
.admin-sidebar{padding-left:10px;padding-right:10px}
.admin-sidebar nav button{padding-left:10px;padding-right:10px}
.sidebar-bottom{opacity:.72}


/* organizer auth simulation v1.1.0 */
.auth-account-actions{margin-left:auto;display:flex;align-items:center;gap:9px}
.auth-account-actions>div{display:grid;gap:1px;text-align:right}.auth-account-actions small{font-size:8px;color:#9898a3}.auth-account-actions b{font-size:10px}.auth-user-dot{width:8px;height:8px;border-radius:50%;background:#31b46f;box-shadow:0 0 0 4px #31b46f18}
.auth-shell{width:min(1180px,calc(100% - 40px));min-height:calc(100vh - 68px);margin:0 auto;padding:48px 0 70px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.72fr);gap:clamp(46px,7vw,100px);align-items:center}
.auth-visual{align-self:center;padding:30px 0}.auth-eyebrow{font-size:9px;font-weight:900;letter-spacing:.19em;color:#8176df}.auth-visual h1{margin:13px 0 19px;font-size:clamp(48px,6vw,78px);line-height:.93;letter-spacing:-.065em}.auth-visual h1 em{font-style:normal;color:#765de8}.auth-visual>p{max-width:590px;margin:0;color:#74747f;font-size:13px;line-height:1.85}.auth-feature-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:25px}.auth-feature-row span{padding:7px 10px;border:1px solid #dfdfe6;border-radius:999px;background:#fff;font-size:8px;font-weight:850;color:#74747d}
.auth-card{padding:22px;border:1px solid #e1e1e8;border-radius:20px;background:rgba(255,255,255,.94);box-shadow:0 24px 70px rgba(27,27,38,.10)}
.auth-brand-mini{display:flex;align-items:center;gap:9px;margin-bottom:18px}.auth-brand-mini .brand-mark{width:31px;height:31px;border-radius:9px}.auth-brand-mini b{font-size:12px}.auth-brand-mini strong{font-weight:900}
.auth-primary-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border:1px solid #e3e3e9;border-radius:11px;background:#f4f4f7}.auth-primary-tabs button{height:33px;border:0;border-radius:8px;background:transparent;color:#7c7c86;font-size:10px;font-weight:850;cursor:pointer}.auth-primary-tabs button.active{background:#fff;color:#202026;box-shadow:0 1px 5px #1d1d2812}
.auth-panel{margin-top:20px}.auth-panel-head{margin-bottom:16px}.auth-panel-head h2{margin:0 0 5px;font-size:22px;letter-spacing:-.035em}.auth-panel-head p{margin:0;color:#8a8a95;font-size:9px;line-height:1.5}
.auth-form{display:grid;gap:10px}.auth-form label:not(.auth-check){display:grid;gap:6px}.auth-form label>span{font-size:8px;font-weight:850;color:#777781}.auth-form input{height:39px;border:1px solid #dcdce3;border-radius:10px;padding:0 11px;background:#fff;outline:0;font-size:10px}.auth-form input:focus{border-color:#9a8bec;box-shadow:0 0 0 3px #eeeaff}.auth-form input::placeholder{color:#b0b0b9}
.auth-form-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-2px}.auth-check{display:flex!important;align-items:center!important;gap:6px!important}.auth-check input{width:14px;height:14px;accent-color:#765de8}.auth-check span{font-size:8px!important;color:#85858e;font-weight:750!important}.auth-text-btn,.auth-back{border:0;background:transparent;padding:0;color:#6f59d6;font-size:8px;font-weight:850;cursor:pointer}.auth-back{margin-bottom:13px}.auth-submit{width:100%;height:39px;margin-top:3px}
.auth-message{min-height:14px;margin:0;font-size:8px;line-height:1.45;color:#8a8a94}.auth-message.error{color:#c44357}.auth-message.ok{color:#21845d}
.auth-method-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 13px}.auth-method-tabs button{min-height:51px;display:grid;gap:2px;text-align:left;border:1px solid #e1e1e7;border-radius:11px;background:#fafafd;padding:9px 10px;cursor:pointer}.auth-method-tabs button b{font-size:9px}.auth-method-tabs button small{font-size:7px;color:#9696a0}.auth-method-tabs button.active{border-color:#a79aee;background:#f5f2ff;box-shadow:0 0 0 2px #eeeaff inset}.auth-method-tabs button.active b{color:#634fc5}
.recovery-success{text-align:center}.auth-success-icon{width:42px;height:42px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#ecfff5;color:#21845d;font-size:20px;font-weight:900}.recovery-success .auth-panel-head{margin-bottom:13px}
.auth-code-display{padding:15px;border:1px solid #dedee5;border-radius:12px;background:#fbfbfd}.auth-code-display small{display:block;margin-bottom:5px;font-size:7px;font-weight:900;letter-spacing:.14em;color:#9a9aa5}.auth-code-display strong{font-size:34px;letter-spacing:.18em;font-variant-numeric:tabular-nums}
.auth-code-warning{display:grid;gap:3px;margin-top:9px;padding:10px 11px;border-radius:10px;background:#fff8e8;text-align:left}.auth-code-warning b{font-size:8px;color:#8b651b}.auth-code-warning span{font-size:8px;line-height:1.5;color:#8b7650}.auth-result-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:7px;margin-top:12px}.auth-result-actions button{min-height:36px}
.auth-demo-mail{display:grid;gap:5px;margin-top:2px;padding:11px;border:1px dashed #cfcbdc;border-radius:10px;background:#faf9ff}.auth-demo-mail>span{font-size:7px;font-weight:900;letter-spacing:.11em;color:#806bdc}.auth-demo-mail>b{font-size:9px}.auth-demo-mail p{margin:0 0 4px;color:#92929d;font-size:8px;line-height:1.5}.auth-demo-mail button{width:100%;font-size:8px}.auth-reset-for{display:flex;gap:4px;flex-wrap:wrap;align-items:center;padding:8px 9px;border-radius:9px;background:#f5f4f9;font-size:8px}.auth-reset-for b{color:#5f4dc3}
.auth-security-note{display:flex;gap:8px;margin-top:15px;padding-top:13px;border-top:1px solid #ededf1}.auth-security-note>span{font-size:12px}.auth-security-note p{margin:0;color:#9797a0;font-size:7px;line-height:1.55}.auth-security-note b{color:#777781}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;gap:20px;padding-top:28px}.auth-visual{padding:10px 6px}.auth-visual h1{font-size:52px}.auth-visual>p{max-width:700px}.auth-card{max-width:560px;width:100%;margin:0 auto}}
@media(max-width:600px){.auth-shell{width:calc(100% - 24px);padding:18px 0 42px}.auth-visual{padding:6px 2px}.auth-visual h1{font-size:39px;margin-bottom:14px}.auth-visual>p{font-size:11px}.auth-feature-row{display:none}.auth-card{padding:15px;border-radius:16px}.auth-panel{margin-top:16px}.auth-panel-head h2{font-size:19px}.auth-result-actions{grid-template-columns:1fr}.auth-account-actions>div{display:none}}


/* template library art-direction previews v1.2 */
.template-preview-window .hero{position:relative}.template-preview-window .hero em{position:absolute;left:12px;bottom:7px;font-size:6px;font-style:normal;font-weight:900;letter-spacing:.14em;opacity:.55}
.template-art-travel-scrapbook .template-preview{background:#efe7d8}
.template-art-travel-scrapbook .template-preview:before{background:#f1a9b340;border-radius:8px;transform:rotate(10deg)}
.template-art-travel-scrapbook .template-preview-window{border-color:#9c8c77;border-radius:3px;box-shadow:8px 10px 0 #c8b9a4}
.template-art-travel-scrapbook .template-preview-window .hero{background:#fffaf0;transform:rotate(-1deg)}
.template-art-travel-scrapbook .template-preview-window .hero b{font-family:Georgia,serif;color:#43383b}
.template-art-travel-scrapbook .template-preview-window .art{border:7px solid #fff;border-radius:2px;background:linear-gradient(135deg,#f8b1ba,#8fc9d9);transform:rotate(3deg);box-shadow:0 5px 9px #765c4930}
.template-art-travel-scrapbook .template-preview-window .rows i{border-radius:2px;background:#fffaf0;border-color:#d3c6b4}

.template-art-school-festival .template-preview{background:#eaf5ff}
.template-art-school-festival .template-preview:before{background:#ffe46b88}
.template-art-school-festival .template-preview-window{border:3px solid #15304f;box-shadow:8px 8px 0 #2e8df5}
.template-art-school-festival .template-preview-window .hero{background:linear-gradient(125deg,#fff 0 68%,#d8edff 68%)}
.template-art-school-festival .template-preview-window .hero b{color:#15304f;font-weight:950}
.template-art-school-festival .template-preview-window .art{border:3px solid #15304f;background:linear-gradient(135deg,#5eb6ff,#fff0a3)}
.template-art-school-festival .template-preview-window .rows i{border:2px solid #15304f;background:#fff}

.template-art-museum-editorial .template-preview{background:#efede7}
.template-art-museum-editorial .template-preview:before{display:none}
.template-art-museum-editorial .template-preview-window{border:1px solid #9e9789;border-radius:0;box-shadow:none;background:#f8f6f1}
.template-art-museum-editorial .template-preview-window .bar{border-color:#bdb7aa}
.template-art-museum-editorial .template-preview-window .hero{grid-template-columns:.68fr 1.32fr;background:#f8f6f1;gap:14px}
.template-art-museum-editorial .template-preview-window .hero b{font-family:Georgia,serif;font-weight:400;font-size:22px}
.template-art-museum-editorial .template-preview-window .art{border:0;border-radius:0;background:linear-gradient(135deg,#c7b9a7,#6b6258)}
.template-art-museum-editorial .template-preview-window .rows{gap:0}.template-art-museum-editorial .template-preview-window .rows i{border:0;border-right:1px solid #bdb7aa;border-radius:0;background:transparent}

.template-art-live-poster .template-preview{background:#0b0c11}
.template-art-live-poster .template-preview:before{background:#ff3b7470}
.template-art-live-poster .template-preview-window{border:1px solid #565865;border-radius:0;box-shadow:10px 10px 0 #ff3b74;background:#11131b}
.template-art-live-poster .template-preview-window .bar{border-color:#3b3d48}
.template-art-live-poster .template-preview-window .hero{background:#11131b;color:#fff}
.template-art-live-poster .template-preview-window .hero b{font-size:27px;font-style:italic;color:#fff}
.template-art-live-poster .template-preview-window .art{border:0;border-radius:0;background:linear-gradient(135deg,#ff3b74,#72f5dc)}
.template-art-live-poster .template-preview-window .hero em{color:#72f5dc}
.template-art-live-poster .template-preview-window .rows i{background:#171923;border-color:#383a45;border-radius:0}

.template-art-expo-catalogue .template-preview{background:#e8e7e2}
.template-art-expo-catalogue .template-preview:before{background:#ff5b3545;border-radius:0}
.template-art-expo-catalogue .template-preview-window{border:2px solid #101820;border-radius:1px;box-shadow:none}
.template-art-expo-catalogue .template-preview-window .hero{background:linear-gradient(90deg,#f3f2ee 0 58%,#deddd8 58%);gap:0}
.template-art-expo-catalogue .template-preview-window .hero b{font-weight:950;color:#101820}
.template-art-expo-catalogue .template-preview-window .art{border:0;border-radius:0;background:linear-gradient(135deg,#ff5b35,#101820)}
.template-art-expo-catalogue .template-preview-window .rows{gap:0;padding:0}.template-art-expo-catalogue .template-preview-window .rows i{height:56px;border:0;border-right:1px solid #99978f;border-radius:0;background:#f3f2ee}

.template-art-immersive-character .template-preview{background:#131225}
.template-art-immersive-character .template-preview:before{background:#7f6cff80;filter:blur(14px)}
.template-art-immersive-character .template-preview-window{border:1px solid #55506e;border-radius:18px;box-shadow:0 12px 30px #7f6cff33;background:#0f0e1d}
.template-art-immersive-character .template-preview-window .bar{border-color:#343146}
.template-art-immersive-character .template-preview-window .hero{background:radial-gradient(circle at 78% 24%,#7f6cff88,transparent 38%),#131225;color:#fff}
.template-art-immersive-character .template-preview-window .hero b{font-family:Georgia,serif;font-weight:500;color:#fff}
.template-art-immersive-character .template-preview-window .art{border:1px solid #8179a1;border-radius:40% 5px 40% 5px;background:linear-gradient(135deg,#302c5a,#a08ef7)}
.template-art-immersive-character .template-preview-window .hero em{color:#b7a7ff}
.template-art-immersive-character .template-preview-window .rows i{background:#17152b;border-color:#3d3856}

.selected-template .thumb-travel-scrapbook{background:linear-gradient(135deg,#f8b1ba,#8fc9d9)}
.selected-template .thumb-school-festival{background:linear-gradient(135deg,#5eb6ff,#ffe46b)}
.selected-template .thumb-museum-editorial{background:linear-gradient(135deg,#d8d0c4,#776d61)}
.selected-template .thumb-live-poster{background:linear-gradient(135deg,#ff3b74,#72f5dc)}
.selected-template .thumb-expo-catalogue{background:linear-gradient(135deg,#ff5b35,#101820)}
.selected-template .thumb-immersive-character{background:linear-gradient(135deg,#302c5a,#a08ef7)}

/* Real browser-captured thumbnails for finished IP ONLY templates. */
.template-preview .template-real-cover{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:top center;background:#fff}

/* Market 03/04 design preview thumbnails: render the actual prototype, never a fake generic cover. */
.template-market-preview .template-preview{height:245px;padding:0;background:#fff;overflow:hidden}
.template-market-preview .market-thumbnail{border:0;width:320%;height:320%;transform:scale(.3125);transform-origin:top left;pointer-events:none}
.template-market-preview .market-preview-link{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;background:#18181d;color:#fff;text-decoration:none;border-radius:10px;font-size:12px;font-weight:800}
.template-market-preview .market-preview-link:hover{background:#393947}

/* Local-workspace portability: avoid losing browser-only projects when the hostname changes. */
.project-toolbar{gap:12px;flex-wrap:wrap}
.project-backup-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-left:auto}
.project-backup-actions button{padding:9px 11px;font-size:10px;font-weight:800;border:1px solid #dfdfe8;border-radius:9px;background:#fff;cursor:pointer;white-space:nowrap}
.project-backup-actions button:hover{border-color:#9f91ec;background:#faf9ff}
.backup-credential-option{display:inline-flex;gap:5px;align-items:center;font-size:9px;color:#767680;cursor:pointer;white-space:nowrap}
.backup-credential-option input{accent-color:#6b52d3}
.project-backup-notice{font-size:10px;line-height:1.6;color:#858590;margin:0 0 17px}
@media(max-width:760px){.project-toolbar{align-items:flex-start}.project-backup-actions{margin-left:0;width:100%}.project-search{width:min(100%,310px)}.project-backup-notice{font-size:10px}}

/* sidebar badge, selection, recycle bin, settings, help */
.admin-sidebar nav button .nav-badge{margin-left:auto;min-width:18px;height:18px;padding:0 6px;border-radius:9px;background:var(--accent);color:#fff;font-style:normal;font-size:10px;font-weight:900;display:grid;place-items:center}
.select-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:12px;color:var(--muted)}
.select-bar[hidden]{display:none}.select-bar b{color:var(--text)}.select-bar .select-all{display:flex;align-items:center;gap:6px;color:var(--text);font-weight:800;cursor:pointer}
.select-bar .danger-link{margin-left:auto;font-size:12px}
.select-bar button:disabled{opacity:.45;cursor:not-allowed}
.project-card{position:relative}
.card-select{position:absolute;top:12px;left:12px;z-index:3;width:24px;height:24px;border-radius:8px;background:#fff;border:2px solid #cfcfd8;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.card-select[hidden]{display:none}.card-select input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.card-select span{width:12px;height:12px;border-radius:3px;background:transparent}
.card-select input:checked+span{background:var(--accent)}
.project-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 2px #7c5cff33}
.bin-card .mini-site{filter:grayscale(.7);opacity:.75}
.bin-card .project-actions{grid-template-columns:minmax(0,1fr) auto}
.project-actions .duplicate-project{padding:0 12px}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;max-width:1000px}
.settings-card{display:flex;flex-direction:column;gap:12px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}
.settings-card h2{margin:0;font-size:16px}.settings-card p{margin:0;font-size:12px;line-height:1.7;color:var(--muted)}
.settings-card .auth-form{display:flex;flex-direction:column;gap:12px}
.settings-card .auth-code-display{display:flex;flex-direction:column;gap:6px}
.settings-card .auth-code-display strong{font-size:20px;letter-spacing:.12em;font-family:ui-monospace,Consolas,monospace}
.project-actions{grid-template-columns:minmax(0,1fr) auto auto auto}

/* circle collection */
.collect-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.collect-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:var(--muted)}
.collect-toolbar select{min-width:240px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;color:var(--text)}
#collectSetup,#collectLinkBox{max-width:720px;margin-bottom:18px}
#collectSetup[hidden],#collectLinkBox[hidden],#collectEmpty[hidden]{display:none}
.collect-link{display:flex;gap:10px}.collect-link input{flex:1;min-width:0;padding:9px 12px;border:1px solid var(--line);border-radius:10px;font:12px ui-monospace,Consolas,monospace;background:#faf9ff}
.collect-actions{display:flex;gap:10px;flex-wrap:wrap}
.collect-state{margin-left:8px;font-size:11px;font-weight:800;padding:2px 8px;border-radius:99px;background:#e2f6ee;color:#12805c;vertical-align:middle}
.collect-state.off{background:#f1f1f5;color:#6f6c88}
.collect-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:16px;max-width:1100px}
.collect-entry{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.collect-head{display:flex;align-items:center;gap:12px}
.collect-logo{width:48px;height:48px;border-radius:12px;background:#efeaff center/cover no-repeat;flex:none}
.collect-title{flex:1;min-width:0;display:flex;flex-direction:column}.collect-title b{font-size:15px}.collect-title small{color:var(--muted);font-size:12px}
.collect-pill{font-size:11px;font-weight:800;padding:3px 9px;border-radius:99px;background:#fff3d6;color:#9a6200}
.collect-entry.is-approved .collect-pill{background:#e2f6ee;color:#12805c}.collect-entry.is-rejected .collect-pill{background:#f1f1f5;color:#6f6c88}
.collect-intro,.collect-contact{margin:0;font-size:13px;line-height:1.6}.collect-contact{color:var(--muted)}
.collect-products{display:flex;gap:8px;flex-wrap:wrap}
.collect-product{width:76px;font-size:11px;line-height:1.4;color:var(--muted)}
.collect-product i{display:block;width:76px;height:76px;border-radius:10px;background:#f2f0fb center/cover no-repeat;margin-bottom:3px}
.collect-product b{display:block;color:var(--text);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collect-ops{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.collect-no{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800}.collect-no input{width:84px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;font:inherit}
.collect-entry:not(.is-pending) .collect-no,.collect-entry:not(.is-pending) .approve{display:none}
.collect-entry.is-approved .reject{display:none}

/* visit statistics */
.stats-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;max-width:800px;margin-bottom:18px}
.stats-cards[hidden],.stats-chart[hidden]{display:none}
.stats-cards div{padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:4px}
.stats-cards small{color:var(--muted);font-size:12px;font-weight:700}.stats-cards b{font-size:28px;line-height:1.1}
.stats-chart{max-width:800px}
.stats-bars{display:flex;align-items:flex-end;gap:4px;height:160px;padding-top:8px;border-bottom:1px solid var(--line)}
.stats-bars i{flex:1;min-width:0;background:var(--accent);border-radius:4px 4px 0 0;min-height:2px;opacity:.85;position:relative}
.stats-bars i:hover{opacity:1}
.stats-bars i.zero{background:#e3dff5}

/* phone layout: admin navigation as a bottom tab bar, and a roomier editor top bar */
@media(max-width:760px){
  .admin-shell{display:block}
  .admin-sidebar{display:block;position:fixed;top:auto;left:0;right:0;bottom:0;height:auto;z-index:40;padding:4px 4px calc(4px + env(safe-area-inset-bottom));background:#fff;border:0;border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(24,20,48,.08)}
  .admin-sidebar>*:not(nav){display:none}
  .admin-sidebar nav{display:flex;flex-direction:row;gap:0}
  .admin-sidebar nav button{flex:1;min-width:0;flex-direction:column;justify-content:center;gap:2px;padding:6px 2px;position:relative;border-radius:10px;text-align:center}
  .admin-sidebar nav button b{font-size:10px;font-weight:700;white-space:nowrap}
  .admin-sidebar nav button span{font-size:16px;line-height:1}
  .admin-sidebar nav button .nav-badge{position:absolute;top:2px;right:calc(50% - 20px);margin:0;min-width:16px;height:16px;padding:0 4px;font-size:9px}
  .admin-content{padding-bottom:92px}
}
.danger-card{border-color:#f0c9d1}.danger-card h2{color:var(--danger,#d6334f)}

/* settings buttons share the look of the other quiet buttons; the red one is for destructive actions */
.settings-card button,.select-bar button{font-family:inherit}
.settings-card button:not(.primary){border:1px solid #e0e0e7;background:#fff;border-radius:10px;min-height:36px;padding:0 14px;font-size:11px;font-weight:800;cursor:pointer;color:#26262c}
.settings-card button:not(.primary):hover{background:#f4f4f8}
.danger-outline{border:1px solid #efc8c3!important;background:#fffafa!important;color:#b42318!important}
.danger-outline:hover{background:#fff1ef!important;border-color:#e8aaa2!important}
.danger-card .auth-form{align-items:flex-start}
.danger-card .auth-form label{align-self:stretch}

/* template cards for 05 and 06 */
.template-art-live-stage .template-preview{background:#0b0a1c}
.template-art-live-stage .template-preview:before{background:#ff3d8b66}
.template-art-live-stage .template-preview-window{border:1px solid #4a4670;border-radius:0;box-shadow:10px 10px 0 #ff3d8b;background:#15123a}
.template-art-live-stage .template-preview-window .bar{border-color:#3b3763}
.template-art-live-stage .template-preview-window .hero{background:#15123a;color:#fff}
.template-art-live-stage .template-preview-window .hero b{font-size:27px;font-style:italic;color:#fff}
.template-art-live-stage .template-preview-window .art{border:0;border-radius:0;background:linear-gradient(135deg,#ff3d8b,#35e3ff)}
.template-art-live-stage .template-preview-window .hero em{color:#ffe14d}
.template-art-tea-party .template-preview{background:#fff6ec}
.template-art-tea-party .template-preview:before{background:#f9d3dc99}
.template-art-tea-party .template-preview-window{border:2px solid #ecd5cc;border-radius:20px;box-shadow:0 8px 0 #fadbe3;background:#fffdf8}
.template-art-tea-party .template-preview-window .bar{border-color:#ecd5cc}
.template-art-tea-party .template-preview-window .hero{background:#fffdf8;color:#5a3d3a}
.template-art-tea-party .template-preview-window .hero b{font-family:Georgia,serif;font-size:25px;color:#5a3d3a}
.template-art-tea-party .template-preview-window .art{border:3px solid #f08fa8;border-radius:50%;background:linear-gradient(150deg,#f9d3dc,#dccffa 60%,#bfe6d6)}
.template-art-tea-party .template-preview-window .hero em{color:#b0405e}
.template-art-tea-party .template-preview-window .rows i{background:#fff6ec;border-color:#ecd5cc}

/* overview numbers on the start page */
.overview-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:0 0 18px}
.overview-bar>*{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:2px;text-align:left;font:inherit;color:inherit}
.overview-bar[hidden],.overview-bar>[hidden]{display:none}
.overview-bar small{color:var(--muted);font-size:12px;font-weight:700}.overview-bar b{font-size:26px;line-height:1.15}
.overview-bar .ov-link{cursor:pointer}.overview-bar .ov-link:hover{border-color:var(--accent)}
.project-time .stale{color:#b45f06;font-weight:800;margin-left:6px}

/* quick setup for small events */
.quick-setup[hidden]{display:none}
.quick-setup{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px dashed var(--line);border-radius:14px;background:#faf9ff}
.quick-title{font-size:12px;color:var(--muted);line-height:1.6}
.quick-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick-setup label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}
.quick-setup input[type=text],.quick-setup input:not([type]),.quick-setup input[type=file]{padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit}
.quick-modules{border:0;padding:0;margin:0}.quick-modules legend{font-size:12px;font-weight:800;margin-bottom:6px;padding:0}
.quick-modules label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0 14px 6px 0;font-weight:700}

.template-group{grid-column:1/-1;display:flex;align-items:baseline;gap:12px;margin:10px 0 -4px;padding-top:6px}
.template-group:first-child{margin-top:0}
.template-group b{font-size:17px}.template-group span{font-size:12.5px;color:var(--muted)}

/* template gallery: filter row, real covers, preview */
.template-filter-row{display:flex;gap:8px;margin:0 0 20px;overflow:auto;padding-bottom:2px}
.template-filter-row button{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #dedee5;border-radius:999px;background:#fff;padding:9px 15px;font-size:13px;font-weight:800;color:#555;cursor:pointer}
.template-filter-row button i{font-style:normal;font-size:11px;min-width:20px;height:20px;border-radius:10px;background:#f0eefb;color:#6a55d8;display:grid;place-items:center;padding:0 6px}
.template-filter-row button.active{background:#18181d;border-color:#18181d;color:#fff}.template-filter-row button.active i{background:#ffffff26;color:#fff}
.template-card{overflow:hidden}
.template-cover{position:relative;display:block;width:100%;aspect-ratio:16/10;padding:0;border:0;background:#eceaf6;cursor:zoom-in;overflow:hidden}
.template-cover img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;transition:transform .35s}
.template-cover:hover img{transform:scale(1.03)}
.template-cover-hint{position:absolute;right:12px;bottom:12px;padding:6px 12px;border-radius:999px;background:#18181dcc;color:#fff;font-size:12px;font-weight:800;opacity:0;transition:opacity .2s}
.template-cover:hover .template-cover-hint,.template-cover:focus-visible .template-cover-hint{opacity:1}
.template-card-actions{display:flex;gap:8px}
.preview-template{border:1px solid var(--line);background:#fff;border-radius:10px;min-height:36px;padding:0 14px;font-size:12px;font-weight:800;cursor:pointer}
.preview-dialog{width:min(1280px,calc(100vw - 32px));height:min(860px,calc(100vh - 32px));padding:0;border:0;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px #18181d55}
.preview-dialog::backdrop{background:#18181d99}
.preview-shell{display:flex;flex-direction:column;height:100%;background:#f4f4f8}
.preview-head{display:flex;align-items:center;gap:16px;padding:12px 18px;background:#fff;border-bottom:1px solid var(--line)}
.preview-title{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.preview-title b{font-size:17px}.preview-title small{color:var(--muted);font-size:12px}
.preview-device{display:flex;gap:4px;padding:3px;border-radius:10px;background:#efeff4}
.preview-device button{border:0;background:transparent;border-radius:8px;padding:7px 16px;font-size:12px;font-weight:800;color:#666;cursor:pointer}.preview-device button.active{background:#fff;color:#18181d;box-shadow:0 1px 4px #0002}
.preview-actions{display:flex;gap:8px;align-items:center}.preview-actions button:last-child{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:18px;cursor:pointer}
.preview-stage{flex:1;min-height:0;display:flex;justify-content:center;padding:0}
.preview-stage iframe{width:100%;height:100%;border:0;background:#fff}
.preview-stage.mobile{padding:16px 0;background:#e6e6ee}
.preview-stage.mobile iframe{width:390px;max-width:100%;border-radius:22px;box-shadow:0 16px 50px #0003}
@media(max-width:760px){.preview-dialog{width:100vw;height:100vh;max-height:none;border-radius:0}.preview-head{flex-wrap:wrap;gap:8px}.preview-title{flex-basis:100%}.preview-device{display:none}}

/* sidebar: grouped, outlined icons, rounded active pill, account pinned to the bottom */
.admin-shell{grid-template-columns:184px minmax(0,1fr)}
.admin-sidebar{padding:16px 10px}
.admin-sidebar nav{flex:1;display:flex;flex-direction:column;gap:2px}
.admin-sidebar nav .nav-group{margin:14px 12px 6px;font-size:11px;font-weight:800;letter-spacing:.08em;color:#8f8f99}
.admin-sidebar nav .nav-group:first-child{margin-top:4px}
.admin-sidebar nav button{min-height:46px;border-radius:999px;padding:0 14px;gap:12px}
.admin-sidebar nav button span{display:grid;place-items:center;width:22px;height:22px}
.admin-sidebar nav button b{font-size:14px;font-weight:700}
.admin-sidebar nav button.nav-last{margin-top:auto;border-top:1px solid var(--line);border-radius:0 0 999px 999px}
@media(max-width:760px){.admin-sidebar nav .nav-group{display:none}.admin-sidebar nav button.nav-last{margin-top:0;border-top:0;border-radius:10px}.admin-sidebar nav button b{font-size:10px}}

.admin-sidebar nav .nav-help{display:flex;align-items:center;gap:12px;min-height:46px;border-radius:999px;padding:0 14px;color:#676771;text-decoration:none;margin-top:auto}
.admin-sidebar nav .nav-help span{display:grid;place-items:center;width:22px;height:22px}
.admin-sidebar nav .nav-help b{font-size:14px;font-weight:700}
.admin-sidebar nav .nav-help:hover{background:#eeeef3;color:#222}
.admin-sidebar nav .nav-help+button.nav-last{margin-top:4px}
@media(max-width:760px){.admin-sidebar nav .nav-help{display:none}}

.project-status.stale-pill{background:#fff1dc;color:#b45f06}

.admin-sidebar nav .nav-feedback{margin-top:auto}
.admin-sidebar nav .nav-feedback+.nav-help{margin-top:0}
.admin-sidebar nav .nav-help{margin-top:0}
@media(max-width:760px){.admin-sidebar nav .nav-feedback{display:none}}
.stats-channel{display:grid;grid-template-columns:90px minmax(0,1fr) 70px;align-items:center;gap:10px;margin:8px 0;font-size:14px}.stats-channel i{height:10px;border-radius:999px;background:var(--accent,#7a5cff);min-width:4px}.stats-channel b{text-align:right;font-weight:700}

.cost-root{display:grid;gap:16px}
.cost-group{display:grid;gap:8px;padding:8px 0;border-top:1px solid var(--line)}.cost-group:first-of-type{border-top:0}
.cost-group-head{display:flex;gap:10px;align-items:baseline}.cost-group-head small{color:#8f8f99;font-size:12px}
.cost-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 36px;gap:8px}
.cost-row input,.cost-fields input{height:40px;border:1px solid #d8d4ea;border-radius:12px;padding:0 12px;font:inherit;min-width:0}
.cost-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cost-fields label{display:grid;gap:6px;font-size:13px;color:#55525f}
.cost-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.cost-cards b.neg,.cost-table tr.neg td:last-child{color:#c0392b}.cost-cards b.pos,.cost-table tr.pos td:last-child{color:#1e8e5a}
.cost-table{width:100%;border-collapse:collapse;font-size:14px}.cost-table th,.cost-table td{padding:9px 6px;text-align:right;border-bottom:1px solid var(--line)}.cost-table th:first-child,.cost-table td:first-child{text-align:left}
@media(max-width:760px){.cost-fields{grid-template-columns:1fr}.cost-cards{grid-template-columns:1fr}.cost-row{grid-template-columns:minmax(0,1fr) 100px 32px}}

.deadline-panel{margin:0 0 18px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:#fff}
.deadline-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.deadline-form{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.deadline-form[hidden]{display:none}
.deadline-form select,.deadline-form input{height:40px;border:1px solid #d8d4ea;border-radius:12px;padding:0 12px;font:inherit;min-width:0}.deadline-form input[name=label]{flex:1 1 180px}
.deadline-list{list-style:none;margin:0;padding:0}
.deadline-list li{display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line);font-size:14px}
.deadline-list li small{display:block;color:#8f8f99;font-size:12px}.deadline-list time{font-weight:800}.deadline-list em{font-style:normal;color:#55525f}
.deadline-list li.soon em{color:#b45f06;font-weight:800}.deadline-list li.past{opacity:.55}
.deadline-empty{margin:8px 0 0;color:#8f8f99;font-size:13px}

.ask-list{display:grid;gap:12px;margin-top:12px}
.ask-item textarea{width:100%;box-sizing:border-box;border:1px solid #d8d4ea;border-radius:12px;padding:10px;font:inherit}
.ask-q{display:grid;gap:2px}.ask-q small{color:#8f8f99}
.ask-item.is-new{border-color:#b9aef0}
.ask-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.ask-actions label{margin-right:auto;font-size:13px}
.ask-toggle{display:flex;gap:10px;align-items:center;font-weight:700}

.signup-root{display:grid;gap:14px;margin-top:12px}
.signup-new{display:flex;flex-wrap:wrap;gap:8px}
.signup-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.signup-head small{display:block;color:#8f8f99;font-size:12px}
.signup-open{font-size:13px;white-space:nowrap}
.signup-link{display:flex;gap:10px;align-items:center}.signup-link code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#55525f}
.signup-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.signup-actions em{font-style:normal;color:#8f8f99;font-size:13px;margin-right:auto}
.signup-edit{display:grid;gap:10px;margin-top:10px}.signup-edit label{display:grid;gap:4px;font-size:13px}
.signup-edit input[type=text],.signup-edit input:not([type]),.signup-edit textarea{border:1px solid #d8d4ea;border-radius:10px;padding:8px 10px;font:inherit}
.signup-field{display:grid;grid-template-columns:minmax(0,1fr) auto auto 32px;gap:8px;align-items:center;margin-bottom:6px}.signup-field label{display:flex;gap:4px;align-items:center;white-space:nowrap}
.signup-entry{border-top:1px solid var(--line);padding:10px 0;display:grid;gap:8px}.signup-entry.is-rejected{opacity:.55}
.signup-answers{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px 14px;font-size:14px}.signup-answers small{display:block;color:#8f8f99;font-size:11px}
@media(max-width:760px){.signup-field{grid-template-columns:minmax(0,1fr) auto auto}.signup-field>button{grid-column:3}}
.create-shell textarea{width:100%;box-sizing:border-box;border:1px solid #d8d4ea;border-radius:12px;padding:12px;font:inherit;resize:vertical;min-height:120px}


@media(max-width:760px){
  .admin-sidebar nav{flex-direction:row;flex:none;gap:0;overflow-x:auto}
  .admin-sidebar nav button{border-radius:10px;min-height:0;padding:6px 2px;gap:2px;flex:1 0 auto;min-width:64px}
  .admin-sidebar nav button.nav-last{border:0;margin:0}
  .admin-sidebar nav button b{font-size:10px;white-space:nowrap}
  .admin-sidebar nav button span{width:auto;height:auto}
}

.admin-sidebar nav button.nav-help{border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;width:100%}
.help-dialog{width:min(600px,calc(100vw - 24px))}
.help-body{max-height:70vh;overflow:auto;gap:8px}
.help-body details{border:1px solid #ececf1;border-radius:14px;padding:0 16px;background:#fff}
.help-body summary{cursor:pointer;font-weight:800;padding:13px 0;font-size:14px}
.help-body details p,.help-body details ol{margin:0 0 14px;color:#4d4d58;font-size:14px;line-height:1.8}
.help-body details ol{padding-left:20px}

.collab-members{display:flex;flex-direction:column;gap:8px;margin:10px 0 14px}
.collab-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e7e4ef;border-radius:12px;background:#faf9fc}
.collab-row b{font-size:14px;color:#2f2a3d}
.collab-role{font-size:12px;color:#8b8698;background:#f1eef7;border-radius:999px;padding:2px 8px}
.collab-row button{margin-left:auto}
.collab-add-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.collab-add-row input{flex:1;min-width:180px}
.shared-badge{display:inline-block;margin-left:8px;font-size:11px;color:#7b5cff;background:#efeaff;border-radius:999px;padding:2px 8px;vertical-align:middle}

/* mobile auth form: readable inputs and 44px controls */
@media(max-width:680px){
  .auth-form input{height:44px;font-size:16px;padding:0 12px}
  .auth-primary-tabs button{height:44px;font-size:12px}
  .auth-submit{min-height:44px;font-size:14px}
  .auth-form label>span{font-size:11px}
  .auth-form-meta{font-size:12px}
  .auth-check input{width:22px;height:22px}
  .auth-check span{font-size:12px}
  .auth-text-btn{min-height:44px;font-size:12px;padding:0 8px}
}

/* mobile admin: 44px controls everywhere */
@media(max-width:680px){
  .auth-form .auth-submit{height:44px!important;min-height:44px!important;font-size:14px!important}
  #authLogoutBtn{min-height:44px}
  main button,.app-main button,.page button{min-height:44px!important}
}

@media(max-width:680px){a.brand-zone{min-height:44px}}

/* mobile dialogs: 44px controls */
@media(max-width:680px){
  #collabDialog button,.create-dialog button{min-height:44px}
  #collabClose,.create-dialog button[aria-label="关闭"]{width:44px;height:44px;min-height:44px}
}

/* coarse pointers: 44px admin controls */
@media(pointer:coarse){
  #authLogoutBtn{min-height:44px}
  main button,.app-main button,.page button{min-height:44px!important}
  .auth-form input{height:44px;font-size:16px}
  a.brand-zone{min-height:44px}
}

/* admin mobile inputs: 16px to avoid iOS zoom */
@media(max-width:680px),(pointer:coarse){
  input,textarea,select{font-size:16px!important}
}

/* admin mobile nav scroll hint */
@media(max-width:680px){
  .admin-sidebar nav{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);padding-right:28px}
}

@media(max-width:680px){.admin-sidebar nav button b{font-size:11px}}

@media(max-width:680px){.auth-message{font-size:12px;min-height:16px;line-height:1.5}}

@media(max-width:680px){
  .admin-shell{padding-bottom:84px!important}
  .admin-sidebar nav p{display:none}
}

/* admin mobile: no double-tap zoom */
html,body{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* platform feedback inbox */
.feedback-list{display:grid;gap:12px}
.feedback-item{padding:14px 16px;border:1px solid #e4e4ea;border-radius:14px;background:#fff}
.feedback-item header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.feedback-item b{font-size:13px}
.feedback-item time{font-size:11px;color:#8a8a94}
.feedback-item p{margin:0;font-size:13px;line-height:1.7;color:#3f3f46;white-space:pre-wrap;word-break:break-word}

/* admin mobile toolbar row */
@media(max-width:760px){.project-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}.project-stats{grid-column:1!important}.project-search{grid-column:2!important;width:100%!important;min-width:0!important;height:36px!important}#selectModeBtn{grid-column:3!important;height:36px!important;padding:0 12px!important;white-space:nowrap!important;font-size:11px!important}.project-backup-actions{grid-column:1/-1!important}.cost-row{align-items:center!important}.cost-row .quiet{width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;display:grid!important;place-items:center!important;line-height:1!important;font-size:18px!important}}

/* admin toolbar and cost alignment */
.project-search input{height:100%!important;min-height:0!important;font-size:12px!important;padding:0 4px!important}
@media(max-width:760px){
 .project-toolbar .project-search{height:44px!important;min-height:44px!important}
 #selectModeBtn{height:44px!important;min-height:44px!important;max-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 12px!important}
 .cost-row .quiet{height:40px!important;min-height:40px!important;max-height:40px!important;width:40px!important;align-self:center!important;margin:0!important;display:grid!important;place-items:center!important}
}
