:root {
  --ink: #111111;
  --muted: #6b7280;
  --soft-muted: #9ca3af;
  --paper: rgba(255, 255, 255, .72);
  --paper-strong: rgba(255, 255, 255, .9);
  --line: rgba(17, 17, 17, .08);
  --hot: #ff3d6b;
  --orange: #ff6a3d;
  --blue: #2b9ee7;
  --cream: #fff6f2;
  --radius: 26px;
  --shadow: 0 18px 55px rgba(129, 73, 57, .12);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { margin: 0; min-height: 100vh; background: linear-gradient(132deg, #fff4ee 0%, #ffe7da 45%, #ffdbe4 100%); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.page-glow { position: fixed; z-index: 0; border-radius: 999px; pointer-events: none; filter: blur(6px); opacity: .55; }
.glow-one { width: 42vw; height: 42vw; top: -25vw; left: 14vw; background: rgba(255, 255, 255, .85); }
.glow-two { width: 38vw; height: 38vw; bottom: -20vw; right: -7vw; background: rgba(255, 116, 163, .2); }

.app-shell { position: relative; z-index: 1; width: min(1600px, calc(100% - 36px)); min-height: calc(100vh - 36px); margin: 18px auto; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 16px; }
.sidebar, .workspace { border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.48); backdrop-filter: blur(22px); box-shadow: var(--shadow); }
.sidebar { position: sticky; top: 18px; height: calc(100vh - 36px); overflow: hidden; border-radius: 30px; padding: 22px 14px 16px; display: flex; flex-direction: column; }
.workspace { border-radius: 30px; padding: clamp(24px, 4vw, 56px); overflow: hidden; }

.brand-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 4px 10px 18px; }
.brand img { display: block; width: 112px; max-height: 35px; object-fit: contain; object-position: left center; }
.brand span { padding-left: 11px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.1; }
.nav-list { flex: 1 1 auto; min-height: 0; display: grid; gap: 2px; padding: 7px 2px 14px; overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none !important; scrollbar-color: transparent transparent; mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 22px), transparent 100%); }
.nav-list::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; background: transparent !important; }
.nav-link { min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: #4b5563; font-size: 13px; transition: .18s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: rgba(255,255,255,.72); box-shadow: 0 2px 9px rgba(129,73,57,.06); }
.nav-link.is-active { font-weight: 650; }
.nav-link small { margin-left: auto; min-width: 18px; color: var(--soft-muted); font-size: 11px; text-align: right; }
.nav-glyph { width: 17px; color: #5d6874; text-align: center; font-size: 14px; }
.generator-nav { flex: 0 0 auto; margin: 0 0 8px; padding: 15px; border-radius: 18px; display: flex; gap: 11px; color: white; background: linear-gradient(115deg, var(--orange), var(--hot)); box-shadow: 0 12px 22px rgba(255, 61, 107, .25); transition: transform .18s ease, box-shadow .18s ease; }
.generator-nav:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(255,61,107,.32); }
.generator-nav > span:first-child { font-size: 20px; }
.generator-nav strong { display: block; font-size: 13px; }
.generator-nav em { display: block; margin-top: 3px; opacity: .82; font-size: 11px; font-style: normal; }
.sidebar-note { padding: 0 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.menu-toggle { display: none; }

.workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.workspace-header.compact { margin-bottom: 28px; }
.eyebrow { margin: 0 0 9px; color: var(--muted); font-size: 12px; font-weight: 570; letter-spacing: -.01em; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; max-width: 790px; letter-spacing: -.065em; font-size: clamp(37px, 5.2vw, 72px); line-height: .97; }
h1 span { color: #68717e; }
h2 { margin-bottom: 0; letter-spacing: -.05em; font-size: clamp(25px, 3vw, 36px); line-height: 1; }
h3 { margin-bottom: 0; letter-spacing: -.035em; font-size: 16px; }
.header-description { max-width: 600px; margin: 17px 0 0; color: var(--muted); line-height: 1.45; font-size: 15px; }
.back-link { display: inline-block; margin-bottom: 23px; color: var(--muted); font-size: 13px; transition: color .18s ease; }
.back-link:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px; padding: 0 19px; border: 0; border-radius: 15px; cursor: pointer; font-weight: 700; font-size: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(115deg, var(--orange), var(--hot)); box-shadow: 0 11px 22px rgba(255,61,107,.24); }
.button-primary:hover { box-shadow: 0 15px 28px rgba(255,61,107,.32); }
.button-dark { color: white; background: #171719; box-shadow: 0 11px 22px rgba(0,0,0,.15); }

.search-card { position: relative; display: grid; grid-template-columns: minmax(190px, .9fr) minmax(300px, 1.5fr); gap: 28px; align-items: center; padding: clamp(24px, 3vw, 38px); margin-bottom: 48px; border: 1px solid rgba(255,255,255,.82); border-radius: var(--radius); background: rgba(255,255,255,.66); box-shadow: var(--shadow); }
.search-copy p:not(.eyebrow) { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.search-field, .inline-search { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 13px 0 17px; border: 1px solid rgba(17,17,17,.1); border-radius: 17px; background: var(--paper-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); transition: border .18s ease, box-shadow .18s ease; }
.search-field:focus-within, .inline-search:focus-within { border-color: rgba(255,61,107,.55); box-shadow: 0 0 0 4px rgba(255,61,107,.12); }
.search-field > span, .inline-search > span { color: var(--muted); font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.search-field input, .inline-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.search-field input::placeholder, .inline-search input::placeholder { color: #9ca3af; }
.search-results { position: absolute; z-index: 10; right: 38px; bottom: -8px; width: min(57%, 560px); max-height: 340px; padding: 8px; overflow: auto; border: 1px solid rgba(17,17,17,.08); border-radius: 17px; background: rgba(255,255,255,.97); box-shadow: 0 20px 45px rgba(38,25,20,.18); transform: translateY(100%); opacity: 0; visibility: hidden; transition: .15s ease; }
.search-results.is-visible { opacity: 1; visibility: visible; }
.search-result { display: grid; grid-template-columns: 50px 1fr; gap: 2px 11px; padding: 11px; border-radius: 11px; }
.search-result:hover { background: #fff1e6; }
.search-result span { grid-row: span 2; align-self: center; color: var(--hot); font-size: 11px; font-weight: 700; }
.search-result strong { font-size: 13px; }
.search-result small { color: var(--muted); overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 14px; margin: 0; color: var(--muted); font-size: 13px; }

.content-section { margin-bottom: 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.muted-note { color: var(--muted); font-size: 12px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.asset-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asset-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.83); border-radius: 21px; background: rgba(255,255,255,.7); box-shadow: 0 8px 23px rgba(92,60,48,.09); transition: transform .2s ease, box-shadow .2s ease; }
.asset-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(92,60,48,.14); }
.asset-preview { position: relative; height: 162px; overflow: hidden; background: linear-gradient(135deg, #ffded1, #ffd3e0); }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.asset-card:hover .asset-preview img { transform: scale(1.04); }
.asset-preview-fallback { display: grid; place-items: center; background: linear-gradient(135deg, #ff9b77, #ff3d6b); color: white; font-size: 34px; }
.asset-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; }
.asset-badges b { padding: 5px 7px; border-radius: 8px; color: white; background: rgba(17,17,17,.45); backdrop-filter: blur(8px); font-size: 10px; }
.asset-body { padding: 15px 15px 13px; }
.asset-title-row { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.asset-title-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: help; font-size: 19px; line-height: .7; }
.asset-body > p { min-height: 33px; margin: 8px 0 12px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; }
.asset-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: #8b939e; font-size: 10px; }
.asset-meta span + span::before { content: "·"; margin-right: 8px; }
.asset-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 12px; font-weight: 650; }
.asset-actions a:first-child { color: #56606d; }
.download-link { color: var(--hot); }
.preview-link { display: inline-flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 11px; border: 1px solid rgba(17,17,17,.09); border-radius: 10px; color: #3f4752; background: rgba(255,255,255,.78); cursor: pointer; font: 700 11px/1 "SF Pro Text", -apple-system, sans-serif; box-shadow: 0 3px 9px rgba(60,42,35,.06); transition: .16s ease; }
.preview-link:hover { border-color: rgba(255,61,107,.3); color: var(--hot); background: white; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(60,42,35,.1); }
.preview-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.copy-material { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px; border: 1px solid rgba(255,61,107,.18); border-radius: 9px; color: #d9295b; background: #fff4f7; cursor: pointer; font: 700 11px/1 "SF Pro Text", -apple-system, sans-serif; transition: .16s ease; }
.copy-material:hover { border-color: rgba(255,61,107,.44); background: #fff; transform: translateY(-1px); }
.copy-material span { font-size: 15px; line-height: 1; }
.document-inline { max-height: 190px; margin-top: 14px; padding: 12px; overflow: auto; border: 1px solid rgba(17,17,17,.07); border-radius: 12px; background: rgba(255,246,242,.72); scrollbar-width: thin; }
.document-inline pre { margin: 0; color: #4b5563; font: 11px/1.5 "SF Pro Text", -apple-system, sans-serif; white-space: pre-wrap; }
.document-actions { align-items: center; }
.document-actions > span { color: var(--muted); font-size: 10px; font-weight: 570; }
.text-material { grid-column: 1 / -1; min-width: 0; padding: clamp(20px, 2.7vw, 32px); border: 1px solid rgba(255,255,255,.88); border-radius: 22px; background: rgba(255,255,255,.76); box-shadow: 0 10px 28px rgba(92,60,48,.09); }
.text-material-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.text-material-header .eyebrow { margin-bottom: 7px; }
.text-material-header h3 { font-size: 20px; }
.text-material-header p:not(.eyebrow) { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.text-material-body { max-width: 850px; padding-top: 20px; color: #323944; font: 14px/1.68 "SF Pro Text", -apple-system, sans-serif; }
.text-material-body > :first-child { margin-top: 0; }
.text-material-body > :last-child { margin-bottom: 0; }
.text-material-body h1, .text-material-body h2, .text-material-body h3 { margin: 23px 0 10px; color: var(--ink); letter-spacing: -.025em; line-height: 1.18; }
.text-material-body h1 { font-size: 25px; }
.text-material-body h2 { font-size: 20px; }
.text-material-body h3 { font-size: 17px; }
.text-material-body p { margin: 0 0 14px; }
.text-material-body strong { color: var(--ink); font-weight: 720; }
.text-material-body ul, .text-material-body ol { display: grid; gap: 7px; padding-left: 20px; }
.text-material-body a { color: var(--hot); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { grid-column: 1 / -1; padding: 45px 22px; border: 1px dashed rgba(17,17,17,.16); border-radius: 20px; color: var(--muted); text-align: center; background: rgba(255,255,255,.4); }
.empty-state code { color: var(--hot); }

.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 18px; align-items: stretch; }
.popular-section { margin: 0; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.section-card { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; min-height: 79px; padding: 12px; border: 1px solid rgba(255,255,255,.85); border-radius: 17px; background: rgba(255,255,255,.62); box-shadow: 0 6px 18px rgba(92,60,48,.06); transition: .18s ease; }
.section-card:hover { border-color: rgba(255,61,107,.24); transform: translateY(-2px); }
.section-card strong, .section-card small { display: block; }
.section-card strong { font-size: 13px; }
.section-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.section-card b { color: var(--soft-muted); font-size: 12px; }
.section-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--hot); background: #fff0f5; }
.generator-promo { display: flex; flex-direction: column; min-height: 100%; padding: 28px; border-radius: var(--radius); color: white; background: radial-gradient(circle at 82% 9%, rgba(255,255,255,.3), transparent 28%), linear-gradient(145deg, #ff7a5c, #ff2f70 80%); box-shadow: 0 17px 30px rgba(255,61,107,.18); }
.generator-promo .eyebrow { color: rgba(255,255,255,.76); }
.generator-promo h2 { font-size: 31px; }
.generator-promo p:not(.eyebrow) { margin: 16px 0 24px; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.48; }
.generator-promo .button { margin-top: auto; }

.count-pill { padding: 8px 11px; border-radius: 999px; color: #5f6570; background: rgba(255,255,255,.74); font-size: 12px; white-space: nowrap; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px; margin-bottom: 22px; border-radius: 18px; background: rgba(255,255,255,.52); }
.inline-search { width: min(330px, 100%); height: 43px; border: 0; background: rgba(255,255,255,.79); }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; transition: .15s ease; }
.chip:hover, .chip.is-active { color: var(--ink); background: white; box-shadow: 0 4px 10px rgba(92,60,48,.08); }
.asset-card[hidden], .text-material[hidden] { display: none; }

.generator-header { margin-bottom: 34px; }
.generator-layout { display: grid; grid-template-columns: minmax(275px, .78fr) minmax(0, 1.22fr); gap: 18px; align-items: start; }
.generator-form, .generator-result { border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius); background: rgba(255,255,255,.68); box-shadow: var(--shadow); }
.generator-form { display: grid; gap: 17px; padding: 25px; }
.generator-form label { display: grid; gap: 7px; color: #59616c; font-size: 12px; font-weight: 650; }
.generator-form input, .generator-form select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid rgba(17,17,17,.1); border-radius: 12px; outline: 0; color: var(--ink); background: rgba(255,255,255,.9); font-size: 13px; }
.generator-form input:focus, .generator-form select:focus { border-color: rgba(255,61,107,.55); box-shadow: 0 0 0 3px rgba(255,61,107,.1); }
.generator-form .button { margin-top: 5px; }
.form-hint { margin: -3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.generator-result { min-height: 497px; padding: clamp(23px, 3vw, 36px); }
.generator-result.is-empty { display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,231,222,.72)); }
.result-placeholder { max-width: 300px; text-align: center; }
.result-placeholder > span { display: inline-grid; width: 52px; height: 52px; place-items: center; margin-bottom: 15px; border-radius: 17px; color: var(--hot); background: #fff0f5; font-size: 24px; }
.result-placeholder h2 { font-size: 23px; }
.result-placeholder p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.result-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.result-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--orange), var(--hot)); font-size: 20px; }
.result-heading h2 { font-size: 26px; }
.result-block { margin: 14px 0; padding: 17px; border-radius: 17px; background: rgba(255,246,242,.8); }
.result-block > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-block h3 { font-size: 14px; }
.copy-button { border: 0; border-radius: 8px; padding: 6px 8px; color: var(--hot); background: #fff0f5; cursor: pointer; font-size: 11px; font-weight: 700; }
pre { margin: 13px 0 0; white-space: pre-wrap; color: #3c424b; font: 13px/1.53 "SF Pro Text", -apple-system, sans-serif; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.result-grid > div { padding: 14px; border: 1px solid rgba(17,17,17,.07); border-radius: 15px; background: rgba(255,255,255,.58); }
.result-grid p { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.result-grid strong { font-size: 12px; line-height: 1.35; }
.style-note { margin: -11px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cta-block, .placement-block { margin-top: 17px; padding: 15px; border-radius: 16px; background: rgba(255,240,245,.62); }
.cta-block > p, .placement-block > p { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.cta-options { display: flex; flex-wrap: wrap; gap: 7px; }
.cta-option { padding: 8px 10px; border: 1px solid rgba(255,61,107,.16); border-radius: 10px; color: #5b6370; background: rgba(255,255,255,.7); cursor: pointer; font-size: 12px; transition: .15s ease; }
.cta-option:hover, .cta-option.is-selected { border-color: var(--hot); color: var(--hot); background: white; }
.placement-block ol { display: grid; gap: 8px; margin: 0; padding-left: 21px; color: #4b5563; font-size: 12px; line-height: 1.45; }
.material-reader { max-width: 900px; padding: clamp(20px, 4vw, 42px); border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.material-reader pre { margin: 0; color: #353a42; font: 15px/1.7 "SF Pro Text", -apple-system, sans-serif; white-space: pre-wrap; }
.asset-viewer { position: fixed; z-index: 30; inset: 0; display: none; place-items: center; padding: 24px; }
.asset-viewer.is-open { display: grid; }
.asset-viewer-backdrop { position: absolute; inset: 0; background: rgba(24,17,20,.52); backdrop-filter: blur(9px); }
.asset-viewer-dialog { position: relative; width: min(980px, 100%); max-height: min(88dvh, 860px); overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 28px 80px rgba(31,14,22,.34); }
.asset-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 13px 16px 13px 20px; border-bottom: 1px solid var(--line); }
.asset-viewer-header strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.viewer-close { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 10px; color: #535b65; background: #f6f0ee; cursor: pointer; font-size: 24px; line-height: 1; }
.asset-viewer-content { display: grid; min-height: 200px; max-height: calc(min(88dvh, 860px) - 58px); place-items: center; padding: 14px; background: #fff9f6; }
.asset-viewer-content img, .asset-viewer-content video { display: block; max-width: 100%; max-height: calc(min(88dvh, 860px) - 86px); object-fit: contain; }
body.viewer-open { overflow: hidden; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .asset-grid, .asset-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app-shell { width: min(100% - 20px, 720px); min-height: auto; margin: 10px auto; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .sidebar { position: relative; top: auto; height: auto; min-height: auto; padding: 15px 13px; }
  .brand { min-width: 0; max-width: 100%; padding-bottom: 12px; overflow: hidden; }
  .menu-toggle { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-content: center; gap: 4px; padding: 0; border: 1px solid rgba(17,17,17,.1); border-radius: 11px; background: rgba(255,255,255,.72); cursor: pointer; }
  .menu-toggle i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
  .menu-toggle.is-open i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle.is-open i:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .generator-nav { margin: 5px 0 0; }
  .nav-list { display: none; max-height: min(58vh, 440px); margin-top: 9px; padding: 5px 2px; overflow-y: auto; }
  .nav-list.is-open { display: grid; }
  .nav-link { min-height: 42px; }
  .sidebar-note { display: none; }
  .workspace { padding: 26px 18px; }
  .workspace-header { margin-bottom: 26px; flex-direction: column; }
  .search-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .search-results { right: 20px; left: 20px; width: auto; }
  .generator-layout { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { background: linear-gradient(150deg, #fff4ee, #ffe0d5); }
  .app-shell { width: 100%; margin: 0; }
  .page-glow { display: none; }
  .sidebar, .workspace { border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
  .sidebar { background: transparent; border-bottom: 1px solid rgba(17,17,17,.07); }
  .workspace { background: transparent; }
  .workspace { min-width: 0; padding: 25px 15px; }
  .workspace-header, .search-card, .generator-layout, .generator-result { min-width: 0; max-width: 100%; }
  .text-material-header { align-items: stretch; flex-direction: column; }
  .text-material-header .copy-material { align-self: flex-start; }
  .asset-viewer { padding: 12px; }
  .asset-viewer-dialog { border-radius: 17px; }
  h1 { max-width: 100%; overflow-wrap: anywhere; font-size: 34px; }
  .asset-grid, .asset-grid-large, .section-grid, .result-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .inline-search { width: 100%; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; }
  .chip { flex: 0 0 auto; }
}
