/* =========================================================
   The UGC Lab — ui.css  ·  site-wide reskin OVERRIDE + COMPONENT layer
   Loaded AFTER app.css on every shell page. Nothing here rewrites
   app.css — it only (1) overrides the shell chrome + shared
   components to the mockup look, and (2) defines the mockup's
   content-component library globally so every page reads as one
   coherent product: dark sidebar (#111b29), light canvas (#f4f7f8),
   white cards, lime accent (var(--violet) after the token remap),
   Inter, tight radii, borders over shadows.

   Token map used when porting the mockup's local vars:
     --ink   → var(--text)        --canvas → var(--bg)
     --muted → var(--text-mute)   --lime   → var(--violet)
     --line  → var(--border)      --lime2  → var(--violet-dark)
     --nav   → #111b29            --blue/--green/--orange/--red → var(--*)
   Mockup hardcoded literals (#edf0f2, #17202a, #f8fafb, #16815a,
   #edf7e8/#287047, #eef2f4, #83909b, #697783, …) are kept verbatim.
   ========================================================= */

/* =========================================================
   A. Base / body — flat light canvas, Inter everywhere
   ========================================================= */
body { background: var(--bg); background-image: none; }

/* Headings + display numerals use Inter (kill the Fraunces serif). */
h1, h2, h3,
.sidebar__brand, .sidebar__brand span, .sidebar__brand b,
.appbar__brand span, .dash-title, .dashx__label, .dashx__stat b,
.postsx__title, .heading h1 {
  font-family: var(--font) !important;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* =========================================================
   B. Sidebar → dark rail (mockup .nav look on the .sidebar__* classes)
   ========================================================= */
@media (min-width: 821px) {
  .layout.has-sidebar { grid-template-columns: 236px 1fr; }
}

.sidebar { background: #111b29 !important; padding: 16px 12px; }

.sidebar__label {
  color: #788697 !important;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar__item {
  color: #b8c3ce !important;
  border: 0 !important;
  border-radius: 8px;
  min-height: 40px;
  font-weight: 700;
}
.sidebar__item:hover { background: #1a2736 !important; color: #fff !important; }
.sidebar__item.is-active { background: #ffd84d !important; color: #0a0e13 !important; }
/* icons follow the text colour (the green-stroke Campaigns icon becomes readable) */
.sidebar__item svg { color: currentColor; }
.sidebar__item svg[stroke] { stroke: currentColor; }

/* shell.js-injected chrome (brand / create-post / profile card) on the dark rail */
.sidebar__brand { color: #fff !important; }
.sidebar__brand span { color: #fff !important; }
.sidebar__brand b, .appbar__brand .accent, .sidebar__brand .accent { color: var(--violet) !important; }

.sidebar__new {
  background: var(--violet) !important;
  background-image: none !important;
  color: #0a0e13 !important;
  border-radius: 8px !important;
}
.sidebar__new:hover { filter: brightness(1.03); }

.sidebar__prof {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #273445 !important;
  border-radius: 0 !important;
  margin-top: auto;
}
.sidebar__prof:hover { background: #1a2736 !important; }
.sidebar__prof-av { background: var(--violet) !important; color: #0a0e13 !important; }
.sidebar__prof-t b { color: #fff !important; }
.sidebar__prof-t small, .sidebar__prof-plan { color: #8190a0 !important; }
.sidebar__prof-out, .sidebar__prof-bell { color: #b8c3ce !important; }
.sidebar__prof-out svg, .sidebar__prof-bell svg { color: currentColor; }
.sidebar__prof-out:hover, .sidebar__prof-bell:hover { background: #1a2736 !important; color: #fff !important; }
.sidebar__bug { color: #8190a0 !important; }

/* =========================================================
   C. Topbar (.appbar) → clean white bar
   ========================================================= */
.appbar {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border);
}
.appbar__toggle { border: 1px solid var(--border); border-radius: 8px; }

/* =========================================================
   D. Shared components → mockup aesthetic (restyle existing app.css classes)
   ========================================================= */
/* Buttons */
.btn { border-radius: 8px !important; font-weight: 800; min-height: 38px; }
.btn--primary {
  background: var(--violet) !important;
  color: #0a0e13 !important;
  border: 1px solid var(--violet-dark) !important;
}
.btn--primary:hover:not(:disabled):not([disabled]) { background: var(--violet-dark) !important; }
.btn--ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet-dark); }
.btn--danger { background: #fff5f6; border: 1px solid #f0b6bd; color: #b44352; }
.btn--danger:hover { background: #ffeaed; border-color: #e79aa4; }

/* Inputs */
.field input, .field select, .field textarea,
.apinput, .apta {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}
.field input:focus, .apinput:focus, .apta:focus,
.field select:focus, .field textarea:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px #4f7df322 !important;
  outline: none;
}
*:focus-visible { outline: 3px solid #4f7df344; outline-offset: 2px; }

/* Cards / panels */
.card-block, .apcard, .setcard, .module {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* Tabs — active marker on the lime accent, dark ink on the aptab pill */
.ptabs button.is-active::after { background: var(--violet); }
.aptab.is-active { background: var(--violet); color: #0a0e13; }

/* Toast → dark pill (keep app.css positioning; only recolour) */
.toast { background: #17202a !important; color: #fff !important; border: 0 !important; }

/* =========================================================
   E. Mockup CONTENT component library (global — verbatim from the
      mockup <style>, vars remapped to our tokens, literals kept)
   ========================================================= */

/* headings */
.heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin-bottom: 7px; color: #697783; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.heading h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.heading p { margin: 7px 0 0; color: var(--text-mute); }

/* buttons (mockup trio + inline-flex so <a class="primary"> reads as a button) */
.primary, .secondary, .danger {
  min-height: 38px; padding: 0 14px; border-radius: 8px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; text-decoration: none; cursor: pointer; color: var(--text);
}
.primary { border: 1px solid var(--violet-dark); background: var(--violet); }
.primary:hover { background: var(--violet-dark); }
.secondary { border: 1px solid var(--border); background: #fff; }
.danger { border: 1px solid #f0b6bd; background: #fff5f6; color: #b44352; }

/* filters bar */
.filters { margin-bottom: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; display: flex; align-items: center; gap: 10px; }
.filters span { color: var(--text-mute); font-size: 11px; }

/* KPI strip */
.kpis { border: 1px solid var(--border); border-radius: 12px; background: #fff; display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; }
.kpi { min-width: 0; padding: 17px; border-right: 1px solid var(--border); }
.kpi:last-child { border-right: 0; }
.kpi span { display: block; color: var(--text-mute); font-size: 11px; font-weight: 700; }
.kpi b { display: block; margin: 8px 0 5px; font-size: 25px; letter-spacing: -.03em; }
.kpi small { color: #16815a; }

/* two-column grid + card */
.grid2 { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cardhead { min-height: 62px; padding: 0 17px; border-bottom: 1px solid #edf0f2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cardhead h2 { margin: 0; font-size: 15px; }
.cardhead p { margin: 4px 0 0; color: var(--text-mute); font-size: 10px; }

/* chart */
.chart { height: 300px; padding: 22px 18px; position: relative; overflow: hidden; }
.chart-grid { position: absolute; inset: 24px 18px 32px; display: grid; grid-template-rows: repeat(4, 1fr); }
.chart-grid i { border-top: 1px solid #edf0f2; }
.lines { position: absolute; inset: 28px 22px 36px; display: flex; align-items: flex-end; gap: 8px; }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(#6f97f7, #4f7df3); opacity: .9; }
.bar:nth-child(3n) { background: linear-gradient(#6dd2b0, #35ae87); }

/* needs-attention list */
.attention { padding: 8px; }
.attention article { padding: 12px; border-bottom: 1px solid #edf0f2; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.attention article:last-child { border: 0; }
.statusicon { width: 32px; height: 32px; border-radius: 8px; background: #eef2f4; display: grid; place-items: center; }
.attention b, .attention small { display: block; }
.attention small { margin-top: 3px; color: var(--text-mute); font-size: 10px; }
.pill { padding: 4px 7px; border-radius: 999px; background: #edf7e8; color: #287047; font-size: 9px; font-weight: 800; }

/* campaigns table */
.campaigns { margin-top: 16px; }
.tablehead, .campaignrow { display: grid; grid-template-columns: 1.4fr .65fr .8fr .8fr .85fr 20px; align-items: center; }
.tablehead { min-height: 36px; padding: 0 15px; color: #83909b; font-size: 10px; font-weight: 750; }
.campaignrow { width: 100%; min-height: 62px; padding: 0 15px; border: 0; border-top: 1px solid #edf0f2; background: #fff; text-align: left; }
.campaignrow:hover { background: #f8fafb; }
.brandcell { display: flex; align-items: center; gap: 9px; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: #17202a; color: var(--violet); display: grid; place-items: center; font-weight: 900; }
.campaignrow b, .campaignrow small { display: block; }
.campaignrow small { margin-top: 3px; color: var(--text-mute); font-size: 9px; }

/* repurposer / content studio.  NOTE: .clip collides with app.css's clip-list
   row (randomizer/caption) — the studio's clip tiles are scoped under .studio
   so they never leak onto that component. */
.studio { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.steps { margin-bottom: 16px; border: 1px solid var(--border); border-radius: 11px; background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.step { min-height: 68px; padding: 12px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.step:last-child { border: 0; }
.step i { width: 30px; height: 30px; border-radius: 8px; background: #eef1f3; display: grid; place-items: center; font-style: normal; font-weight: 850; }
.step.current { background: #f8fce9; }
.step.current i { background: var(--violet); }
.step b, .step small { display: block; }
.step small { margin-top: 3px; color: var(--text-mute); font-size: 9px; }
.batch { margin-bottom: 12px; padding: 15px; }
.batchtop { display: flex; align-items: center; justify-content: space-between; }
.batchtop h3 { margin: 0; font-size: 14px; }
.clips { margin-top: 12px; display: flex; gap: 8px; overflow: auto; }
.studio .clip, .uploadclip { min-width: 120px; height: 125px; border-radius: 9px; position: relative; }
.studio .clip { padding: 9px; background: linear-gradient(145deg, #cdd9e5, #73879d); color: #fff; display: flex; align-items: flex-end; }
.studio .clip:nth-child(3n) { background: linear-gradient(145deg, #f6caac, #cb795d); }
.studio .clip:nth-child(3n+2) { background: linear-gradient(145deg, #d4cdf6, #7567b2); }
.studio .clip b { font-size: 9px; text-shadow: 0 1px 2px #0007; }
.studio .clip em { position: absolute; top: 42px; left: 47px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #25303b; display: grid; place-items: center; font-size: 8px; font-style: normal; }
.uploadclip { border: 1px dashed #bfcbd2; background: #f8fafb; display: grid; place-items: center; text-align: center; color: var(--text-mute); font-size: 10px; }
.uploadclip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.summary { position: sticky; top: 80px; padding: 17px; }
.summary h2 { margin: 0 0 4px; font-size: 15px; }
.summary > p { margin: 0 0 16px; color: var(--text-mute); font-size: 10px; }
.math { padding: 16px; border-radius: 10px; background: #17202a; color: #fff; text-align: center; }
.math div { display: flex; align-items: center; justify-content: center; gap: 10px; }
.math b { font-size: 22px; }
.math strong { display: block; margin-top: 12px; color: var(--violet); font-size: 39px; }
.summary .primary { width: 100%; margin-top: 12px; }
.mode { margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mode button { min-height: 62px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-weight: 750; }
.mode button.active { border-color: #b9d958; background: #f4f9e3; }

/* calendar */
.calendarflow { margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intent { min-height: 82px; padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: #fff; display: flex; align-items: center; gap: 11px; text-align: left; }
.intent:hover { border-color: #b6d553; background: #f7fbe9; }
.intent i { width: 38px; height: 38px; border-radius: 9px; background: #17202a; color: #fff; display: grid; place-items: center; font-style: normal; }
.intent b, .intent small { display: block; }
.intent small { margin-top: 4px; color: var(--text-mute); font-size: 10px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); min-height: 410px; }
.day { padding: 11px; border-right: 1px solid var(--border); }
.day:last-child { border: 0; }
.day h3 { margin: 0 0 12px; font-size: 11px; }
.post { margin-bottom: 7px; padding: 9px; border-radius: 8px; background: #eef4ff; border-left: 3px solid var(--blue); }
.post.edit { background: #fff3e4; border-color: var(--orange); }
.post b, .post small { display: block; }
.post b { font-size: 9px; }
.post small { margin-top: 4px; color: var(--text-mute); font-size: 8px; }
.day > button { width: 100%; height: 30px; border: 1px dashed #cbd4da; border-radius: 7px; background: #fff; }

/* editing board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.column { min-height: 390px; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: #edf1f3; }
.column h3 { margin: 2px 3px 10px; font-size: 11px; text-transform: uppercase; }
.job { margin-bottom: 8px; padding: 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.job b, .job small { display: block; }
.job small { margin-top: 5px; color: var(--text-mute); font-size: 9px; }

/* modals */
.modalback { position: fixed; inset: 0; padding: 18px; background: #10182099; backdrop-filter: blur(5px); display: none; place-items: center; z-index: 30; }
.modalback.open { display: grid; }
.modal { width: min(820px, calc(100vw - 28px)); max-height: calc(100vh - 30px); overflow: auto; border-radius: 14px; background: #fff; }
.modal header { min-height: 72px; padding: 0 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal h2 { margin: 0; font-size: 17px; }
.modal header p { margin: 4px 0 0; color: var(--text-mute); font-size: 10px; }
.close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #eef2f4; }
.modalbody { padding: 18px; display: grid; gap: 13px; }
.chooser { display: grid; gap: 9px; }
.choice { min-height: 78px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafb; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; text-align: left; }
.choice i { width: 38px; height: 38px; border-radius: 9px; background: #17202a; color: #fff; display: grid; place-items: center; font-style: normal; }
.choice b, .choice small { display: block; }
.choice small { margin-top: 4px; color: var(--text-mute); font-size: 10px; }
.modal footer { min-height: 62px; padding: 10px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

/* upload / drop / file list */
.drop { min-height: 145px; border: 1px dashed #bfcbd2; border-radius: 10px; background: #f8fafb; display: grid; place-items: center; text-align: center; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filelist { display: grid; gap: 6px; }
.file { min-height: 46px; padding: 7px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; }
.file video { width: 36px; height: 32px; border-radius: 5px; background: #17202a; object-fit: cover; }

/* review results grid */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.result { height: 160px; border-radius: 9px; background: linear-gradient(145deg, #aec0d1, #43576a); position: relative; }
.result:before { content: '\25B6'; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 8px; }
.result input { position: absolute; top: 8px; left: 8px; z-index: 2; }
.result span { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 9px; font-weight: 800; }

/* posts library assets */
.assetgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.asset { overflow: hidden; }
.assetthumb { height: 190px; background: linear-gradient(145deg, #d7e2ed, #64798f); position: relative; }
.assetthumb:before { content: '\25B6'; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 8px; }
.assetbody { padding: 12px; }
.assetbody b, .assetbody small { display: block; }
.assetbody small { margin-top: 5px; color: var(--text-mute); font-size: 9px; }

/* workflow lab */
.labgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.labcard { padding: 18px; }
.labcard > i { width: 40px; height: 40px; border-radius: 10px; background: #17202a; color: var(--violet); display: grid; place-items: center; font-style: normal; font-weight: 900; }
.labcard h2 { margin: 16px 0 7px; font-size: 17px; }
.labcard p { min-height: 54px; color: var(--text-mute); font-size: 11px; line-height: 1.55; }
.labcard button { width: 100%; }

/* empty state */
.empty { padding: 50px; text-align: center; color: var(--text-mute); }

/* =========================================================
   F. De-panel support — helpers the two ported injectors
      (dashboard-mockup.js / campaigns.js) need now that their
      scoped <style> blocks are removed. None collide with app.css.
   ========================================================= */
.muted { padding: 16px; color: var(--text-mute); font-size: 12px; }
.attention .muted { padding: 16px; }
.attention b { font-size: 12px; }
.pill { text-transform: capitalize; }
.pill.is-fail { background: #fdecee; color: #b44352; }
.filters b { color: var(--text); font-size: 13px; margin-right: 4px; }

/* campaigns.js: scope chip row, selected row, brand detail panel */
.scoperow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.scoperow span { color: var(--text-mute); font-size: 11px; font-weight: 700; }
.campaignrow.is-sel { background: #f4f9e3; }
.detail { margin-top: 16px; }
.detail .cardhead + .cardhead { border-top: 1px solid #edf0f2; }
.detailacts { display: flex; align-items: center; gap: 8px; }

/* campaigns.js modal fields: mockup label style, scoped to modals so it never
   shrinks the settings page's own .field .field__label (app.css). */
.modal .field { display: grid; gap: 6px; }
.modal .field span { color: #66737e; font-size: 10px; font-weight: 800; }
.modal .field input, .modal .field select, .modal .field textarea { min-height: 40px; padding: 9px 10px; }
.modal .field textarea { min-height: 85px; resize: vertical; }
.formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* =========================================================
   G. Responsive — mockup's own max-width:900px rules for the
      content components (shell chrome stays app.css's job).
   ========================================================= */
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--border); }
  .grid2, .studio { grid-template-columns: 1fr; }
  .summary { position: static; }
  .week { overflow: auto; grid-template-columns: repeat(7, minmax(150px, 1fr)); }
  .board { grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow: auto; }
  .tablehead, .campaignrow { grid-template-columns: 1.5fr .8fr .9fr 20px; }
  .tablehead span:nth-child(3), .tablehead span:nth-child(4),
  .campaignrow > span:nth-child(3), .campaignrow > span:nth-child(4) { display: none; }
  .steps { overflow: auto; grid-template-columns: repeat(4, minmax(160px, 1fr)); }
  .calendarflow, .formrow { grid-template-columns: 1fr; }
  .heading { align-items: flex-start; }
  .results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .assetgrid, .labgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .assetgrid, .labgrid { grid-template-columns: 1fr; } }

/* =========================================================
   H. Earnings money-hero (#dashHero .hmoney) → cool dark-navy
      premium card with GREEN money accent (was warm espresso/gold).
   ========================================================= */
.hmoney { background: linear-gradient(160deg,#1b2534 0%,#141d29 55%,#0f1620 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important; box-shadow: 0 24px 60px rgba(15,22,32,.35) !important; color: #eaf0f5 !important; }
.hmoney::before { background: radial-gradient(70% 55% at 78% 0%, rgba(53,174,135,.16), transparent 65%) !important; }
.hmoney__label, .hmoney__sub, .hmoney__tile span, .hmoney__toplabel, .hmoney__none, .hmoney__at, .hmoney__sugg { color: rgba(255,255,255,.55) !important; }
.hmoney__big, .hmoney__tile b, .hmoney__pitch h2 { color: #fff !important; font-family: var(--font) !important; }
.hmoney__sub b, .hmoney__pitch h2 em { color: #35ae87 !important; }
.hmoney__range { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.1) !important; }
.hmoney__rbtn { color: rgba(255,255,255,.55) !important; }
.hmoney__rbtn:hover { color: #fff !important; }
.hmoney__rbtn.is-on { background: #35ae87 !important; color: #04140d !important; }
.hmoney__rates, .hmoney__chip { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.06) !important; color: #eaf0f5 !important; }
.hmoney__rates:hover, .hmoney__chip:hover { background: rgba(255,255,255,.12) !important; }
.hmoney__rates.is-cta { background: linear-gradient(135deg,#35ae87,#2b8f6f) !important; color: #04140d !important; border-color: transparent !important; }
.hmoney__tip { background: #fff !important; color: #15202b !important; }
.hmoney__addform input:focus { border-color: #35ae87 !important; box-shadow: 0 0 0 3px rgba(53,174,135,.2) !important; }
.hmoney__schip { border-color: rgba(53,174,135,.35) !important; background: rgba(53,174,135,.1) !important; color: #35ae87 !important; }
.hmoney__schip:hover { background: rgba(53,174,135,.2) !important; }

/* =========================================================
   I. Settings page (.setx) — clean white-card cleanup.
      app.css's legacy ".setx" block flattened the cards for the
      old warm theme (transparent bg, border:none, padding 34px 2px)
      — but the reskin's ui.css already paints every .card-block as
      a white bordered 12px card. That combo left content jammed
      against the card edge (2px side padding) with tall uneven
      empty bands (34px top/bottom). Restore comfortable, even
      padding + consistent card spacing so Settings reads like the
      rest of the reskin.
   ========================================================= */
.setx .settings { gap: 14px !important; max-width: 720px; }
.setx .card-block { padding: 22px 24px !important; }
.setx .card-block:first-child { padding-top: 22px !important; }
/* Each card owns its full border now — drop the legacy inter-card
   top-rule so cards don't look double-lined where they meet. */
.setx .card-block + .card-block { border-top: 1px solid var(--border) !important; }
.setx .card-block--danger { border-top: 1px solid var(--border) !important; }
/* Section headers: tighter, on-ink, consistent rhythm. */
.setx .card-block h3 { font-size: 15px !important; font-weight: 700 !important; margin-bottom: 16px !important; color: var(--text) !important; }
.setx .card-block--danger h3 { color: #b44352 !important; }
/* Rows: align label/value, keep dividers subtle. */
.setx .settings__row { padding: 13px 0 !important; }
.setx .settings__row:first-of-type { border-top: none !important; padding-top: 0 !important; }
/* Text-link ghost buttons inside rows (billing portal, plans, logout,
   reset) — palette blue, blue-darken on hover (kill the amber #7a5c00). */
.setx .settings__row .btn--ghost { color: var(--blue) !important; font-weight: 600 !important; }
.setx .settings__row .btn--ghost:hover { color: #3a63d0 !important; text-decoration: underline !important; background: none !important; }
/* Inputs sit flush inside the padded card. */
.setx .field { margin-bottom: 0; }
.setx .field + .setx__hint,
.setx .card-block .setx__hint { color: var(--text-mute); }
/* Focus ring → palette blue (was amber in app.css). */
.setx .field input:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px #4f7df322 !important; }
/* Danger button stays the shared soft-red ghost look. */
.setx .card-block--danger .btn--danger { color: #b44352 !important; }
