:root {
    --black: #050506;
    --ink: #16171a;
    --muted: #6f737b;
    --line: #e4e5e8;
    --soft: #f5f6f8;
    --white: #fff;
    --orange: #ff8a00;
    --orange-dark: #dc6900;
    --green: #13a66b;
    --red: #d64045;
    --purple: #6c63ff;
    --blue: #1689e6;
    --radius: 14px;
    --shadow: 0 14px 40px rgba(14, 17, 22, .08);
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.shell--reading { width: min(900px, calc(100% - 48px)); }
.shell--narrow { width: min(760px, calc(100% - 48px)); }
.section { padding-block: 84px; }
.section--tight { padding-top: 26px; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.meta { color: var(--muted); font-size: 12px; font-weight: 600; }
.back-link { color: var(--muted); font-size: 13px; font-weight: 700; }

.wordmark { color: #fff; font-size: 34px; font-weight: 750; letter-spacing: .19em; line-height: 1; white-space: nowrap; }
.site-header { position: relative; z-index: 20; background: #000; border-bottom: 1px solid #1a1a1c; }
.site-header__inner { min-height: 102px; display: flex; align-items: center; gap: 38px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 22px; flex: 1; }
.site-nav a { color: #fff; font-size: 11px; font-weight: 750; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a { color: #fff; font-size: 12px; font-weight: 700; }
.icon-button { width: 36px; height: 36px; border: 1px solid #353537; border-radius: 50%; display: grid; place-items: center; font-size: 20px !important; }
.account-link { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; padding: 5px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: #fff; }
.preview-ribbon { padding: 9px 20px; color: #201700; background: #ffd76a; text-align: center; font-size: 13px; }
.preview-ribbon a { text-decoration: underline; font-weight: 800; }

.news-hero { position: relative; min-height: 650px; display: flex; align-items: end; overflow: hidden; color: #fff; background: #111 var(--hero-image) center/cover no-repeat; }
.news-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255,138,0,.14), transparent 34%); }
.news-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.58) 46%, rgba(0,0,0,.05) 79%), linear-gradient(0deg, rgba(0,0,0,.75), transparent 56%); }
.news-hero__content { position: relative; z-index: 1; padding-block: 90px; }
.news-hero__content h1 { max-width: 790px; margin: 18px 0 20px; font-size: clamp(44px, 6.6vw, 90px); line-height: .99; letter-spacing: -.055em; }
.news-hero__content > p:not(.hero-kicker) { max-width: 670px; color: #ddd; font-size: 19px; }
.hero-kicker { margin-bottom: 0; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; }
.hero-actions span { color: #c9c9c9; font-size: 12px; }
.category-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--category) 88%, #000); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.button { min-height: 44px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; font-weight: 800; font-size: 13px; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button--accent { color: #111; background: var(--orange); }
.button--accent:hover { background: #ffa01d; }
.button--dark { color: #fff; background: var(--ink); }
.button--light { color: #111; background: #fff; }
.button--ghost { color: var(--ink); background: #fff; border-color: #d7d9dd; }
.button--quiet { color: #50535a; background: transparent; border-color: transparent; }
.button--success { color: #fff; background: var(--green); }
.button--danger { color: #fff; background: var(--red); }
.button--small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.button--wide { width: 100%; }

.intro-band { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: 80px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.intro-band h2 { max-width: 760px; margin: 0; font-size: clamp(32px, 4vw, 58px); line-height: 1.07; letter-spacing: -.04em; }
.intro-band > p { margin-bottom: 7px; color: var(--muted); font-size: 17px; }
.section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.section-heading h2 { margin-bottom: 0; font-size: 34px; letter-spacing: -.035em; }
.section-stat { color: var(--muted); font-size: 12px; font-weight: 750; }
.section-heading--light { color: #fff; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card__image { min-height: 245px; padding: 18px; display: flex; align-items: flex-start; background: #151519 var(--card-image) center/cover no-repeat; }
.article-card__image:empty { background-image: linear-gradient(135deg, #17171b, #34333b); }
.article-card__body { padding: 23px; }
.article-card__body h3 { margin: 7px 0 12px; font-size: 23px; line-height: 1.18; letter-spacing: -.025em; }
.article-card__body > p:not(.meta) { min-height: 74px; color: var(--muted); font-size: 14px; }
.text-link { color: var(--orange-dark); font-size: 13px; font-weight: 850; }

.dark-panel { color: #fff; background: #0b0b0d; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #27272b; border-radius: var(--radius); overflow: hidden; }
.category-tile { min-height: 260px; padding: 28px; position: relative; border-right: 1px solid #27272b; border-bottom: 1px solid #27272b; background: linear-gradient(145deg, color-mix(in srgb, var(--category) 11%, transparent), transparent 44%); }
.category-tile:nth-child(3n) { border-right: 0; }
.category-tile:nth-last-child(-n+3) { border-bottom: 0; }
.category-tile > span { color: var(--category); font-size: 12px; font-weight: 850; }
.category-tile h3 { margin: 42px 0 8px; font-size: 24px; }
.category-tile p { color: #a7a7ad; font-size: 13px; }
.category-tile strong { position: absolute; bottom: 25px; color: var(--category); font-size: 12px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.product-card__image { aspect-ratio: 1; padding: 20px; display: grid; place-items: center; background: #f3f4f5; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-card__body { padding: 19px; }
.product-card__body > span, .product-card__body > p { color: var(--muted); font-size: 11px; }
.product-card__body h3 { min-height: 48px; margin: 7px 0; font-size: 17px; line-height: 1.25; }
.product-card__body > div { padding-top: 13px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 12px; }
.product-card__body a { color: var(--orange-dark); font-weight: 800; }
.newsletter-band { padding-block: 72px; color: #fff; background: linear-gradient(110deg, #d96800, #ff8a00 53%, #ffb000); }
.newsletter-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.newsletter-band h2 { margin-bottom: 7px; font-size: 40px; letter-spacing: -.04em; }
.newsletter-band p { margin-bottom: 0; color: #211300; }
.newsletter-band .eyebrow { color: #211300; }

.site-footer { padding-top: 70px; color: #c6c6ca; background: #070708; }
.footer-grid { padding-bottom: 55px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; }
.footer-grid p { max-width: 330px; color: #89898f; font-size: 13px; }
.footer-grid h2 { margin: 2px 0 18px; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a { display: block; margin: 9px 0; font-size: 13px; }
.wordmark--footer { display: inline-block; margin-bottom: 20px; font-size: 28px; }
.footer-bottom { padding-block: 20px; display: flex; justify-content: space-between; border-top: 1px solid #29292c; color: #74747a; font-size: 11px; }

.story { padding-top: 86px; }
.story-header { text-align: center; }
.story-header h1 { margin: 24px auto 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.story-standfirst { max-width: 760px; margin: auto; color: var(--muted); font-size: 20px; }
.story-byline { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 11px; text-align: left; }
.story-byline div { display: flex; flex-direction: column; font-size: 12px; }
.story-byline span { color: var(--muted); }
.story-hero { margin-top: 55px; height: min(680px, 62vw); overflow: hidden; border-radius: 16px; background: var(--soft); }
.story-hero img { width: 100%; height: 100%; object-fit: contain; }
.story-layout { display: grid; grid-template-columns: 120px minmax(0, 760px) 120px; justify-content: center; gap: 30px; padding-block: 66px; }
.story-share { padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.story-share a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; }
.story-body { grid-column: 2; font-size: 18px; line-height: 1.82; }
.story-body h2 { margin: 48px 0 14px; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
.story-body h3 { margin-top: 35px; font-size: 25px; }
.story-body p { margin-bottom: 24px; }
.story-body blockquote { margin: 40px 0; padding: 23px 30px; border-left: 4px solid var(--orange); background: var(--soft); font-size: 22px; font-weight: 700; }
.story-body a { color: var(--orange-dark); text-decoration: underline; }
.linked-products { border-top: 1px solid var(--line); }
.product-grid--article { grid-template-columns: repeat(2, minmax(0, 360px)); }
.related-stories { border-top: 1px solid var(--line); }
.category-header { padding-block: 92px; color: #fff; background: linear-gradient(120deg, #0a0a0c, color-mix(in srgb, var(--category) 35%, #0a0a0c)); }
.category-header h1 { margin-bottom: 12px; font-size: 62px; letter-spacing: -.05em; }
.category-header p { max-width: 650px; color: #d3d3d6; font-size: 18px; }
.preference-wrap { padding-block: 85px; }
.preference-wrap > header { margin-bottom: 35px; text-align: center; }
.preference-wrap h1 { margin-bottom: 10px; font-size: 48px; letter-spacing: -.04em; }
.preference-wrap header p { color: var(--muted); }
.preference-card, .unsubscribe-box, .preference-status { margin-bottom: 22px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.preference-card fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.preference-card legend { font-size: 24px; font-weight: 800; }
.preference-card fieldset > p { color: var(--muted); font-size: 13px; }
.interest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interest-list label, .resubscribe { padding: 15px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.interest-list label:has(input:checked) { border-color: var(--orange); background: #fff7eb; }
.interest-list input, .resubscribe input { margin-top: 4px; accent-color: var(--orange); }
.interest-list span { display: flex; flex-direction: column; }
.interest-list small { color: var(--muted); }
.resubscribe { margin-bottom: 22px; background: var(--soft); }
.unsubscribe-box { display: flex; justify-content: space-between; align-items: center; box-shadow: none; }
.unsubscribe-box p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.preference-status--off { border-color: #edc8c9; background: #fff5f5; box-shadow: none; }
.error-page { min-height: 650px; padding-block: 130px; text-align: center; }
.error-page > span { color: var(--orange); font-size: 120px; font-weight: 900; line-height: 1; }
.error-page h1 { margin: 20px 0 10px; font-size: 42px; }
.error-page p { color: var(--muted); }

/* Authentication */
.auth-site { min-height: 100vh; color: #fff; background: radial-gradient(circle at 20% 20%, rgba(255,138,0,.2), transparent 30%), radial-gradient(circle at 80% 70%, rgba(108,99,255,.16), transparent 30%), #08080a; }
.auth-wrap { min-height: 100vh; padding: 45px 20px; display: grid; place-items: center; }
.login-card { width: min(480px, 100%); padding: 42px; border: 1px solid #2b2b30; border-radius: 18px; background: rgba(16,16,19,.94); box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.login-brand { margin-bottom: 42px; }
.login-heading h1 { margin-bottom: 6px; font-size: 42px; letter-spacing: -.04em; }
.login-heading p { color: #9999a2; }
.stack-form { display: grid; gap: 17px; }
.stack-form label { display: grid; gap: 7px; color: #d6d6d8; font-size: 12px; font-weight: 750; }
.stack-form input { width: 100%; padding: 13px 14px; color: #fff; border: 1px solid #37373d; border-radius: 8px; outline: none; background: #101013; }
.stack-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,.12); }
.demo-logins { margin-top: 25px; padding-top: 22px; border-top: 1px solid #2b2b30; }
.demo-logins > span { display: block; margin-bottom: 10px; color: #a9a9af; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-logins > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.demo-logins button { width: 100%; min-height: 42px; padding: 6px; color: #ddd; border: 1px solid #37373d; border-radius: 6px; background: transparent; font-size: 10px; font-weight: 750; }
.demo-logins button:hover { color: #111; border-color: var(--orange); background: var(--orange); }
.demo-logins small { display: block; margin-top: 10px; color: #73737a; }
.login-card > .back-link { display: block; margin-top: 24px; text-align: center; }

/* Administration */
.admin-site { min-height: 100vh; background: #f3f4f6; }
.admin-sidebar { width: 255px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; color: #fff; background: #09090b; }
.admin-brand { padding: 29px 25px 26px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #252529; }
.admin-brand .wordmark { font-size: 23px; }
.admin-brand small { color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .38em; }
.admin-nav { padding: 20px 13px; flex: 1; }
.admin-nav a { margin: 3px 0; padding: 11px 13px; display: flex; align-items: center; gap: 12px; border-radius: 7px; color: #a9a9af; font-size: 13px; font-weight: 680; }
.admin-nav a span { width: 20px; color: #7a7a80; text-align: center; font-size: 17px; }
.admin-nav a:hover { color: #fff; background: #17171a; }
.admin-nav a.active { color: #111; background: var(--orange); }
.admin-nav a.active span { color: #111; }
.admin-nav__label { margin: 25px 13px 8px; color: #606068; font-size: 9px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.sidebar-user { margin: 15px; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #2b2b30; border-radius: 9px; background: #121215; }
.sidebar-user div { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sidebar-user small { color: #888891; font-size: 10px; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #111; border-radius: 50%; background: var(--orange); font-size: 11px; font-weight: 850; }
.avatar--dark { color: #fff; background: var(--ink); }
.avatar--small { width: 29px; height: 29px; font-size: 9px; }
.admin-shell { min-height: 100vh; margin-left: 255px; }
.admin-topbar { height: 76px; padding: 0 30px; position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.admin-topbar > div:first-of-type { display: flex; flex-direction: column; }
.admin-topbar .eyebrow { margin: 0; font-size: 8px; }
.admin-topbar strong { font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-actions form { margin: 0; }
.sidebar-toggle { display: none; border: 0; background: transparent; font-size: 21px; }
.admin-main { padding: 32px; }
.page-heading { margin-bottom: 27px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.page-heading h1 { margin: 0; font-size: 35px; line-height: 1.1; letter-spacing: -.045em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-heading--editor { align-items: center; }
.page-heading--editor .back-link { display: block; margin-bottom: 7px; }
.heading-actions { display: flex; gap: 9px; }
.flash { margin-block: 18px; padding: 13px 16px; border-radius: 8px; font-size: 13px; font-weight: 750; }
.site-header + .flash { position: relative; z-index: 5; }
.flash--success { color: #075838; border: 1px solid #a4ddc5; background: #eafaf4; }
.flash--error { color: #8e2529; border: 1px solid #eab9bb; background: #fff1f2; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 3px 14px rgba(20,23,30,.03); }
.panel-heading { padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.panel-heading > a { color: var(--orange-dark); font-size: 11px; font-weight: 850; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.page-actions form { margin: 0; }
.feed-status-panel { margin-bottom: 24px; overflow: hidden; }
.feed-health-summary { padding: 22px; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(190px,1fr) minmax(260px,1.8fr); gap: 20px; }
.feed-health-summary > div { display: grid; align-content: start; gap: 4px; }
.feed-health-summary span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feed-health-summary strong { font-size: 15px; }
.feed-health-summary small { color: var(--muted); font-size: 10px; }
.feed-health-message { padding-left: 20px; border-left: 1px solid var(--line); }
.feed-health-message p { margin: 3px 0 0; color: #4f535b; font-size: 11px; line-height: 1.6; }
.log-message { max-width: 330px; display: block; overflow: hidden; color: #4f535b; text-overflow: ellipsis; white-space: nowrap; }
.import-history { margin-top: 24px; overflow: hidden; }
.import-history summary { padding: 18px 22px; cursor: pointer; font-size: 12px; font-weight: 800; }
.import-history[open] summary { border-bottom: 1px solid var(--line); }
.validation-errors { margin: 24px 0; overflow: hidden; }
.validation-errors__legacy { margin: 22px; }
.metric-grid { margin-bottom: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-grid--three { grid-template-columns: repeat(3, 1fr); }
.metric-grid--four { grid-template-columns: repeat(4, 1fr); }
.metric-grid--five { grid-template-columns: repeat(5, 1fr); }
.metric-card { min-height: 105px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.metric-card > div { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.metric-card strong { font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.metric-card span:not(.metric-icon) { margin-top: 4px; color: var(--muted); font-size: 11px; }
.metric-card > small { color: var(--orange-dark); font-size: 9px; font-weight: 800; }
.metric-card--compact { min-height: 85px; }
.metric-icon { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; font-size: 20px; }
.metric-icon--orange { color: #a54f00; background: #fff0db; }
.metric-icon--purple { color: #5248dc; background: #efedff; }
.metric-icon--blue { color: #0874cc; background: #e4f3ff; }
.metric-icon--green { color: #087b4d; background: #e5f8f0; }
.dashboard-grid { display: grid; grid-template-columns: 2.1fr 1fr; gap: 20px; }
.dashboard-grid--lower { margin-top: 20px; grid-template-columns: 1fr 1fr; }
.workflow-list > a { min-height: 66px; padding: 12px 20px; display: grid; grid-template-columns: auto 1fr auto 125px; align-items: center; gap: 13px; border-bottom: 1px solid #eeeef0; }
.workflow-list > a:last-child { border-bottom: 0; }
.workflow-list strong, .campaign-mini-list strong { display: block; font-size: 12px; }
.workflow-list small, .campaign-mini-list small { display: block; color: var(--muted); font-size: 10px; }
.workflow-list time { color: var(--muted); font-size: 10px; text-align: right; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: #a1a4aa; }
.status-dot--in_review { background: var(--purple); box-shadow: 0 0 0 4px #efedff; }
.status-dot--changes_requested { background: var(--red); }
.status-dot--approved, .status-dot--published { background: var(--green); }
.status-dot--scheduled { background: var(--blue); }
.status-dot--draft { background: #a1a4aa; }
.status-badge, .role-badge { padding: 5px 8px; display: inline-flex; align-items: center; border-radius: 999px; color: #555961; background: #eff0f2; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-badge--in_review { color: #4b43b7; background: #eeecff; }
.status-badge--changes_requested, .status-badge--complained { color: #a1282d; background: #ffebec; }
.status-badge--approved, .status-badge--published, .status-badge--subscribed, .status-badge--completed { color: #087348; background: #e6f8f0; }
.status-badge--unchanged { color: #0969b7; background: #e5f3ff; }
.status-badge--running { color: #985000; background: #fff0db; }
.status-badge--failed { color: #a1282d; background: #ffebec; }
.status-badge--scheduled, .status-badge--sending { color: #0969b7; background: #e5f3ff; }
.status-badge--unsubscribed, .status-badge--cleaned, .status-badge--cancelled, .status-badge--archived { color: #6b6e74; background: #ebeced; }
.import-health { padding-bottom: 20px; text-align: center; }
.health-ring { width: 76px; height: 76px; margin: 24px auto 13px; display: grid; place-items: center; color: var(--green); border: 7px solid #dff5ec; border-radius: 50%; font-size: 27px; }
.import-health h3 { margin-bottom: 5px; font-size: 17px; }
.import-health > p { padding: 0 25px; color: var(--muted); font-size: 11px; }
.import-health dl { margin: 18px 20px; }
.import-health dl div { padding: 7px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 10px; }
.import-health dt { color: var(--muted); }
.import-health dd { margin: 0; font-weight: 750; }
.import-health > .button { width: calc(100% - 40px); margin-inline: 20px; }
.campaign-mini-list a { padding: 14px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.campaign-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #fff0db; }
.activity-list { padding: 9px 20px; }
.activity-list > div { padding: 10px 0; display: flex; gap: 10px; border-bottom: 1px solid var(--line); }
.activity-list > div:last-child { border-bottom: 0; }
.activity-list p { margin: 0; font-size: 11px; }
.activity-list small { display: block; color: var(--muted); }
.empty-state { padding: 70px 25px; text-align: center; }
.empty-state > span { color: var(--orange); font-size: 40px; }
.empty-state h2, .empty-state h3 { margin: 10px 0 3px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state--compact { padding: 28px 20px; }
.empty-state--compact > span { font-size: 25px; }
.empty-state--compact h3 { font-size: 14px; }

.filter-bar { margin-bottom: 16px; padding: 11px; display: flex; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-bar select { min-width: 170px; padding: 8px 11px; border: 1px solid #dfe1e4; border-radius: 7px; background: #fff; font-size: 12px; }
.search-field { min-height: 38px; display: flex; align-items: center; flex: 1; border: 1px solid #dfe1e4; border-radius: 7px; background: #fff; }
.search-field span { padding-left: 11px; color: #999ca3; }
.search-field input { width: 100%; padding: 8px 10px; border: 0; outline: none; background: transparent; font-size: 12px; }
.search-field--wide { max-width: 650px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
thead th { padding: 11px 16px; color: #757981; background: #f8f8f9; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
tbody td { padding: 13px 16px; border-top: 1px solid #ececee; vertical-align: middle; }
tbody tr:hover { background: #fcfcfd; }
.title-cell { min-width: 260px; display: flex; align-items: center; gap: 11px; }
.title-cell > div { min-width: 0; }
.title-cell strong { display: block; }
.title-cell small, .cell-subtext { display: block; color: var(--muted); font-size: 9px; }
.table-thumb { width: 48px; height: 37px; flex: 0 0 auto; border-radius: 5px; background: #222 var(--thumb) center/cover no-repeat; }
.table-product-image { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; border-radius: 6px; background: var(--soft); }
.table-action { color: var(--orange-dark); font-size: 10px; font-weight: 850; white-space: nowrap; }
.table-actions { display: flex; align-items: center; gap: 12px; }
.admin-interest-list { margin-top: 5px; }
.truncate-cell { max-width: 240px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-value { font-weight: 850; }
.in-stock { color: var(--green); }
.out-stock { color: var(--red); }
.tiny-warning { margin-left: 4px; padding: 2px 4px; color: #8a5000; border-radius: 3px; background: #fff1d6; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.pagination { padding: 13px 17px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination div { display: flex; gap: 15px; }
.pagination a { color: var(--orange-dark); font-weight: 800; }
code { padding: 3px 5px; border-radius: 4px; background: #f0f1f3; font-size: 10px; }

.workflow-strip { margin-bottom: 17px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.workflow-strip > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 10px; }
.workflow-strip small { grid-column: 2; color: var(--muted); font-size: 10px; }
.workflow-lock { margin-bottom: 17px; }
.workflow-history em { margin-top: 3px; color: #555961; font-size: 10px; }
.editor-layout[inert] { opacity: .72; }
.workflow-actions { display: flex; gap: 7px; }
.workflow-actions form { margin: 0; }
.editor-layout, .campaign-editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.editor-main { display: grid; gap: 18px; }
.editor-side { display: grid; gap: 18px; position: sticky; top: 93px; }
.form-panel { padding: 22px; }
.form-panel > h2 { margin-bottom: 17px; font-size: 15px; }
.form-panel .panel-heading { margin: -22px -22px 20px; }
.field { margin-bottom: 19px; display: grid; gap: 7px; color: #42454c; font-size: 11px; font-weight: 750; }
.field:last-child { margin-bottom: 0; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid #dfe1e4; border-radius: 7px; outline: none; background: #fff; font-size: 12px; font-weight: 450; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,.1); }
.field small, .field-help, .form-panel > small { color: var(--muted); font-size: 9px; font-weight: 450; }
.field--title input { padding: 13px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.field--title small { text-align: right; }
.input-prefix { display: flex; align-items: center; overflow: hidden; border: 1px solid #dfe1e4; border-radius: 7px; }
.input-prefix span { padding-left: 10px; color: var(--muted); font-size: 10px; font-weight: 500; }
.input-prefix input { border: 0; box-shadow: none !important; }
.editor-toolbar { min-height: 38px; padding: 5px 7px; display: flex; align-items: center; gap: 4px; border: 1px solid #dfe1e4; border-bottom: 0; border-radius: 7px 7px 0 0; background: #f7f8f9; }
.editor-toolbar button { min-width: 29px; height: 27px; border: 1px solid #dddfe3; border-radius: 4px; background: #fff; font-size: 10px; }
.editor-toolbar span { margin-left: auto; color: var(--muted); font-size: 8px; font-weight: 600; }
.code-editor { border-radius: 0 0 7px 7px !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 11px !important; line-height: 1.6; resize: vertical; }
.check-field { padding: 11px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.check-field input { margin-top: 4px; accent-color: var(--orange); }
.check-field span { display: flex; flex-direction: column; font-size: 10px; }
.check-field small { color: var(--muted); }
.image-preview { aspect-ratio: 16/10; display: grid; place-items: end start; overflow: hidden; border: 1px dashed #cfd1d5; border-radius: 8px; background: #f3f4f5 var(--preview) center/contain no-repeat; }
.image-preview span { margin: 8px; padding: 3px 6px; color: #fff; border-radius: 4px; background: rgba(0,0,0,.65); font-size: 8px; }
.media-field-actions { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.media-card { min-width: 0; overflow: hidden; }
.media-card__preview { aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: #eceef1; }
.media-card__preview img { width: 100%; height: 100%; object-fit: contain; }
.media-card__body { padding: 17px; }
.media-card__body > strong, .media-card__body > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card__body > strong { font-size: 12px; }
.media-card__body > small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.media-card__badges { margin: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.media-card .field { margin-bottom: 9px; }
.media-picker { width: min(920px, calc(100% - 30px)); }
.media-picker__inner { padding: 23px; }
.media-picker__grid { max-height: 65vh; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; overflow-y: auto; }
.media-picker__grid button { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.media-picker__grid button:hover { border-color: var(--orange); }
.media-picker__grid img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: var(--soft); }
.media-picker__grid span { margin-top: 6px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.product-search { margin-bottom: 8px; }
.product-search-results { max-height: 270px; overflow-y: auto; border-radius: 7px; }
.product-search-result, .selected-product { padding: 8px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.product-search-result + .product-search-result, .selected-product + .selected-product { margin-top: 6px; }
.product-search-result:hover { border-color: var(--orange); }
.product-search-result img, .selected-product img { width: 44px; height: 44px; object-fit: contain; border-radius: 5px; background: var(--soft); }
.product-search-result span, .selected-product span { min-width: 0; display: flex; flex-direction: column; }
.product-search-result strong, .selected-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.product-search-result small, .selected-product small { color: var(--muted); font-size: 8px; }
.product-search-result button, .selected-product button { width: 27px; height: 27px; border: 0; border-radius: 50%; background: #f1f2f4; font-weight: 850; }
.selected-products { margin-top: 11px; }
.selected-product input { display: none; }
.placeholder-copy { color: var(--muted); font-size: 10px; text-align: center; }
.revision-list > div { padding: 10px 0; display: flex; gap: 10px; border-bottom: 1px solid var(--line); }
.revision-list p { margin: 0; display: flex; flex-direction: column; font-size: 10px; }
.revision-list span, .revision-list small { color: var(--muted); }

.modal { width: min(570px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 25px 100px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(5,5,7,.7); backdrop-filter: blur(3px); }
.modal > form { padding: 23px; }
.modal-heading { margin: -23px -23px 22px; padding: 20px 23px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-heading h2 { margin: 0; font-size: 21px; }
.modal-heading button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--soft); font-size: 19px; }
.modal-actions { padding-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.warning-box, .demo-notice { padding: 14px; border: 1px solid #f0d2a4; border-radius: 8px; background: #fff8eb; }
.warning-box p, .demo-notice p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.file-drop { margin-top: 17px; min-height: 130px; padding: 25px; display: grid; place-items: center; align-content: center; border: 2px dashed #d8dade; border-radius: 9px; text-align: center; cursor: pointer; }
.file-drop input { max-width: 100%; }
.file-drop span { margin-top: 9px; font-size: 12px; font-weight: 800; }
.file-drop small { color: var(--muted); }
.demo-badge { padding: 6px 9px; color: #6c4a00; border: 1px solid #f0d2a4; border-radius: 999px; background: #fff8eb; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.demo-notice { margin-bottom: 18px; display: flex; align-items: center; gap: 13px; }
.demo-notice > span { font-size: 22px; }
.demo-notice strong { font-size: 12px; }
.audience-estimate { margin: 12px 0; padding: 14px; display: flex; flex-direction: column; border-radius: 8px; background: var(--soft); }
.audience-estimate strong { font-size: 27px; }
.audience-estimate span { color: var(--muted); font-size: 9px; }
.audience-proof { margin: -5px 0 12px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.audience-proof span { color: var(--muted); }
.campaign-readiness { margin-bottom: 18px; }
.campaign-readiness ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; }
.review-note { margin-bottom: 18px; padding: 15px 18px; border-left: 4px solid var(--orange); border-radius: 7px; background: #fff8eb; }
.review-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { margin: 8px 0; padding-left: 21px; position: relative; color: var(--muted); font-size: 10px; }
.check-list li::before { content: "○"; position: absolute; left: 0; }
.check-list li.done { color: #176d4b; }
.check-list li.done::before { content: "✓"; font-weight: 900; }
.campaign-editor { margin-bottom: 18px; }
.email-preview-panel { padding-bottom: 28px; }
.email-preview { width: min(660px, calc(100% - 40px)); margin: 28px auto 0; border: 1px solid #dfe1e4; background: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.08); }
.email-preview__inbox { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; color: #24262a; border-bottom: 1px solid #dfe1e4; background: #f6f7f8; }
.email-preview__inbox strong { font-size: 11px; }
.email-preview__inbox span { overflow: hidden; color: #777c84; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.email-preview__header { padding: 24px; display: flex; align-items: baseline; justify-content: space-between; color: #fff; background: #000; }
.email-preview__header span { font-size: 25px; font-weight: 780; letter-spacing: .18em; }
.email-preview__header small { color: var(--orange); font-weight: 850; letter-spacing: .18em; }
.email-preview__body { padding: 42px; }
.email-preview__article img { width: 100%; max-height: 320px; display: block; object-fit: cover; }
.email-preview__article > div { padding: 34px 42px 0; }
.email-preview__article h2 { margin: 7px 0 9px; font-size: 30px; line-height: 1.08; letter-spacing: -.035em; }
.email-preview__article p { margin: 0; color: #555a62; font-size: 13px; line-height: 1.55; }
.email-preview__body h2 { font-size: 34px; line-height: 1.08; letter-spacing: -.04em; }
.email-preview__body p { color: #555a62; font-size: 14px; }
.email-preview__body > a { margin-top: 15px; padding: 11px 17px; display: inline-block; color: #111; border-radius: 5px; background: var(--orange); font-size: 11px; font-weight: 850; }
.email-preview__footer { padding: 22px; color: #858990; background: #f2f3f4; font-size: 9px; text-align: center; }
.campaign-history { margin-top: 18px; }
.delivery-safety { margin-bottom: 18px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid; border-radius: 10px; }
.delivery-safety p { margin: 4px 0 0; font-size: 10px; }
.delivery-safety--paused { color: #6c4a00; border-color: #f0d2a4; background: #fff8eb; }
.delivery-safety--live { color: #176d4b; border-color: #a8dfc8; background: #e9f9f2; }
.delivery-grid { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.config-list { margin: 0; }
.config-list > div { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.config-list > div:last-child { border-bottom: 0; }
.config-list dt { color: var(--muted); font-size: 10px; }
.config-list dd { margin: 0; font-size: 10px; font-weight: 750; text-align: right; }
.dns-checks { display: grid; gap: 10px; }
.dns-checks > div { padding: 13px 15px; display: flex; justify-content: space-between; border-radius: 8px; font-size: 10px; }
.dns-checks .done { color: #176d4b; background: #e9f9f2; }
.dns-checks .attention { color: #8a5200; background: #fff4df; }
.delivery-cron { margin-top: 18px; }
.delivery-cron code { margin: 10px 0; padding: 10px 12px; display: block; overflow-wrap: anywhere; color: #fff; border-radius: 6px; background: #111; font-size: 10px; }
.role-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card { padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.role-card h2 { margin: 17px 0 7px; font-size: 17px; }
.role-card p { color: var(--muted); font-size: 11px; }
.role-badge--owner { color: #985000; background: #fff0db; }
.role-badge--editor { color: #4d45bd; background: #eeecff; }
.role-badge--creator { color: #176d4b; background: #e6f8f0; }

@media (max-width: 1180px) {
    .site-nav { gap: 13px; }
    .site-nav a { font-size: 9px; }
    .wordmark { font-size: 28px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-grid--five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .site-header__inner { min-height: 78px; }
    .menu-toggle { display: block; }
    .site-nav { padding: 18px 24px; position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; background: #000; border-top: 1px solid #262629; }
    .site-nav.open { display: flex; }
    .header-actions { display: none; }
    .news-hero { min-height: 560px; }
    .intro-band { grid-template-columns: 1fr; gap: 25px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-tile:nth-child(3n) { border-right: 1px solid #27272b; }
    .category-tile:nth-child(2n) { border-right: 0; }
    .category-tile:nth-last-child(-n+3) { border-bottom: 1px solid #27272b; }
    .category-tile:nth-last-child(-n+2) { border-bottom: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .story-layout { grid-template-columns: 1fr; }
    .story-share { padding: 0; flex-direction: row; }
    .story-body { grid-column: 1; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-shell { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .admin-topbar { justify-content: flex-start; gap: 18px; }
    .topbar-actions { margin-left: auto; }
    .dashboard-grid, .dashboard-grid--lower { grid-template-columns: 1fr; }
    .editor-layout, .campaign-editor { grid-template-columns: 1fr; }
    .editor-side { position: static; grid-template-columns: repeat(2, 1fr); }
    .role-grid { grid-template-columns: 1fr; }
    .delivery-grid { grid-template-columns: 1fr; }
    .feed-health-summary { grid-template-columns: 1fr 1fr; }
    .feed-health-message { padding: 16px 0 0; grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-picker__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .shell, .shell--reading, .shell--narrow { width: min(100% - 28px, 1240px); }
    .section { padding-block: 55px; }
    .news-hero__content { padding-block: 62px; }
    .news-hero__content h1 { font-size: 43px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .intro-band h2 { font-size: 37px; }
    .article-grid, .category-grid, .product-grid, .interest-list { grid-template-columns: 1fr; }
    .category-tile { border-right: 0 !important; border-bottom: 1px solid #27272b !important; }
    .category-tile:last-child { border-bottom: 0 !important; }
    .newsletter-band__inner, .unsubscribe-box { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .story { padding-top: 55px; }
    .story-header h1 { font-size: 43px; }
    .story-hero { width: 100%; height: 70vw; border-radius: 0; }
    .story-body { font-size: 16px; }
    .story-body h2 { font-size: 28px; }
    .preference-wrap h1, .category-header h1 { font-size: 41px; }
    .login-card { padding: 28px 22px; }
    .demo-logins > div { grid-template-columns: 1fr; }
    .admin-main { padding: 20px 14px; }
    .admin-topbar { padding: 0 14px; }
    .admin-topbar > div:first-of-type, .topbar-actions .button--ghost { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .page-actions form, .page-actions .button { width: 100%; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .metric-grid, .metric-grid--three, .metric-grid--four, .metric-grid--five { grid-template-columns: 1fr 1fr; }
    .metric-card { min-height: 85px; }
    .metric-card > small { display: none; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar select { width: 100%; }
    .workflow-strip { align-items: flex-start; flex-direction: column; }
    .workflow-actions { width: 100%; flex-wrap: wrap; }
    .editor-side { grid-template-columns: 1fr; }
    .editor-toolbar span { display: none; }
    .email-preview { width: calc(100% - 20px); }
    .email-preview__body { padding: 26px 20px; }
    .email-preview__body h2 { font-size: 28px; }
    .feed-health-summary { grid-template-columns: 1fr; }
    .feed-health-message { grid-column: auto; }
    .media-grid { grid-template-columns: 1fr; }
    .media-picker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
