/* Legendstudio — neutral editorial palette and clearer page rhythm. */
:root{--bg:#0b0d0f;--panel:#171a1e;--line:#30343a;--text:#f1f2ee;--muted:#a1a5a8;--lime:#c9ff2f}
html body{background:#0b0d0f!important;color:var(--text)}
body header{border:0!important;max-width:none!important;width:100%;height:88px!important;padding:0 4%!important}
body main{max-width:none!important;width:100%;padding:24px 4% 0!important}
.brand{color:#f1f2ee!important;letter-spacing:-1.4px}.brand b{color:#c9ff2f!important}
.member-avatar{background:#282c30!important;color:#e8ebe7!important}.member small{color:#a7aba8!important}.member div>span{color:#a4a7a5!important}.login{background:#171a1d!important;border-color:#454a4c!important;color:#f0f1ed!important;border-radius:5px!important}.login:hover{border-color:#c9ff2f!important}
.products{gap:18px!important}.product.canvas-product,.product.pack,.product.pack-product{height:370px!important;border-radius:10px!important;box-shadow:none!important}
.product.canvas-product{background:linear-gradient(125deg,#3f4245,#303337)!important;border:1px solid #5b6062!important}.product.pack,.product.pack-product{background:linear-gradient(125deg,#46515a,#303a42)!important;border:1px solid #606b73!important}.product.canvas-product:hover,.product.pack:hover{border-color:#a4aca7!important;transform:translateY(-2px)}
.canvas-product .entry-top,.pack .entry-top{color:#ced1ce!important}.canvas-product .entry-badge,.pack .entry-badge{border-color:#858b89!important;color:#e3e6df!important}.entry-body h1,.pack .entry-body h1{font-size:32px!important;color:#f5f5f2!important;letter-spacing:-1.1px!important}.entry-body p,.pack .entry-body p{color:#c3c9c6!important;font-size:12px!important}.canvas-product .node-network{background-image:radial-gradient(#d5dcda33 1px,transparent 1px)!important}.canvas-product .network-node{background:linear-gradient(140deg,#454a46,#303633)!important;border-color:#a6b290!important}.canvas-product .network-node>span{background:#303633!important}.canvas-product .network-caption{color:#c9d0c6!important}.canvas-product .entry-arrow{background:#c9ff2f!important;color:#1a2112!important}.pack .entry-arrow{background:#d4e0e5!important;color:#273b44!important}
.quick-tools{margin-top:22px!important}.quick-grid{gap:18px!important}.quick-grid .qt-editorial-cover{height:165px!important;background:linear-gradient(125deg,#9caaa9,#778684)!important;color:#243332!important}.quick-grid .qt-layers .qt-editorial-cover{background:linear-gradient(125deg,#a5b8c6,#8396a3)!important;color:#253b48!important}.quick-grid .qt-mood .qt-editorial-cover{background:linear-gradient(125deg,#c0b8a8,#a49a8b)!important;color:#393329!important}.qt-editorial-cover .qt-cover-title{font-size:23px!important;margin-top:15px!important}.qt-cover-title .qt-cover-cn{font-size:12px!important}.quick-grid>.quick-product .qt-editorial-cover .qt-description{color:inherit!important;opacity:.8!important}
#latest.section-head{margin:72px 0 25px!important}.section-head h2{color:#f2f3ef!important;font-size:30px!important;letter-spacing:-1px!important}.section-head h2 span{color:#878c8e!important;font-size:9px!important;letter-spacing:1.1px!important}.section-head h2:before{background:#c9ff2f!important}.section-head>a{color:#a8adaa!important}.reports{gap:18px!important}.editorial-cover{height:160px!important;border-radius:8px!important;box-shadow:none!important}.ec-0{background:linear-gradient(120deg,#b0abc2,#938ea7)!important;color:#292637!important}.ec-1{background:linear-gradient(120deg,#afc3cd,#8ca5b1)!important;color:#243741!important}.ec-2{background:linear-gradient(120deg,#c9b9a4,#aa9984)!important;color:#3c3026!important}.editorial-report h3{color:#f0f1ec!important;font-size:15px!important;line-height:1.5!important}.editorial-report p,.editorial-report .meta{color:#929996!important}
.archive{margin-top:74px!important;border-top:1px solid #2e3233!important}.archive .section-head{margin:35px 0 22px!important}.archive-controls{margin-top:19px!important}.primary-filter-row{border-bottom-color:#35393a!important}#case-primary-tags button{color:#999f9e!important}#case-primary-tags button[aria-pressed=true]{color:#f3f4ef!important}#case-primary-tags button[aria-pressed=true]:after{background:#c9ff2f!important;height:2px!important}.archive-dropdown summary,#case-search{background:#181b1e!important;border-color:#3b4042!important;color:#d7dad8!important;border-radius:5px!important}.archive-dropdown summary:hover{border-color:#7a8380!important}.dimension-options{background:#202326!important;border-color:#464b4d!important}.dimension-options button{background:#292d30!important;border-color:#454a4c!important;color:#c6cbca!important}.dimension-options button[aria-pressed=true]{background:#444c4b!important;border-color:#b3c3af!important;color:#fff!important}#case-search:focus{outline-color:#c9ff2f!important}.brief-match-open{background:#1d2122!important;border-color:#58625a!important;color:#edf0eb!important}.brief-match-open>span{color:#c9ff2f!important}.brief-match-open:hover{border-color:#c9ff2f!important}
#rows{gap:16px!important}.archive-card.archive-card{border-radius:7px!important;background:#24272a!important}.archive-card.archive-card>div{padding:42px 15px 13px!important;background:linear-gradient(transparent,rgba(0,0,0,.86))!important}.archive-card.archive-card h3{font-size:13px!important;line-height:1.45!important}footer{border-color:#303435!important;color:#929895!important;margin-top:72px!important;padding:24px 0 32px!important;letter-spacing:.3px!important}
/* Account overlays use the same neutral base. */
.portal-modal-card,#auth-modal .modal-card{background:#1b1d1f!important;border-color:#45494a!important;color:#f0f1ee!important;box-shadow:0 28px 90px #0009!important}.portal-modal input,#auth-modal input{background:#101214!important;border-color:#454a49!important;color:#f0f1ee!important}.portal-modal .auth-tabs,.portal-modal .account-tabs,#auth-modal .auth-tabs{background:#121416!important;border-color:#383c3b!important}.portal-modal .auth-tab.on,.portal-modal .account-tab.on,#auth-modal .atab.on{background:#393f3b!important;color:#fff!important}.portal-modal .form-submit,#auth-modal .tbtn.primary{background:#c9ff2f!important;color:#1d2612!important}.portal-modal .modal-lead,#auth-modal .hint,.portal-modal label,#auth-modal .fld-label{color:#b1b7b2!important}
@media(max-width:1100px) and (min-width:761px){.product.canvas-product,.product.pack,.product.pack-product{height:320px!important}.quick-grid .qt-editorial-cover{height:170px!important}.editorial-cover{height:150px!important}}
@media(max-width:760px){body header{height:74px!important;padding:0 20px!important}body main{padding:18px 20px 0!important}.product.canvas-product,.product.pack,.product.pack-product{height:310px!important}.quick-grid{gap:10px!important}.quick-grid .qt-editorial-cover{height:158px!important}#latest.section-head{margin:48px 0 20px!important}.section-head h2{font-size:26px!important}.reports{gap:26px!important}.editorial-cover{height:150px!important}.archive{margin-top:50px!important}.archive .section-head{margin-top:25px!important}#rows{gap:12px!important}footer{flex-wrap:wrap;gap:14px;margin-top:50px!important}}
html,body{overflow-x:clip}#archive .archive-dropdown:not([open]) .dimension-options{display:none!important}@media(max-width:760px){header .member{gap:7px;min-width:0}header .member div{display:none}header .member-avatar{width:30px;height:30px}header .login{margin-left:0;padding:9px 10px;font-size:10px}}
.ai-results-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:12px 15px;background:#1c211d;border:1px solid #485544;border-radius:6px;color:#e1e8de;font-size:13px}.ai-results-bar[hidden]{display:none}.ai-results-bar span:before{content:"✦";color:#c9ff2f;margin-right:8px}.ai-results-bar button{border:0;background:transparent;color:#b4beb3;font-size:12px;cursor:pointer}.ai-results-bar button:hover{color:#c9ff2f}.archive-card.archive-card .ai-case-reason{display:block;color:#e4e8e4;font-size:11px;line-height:1.5;margin:5px 0 0;opacity:.9}
/* Align the account row to the same centered header and tighten report typography. */
html body header{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important}html body header .brand{display:inline-flex!important;align-items:center!important;line-height:1!important;margin:0!important}html body header .member{display:flex!important;align-items:center!important;margin:0!important}html body header .member>div{align-content:center!important;line-height:1.15!important}html body header .login{align-self:center!important}
.editorial-cover{display:block!important;position:relative!important}.editorial-cover>small{display:block!important;line-height:1.2!important;margin:0!important}.editorial-cover>strong{display:block!important;font-size:clamp(23px,2vw,30px)!important;line-height:.96!important;letter-spacing:-.8px!important;margin:13px 0 0!important;max-width:46%!important}.editorial-cover .report-cn-label{font-size:11px!important;line-height:1.3!important;letter-spacing:0!important;margin-top:8px!important}.editorial-report .meta{margin:10px 0 5px!important;line-height:1.2!important}.editorial-report>h3{font-size:14px!important;line-height:1.4!important;margin:4px 0 4px!important}.editorial-report>p{font-size:11px!important;line-height:1.35!important;margin:0!important}@media(max-width:760px){.editorial-cover>strong{font-size:27px!important;margin-top:12px!important}}
/* Neutral member and account surfaces; lime remains an action accent. */
.portal-modal-card .avatar-editor,.portal-modal-card .account-summary span,.portal-modal-card .recharge-package,.portal-modal-card .payment-stage{background:#222427!important;border:1px solid #414447!important;color:#e7e9e6!important}.portal-modal-card .recharge-package.on{background:#2d312c!important;border-color:#b5d67b!important}.portal-modal-card .account-avatar-large{background:#303335!important;border-color:#9ca39e!important;color:#f0f1ee!important}.portal-modal-card .modal-close{background:#282a2c!important;border:1px solid #45484a!important;color:#ced2ce!important}.portal-modal-card .modal-kicker{color:#afb6af!important}.portal-modal-card .avatar-editor span,.portal-modal-card .account-summary small,.portal-modal-card .payment-status,.portal-modal-card .empty-state{color:#a2a7a4!important}.portal-modal-card .account-summary b,.portal-modal-card .recharge-package b,.portal-modal-card .payment-price{color:#edefec!important}.portal-modal-card .account-tabs,.portal-modal-card .auth-tabs{background:#121416!important;border-color:#3d4041!important}.portal-modal-card .account-tab,.portal-modal-card .auth-tab{color:#a9afaa!important}.portal-modal-card .account-tab.on,.portal-modal-card .auth-tab.on{background:#3a3d3e!important;color:#fff!important}.portal-modal-card .avatar-upload,.portal-modal-card .account-footer #open-recharge{color:#c9ff2f!important}.portal-modal-card .account-footer,.portal-modal-card .order-list article{border-color:#3d4140!important}.portal-toast{background:#252727!important;border-color:#505553!important;color:#eee!important}#auth-modal .slide-track{background:#252728!important;border-color:#474b4b!important}#auth-modal .tbtn:not(.primary),#auth-modal .auth-code-btn{background:#292c2d!important;border-color:#484d4c!important;color:#e4e7e4!important}#archive .dimension-options .dimension-any[aria-pressed=true]{background:#444c4b!important;border-color:#b3c3af!important;color:#fff!important}
/* Search is explicitly submitted; dimension menus group related tags. */
html body #archive .archive-search-row{gap:0!important}html body #archive #case-search{border-radius:5px 0 0 5px!important;min-width:0!important}#case-search-button{height:42px;white-space:nowrap;padding:0 14px;border:1px solid #515b50;border-left:0;border-radius:0 5px 5px 0;background:#292f29;color:#e4e9df;font-size:12px}#case-search-button:hover{color:#c9ff2f;border-color:#9cb77e}.dimension-section{flex-basis:100%;padding-top:12px;margin-top:2px;border-top:1px solid #3b4040}.dimension-section>span{display:block;margin-bottom:10px;color:#929a96;font-size:11px;letter-spacing:.06em}.dimension-section>div{display:flex;flex-wrap:wrap;gap:9px}

html body #archive .dimension-options{width:min(1040px,calc(100vw - 110px))!important}html body #archive .archive-dropdown:nth-child(2) .dimension-options{left:-180px!important}html body #archive .archive-dropdown:nth-child(3) .dimension-options{left:-360px!important}@media(max-width:850px){html body #archive .dimension-options{width:calc(100vw - 40px)!important;max-width:calc(100vw - 40px)!important}html body #archive .archive-dropdown:nth-child(2) .dimension-options,html body #archive .archive-dropdown:nth-child(3) .dimension-options{left:0!important}}

/* Seven content directions; secondary facets remain independent. */
#case-primary-tags{display:flex;flex-wrap:wrap;gap:8px 24px}#case-primary-tags button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.content-direction-count{font-size:10px;font-weight:400;opacity:.6;font-variant-numeric:tabular-nums}.dimension-options button:disabled{opacity:.35;cursor:not-allowed}.primary-filter-row{align-items:flex-start}.primary-filter-row .filter-row-label{padding-top:12px}#case-tags{display:flex;flex-wrap:wrap;gap:10px}html body #archive .archive-dropdown .dimension-options{left:0!important;max-height:min(440px,65vh);overflow:auto}html body #archive .archive-dropdown:nth-child(n+4) .dimension-options{left:auto!important;right:0!important}@media(max-width:760px){#case-primary-tags{gap:6px 17px}#case-primary-tags button{font-size:12px;padding:10px 0}.content-direction-count{font-size:9px}html body #archive .archive-dropdown:nth-child(n) .dimension-options{left:0!important;right:auto!important}}
/* Keep five facets, search and the existing matching entry within the viewport. */
html body #archive .archive-controls{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:14px!important;grid-template-columns:none!important}
html body #archive .primary-filter-row{flex:0 0 100%!important;width:100%!important}
html body #archive .detail-filter-row{position:relative!important;flex:1 1 580px!important;min-width:0!important;width:auto!important}
html body #archive .archive-search-row{position:static!important;flex:0 1 220px!important;width:220px!important;min-width:0!important;margin:0!important}
html body #archive #case-search{width:100%!important}
html body #archive .brief-match-entry{position:static!important;flex:0 1 210px!important;width:210px!important;margin:0!important}
html body #archive .brief-match-open{width:100%!important;min-width:0!important}
html body #archive #case-tags{width:100%!important;min-width:0!important;gap:8px!important}
html body #archive .archive-dropdown{position:static!important;flex:1 1 100px!important;min-width:0!important}
html body #archive .archive-dropdown summary{width:100%!important;min-width:0!important}
html body #archive .archive-dropdown:nth-child(n) .dimension-options{left:0!important;right:auto!important;top:calc(100% + 8px)!important}
@media(max-width:760px){html body #archive .detail-filter-row{flex:0 0 100%!important;width:100%!important}html body #archive #case-tags{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}html body #archive .archive-search-row{flex:1 1 100%!important;width:100%!important}html body #archive .brief-match-entry{flex:1 1 100%!important;width:100%!important}html body #archive .brief-match-open{justify-content:center!important}}
html body #archive .archive-controls{flex-direction:row!important;align-content:flex-start!important;height:auto!important}
html body #archive .brief-match-open b{white-space:nowrap!important;font-size:12px!important}
@media(max-width:760px){html body #archive #case-primary-tags{gap:2px 17px!important}html body #archive #case-primary-tags button{padding:10px 0!important;margin:0!important;min-height:42px!important;line-height:1.25!important}}

#archive [data-case-tag]:disabled{display:none!important}#archive .dimension-section[hidden]{display:none!important}
html body #archive .brief-match-open{display:grid!important;grid-template-columns:14px minmax(0,1fr) 14px!important;column-gap:8px!important;row-gap:2px!important;align-content:center!important}
html body #archive .brief-match-open>span{grid-column:1!important;grid-row:1/3!important}
html body #archive .brief-match-open>b{grid-column:2!important;grid-row:1!important}
html body #archive .brief-match-open>small{grid-column:2!important;grid-row:2!important;white-space:nowrap!important;font-size:10px!important;line-height:1.1!important}
html body #archive .brief-match-open>i{grid-column:3!important;grid-row:1/3!important}

/* Compact filters, prominent actions and aligned report metadata. */
@media(min-width:1201px){html body #archive .archive-controls{grid-template-columns:minmax(0,1.5fr) minmax(280px,.85fr) minmax(190px,.52fr)!important;gap:14px!important}html body #archive .detail-filter-row,html body #archive #case-tags{min-width:0!important;width:100%!important}html body #archive #case-tags{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}html body #archive .archive-dropdown{min-width:0!important;width:100%!important}html body #archive .archive-dropdown summary{padding:0 10px!important;white-space:nowrap!important}html body #archive .archive-search-row{width:100%!important}html body #archive .archive-search-row input{max-width:none!important}html body #archive .brief-match-entry{width:100%!important}}
html body #archive #case-search-button,html body #archive .brief-match-open{background:#c9ff2f!important;border-color:#c9ff2f!important;color:#202813!important}html body #archive .brief-match-open>span,html body #archive .brief-match-open small{color:#35461d!important}html body #archive #case-search-button:hover,html body #archive .brief-match-open:hover{background:#d9ff73!important}
.editorial-report{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-content:start!important;column-gap:12px!important}.editorial-report .editorial-cover{grid-column:1/-1!important}.editorial-report .meta{grid-column:2!important;grid-row:2 / span 2!important;align-self:start!important;justify-self:end!important;margin:12px 0 0!important;white-space:nowrap}.editorial-report>h3{grid-column:1!important;grid-row:2!important;margin:11px 0 3px!important;line-height:1.35!important}.editorial-report>p{grid-column:1!important;grid-row:3!important;margin:0!important;line-height:1.3!important}
@media(max-width:1200px){html body #archive .archive-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important}html body #archive .primary-filter-row{grid-column:1/-1!important;grid-row:auto!important}html body #archive .detail-filter-row{grid-column:1/-1!important;grid-row:auto!important;min-width:0!important}html body #archive #case-tags{display:flex!important;flex-wrap:wrap!important;width:100%!important}html body #archive .archive-dropdown{min-width:120px!important;flex:1 1 120px!important}html body #archive .archive-search-row{grid-column:1!important;grid-row:auto!important;min-width:0!important;width:100%!important}html body #archive .archive-search-row input{max-width:none!important}html body #archive .brief-match-entry{grid-column:2!important;grid-row:auto!important;width:auto!important;justify-self:stretch!important}html body #archive .brief-match-open{min-height:42px!important;max-width:none!important}}
@media(max-width:600px){html body #archive .archive-controls{grid-template-columns:minmax(0,1fr)!important}html body #archive .primary-filter-row,html body #archive .detail-filter-row,html body #archive .archive-search-row,html body #archive .brief-match-entry{grid-column:1!important;grid-row:auto!important;width:100%!important}html body #archive #case-primary-tags{overflow-x:auto!important;gap:22px!important}html body #archive #case-tags{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #archive .archive-dropdown{width:100%!important;min-width:0!important}html body #archive .archive-dropdown summary{width:100%!important}html body #archive .archive-search-row{display:flex!important}html body #archive #case-search{flex:1 1 0!important;width:0!important}html body #archive .brief-match-open{width:100%!important}.editorial-report .meta{font-size:9px!important}.editorial-report>h3{font-size:13px!important;overflow-wrap:anywhere}.reports{grid-template-columns:1fr!important}}
.archive-card .archive-delete{position:absolute;z-index:6;right:9px;top:9px;padding:6px 10px;background:#17191be8;color:#fff;border:1px solid #d88b82;border-radius:5px;font-size:11px;cursor:pointer}.archive-card .archive-delete:hover{background:#b34d43}.archive-delete-modal[hidden]{display:none}.archive-delete-modal{position:fixed;z-index:11000;inset:0;background:#000b;display:grid;place-items:center;padding:20px}.archive-delete-dialog{width:min(440px,100%);padding:26px;background:#1c1e20;border:1px solid #505456;border-radius:10px;color:#f0f1ee;box-sizing:border-box}.archive-delete-dialog h2{font-size:21px;margin:0 0 15px}.archive-delete-dialog p{font-size:13px;line-height:1.6;color:#aaa}.archive-delete-dialog .archive-delete-name{color:#f3f3f0;font-weight:600}.archive-delete-input{width:100%;padding:11px;background:#101214;border:1px solid #565b5a;color:#fff;border-radius:5px;box-sizing:border-box}.archive-delete-error{color:#f39c8f;font-size:12px;min-height:22px;margin-top:8px}.archive-delete-actions{display:flex;justify-content:flex-end;gap:9px}.archive-delete-actions button{padding:9px 15px;border:1px solid #606460;border-radius:5px;background:#292c2b;color:#eee}.archive-delete-actions .archive-delete-confirm{background:#ad5148;border-color:#ad5148;color:#fff}.archive-delete-actions .archive-delete-confirm:disabled{opacity:.4;cursor:not-allowed}

html body #archive .archive-card .archive-delete{display:grid;place-items:center;width:30px;height:30px;padding:0;top:9px;right:9px;border:1px solid rgba(255,255,255,.22);border-radius:5px;background:rgba(15,17,18,.55);color:rgba(255,255,255,.85);opacity:0;visibility:hidden;transition:opacity .18s,background .18s;backdrop-filter:blur(5px)}html body #archive .archive-card:hover .archive-delete,html body #archive .archive-card:focus-within .archive-delete{opacity:1;visibility:visible}html body #archive .archive-card .archive-delete:hover,html body #archive .archive-card .archive-delete:focus-visible{background:rgba(15,17,18,.8);color:#fff}@media(hover:none){html body #archive .archive-card .archive-delete{opacity:.8;visibility:visible}}
html body #archive .archive-card .archive-delete{visibility:visible;pointer-events:none}html body #archive .archive-card:hover .archive-delete,html body #archive .archive-card:focus-within .archive-delete{pointer-events:auto}@media(hover:none){html body #archive .archive-card .archive-delete{pointer-events:auto}}
/* Keep selected filters below the complete control row. */
html body #archive .archive-active-filters{position:relative!important;clear:both!important;margin:16px 0 18px!important;gap:8px!important;line-height:1.4!important;min-width:0!important}html body #archive .archive-active-filters button{flex:0 0 auto;max-width:100%;white-space:normal}html body #archive .archive-controls{margin-bottom:0!important}@media(max-width:760px){html body #archive .archive-active-filters{margin-top:14px!important;gap:7px!important}}
