/* Catchinno Studio: the same capsule, behind the scenes. */
:root {
  color-scheme: dark;
  --bg: #0e0718;
  --bg2: #170d29;
  --panel: #1d1233;
  --white: #1d1233;
  --ink: #f7f1ff;
  --muted: #b9abd3;
  --purple: #7e3fe0;
  --purple-dark: #6228bd;
  --lavender: #342052;
  --red: #ef2b2d;
  --yellow: #ffd60a;
  --line: rgba(216, 188, 255, .13);
  --green: #83dfb1;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bungee', 'Rubik', system-ui, sans-serif;
  --radius: 18px;
  --sidebar-width: 254px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--bg); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font: 400 clamp(24px, 2.4vw, 34px)/1.22 var(--display); letter-spacing: -.7px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 15px; font-weight: 550; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.icon { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--yellow); color: var(--bg); padding: 12px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 10px; }

/* Original artwork, cropped to its transparent bounds. */
.wordmark { display: flex; align-items: center; gap: 12px; position: relative; width: fit-content; }
.logo-crop { display: block; position: relative; overflow: hidden; width: 152px; aspect-ratio: 4442 / 2265; flex-shrink: 0; }
.logo-crop img { position: absolute; width: 112.562%; max-width: none; height: auto; left: -7.452%; top: -60.132%; }
.studio-label { color: var(--yellow); border: 1px solid #ffd60a45; border-radius: 99px; padding: 3px 9px; font-size: 10px; font-weight: 500; transform: rotate(-7deg); }
.tiny-capsule { display: block; width: 30px; height: 15px; background: linear-gradient(90deg, var(--red) 50%, var(--purple) 50%); border: 2px solid #f7f1ff; border-radius: 99px; transform: rotate(-28deg); }

/* Navigation rail. */
.app { min-height: 100vh; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 22px 18px 16px; background: #140b23; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4e306e transparent; }
.sidebar > .wordmark { margin-inline: auto; }
.workspace-switch { display: flex; align-items: center; gap: 10px; width: 100%; margin: 25px 0 24px; padding: 12px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.workspace-symbol { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: var(--yellow); background: #4f238c; font-size: 21px; flex-shrink: 0; }
.workspace-switch strong { display: block; font-size: 12px; font-weight: 550; }
.workspace-switch small { display: block; color: var(--muted); font-size: 10px; }
.workspace-dot { width: 6px; height: 6px; margin-left: auto; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.nav-caption { padding: 0 13px 11px; color: #a594c2; font-size: 11px; }
#navigation { display: grid; gap: 5px; }
.nav-item { display: flex; gap: 12px; align-items: center; position: relative; width: 100%; padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; text-align: left; background: transparent; color: #b9abd3; font-size: 12px; font-weight: 450; transition: background .18s, color .18s, border-color .18s; }
.nav-item:hover { background: #24143e; color: white; }
.nav-item.active { color: #fff6c2; background: #382056; border-color: #7e3fe040; font-weight: 550; }
.nav-item.active::before { content: ''; position: absolute; inset: 11px auto 11px -1px; width: 3px; background: var(--yellow); border-radius: 0 4px 4px 0; animation: nav-mark .2s var(--ease); }
.nav-item .icon { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; background: var(--red); color: white; font-size: 10px; padding: 0 6px; border-radius: 99px; }
.nav-separator { height: 1px; background: var(--line); margin: 13px 12px; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-note { border: 1px solid #6f40a845; background: #211336; border-radius: 15px; padding: 17px 15px; margin: 0 2px 20px; }
.sidebar-note .tiny-capsule { margin-bottom: 13px; }
.sidebar-note strong { font-size: 12px; font-weight: 550; }
.sidebar-note p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 5px 0 13px; }
.sidebar-note a { display: flex; justify-content: space-between; color: var(--yellow); font-size: 11px; font-weight: 500; }
.account-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; text-align: left; border: 0; background: transparent; border-radius: 8px; }
.account-button:hover { background: #24143e; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 2px solid #ad7be94d; border-radius: 50%; background: #4b2680; color: #e6d0ff; font-weight: 600; }
.avatar.small { width: 32px; height: 32px; font-size: 12px; }
.account-button strong { display: block; font-size: 12px; font-weight: 500; }
.account-button small { display: block; max-width: 132px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.account-button > span:last-child { margin-left: auto; color: var(--muted); }
.account-button .icon { width: 15px; height: 15px; }

/* Working area and publishing controls. */
.main-shell { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 77px; padding: 0 36px; border-bottom: 1px solid var(--line); background: var(--bg); }
.breadcrumb { display: flex; align-items: center; gap: 13px; min-width: 0; color: #a999c3; font-size: 12px; }
.breadcrumb strong { color: #eee2ff; font-weight: 500; white-space: nowrap; }
.crumb-slash { color: #6e5689; }
.topbar-mini-brand { margin-right: 2px; }
.topbar-mini-brand .tiny-capsule { width: 22px; height: 11px; border-width: 1px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.global-search { display: flex; align-items: center; gap: 9px; }
.global-search .icon { width: 16px; height: 16px; color: #a994c4; }
.global-search input { width: 155px; padding: 5px 0; color: var(--ink); border: 0; background: transparent; font-size: 12px; }
.global-search input::placeholder { color: #a18bbd; }
kbd { border: 1px solid #604477; border-radius: 4px; color: var(--muted); padding: 0 6px; font: 10px var(--font); }
.topbar-divider { height: 20px; border-left: 1px solid var(--line); }
.icon-button { display: inline-grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: #c0aed8; transition: background .16s, color .16s, transform .16s; }
.icon-button:hover { background: #42265f; color: var(--yellow); }
.icon-button:active { transform: scale(.9); }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: sticky; top: 0; z-index: 20; padding: 15px 36px; border-bottom: 1px solid var(--line); background: #170d29f5; backdrop-filter: blur(14px); }
.save-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.save-status.dirty .status-dot { background: var(--yellow); }
.publish-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 99px; padding: 10px 17px; white-space: nowrap; color: var(--ink); font-size: 12px; line-height: 1.5; font-weight: 550; transition: background .17s, border-color .17s, transform .2s var(--ease), box-shadow .2s; }
.button .icon { width: 15px; height: 15px; }
.button-primary { background: var(--yellow); color: #251a00; border-color: var(--yellow); box-shadow: 0 3px 0 #8e7000; }
.button-primary:not(:disabled):hover { background: #ffe14d; transform: translateY(-2px); box-shadow: 0 5px 0 #8e7000; }
.button-primary:not(:disabled):active { transform: translateY(2px); box-shadow: 0 0 0 #8e7000; }
.button-secondary { background: #302044; border-color: #63447d; color: #ebd9ff; }
.button-secondary:hover { background: #442360; border-color: #a167e0; }
.button-quiet { background: transparent; color: #c9acdf; }
.button-quiet:hover { background: #3b2354; color: var(--yellow); }
.button-danger { background: #54202d; color: #ffbcc4; border-color: #a23d52; }
.button-danger:hover { background: #772335; }
.button-sm { padding: 6px 11px; font-size: 11px; }
.workspace { width: 100%; max-width: 1570px; margin: 0 auto; padding: 36px 36px 32px; flex: 1; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 28px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading p { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.date-pill { display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: #c8b6de; background: var(--bg2); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; white-space: nowrap; }
.date-pill .icon { width: 13px; height: 13px; }
.button.is-published { animation: publish-celebrate .9s var(--ease); }

/* One capsule of brand energy, framed by quiet working surfaces. */
.welcome-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 192px; gap: 20px; padding: 29px 32px; margin-bottom: 26px; border: 1px solid #8045c7; border-radius: 22px; background: #341858; isolation: isolate; }
.welcome-banner::before { content: ''; position: absolute; inset: -25% -3% -50% auto; z-index: -1; width: 280px; border-radius: 50%; border: 45px solid #4e2279; transform: rotate(-35deg); }
.welcome-banner::after { content: ''; position: absolute; top: 26px; bottom: 26px; left: 0; width: 5px; border-radius: 0 5px 5px 0; background: var(--red); }
.welcome-banner h2 { color: #fff2ce; font: 400 clamp(22px, 2.1vw, 31px)/1.24 var(--display); letter-spacing: -.5px; }
.welcome-banner p { max-width: 460px; color: #d4bfe9; font-size: 12px; line-height: 1.9; margin: 11px 0 20px; }
.welcome-banner .button { color: #f7eaff; background: #602ba4; border-color: #9256d0; padding: 8px 14px; font-size: 11px; }
.welcome-banner .button:hover { background: var(--purple); }
.banner-art { position: relative; width: 210px; height: 136px; flex-shrink: 0; }
.banner-card { position: absolute; display: grid; place-items: center; width: 83px; height: 111px; right: 74px; top: 9px; border: 3px solid #d9bbff; border-radius: 12px; color: white; background: var(--purple); box-shadow: 0 7px 0 #180a2f77; font: 400 48px var(--display); transform: rotate(-17deg); animation: card-deal-left .7s var(--ease) both; }
.banner-card.second { right: 16px; top: 7px; color: #fff2b0; background: var(--red); border-color: #ffadad; transform: rotate(14deg); animation: card-deal-right .8s var(--ease) both; }
.banner-spark { position: absolute; left: 12px; top: -5px; color: var(--yellow); font-size: 30px; transform: rotate(-8deg); }
.banner-dot { position: absolute; left: 12px; bottom: 2px; width: 10px; height: 10px; background: #e6197e; border: 2px solid #ffaad2; border-radius: 50%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { min-width: 0; padding: 20px 20px 18px; background: #1a102d; border: 1px solid var(--line); border-radius: 15px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; background: #412061; color: #cd9bff; border-radius: 9px; flex-shrink: 0; }
.stat-icon.coral { color: #ff8a8b; background: #51202f; }
.stat-icon.blue { color: #a9b1ff; background: #252450; }
.stat-icon.green { color: #77dfc3; background: #123c3b; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-value { color: #f8efff; font: 400 32px/1.12 var(--display); letter-spacing: -1px; }
.stat-foot { color: #a999c1; font-size: 11px; line-height: 1.8; margin-top: 12px; }
.stat-foot span { color: var(--green); background: #183b30; padding: 2px 5px; border-radius: 4px; margin-right: 4px; }

/* Overview and content previews. */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 23px; }
.overview-grid > div, .overview-secondary, .card, .card-head > div, .quick-action > span, .feed-preview > *, .layout-wrap > *, .settings-grid > * { min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card + .card { margin-top: 23px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 22px 18px; }
.card-head h2 { font-size: 14px; font-weight: 550; }
.card-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.card-link { color: var(--yellow); font-size: 11px; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }
.mini-event { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.mini-event img { width: 57px; height: 55px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.mini-event-info { min-width: 0; flex: 1; }
.mini-event-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.mini-event-info p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 8px; border: 1px solid transparent; border-radius: 99px; background: #392650; color: #d1b7e9; font-size: 10px; font-weight: 450; line-height: 1.7; white-space: nowrap; }
.badge.published, .badge.completed { color: #9be6bc; background: #193c32; border-color: #377151; }
.badge.draft, .badge.new { color: #f2cf74; background: #473916; border-color: #766025; }
.badge.contacted { color: #bbc8ff; background: #29385a; border-color: #4f6590; }
.badge.featured { color: #e6c6ff; background: #542a77; border-color: #8654a7; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); color: #a995c3; font-size: 11px; }
.card-bottom .icon { width: 14px; height: 14px; }
.feed-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 22px 22px; }
.mini-reel { position: relative; aspect-ratio: 4/5.5; overflow: hidden; border-radius: 11px; background: #2d1b43; }
.mini-reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.mini-reel:hover img { transform: scale(1.06); }
.mini-reel::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #130721e8); }
.mini-reel span { position: absolute; bottom: 11px; left: 10px; right: 8px; z-index: 1; color: white; font-size: 10px; line-height: 1.5; }
.mini-reel .icon { position: absolute; top: 9px; right: 9px; width: 13px; height: 13px; color: white; z-index: 1; }
.quick-actions { padding: 0 20px 20px; }
.quick-action { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 12px; margin-bottom: 10px; text-align: left; border: 1px solid #63458155; border-radius: 12px; background: #231638; transition: border-color .18s, background .18s; }
.quick-action:hover { border-color: #9e65d1; background: #35204e; }
.quick-action:last-child { margin-bottom: 0; }
.quick-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #4b2676; color: #d6a5ff; flex-shrink: 0; }
.quick-icon.coral { background: #592637; color: #ffacac; }
.quick-icon.blue { background: #2d2a60; color: #b1bfff; }
.quick-icon .icon { width: 16px; height: 16px; }
.quick-action strong { display: block; font-size: 12px; font-weight: 500; }
.quick-action small { display: block; margin-top: 3px; color: #b5a4cd; font-size: 10px; line-height: 1.8; }
.quick-action > .icon { margin-left: auto; width: 14px; height: 14px; color: #ab8cc7; }
.activity-list { padding: 0 22px 10px; }
.activity-item { display: flex; position: relative; gap: 12px; padding: 9px 0 20px; }
.activity-item::before { content: ''; position: absolute; top: 31px; bottom: 0; left: 13px; border-left: 1px solid #64457a66; }
.activity-item:last-child::before { display: none; }
.activity-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #3b2257; color: #cb9aef; flex-shrink: 0; }
.activity-symbol .icon { width: 13px; height: 13px; }
.activity-item strong { display: block; font-size: 12px; font-weight: 450; }
.activity-item p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.activity-item time { display: block; margin-top: 5px; color: #9f8bb7; font-size: 10px; }
.tip-card { display: flex; gap: 12px; padding: 20px 22px; margin-top: 23px; border: 1px solid #9b702d4d; border-radius: 15px; background: #332319; color: #f0c265; }
.tip-card > .icon { width: 18px; height: 18px; flex-shrink: 0; }
.tip-card strong { color: #f7dc9a; font-size: 12px; font-weight: 500; }
.tip-card p { color: #d0b897; font-size: 11px; line-height: 1.9; margin-top: 6px; }
.admin-footer { display: flex; justify-content: space-between; gap: 18px; padding: 18px 36px 28px; color: #9c87b4; font-size: 10px; }
.admin-footer a { color: #c3a2e5; white-space: nowrap; }
.footer-dot { padding: 0 5px; color: var(--yellow); }

/* Collections and drag arrangement. */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 7px 11px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: #bcabd2; font-size: 11px; }
.tab:hover { color: white; background: #37204e; }
.tab.active { color: #fff4b5; background: #432566; border-color: #804aad; }
.tab.active .muted { color: #d6b4ec; }
.local-search { padding: 9px 12px; min-width: 190px; max-width: 100%; background: #12091f; border: 1px solid #614078; border-radius: 9px; color: var(--ink); font-size: 11px; }
.local-search::placeholder { color: #b19bc7; }
.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; padding: 21px; }
.content-card { min-width: 0; border: 1px solid #69428a66; border-radius: 15px; overflow: hidden; background: #221435; transition: border-color .18s, opacity .18s; }
.content-card:hover { border-color: #9b64c9; }
.content-card[draggable=true] { cursor: grab; }
.content-card.dragging, .layout-row.dragging { opacity: .4; transform: scale(.98); }
.content-card.drag-over, .layout-row.drag-over { outline: 2px solid var(--yellow); outline-offset: 3px; }
.content-image { position: relative; overflow: hidden; aspect-ratio: 4/4.8; background: #2d1b43; }
.content-image.event-image { aspect-ratio: 16/10; }
.content-image img { width: 100%; height: 100%; object-fit: cover; }
.content-image > .badge { position: absolute; top: 11px; right: 10px; box-shadow: 0 2px 8px #14072155; }
.content-image .select-item { position: absolute; left: 10px; top: 10px; width: 17px; height: 17px; accent-color: var(--purple); }
.image-link { position: absolute; bottom: 10px; right: 10px; width: 29px; height: 29px; display: grid; place-items: center; background: #160b28df; border: 1px solid #ffffff66; border-radius: 50%; color: white; }
.image-link:hover { background: var(--purple); }
.image-link .icon { width: 14px; height: 14px; }
.content-body { padding: 15px 14px 12px; }
.content-body h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.7; font-weight: 550; }
.content-meta { display: flex; align-items: center; gap: 6px; min-height: 19px; margin-top: 6px; color: #b9a4cf; font-size: 10px; }
.content-meta .icon { width: 13px; height: 13px; }
.content-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 9px 10px; border-top: 1px solid var(--line); }
.reorder-tools { display: flex; align-items: center; gap: 2px; }
.reorder-tools .icon-button { width: 27px; height: 27px; }
.reorder-tools .icon { width: 14px; height: 14px; }
.reorder-tools > span { color: #a88ac2; font-size: 10px; margin-right: 3px; }
.events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #38204e; font-size: 11px; }
.bulk-bar strong { margin-right: auto; }
.empty-state { grid-column: 1/-1; padding: 65px 24px; text-align: center; }
.empty-state > .icon { width: 36px; height: 36px; margin-bottom: 15px; color: #c69ae3; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { max-width: 390px; margin: 0 auto 23px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.help-strip { display: flex; align-items: center; gap: 9px; padding: 15px 21px; border-top: 1px solid var(--line); color: #b9a4ce; font-size: 11px; }
.help-strip .icon { width: 15px; height: 15px; color: #e3cbff; }
.layout-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, 1fr); gap: 24px; }
.layout-list { padding: 0 20px 20px; }
.layout-row { display: flex; align-items: center; gap: 13px; padding: 18px 14px; margin-bottom: 11px; border: 1px solid #68478a66; border-radius: 12px; background: #26173c; cursor: grab; }
.layout-row .drag-grip { color: #b19bc7; }
.layout-number { width: 18px; color: #bda0d5; font-size: 11px; }
.layout-row-info { flex: 1; min-width: 0; }
.layout-row-info strong { font-size: 12px; font-weight: 500; }
.layout-row-info p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { appearance: none; width: 33px; height: 19px; margin: 0; position: relative; border: 1px solid #77558e; border-radius: 99px; background: #3b284c; cursor: pointer; flex-shrink: 0; transition: background .18s; }
.toggle input::after { content: ''; position: absolute; width: 11px; height: 11px; left: 3px; top: 3px; border-radius: 50%; background: #d4bfe3; transition: transform .18s var(--ease), background .18s; }
.toggle input:checked { border-color: #bc88ff; background: var(--purple); }
.toggle input:checked::after { transform: translateX(14px); background: white; }
.toggle > span { font-size: 12px; }
.site-map { padding: 0 26px 26px; }
.site-map-header { padding: 19px; margin-bottom: 8px; border: 1px solid #8656b0; border-radius: 99px; background: #4b2573; color: #f1d9ff; font-size: 11px; text-align: center; }
.site-map-section { padding: 15px; margin-bottom: 8px; border: 1px solid #71518466; border-radius: 10px; background: #27173c; color: #cbb2df; font-size: 11px; text-align: center; }
.site-map-section.off { opacity: .45; text-decoration: line-through; }

/* Clear settings and form controls. */
.form-card { padding: 26px; }
.form-section-title { margin-bottom: 8px; font-size: 16px; font-weight: 550; }
.form-section-description { max-width: 60ch; margin-bottom: 25px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.field { display: block; margin-bottom: 20px; }
.field > span, .field > label { display: block; margin-bottom: 8px; color: #dfc9f0; font-size: 12px; font-weight: 500; }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 43px; padding: 11px 13px; border: 1px solid #6b4a82; border-radius: 10px; background: #12091f; color: var(--ink); font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #ab94c1; opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #bd8bf4; outline: 2px solid #8b4bd02b; }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.8; }
.field small { display: block; color: #ad99c3; font-size: 10px; line-height: 1.9; margin-top: 7px; font-weight: 400; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 24px; }
.form-divider { height: 1px; background: var(--line); margin: 27px 0; }
.inline-setting { display: flex; justify-content: space-between; align-items: center; gap: 19px; margin: 22px 0; }
.inline-setting strong { font-size: 12px; font-weight: 500; }
.inline-setting p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-error { margin-bottom: 13px; color: #ff9cac; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.notice, .auth-connection-message { margin-bottom: 20px; padding: 15px 17px; border: 1px solid #80653688; border-radius: 11px; color: #dfc38c; background: #3a2b1d; font-size: 11px; line-height: 1.9; }
.filename { overflow-wrap: anywhere; }

/* Media shelf, order requests, and games. */
.media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 21px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid #69448766; border-radius: 13px; background: #251637; }
.media-card img { width: 100%; aspect-ratio: 1.2; object-fit: cover; background: #312044; }
.media-info { padding: 12px; }
.media-info strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 500; }
.media-info small { color: var(--muted); font-size: 10px; }
.media-actions { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.upload-zone { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 32px; margin: 21px; width: calc(100% - 42px); border: 1px dashed #9965bb; border-radius: 15px; background: #2b183f; text-align: left; cursor: pointer; transition: background .18s, border-color .18s; }
.upload-zone:hover { background: #3c2258; border-color: var(--yellow); }
.upload-zone .icon { width: 30px; height: 30px; color: #c5a0e6; }
.upload-zone strong { display: block; font-size: 12px; font-weight: 500; }
.upload-zone small { color: var(--muted); font-size: 11px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 15px 21px; border-bottom: 1px solid var(--line); background: #28173d; color: #d3bbeb; font-size: 11px; font-weight: 500; }
td { padding: 18px 21px; border-bottom: 1px solid var(--line); color: #baa6cf; font-size: 12px; }
td strong { color: #f1ddff; font-weight: 500; }
td small { display: block; color: #aa93bf; font-size: 10px; margin-top: 4px; }
.status-select { padding: 7px; border: 1px solid #795494; border-radius: 7px; background: #2b1b41; color: #e5c8fb; font-size: 11px; }
.table-notes { min-width: 160px; max-width: 240px; white-space: normal; font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-admin { display: flex; align-items: center; gap: 25px; padding: 25px; }
.product-admin > div { min-width: 0; }
.product-admin img { width: 36%; aspect-ratio: 1; border: 1px solid #76509666; border-radius: 15px; object-fit: cover; }
.product-admin h2 { color: #fff2c9; margin: 12px 0 8px; font: 400 18px/1.3 var(--display); }
.product-admin p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 15px; }
.product-admin .price { color: var(--yellow); font-size: 17px; font-weight: 500; }
.product-admin .button { margin-top: 17px; }

/* Dialogs use the same readable surfaces as the working area. */
.editor-dialog, .confirm-dialog { width: min(870px, calc(100% - 32px)); max-height: 92vh; padding: 0; overflow: auto; color: var(--ink); border: 1px solid #9466b5; border-radius: 23px; background: var(--panel); box-shadow: 0 26px 100px #05010988; }
.editor-dialog[open], .confirm-dialog[open] { animation: dialog-in .3s var(--ease); }
.editor-dialog::backdrop, .confirm-dialog::backdrop { background: #08020fbb; backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 24px 27px; border-bottom: 1px solid var(--line); background: #27153e; }
.dialog-head h2 { color: #fff2c9; font: 400 21px/1.3 var(--display); }
.dialog-head p { color: var(--muted); font-size: 11px; margin-top: 7px; }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 26px; padding: 27px; }
.dialog-preview { padding: 17px; position: sticky; top: 15px; align-self: start; border: 1px solid #79529866; border-radius: 15px; background: #2d1b41; }
.dialog-preview > p { color: #cbb0df; font-size: 11px; margin-bottom: 12px; }
.preview-cover { display: grid; place-items: center; aspect-ratio: 4/5; overflow: hidden; border-radius: 11px; background: #3a2252; }
.preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-cover img[src=''] { display: none; }
.preview-cover .icon { width: 38px; height: 38px; color: #c29bdc; }
.dialog-preview h3 { font-size: 13px; margin-top: 14px; word-break: break-word; }
.dialog-preview small { font-size: 11px; color: var(--muted); }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 11px; padding: 19px 27px; position: sticky; bottom: 0; border-top: 1px solid var(--line); background: #211232f5; backdrop-filter: blur(12px); }
.image-input-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.dialog-note { max-width: 230px; color: #bba2cf; font-size: 10px; margin-right: auto; }
.confirm-dialog { width: min(450px, calc(100% - 32px)); padding: 28px; }
.confirm-dialog h2 { color: #fff2c9; margin-bottom: 12px; font-size: 21px; }
.confirm-dialog p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 25px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; }
.media-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; max-height: 430px; padding: 20px; overflow: auto; }
.media-picker button { min-width: 0; padding: 5px; overflow: hidden; border: 1px solid #75528a; border-radius: 10px; background: #2d1b41; text-align: left; }
.media-picker button:hover { border-color: var(--yellow); }
.media-picker img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.media-picker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 2px 2px; color: var(--muted); font-size: 10px; }

/* A front door with the genuine Catchinno logo. */
.auth-screen { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--bg); }
.auth-art { display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; padding: clamp(40px, 5vw, 80px); color: white; background: #281044; isolation: isolate; }
.auth-art-brand { position: absolute; left: clamp(40px, 5vw, 80px); top: 37px; z-index: 1; animation: logo-in .7s var(--ease) both; }
.auth-art-brand .logo-crop { width: 210px; }
.auth-art > span { position: relative; z-index: 2; color: #fff2d1; font: 400 clamp(40px, 4.8vw, 76px)/1.13 var(--display); letter-spacing: -1px; }
.auth-art > small { position: relative; z-index: 2; margin-top: 22px; color: #d3b5e9; font-size: 13px; }
.auth-art-caption { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; margin-top: 40px; color: #c6a5dd; font-size: 11px; }
.auth-art-caption .tiny-capsule { width: 24px; height: 12px; }
.auth-orbit { position: absolute; z-index: -1; border: 1px solid #78439b66; border-radius: 50%; }
.orbit-one { width: 780px; height: 780px; top: -190px; left: -380px; }
.orbit-two { width: 650px; height: 650px; right: -415px; bottom: -110px; border-width: 50px; border-color: #4b1d6e77; }
.art-capsule { position: absolute; width: 330px; height: 160px; top: 20%; right: -120px; border: 9px solid #d6b0f433; border-radius: 150px; background: linear-gradient(90deg, var(--red) 50%, var(--purple) 50%); transform: rotate(-28deg); box-shadow: 0 14px 0 #170a2d; opacity: .45; }
.auth-game-card { display: grid; place-items: center; position: absolute; width: 88px; height: 117px; right: 80px; top: 28%; z-index: 1; border: 3px solid #ba8be8; border-radius: 13px; color: #fff1b4; font: 400 53px var(--display); box-shadow: 0 10px 0 #16062380; }
.card-question { background: #7e3fe0; transform: rotate(-20deg); right: 145px; animation: card-deal-left .8s var(--ease) both; }
.card-star { background: #ef2b2d; transform: rotate(13deg); top: 29%; border-color: #ffa3a3; animation: card-deal-right 1s var(--ease) both; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px clamp(30px, 7vw, 118px); }
.auth-panel > .wordmark { margin-bottom: 44px; }
.auth-panel .logo-crop { width: 170px; }
#authContent { width: 100%; max-width: 440px; }
#authContent h1 { color: #fff2d1; font-size: clamp(25px, 2.2vw, 35px); margin-bottom: 17px; }
#authContent > p { color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 31px; }
#authContent .button { width: 100%; padding: 13px; }
.auth-provider { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: #d7b7f4; font-size: 10px; border: 1px solid #8c5bb355; background: #2b173f; border-radius: 99px; padding: 4px 10px; margin-bottom: 17px; }
.auth-foot { margin-top: 25px; color: #ab93bf; font-size: 11px; line-height: 1.9; }
.auth-foot a { display: inline-block; margin-top: 10px; color: var(--yellow); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 43px; }
.password-wrap button { position: absolute; top: 5px; right: 5px; }

/* Focused feedback and user-triggered motion. */
.toast-region { display: grid; gap: 10px; position: fixed; right: 28px; bottom: 25px; z-index: 150; max-width: calc(100vw - 40px); }
.toast { display: flex; align-items: center; gap: 11px; padding: 14px 19px; border: 1px solid #ac7adc; border-radius: 13px; background: #4b2472; color: #fff6ff; box-shadow: 0 8px 24px #08020f66; font-size: 12px; animation: toast-in .3s var(--ease); }
.toast > .icon { color: var(--yellow); }
.toast.error { background: #6f2036; border-color: #cc5c72; }
.toast.error > .icon { color: #ffccd4; }
.toast .icon { width: 17px; height: 17px; }
.spinner { display: inline-block; width: 17px; height: 17px; flex-shrink: 0; border: 2px solid #b68bd455; border-top-color: var(--yellow); border-radius: 50%; animation: spin .8s linear infinite; }
.loading { display: flex; align-items: center; gap: 10px; padding: 35px 0; color: var(--muted); font-size: 13px; }
.mobile-menu, .sidebar-shade { display: none; }
.search-results { padding: 16px 22px; }
.search-result { display: flex; align-items: center; gap: 15px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.search-result:hover { color: var(--yellow); }
.search-result img { width: 47px; height: 47px; object-fit: cover; border-radius: 9px; }
.search-result strong { font-size: 13px; font-weight: 500; }
.search-result small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.checklist { padding: 0 22px 21px; }
.checklist p { display: flex; gap: 8px; padding: 9px 0; color: var(--muted); font-size: 11px; }
.checklist .icon { width: 15px; height: 15px; color: var(--green); }
.skeleton { height: 170px; border-radius: 15px; background: linear-gradient(90deg, #28153e, #452063, #28153e); background-size: 200%; animation: pulse 1.4s infinite; }
.overview-empty { padding: 14px 22px 25px; color: var(--muted); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { to { background-position: -200%; } }
@keyframes page-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: translateY(-15px) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes nav-mark { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes publish-celebrate { 0%, 100% { box-shadow: 0 3px 0 #8e7000; } 35% { box-shadow: 0 3px 0 #8e7000, 0 0 0 8px #ffd60a33; } 70% { box-shadow: 0 3px 0 #8e7000, 0 0 0 14px #ffd60a00; } }
@keyframes card-deal-left { from { opacity: 0; translate: 35px 15px; rotate: 20deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes card-deal-right { from { opacity: 0; translate: -30px 15px; rotate: -20deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }

/* Comfortable laptop, tablet, and phone layouts. */
@media (min-width: 1600px) {
  .workspace { padding-top: 44px; }
  .content-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card { padding: 24px; }
  .welcome-banner { padding: 35px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 230px; }
  .sidebar { padding-inline: 14px; }
  .sidebar .logo-crop { width: 138px; }
  .sidebar .wordmark { gap: 9px; }
  .studio-label { padding-inline: 7px; }
  .workspace { padding: 30px 27px; }
  .topbar, .publish-bar { padding-inline: 27px; }
  .overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 18px; }
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 17px; }
  .stat-label { font-size: 11px; }
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); }
  .date-pill { display: none; }
  .welcome-banner { padding: 26px; }
  .banner-art { width: 177px; }
  .banner-card { right: 55px; }
  .banner-card.second { right: 0; }
  .banner-spark { left: 0; }
}
@media (max-width: 1000px) {
  .overview-grid, .layout-wrap, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-secondary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px; }
  .overview-secondary .card + .card { margin-top: 0; }
  .overview-secondary .tip-card { grid-column: 1/-1; margin-top: 0; }
  .global-search input { width: 130px; }
  .topbar-right { gap: 13px; }
  .content-grid { gap: 14px; padding: 17px; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-body { grid-template-columns: minmax(0, 1fr) 200px; gap: 21px; }
  .admin-footer { padding-inline: 27px; }
  .auth-game-card { width: 70px; height: 94px; right: 40px; font-size: 43px; }
  .card-question { right: 93px; }
}
@media (max-width: 780px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s var(--ease); width: 254px; }
  .sidebar .logo-crop { width: 152px; }
  .sidebar.open { transform: none; }
  .sidebar-shade:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 29; border: 0; background: #070210bb; backdrop-filter: blur(3px); }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { height: 64px; padding-inline: 18px; }
  .breadcrumb { gap: 9px; font-size: 11px; }
  .topbar-mini-brand { display: none; }
  .topbar-right { gap: 10px; }
  .global-search input { width: 125px; }
  .global-search kbd, .topbar-divider, .topbar-right > .avatar { display: none; }
  .publish-bar { padding: 13px 18px; }
  .publish-actions { gap: 8px; }
  .publish-actions .button { padding: 8px 12px; font-size: 11px; }
  .save-status { max-width: 120px; font-size: 10px; line-height: 1.6; }
  .workspace { padding: 28px 20px; }
  .page-heading { margin-bottom: 24px; gap: 15px; align-items: flex-start; }
  h1 { font-size: 26px; }
  .heading-actions .button { font-size: 11px; padding: 9px 12px; }
  .welcome-banner h2 { font-size: 25px; }
  .welcome-banner p { max-width: 340px; }
  .banner-art { width: 145px; height: 125px; }
  .banner-card { width: 70px; height: 96px; right: 52px; font-size: 41px; }
  .banner-card.second { right: 3px; }
  .banner-spark { left: -9px; font-size: 24px; }
  .banner-dot { left: -5px; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 17px 15px; }
  .stat-top { gap: 5px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-value { font-size: 29px; }
  .stat-foot { font-size: 10px; }
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { padding: 14px 16px; gap: 12px; }
  .local-search { min-width: 160px; flex: 1; }
  .editor-dialog { width: calc(100% - 20px); }
  .dialog-body { grid-template-columns: minmax(0, 1fr) 180px; padding: 21px; }
  .dialog-head, .dialog-footer { padding: 20px 21px; }
  .admin-footer { padding-inline: 20px; font-size: 10px; }
  .auth-art { padding: 36px; }
  .auth-art-brand { left: 36px; }
  .auth-art-brand .logo-crop { width: 165px; }
  .auth-panel { padding: 40px 30px; }
  .auth-art > span { font-size: 39px; }
  .auth-art-caption { max-width: 230px; font-size: 10px; }
  .auth-art > small { font-size: 11px; }
}
@media (max-width: 560px) {
  .global-search { display: none; }
  .topbar-right { gap: 0; }
  .publish-bar { gap: 10px; }
  .publish-actions { gap: 6px; }
  .publish-actions .button { padding: 8px 10px; }
  .publish-actions .button-quiet { font-size: 0; gap: 0; padding-inline: 6px; }
  .publish-actions .button-quiet .icon { width: 18px; height: 18px; }
  .publish-actions .button-primary .icon { display: none; }
  .save-status { max-width: 102px; }
  .workspace { padding: 25px 17px; }
  h1 { font-size: 25px; }
  .page-heading { flex-wrap: wrap; }
  .heading-actions { margin-left: auto; }
  .welcome-banner { padding: 23px 21px; gap: 10px; min-height: 215px; }
  .welcome-banner > div:first-child { min-width: 0; }
  .welcome-banner h2 { font-size: 22px; max-width: 230px; }
  .welcome-banner p { font-size: 11px; max-width: 235px; }
  .banner-art { width: 60px; height: 128px; }
  .banner-card { right: 6px; top: 36px; width: 41px; height: 61px; border-width: 2px; border-radius: 7px; font-size: 25px; }
  .banner-card.second { right: -13px; top: 32px; }
  .banner-spark { left: 3px; top: 1px; font-size: 24px; }
  .banner-dot { left: 0; bottom: 2px; width: 8px; height: 8px; }
  .welcome-banner::before { right: -160px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 18px 16px; }
  .stat-label { font-size: 11px; }
  .stat-icon { width: 28px; height: 28px; }
  .stat-foot { font-size: 10px; }
  .overview-secondary { display: block; }
  .overview-secondary .card + .card { margin-top: 21px; }
  .overview-secondary .tip-card { margin-top: 21px; }
  .content-grid, .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 13px; }
  .content-body { padding: 13px 11px 11px; }
  .content-body h3 { font-size: 11px; }
  .content-meta { flex-wrap: wrap; font-size: 10px; gap: 4px; }
  .content-card-footer { padding: 7px; }
  .content-card-footer .button { padding: 5px 7px; }
  .reorder-tools .icon-button { width: 23px; }
  .reorder-tools > span { margin-right: 0; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 13px; }
  .media-actions { flex-wrap: wrap; }
  .dialog-body { grid-template-columns: minmax(0, 1fr); }
  .dialog-preview { display: none; position: static; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dialog-head h2 { font-size: 18px; }
  .dialog-footer { padding: 16px 18px; gap: 8px; }
  .dialog-footer .button { font-size: 11px; padding: 9px 12px; }
  .dialog-note { max-width: 95px; font-size: 9px; }
  .layout-row { gap: 9px; padding: 15px 10px; }
  .layout-row .reorder-tools { flex-direction: column; }
  .layout-row .drag-grip .icon { width: 17px; }
  .layout-list { padding-inline: 13px; }
  .layout-row-info p { font-size: 10px; }
  .layout-row-info strong { font-size: 11px; }
  .layout-number { width: 14px; font-size: 10px; }
  .auth-screen { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; padding: 40px 27px; background: radial-gradient(ellipse at 100% 0, #44206466, transparent 65%); }
  .auth-panel > .wordmark { margin-bottom: 48px; }
  .auth-panel .logo-crop { width: 155px; }
  #authContent h1 { font-size: 28px; }
  .media-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-admin { gap: 19px; padding: 20px; }
  .product-admin h2 { font-size: 17px; }
  .product-admin p { font-size: 11px; }
  .card-head { padding-inline: 18px; gap: 9px; }
  .card-head h2 { font-size: 13px; }
  .card-head p { font-size: 10px; }
  .card-head .button { padding-inline: 7px; font-size: 10px; }
  .mini-event { padding-inline: 18px; gap: 10px; }
  .mini-event img { width: 44px; height: 50px; }
  .mini-event-info strong { font-size: 11px; }
  .mini-event-info p { font-size: 10px; }
  .badge { font-size: 9px; padding: 3px 6px; }
  .mini-event > .icon-button { width: 28px; }
  .card-bottom { font-size: 10px; padding-inline: 18px; }
  .feed-preview { padding-inline: 18px; gap: 7px; }
  .mini-reel span { left: 6px; bottom: 7px; right: 5px; font-size: 8px; }
  .mini-reel .icon { width: 11px; height: 11px; top: 6px; right: 6px; }
  .upload-zone { margin: 13px; width: calc(100% - 26px); padding: 24px 18px; }
  .upload-zone small { font-size: 10px; }
  .settings-grid { gap: 20px; }
  .form-card { padding: 22px; }
  .toast-region { right: 17px; bottom: 18px; }
  .toolbar .tabs { gap: 3px; }
  .tab { padding-inline: 9px; font-size: 10px; }
  .admin-footer { align-items: flex-start; padding-inline: 18px; font-size: 9px; }
  .admin-footer > span { max-width: 205px; }
  .admin-footer a { max-width: 90px; text-align: right; white-space: normal; }
}
@media (max-width: 360px) {
  .publish-bar { flex-wrap: wrap; gap: 9px; }
  .save-status { max-width: none; flex-basis: 100%; }
  .publish-actions { width: 100%; justify-content: flex-end; }
  .page-heading h1 { font-size: 23px; }
  .welcome-banner { padding-inline: 19px; }
  .welcome-banner h2 { font-size: 21px; }
  .welcome-banner .button { padding-inline: 11px; font-size: 10px; }
  .welcome-banner p { font-size: 11px; }
  .banner-art { width: 42px; }
  .banner-card { right: 3px; width: 35px; height: 53px; font-size: 22px; }
  .banner-card.second { right: -12px; }
  .stat-card { padding: 16px 13px; }
  .stat-label { font-size: 10px; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-icon .icon { width: 14px; height: 14px; }
  .stat-value { font-size: 27px; }
  .mini-event { gap: 7px; padding-inline: 14px; }
  .mini-event img { width: 37px; height: 44px; }
  .mini-event > .badge { font-size: 8px; padding: 2px 4px; }
  .mini-event > .icon-button { width: 24px; }
  .card-head { gap: 7px; padding-inline: 15px; }
  .card-head h2 { font-size: 12px; }
  .card-head .button { padding-inline: 4px; font-size: 9px; }
  .feed-preview { padding-inline: 15px; gap: 5px; }
  .mini-reel span { font-size: 7px; }
  .content-card-footer { gap: 1px; padding-inline: 5px; }
  .content-card-footer .button { font-size: 10px; padding-inline: 5px; gap: 3px; }
  .content-card-footer .button .icon { width: 12px; }
  .reorder-tools .icon-button { width: 20px; }
  .reorder-tools > span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
