/* GEM Creators – brand styles (see GEM Brand Guide) */
:root {
  --emerald: #1F6F5C;
  --forest: #1F4E43;
  --jade: #3FA587;
  --sage: #BFD8C5;
  --cream: #FBF6EC;
  --sand: #F3E6CC;
  --gold: #C9A24A;
  --gold-deep: #806424;
  --muted: #4F5F59;
  --white: #ffffff;
  --danger: #A8402E;
  --ok: #2E7D5B;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 78, 67, .06), 0 6px 24px rgba(31, 78, 67, .08);
  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { overflow-wrap: anywhere; margin: 0; font-family: var(--sans); color: var(--forest); background: var(--cream); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--emerald); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
@media (max-width: 760px) {
  /* Breathing room on phones, including curved-edge screens and landscape notches */
  .wrap { padding-left: max(22px, calc(env(safe-area-inset-left) + 14px)); padding-right: max(22px, calc(env(safe-area-inset-right) + 14px)); }
  .panel { padding-left: 18px; padding-right: 18px; }
}
.narrow { max-width: 720px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px 6px; flex-wrap: wrap; }
.nav a.link { text-decoration: none; color: var(--forest); padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a.link:hover, .nav a.link.active { background: var(--sand); }
/* View switcher (Creator | Admin | Buyer): separate from the page menu */
.top .brand { margin-right: 4px; }
.switcher { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: auto; padding: 3px; gap: 2px; border-radius: 999px; background: var(--white); border: 1px solid var(--sand); box-shadow: 0 1px 2px rgba(31,78,67,.06); }
.switcher a, .switcher span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--forest); white-space: nowrap; }
.switcher a:hover { background: var(--sand); }
.switcher .on { background: var(--forest); color: var(--white); }
.switcher svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .switcher a, .switcher span { padding: 6px 10px; font-size: .8rem; }
  .switcher svg { display: none; }
}
@media (min-width: 761px) {
  /* With a view switcher the header gets two rows: logo + switcher, then the page menu */
  body.has-switcher .top .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 10px; padding-bottom: 4px; }
  body.has-switcher .top .nav { order: 3; flex: 1 0 100%; justify-content: flex-start; margin: 4px 0 0 -10px; }
  body.has-switcher .top .nav a.link { padding: 8px 8px; font-size: .9rem; }
  body.has-switcher .top .wrap { position: relative; }
  body.has-switcher .top .nav .btn { position: absolute; top: 12px; right: max(16px, env(safe-area-inset-right)); } /* Sign out sits on the first row */
}
@media (max-width: 420px) {
  .top .brand.has-switcher span { display: none; } /* keep the logo, drop the name, so the switcher fits */
}
/* Mobile: hamburger drawer (all pages with a menu) */
.menu-btn { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 760px) {
  .top { position: sticky; top: 0; z-index: 30; background: var(--cream); backdrop-filter: none; } /* backdrop-filter would trap the fixed drawer inside the header */
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--forest); cursor: pointer; }
  .menu-btn:active { background: var(--sand); }
  .menu-btn svg { width: 26px; height: 26px; }
  .has-drawer .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); z-index: 50; background: var(--white);
    flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 2px;
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); box-shadow: -8px 0 30px rgba(31,78,67,.18);
    overflow-y: auto; display: none; }
  .has-drawer .nav.open { display: flex; animation: drawer-in .22s ease; }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
  .has-drawer .nav a.link { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .has-drawer .nav .btn { margin-top: 12px; padding: 12px; font-size: 1rem; }
  .nav-backdrop.open { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(31,78,67,.35); }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--sand); font-family: var(--serif); font-weight: 700; color: var(--forest); }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .top { z-index: 60; }
}
@media (min-width: 761px) { .drawer-head { display: none; } }

