/* Review controls use their own tokens so classic content styling stays intact. */
.ui-theme-trigger{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d9e1e7);border-radius:6px;background:#fff;color:var(--ink,#253039);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;margin-left:4px}
.ui-theme-trigger:hover{border-color:var(--action,#287c9c);color:var(--action,#287c9c)}
.ui-theme-dialog{width:min(880px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid #d9e1e7;border-radius:16px;box-shadow:0 24px 100px #17233540;background:#fbfcfe;color:#253039;overflow:auto;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:15px;line-height:1.65}
.ui-theme-dialog::backdrop{background:#17233588;backdrop-filter:blur(5px)}
.ui-theme-dialog-heading{display:flex;gap:18px;justify-content:space-between;align-items:start;margin-bottom:22px}.ui-theme-dialog h2{font-size:24px;margin:0 0 6px}.ui-theme-dialog-heading p{margin:0;color:#52616e;font-size:14px}.ui-theme-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #d4dce5;border-radius:50%;background:#fff;color:#344454;font-size:27px;cursor:pointer}
.ui-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ui-theme-option{display:flex;flex-direction:column;align-items:start;gap:12px;min-width:0;border:2px solid #d8dfe7;border-radius:10px;padding:14px;text-align:left;font:inherit;font-size:14px;line-height:1.6;color:#344454;background:#fff;cursor:pointer}.ui-theme-option>strong{font-size:17px;color:#22303d}.ui-theme-option>small{font-size:12px;color:#52616e;margin-top:auto;padding-top:5px}.ui-theme-option[aria-pressed=true]{border-color:var(--action,#287c9c);box-shadow:0 0 0 2px #fff inset;background:#f1f6fa}.ui-theme-option[aria-pressed=true]>strong::after{content:' ✓';color:var(--action,#287c9c)}
.ui-theme-mini{display:grid;width:100%;height:92px;padding:9px;gap:5px;grid-template-columns:repeat(3,1fr);border:1px solid #d9e1e7;border-radius:5px;overflow:hidden;background:#f0f5f8}.ui-theme-mini>span{grid-column:1/-1;background:#287c9c;border-radius:2px}.ui-theme-mini>i{background:#fff;border:1px solid #d9e1e7}.ui-theme-mini-cobalt{background:#f0f0ff;border-radius:10px}.ui-theme-mini-cobalt>span{background:linear-gradient(90deg,#4855c8 48%,#d4d8f5 48%);border-radius:7px}.ui-theme-mini-cobalt>i{border-radius:6px}.ui-theme-mini-editorial{background:#f8f2e8;border-color:#dacbb7;border-radius:0}.ui-theme-mini-editorial>span{background:linear-gradient(90deg,#e8d6bc 48%,#a44525 48%);border-radius:0}.ui-theme-mini-editorial>i{border:0;border-bottom:2px solid #a44525;border-radius:0}
.ui-theme-status{min-height:26px;color:#45596a;font-size:13px;margin:20px 0 12px}.ui-theme-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.ui-theme-dialog-footer>a{display:inline-flex;align-items:center;min-height:44px;color:#275a85;text-decoration:underline;text-underline-offset:4px}.ui-theme-dialog-footer>.btn{min-height:44px}
.ui-theme-trigger:focus-visible,.ui-theme-dialog :focus-visible,.ui-gallery :focus-visible{outline:3px solid var(--action,#287c9c);outline-offset:3px}
.ui-gallery{padding-top:40px;padding-bottom:54px}.ui-gallery-heading{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:30px}.ui-gallery-heading h1{font-size:30px;margin:0 0 12px}.ui-gallery-heading p{max-width:760px;color:var(--muted,#475569);font-size:16px;line-height:1.8;margin:0}.ui-gallery-heading>a{flex:none}.ui-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.ui-gallery-card{min-width:0;overflow:hidden;border:1px solid #d6dfe7;border-radius:12px;background:#fff;color:#253039;box-shadow:0 6px 24px #22324608}.ui-gallery-card-head{display:flex;gap:12px;padding:20px;align-items:center}.ui-gallery-card-head h2{font:700 18px/1.5 "Microsoft YaHei","PingFang SC",sans-serif;margin:0}.ui-gallery-card-head p{font-size:12px;margin:3px 0 0;color:#566674}.ui-gallery-number{margin-left:auto;font-size:22px;color:#617281;font-variant-numeric:tabular-nums}.ui-theme-mark{width:12px;height:38px;flex:none;border-radius:2px;background:#287c9c}.ui-theme-mark-cobalt{background:#4654cf}.ui-theme-mark-editorial{background:#a44525}.ui-gallery-preview{position:relative;background:#f0f3f8;border-block:1px solid #e1e6ec}.ui-gallery-preview img{display:block;width:100%;height:auto;aspect-ratio:1440/1000;object-fit:cover}.ui-preview-tabs{display:flex;gap:4px;justify-content:center;padding:8px;background:#f5f7fa;border-top:1px solid #d6dfe7}.ui-preview-tabs button{min-width:74px;min-height:44px;border:1px solid transparent;border-radius:5px;background:transparent;color:#465766;font:inherit;font-size:13px;cursor:pointer}.ui-preview-tabs button[aria-pressed=true]{background:#fff;border-color:#becbda;color:#253039;font-weight:700}.ui-gallery-copy{padding:20px}.ui-gallery-copy>p{font-size:15px;color:#4c5f6b;line-height:1.8;min-height:81px;margin:0 0 16px}.ui-gallery-copy ul{padding-left:20px;font-size:14px;color:#465766;line-height:1.9;margin:0 0 22px}.ui-gallery-select{display:block;min-height:46px;width:100%;border:1px solid #287c9c;border-radius:5px;background:#fff;color:#23566d;font:inherit;font-size:14px;cursor:pointer}.ui-gallery-select[aria-pressed=true]{background:#287c9c;color:#fff}.ui-gallery-card[data-gallery-theme=cobalt] .ui-gallery-select{border-color:#4654cf;color:#3b47ae}.ui-gallery-card[data-gallery-theme=cobalt] .ui-gallery-select[aria-pressed=true]{background:#4654cf;color:#fff}.ui-gallery-card[data-gallery-theme=editorial] .ui-gallery-select{border-color:#a44525;color:#a44525}.ui-gallery-card[data-gallery-theme=editorial] .ui-gallery-select[aria-pressed=true]{background:#a44525;color:#fff}.ui-gallery-copy nav{display:flex;gap:8px;justify-content:space-between;margin-top:12px;flex-wrap:wrap}.ui-gallery-copy nav a{display:inline-flex;align-items:center;min-height:44px;color:#345c78;font-size:13px;text-decoration:underline;text-underline-offset:3px}.ui-gallery-note{border-top:1px solid var(--line,#d9e1e7);padding-top:20px;margin-top:30px;font-size:14px;color:var(--muted,#475569)}
@media(min-width:1101px){.header-inner:has(.ui-theme-trigger){gap:22px}.header-inner:has(.ui-theme-trigger) .main-nav{gap:20px}.header-inner:has(.ui-theme-trigger) .header-actions{gap:12px}}
@media(max-width:1100px){.ui-theme-trigger{padding:8px;gap:5px}.header-inner:has(.ui-theme-trigger){gap:12px}.header-inner:has(.ui-theme-trigger) .main-nav{gap:12px}.ui-theme-trigger svg{display:none}}
@media(max-width:900px){.ui-gallery-grid{grid-template-columns:minmax(0,1fr)}.ui-gallery-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ui-gallery-card-head{grid-column:1/-1}.ui-gallery-preview{border-right:1px solid #d6dfe7}.ui-gallery-copy>p{min-height:0}.ui-gallery-heading{flex-wrap:wrap}}
@media(max-width:640px){.ui-theme-trigger{margin-left:auto;font-size:12px;min-height:44px;padding-inline:10px}.ui-theme-dialog{padding:18px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.ui-theme-dialog h2{font-size:22px}.ui-theme-options{grid-template-columns:minmax(0,1fr);gap:10px}.ui-theme-option{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:12px;row-gap:4px;padding:12px}.ui-theme-mini{grid-row:1/4;height:90px;align-self:center;padding:6px}.ui-theme-option>strong{font-size:16px}.ui-theme-option>span:not(.ui-theme-mini){font-size:13px}.ui-theme-option>small{padding:0}.ui-theme-dialog-heading{margin-bottom:16px}.ui-theme-dialog-footer>.btn{flex:1;justify-content:center}.ui-theme-status{margin-top:14px}.ui-gallery{padding-top:26px}.ui-gallery-heading h1{font-size:25px}.ui-gallery-card{display:block}.ui-gallery-card-head,.ui-gallery-copy{padding:18px}.ui-gallery-preview{border-right:0}.ui-gallery-copy>p{min-height:0}.ui-gallery-grid{gap:24px}}
@media(max-width:360px){body[data-page=admin] .header-inner:has(.ui-theme-trigger) .workspace-label{display:none}.ui-theme-dialog-footer{gap:10px}.ui-theme-dialog-footer>.btn{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){.ui-theme-dialog *,.ui-gallery *{scroll-behavior:auto;transition:none;animation:none}}

/* Eight actual page families, kept readable on all screens. */
.ui-preview-tabs{flex-wrap:wrap;gap:4px}.ui-preview-tabs button{min-width:64px;flex:1 0 21%}.ui-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-gallery-copy nav{justify-content:flex-start;gap:4px 20px}.ui-gallery-copy>p{min-height:0}@media(max-width:900px){.ui-gallery-grid{grid-template-columns:minmax(0,1fr)}}