/* Mobile: native-style bottom tab bar (creator app) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar:not(.hidden) { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--sand);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border: 0; background: none;
    color: var(--muted); font: 500 .7rem var(--sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar .active { color: var(--emerald); }
  .tabbar .up { color: var(--white); }
  .tabbar .up span.ico { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; background: var(--emerald); box-shadow: 0 4px 14px rgba(31,111,92,.4); }
  .tabbar .up span.lbl { color: var(--forest); }
  body.has-tabbar .app-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.has-tabbar .top .menu-open { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 1rem var(--sans); border-radius: 999px; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--forest); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--sand); }
.btn-google { background: var(--white); color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f8f9fa; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; }
@media (max-width: 820px) { .hero .grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 360px; margin: 0 auto; } }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--white); }
.eyebrow { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--emerald); margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
section.alt .card { background: var(--cream); box-shadow: none; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--emerald); color: var(--white); font-weight: 600; margin-bottom: 10px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231F4E43' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cross li::before { background: #F4D8D1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23A8402E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.note { background: var(--sand); border-radius: var(--radius); padding: 16px 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
details { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 500; }
details[open] summary { margin-bottom: 8px; }
.big-stat { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--emerald); line-height: 1; }

footer { padding: 32px 0; border-top: 1px solid var(--sand); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Forms */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 500; margin-bottom: 4px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], input[type=number], input[type=url], textarea, select {
  width: 100%; font: 400 1rem var(--sans); color: var(--forest); background: var(--white); border: 1.5px solid #d9cfb9; border-radius: 10px; padding: 11px 12px;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(63, 165, 135, .35); border-color: var(--jade); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
.checkline input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--emerald); flex: none; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.error { background: #F8E3DE; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.success { background: #DDEFE5; color: var(--ok); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.panel { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--sand); }
.tabs { display: flex; gap: 6px; background: var(--sand); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font: 500 .95rem var(--sans); color: var(--forest); cursor: pointer; }
.tabs button.on { background: var(--white); box-shadow: var(--shadow); }

/* App */
.app-main { padding-top: 28px; padding-bottom: 60px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: .85rem; color: var(--muted); }
.stat .value { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--forest); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--sand); vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-size: .85rem; background: var(--cream); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--sand); color: var(--forest); white-space: nowrap; }
.pill.submitted, .pill.in_review { background: #FBEFCB; color: #6B5313; }
.pill.approved { background: #DCEAF6; color: #234E74; }
.pill.published { background: #D7EEE3; color: #1C5B44; }
.pill.rejected { background: #F6DDD7; color: #8A3524; }
.pill.uploading { background: #ECE7DC; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgba(63,165,135,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,165,135,.6); } 70% { box-shadow: 0 0 0 8px rgba(63,165,135,0); } 100% { box-shadow: 0 0 0 0 rgba(63,165,135,0); } }
.progress { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--jade); width: 0; transition: width .2s; }
.file-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--sand); align-items: center; }
.file-row:last-child { border-bottom: 0; }
.dropzone { border: 2px dashed var(--sage); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--cream); cursor: pointer; }
.dropzone.drag { border-color: var(--jade); background: #EEF6F0; }
.chart { width: 100%; height: 180px; display: block; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hidden { display: none !important; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); object-fit: cover; }
dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(640px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(31, 78, 67, .35); }
dialog .panel { box-shadow: none; border: 0; }
.legal h2 { margin-top: 1.6em; font-size: 1.35rem; }
.legal table { margin-bottom: 1em; }

/* Reporting */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.chips button { border: 1px solid var(--sand); background: var(--white); color: var(--forest); padding: 6px 12px; border-radius: 999px; font: 500 .85rem var(--sans); cursor: pointer; }
.chips button.on { background: var(--forest); border-color: var(--forest); color: var(--white); }
.trend { font-size: .82rem; font-weight: 500; white-space: nowrap; }
.trend.up { color: var(--ok); }
.trend.down { color: var(--danger); }
.trend.steady, .trend.new { color: var(--muted); }
.pill.top { background: #D7EEE3; color: #1C5B44; }
.pill.on_track { background: #DCEAF6; color: #234E74; }
.pill.needs_attention { background: #F6DDD7; color: #8A3524; }
.pill.no_videos { background: #ECE7DC; color: var(--muted); }
.stat .sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat .progress { margin-top: 8px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
tr.me td { background: #F1F8F3; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); font-weight: 600; font-size: .85rem; margin-right: 8px; }
.rank.r1 { background: var(--gold); color: var(--white); }
.superstar { background: linear-gradient(135deg, var(--forest), var(--emerald)); color: var(--white); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.superstar .star { font-size: 2.4rem; line-height: 1; }
.superstar h3 { color: var(--white); margin: 0 0 4px; }
.superstar .muted, .superstar small { color: #DCEFE5; }
.lb-list { list-style: none; padding: 0; margin: 0; }
.lb-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sand); align-items: center; }
.lb-list li:last-child { border-bottom: 0; }
.lb-list li.me { background: #F1F8F3; margin: 0 -10px; padding: 10px; border-radius: 8px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--sand); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--white); font-weight: 400; }
.radio-cards label:has(input:checked) { border-color: var(--jade); background: #F1F8F3; }
.radio-cards input { margin-top: 4px; }

/* Statements */
.statement { background: var(--white); padding: 36px; border: 1px solid var(--sand); border-radius: var(--radius); }
.statement .head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.statement table { font-size: .9rem; }
.statement .summary td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.statement .summary tr.total td { font-weight: 600; border-top: 2px solid var(--forest); }
@media print {
  .top, .no-print, footer { display: none !important; }
  body { background: #fff; }
  .app-main { padding: 0; }
  .statement { border: 0; padding: 0; }
  .table-wrap { border: 0; overflow: visible; }
}
.table-wrap table { min-width: 600px; }
.table-wrap th, .table-wrap td { overflow-wrap: normal; }
.btn { white-space: nowrap; }
.contract .legal h1 { font-size: 1.6rem; }
@media print {
  .contract .note { background: #fff; border: 1px solid #ccc; }
  .contract h2 { break-after: avoid; }
  .contract .two { grid-template-columns: 1fr 1fr; }
}

/* Tier ladder */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; align-items: end; margin: 16px 0; }
.ladder .step { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.ladder .bar { display: flex; align-items: flex-start; justify-content: center; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--jade), var(--emerald)); color: #fff; padding-top: 10px; min-height: 60px; }
.ladder .step:last-child .bar { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.ladder .step.on .bar { outline: 3px solid var(--gold); outline-offset: 2px; }
.ladder .pct { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.ladder .lvl { font-weight: 600; font-size: .9rem; color: var(--forest); }
.ladder .rng { font-size: .75rem; color: var(--muted); overflow-wrap: normal; }
.ladder .lvl { overflow-wrap: normal; }
.ladder-wrap { height: 230px; }
@media (max-width: 560px) { .ladder { gap: 4px; } .ladder .pct { font-size: 1rem; } .ladder .lvl { font-size: .7rem; } .ladder .rng { font-size: .65rem; } }

/* Achievements */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.badge { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 12px; opacity: .75; }
.badge.done { opacity: 1; border-color: var(--jade); background: #F1F8F3; }
.badge .ico { font-size: 1.6rem; line-height: 1; filter: grayscale(1); }
.badge.done .ico { filter: none; }

/* Video earnings cards */
.vcards { display: grid; gap: 12px; }
.vcard { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 16px 18px; }
.vcard .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.vcard .figs div small { display: block; color: var(--muted); font-size: .78rem; }
.vcard .figs div strong { font-variant-numeric: tabular-nums; }
.warn { background: #FBEFCB; color: #5A4512; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .92rem; }
.level-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--forest); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 500; }

/* Quick upload */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pick label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 110px; border: 2px dashed var(--sage); border-radius: var(--radius); background: var(--cream); cursor: pointer; text-align: center; padding: 12px; font-weight: 500; }
.pick label .big { font-size: 2rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-chips label { border: 1px solid var(--sand); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: var(--white); font-weight: 400; }
.cat-chips label:has(input:checked) { background: var(--forest); color: #fff; border-color: var(--forest); }
.cat-chips input { position: absolute; opacity: 0; pointer-events: none; }
.idea .btn { margin-top: 4px; }
.hero-trust { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* Protected preview player */
.pplayer { position: relative; background: #000; border-radius: 10px; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pplayer video { display: block; width: 100%; max-height: 420px; background: #000; }
.pp-mark { position: absolute; pointer-events: none; color: rgba(255,255,255,.55); font: 600 13px var(--sans); text-shadow: 0 0 3px rgba(0,0,0,.8); transition: left 1.2s, top 1.2s; white-space: nowrap; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 10px 0; }
.spec div small { display: block; color: var(--muted); font-size: .78rem; }
.req-list { margin: 4px 0 8px; padding-left: 18px; }
.status-chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 500; background: var(--sand); }
.status-chip.approved { background: #DCEAF6; color: #234E74; }
.status-chip.paid { background: #FBEFCB; color: #6B5313; }
.status-chip.delivered { background: #D7EEE3; color: #1C5B44; }
.status-chip.declined { background: #F6DDD7; color: #8A3524; }
.form-section { border-top: 1px solid var(--sand); margin-top: 18px; padding-top: 14px; }
.form-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

/* Admin security review (rendered Markdown) */
.md h2 { font-size: 1.6rem; margin-top: 8px; }
.md h3 { font-size: 1.25rem; margin-top: 22px; }
.md h4 { font-size: 1.05rem; margin-top: 16px; }
.md code { background: var(--cream); border: 1px solid var(--sand); border-radius: 6px; padding: 0 5px; font-size: .9em; overflow-wrap: anywhere; }
.md-pre { background: var(--cream); border: 1px solid var(--sand); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: .85rem; }
.md-list { padding-left: 22px; margin: 0 0 1em; }
.md-list li { margin: 4px 0; }
.md-list li.task { list-style: none; margin-left: -22px; display: flex; gap: 10px; align-items: flex-start; }
.md-list .tick { flex: 0 0 18px; height: 18px; margin-top: 3px; border: 2px solid var(--sage); border-radius: 5px; display: inline-grid; place-items: center; font-size: .75rem; color: var(--white); }
.md-list .tick.done { background: var(--emerald); border-color: var(--emerald); }
.md table td, .md table th { vertical-align: top; }

/* Platform labels */
.plat { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.plat-youtube { background: #FDE2E0; color: #8E1B12; }
.plat-facebook { background: #DDE8FB; color: #1A4A9C; }
.plat-instagram { background: #F8DDEB; color: #8A1F5A; }
.plat-tiktok { background: #E3E3E3; color: #1F1F1F; }
.plat-pinterest { background: #FBE0E3; color: #9B0A1F; }
.plat-other { background: var(--sand); color: var(--forest); }
.imp-ok td:first-child { border-left: 3px solid var(--ok); }
.imp-bad td:first-child { border-left: 3px solid var(--danger); }

/* Read-only details (view first, edit on purpose) */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--sand); }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); flex: 0 0 40%; }
.kv strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { flex-direction: column; gap: 2px; } .kv span { flex: none; font-size: .85rem; } .kv strong { text-align: left; } }
