/* ══════════════════════════════════════════════════════════════════════════
   Console V1.1 (Figma "Replicate Version 1.1 (21/10)").
   Loaded after styles.css. The rules everywhere:
   - page margin 40, 32 between sections, 12 between cards
   - cards: white, 1px grey-20, radius 12, padding 20
   - small labels in sentence case, no letter spacing
   - magenta only for the active / selected state; red (and orange) only for
     real alerts, always with a small dot
   - no numbered eyebrows - the nav already says where you are
   ══════════════════════════════════════════════════════════════════════════ */
:root{--red-dark:#92001E;--orange-medium:#B05027;--v11-meta:var(--grey-50)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--red-dark:#FF8A9A;--orange-medium:#FF9B6A}}
:root[data-theme="dark"]{--red-dark:#FF8A9A;--orange-medium:#FF9B6A}

/* ── Page frame: 40 at the sides, the nav lines up with it ────────────── */
@media (min-width:901px){
  .hd-in{padding:0 40px}
  main{padding:32px 40px 64px}
}

/* ── Home ─────────────────────────────────────────────────────────────── */
#tab-home #home-body{display:flex;flex-direction:column;gap:32px}
.home-hero{display:flex;align-items:center;justify-content:space-between;gap:24px 32px;padding:32px 40px;border-radius:16px;margin:0}
.home-hero .home-text{min-width:0}
.home-hello{font-size:12px;font-weight:500;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:#fff}
.home-hero h1{font-size:36px;font-weight:600;line-height:1.15;letter-spacing:0;margin:6px 0 6px;color:#fff}
.home-hero p{font-size:14px;line-height:20px;margin:0;color:#fff}
.home-acts{display:flex;flex-direction:row;gap:12px;flex-wrap:wrap;flex:none}
.home-hero{box-shadow:none}
.home-acts .btn{height:auto;justify-content:center;padding:12px 20px;border-radius:999px;font-size:14px;font-weight:600;line-height:20px}
.home-acts .btn.home-ghost{background:transparent;border:1px solid #fff;color:#fff}
.home-acts .btn.home-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.home-acts .btn.btn-primary{background:#fff;border-color:#fff;color:#000}
.home-acts .btn.btn-primary:hover:not(:disabled){background:var(--magenta-light);border-color:var(--magenta-light);color:#000}

.home-group{display:flex;flex-direction:column;gap:12px}
.home-gh{margin:0;font-size:12px;font-weight:500;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--grey-60)}
.home-tiles{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));grid-auto-rows:auto;gap:12px;margin:0}
.home-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);text-align:left;box-shadow:none;transform:none}
.home-tile:hover{border-color:var(--grey-40);box-shadow:none;transform:none}
.home-tile:focus-visible{outline:none;border-color:var(--magenta);box-shadow:0 0 0 1px var(--magenta)}
.home-tile.accent,.home-tile.warn{background:var(--panel);border:1px solid var(--line)}
.ht-lab{display:flex;align-items:center;gap:6px;font-size:13px;line-height:18px;letter-spacing:0;text-transform:none;color:var(--grey-70)}
.ht-val,.ht-text .ht-val{font-size:24px;font-weight:700;line-height:28px;letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.ht-note{margin-top:0;font-size:13px;line-height:18px;color:var(--v11-meta)}
.ht-go{display:none}
.ht-dot{width:6px;height:6px;border-radius:50%;flex:none;background:currentColor}
.home-tile.alert .ht-val,.home-tile.alert .ht-dot{color:var(--red-dark)}
.home-tile.caution .ht-val,.home-tile.caution .ht-dot{color:var(--orange-medium)}

.home-row{display:grid;grid-template-columns:440px minmax(0,1fr);gap:12px;align-items:stretch}
.home-row.has-projects{grid-template-columns:minmax(0,1fr)}
.home-proj{display:flex;flex-direction:column;gap:4px;margin:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.home-ph{display:flex;flex-direction:column;gap:4px}
.home-ph b{font-size:16px;font-weight:600;line-height:22px}
.home-ph span{font-size:14px;line-height:20px;color:var(--grey-60)}
.home-link{align-self:flex-start;margin-top:auto;padding:16px 0 0;border:0;background:none;font:inherit;font-size:14px;font-weight:600;line-height:20px;color:var(--magenta-medium,#A924B4);cursor:pointer}
.home-link:hover{text-decoration:underline;text-underline-offset:3px}
.home-top-slot{min-width:0;display:flex}
.home-top-slot:empty{display:none}
#tab-home .topstrip,.home-top-slot .topstrip{flex:1;margin:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:none;overflow:visible}
.home-top-slot .topstrip::before,.home-top-slot .topstrip::after{display:none}
.home-top-slot .ft-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px}
.home-top-slot .ft-head b{display:block;font-size:16px;font-weight:600;line-height:22px;color:var(--ink)}
.home-top-slot .ft-head span{display:block;margin-top:2px;font-size:13px;line-height:18px;color:var(--grey-60)}
.home-top-slot .ft-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;overflow:visible;padding:0}
.home-top-slot .ft-card{display:flex;flex-direction:row;align-items:center;overflow:visible;gap:12px;width:auto;min-width:0;flex:none;padding:0;border:0;border-radius:0;background:none;color:var(--ink);text-align:left;box-shadow:none;transform:none}
.home-top-slot .ft-card:hover{transform:none;box-shadow:none}
.home-top-slot .ft-card:hover b{text-decoration:underline;text-underline-offset:3px}
.home-top-slot .ft-cover,.home-top-slot .ft-first .ft-cover{position:relative;flex:none;width:72px;height:72px;min-height:0;aspect-ratio:auto;border-radius:8px;overflow:hidden;background:var(--sunken)}
.home-top-slot .ft-cover > *{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-top-slot .ft-t{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0;background:none;color:var(--ink)}
.home-top-slot .ft-own{font-size:13px;line-height:18px;color:var(--grey-60);opacity:1}
.home-top-slot .ft-t b{font-size:16px;font-weight:600;line-height:22px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-top-slot .ft-meta{font-size:13px;line-height:18px;color:var(--grey-60);opacity:1}

@media (max-width:1100px){
  .home-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-row{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .home-hero{flex-direction:column;align-items:flex-start;padding:24px 20px!important}
  .home-hero h1{font-size:28px}
  .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .home-tile{padding:16px}
  .ht-val,.ht-text .ht-val{font-size:20px;line-height:24px}
}

/* ── Page header (every page): H3 36 title, 16 grey-60 subtitle, max 760 ── */
main .sec-head h2{font-size:36px;font-weight:600;line-height:1.2;letter-spacing:0;margin:0}
main .sec-head > p,main .sec-head p{max-width:760px;font-size:16px;line-height:24px;color:var(--grey-60);margin:8px 0 0}
main .sec-head{margin-bottom:24px}
.v11-pill{display:inline-flex;align-items:center;vertical-align:middle;margin-left:10px;padding:3px 10px;border-radius:999px;background:var(--sunken);color:var(--grey-70);font-size:12px;font-weight:500;line-height:16px;letter-spacing:0}

/* ── Explore ──────────────────────────────────────────────────────────── */
#tab-explore .ex-hero{margin:0;padding:32px 40px;border-radius:16px;border:0;box-shadow:none;
  background:linear-gradient(120deg,#1b1330 0%,#4a1d5e 45%,#c1287f 85%,#ff7a00 130%);color:#fff}
main > #tab-explore .ex-hero{margin-top:0}
#tab-explore .ex-hero .ex-bg{display:none}
#tab-explore .ex-hero .sec-head{margin:0 0 20px}
#tab-explore .ex-hero .sec-head h2{font-size:36px;line-height:1.2;letter-spacing:0;margin:0;color:#fff}
#tab-explore .ex-hero .sec-head p{max-width:none;font-size:14px;line-height:20px;margin:8px 0 0;color:#fff}
#tab-explore .ex-hero .searchbar{height:48px;padding:4px 8px 4px 18px;border:0;border-radius:12px;background:#fff;box-shadow:0 8px 24px -12px rgba(0,0,0,.35)}
#tab-explore .ex-hero #catfilters{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
#tab-explore .ex-hero #catfilters .cf-chip{flex:none;width:auto;height:38px;padding:0 14px 0 4px;gap:8px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:13px;font-weight:500;box-shadow:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#tab-explore .ex-hero #catfilters .cf-chip .cf-ic{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff}
#tab-explore .ex-hero #catfilters .cf-chip .cf-ic svg{width:14px;height:14px}
#tab-explore .ex-hero #catfilters .cf-chip:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.4);transform:none}
#tab-explore .ex-hero #catfilters .cf-chip[aria-pressed="true"],#tab-explore .ex-hero #catfilters .cf-chip[aria-pressed="true"]:hover{background:#fff;border-color:#fff;color:#1b1330}
#tab-explore .ex-hero #catfilters .cf-chip[aria-pressed="true"] .cf-ic{background:var(--magenta);color:#fff}
#tab-explore .ex-hero + .resultbar{margin:32px 0 20px}
#tab-explore .resultbar #catcount{font-size:16px;font-weight:600;color:var(--ink)}
#tab-explore .resultbar .synced{font-size:13px;color:var(--grey-60)}
#tab-explore .cat-grid{gap:12px}
.mcard{border-radius:12px}
.mcard .m-name{font-size:16px;font-weight:600;line-height:22px}
.mcard .m-desc{font-size:14px;line-height:20px;color:var(--grey-60)}
.mcard .m-runs{font-weight:400;font-size:13px;color:var(--grey-60)}
#tab-explore .panel.panel-pad{margin-top:32px!important;padding:20px;border-radius:12px}
#tab-explore .panel.panel-pad h3{font-size:16px;font-weight:600;line-height:22px;margin:0 0 6px}
#tab-explore .panel.panel-pad .p-note{font-size:14px;line-height:20px;color:var(--grey-60)}
#tab-explore .panel.panel-pad .p-note b{font-weight:500;color:var(--ink)}
#directslug{font-family:var(--font)!important;height:40px;border-radius:8px!important}
#directgo{height:40px;border-radius:999px}
@media (max-width:760px){
  #tab-explore .ex-hero{padding:24px 20px!important}
  #tab-explore .ex-hero .sec-head h2{font-size:28px}
}

/* ── Projects ─────────────────────────────────────────────────────────── */
#tab-projects .proj-hero{display:flex;flex-direction:column;align-items:stretch;gap:20px;margin:0 0 24px;padding:32px 40px;border-radius:16px;box-shadow:none}
#tab-projects .proj-hero .ph-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
#tab-projects .proj-hero .ph-text{min-width:0;flex:1 1 420px}
#tab-projects .proj-hero h1{font-size:36px;font-weight:600;line-height:1.2;letter-spacing:0;margin:0}
#tab-projects .proj-hero p{font-size:14px;line-height:20px;margin:6px 0 0;color:#fff;max-width:none}
.proj-hero .ph-steps{gap:8px;flex-wrap:nowrap}
.proj-hero .ph-step{height:40px;padding:0 16px 0 6px;gap:8px;border-radius:24px;background:rgba(255,255,255,.12);border:0;color:rgba(255,255,255,.85);font-size:14px}
.proj-hero .ph-step b{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.18);color:rgba(255,255,255,.85);font-size:13px}
.proj-hero .ph-step.on{background:#fff;color:#1b1330;font-weight:500}
.proj-hero .ph-step.on b{background:var(--magenta);color:#fff}
#tab-projects .pick-hero .pj-hero-search{margin:0;height:48px;border-radius:10px;box-shadow:none}
#tab-projects .pj-hero-search input{height:44px;font-size:16px}
#tab-projects .pj-count{font-size:16px;font-weight:600;color:var(--ink)}
#plist-grid{gap:12px}
#plist-grid .plist-card{padding:20px;border:1px solid var(--line);border-radius:12px;box-shadow:none;background:var(--panel)}
#plist-grid .plist-card:hover{border-color:var(--grey-40);box-shadow:none}
#plist-grid .plist-card.on{border:1.5px solid var(--magenta-medium,#A924B4);box-shadow:none;background:var(--panel)}
.plist-card .pc-strip{display:none}
#plist-grid .plist-card .pc-in{display:flex;flex-direction:column;gap:12px;flex:1;padding:0}
.plist-card .pc-name{margin:0;font-size:16px;font-weight:600;line-height:22px;min-height:0}
.pc-spend{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;padding:12px 16px;border:0;border-radius:8px;background:var(--sunken)}
.pc-spend-l{flex:none;font-size:13px;font-weight:400;line-height:18px;letter-spacing:0;text-transform:none;color:var(--grey-60)}
.pc-spend-v{display:inline;font-size:24px;font-weight:700;line-height:28px;letter-spacing:0}
.pc-spend-v + .pc-spend-n{margin-left:8px}
.pc-spend{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:8px}
.pc-spend-l{grid-column:1 / -1}
.plist-card .pc-stats{margin:0}
.plist-card .pc-stats:empty{display:none}
.plist-card .budget{margin:0}
.plist-card .bud-t{font-size:13px}
.pc-team-lab{font-size:13px;letter-spacing:0;text-transform:none;color:var(--grey-60)}
.plist-card .pc-people{margin:0}
.plist-card .pc-acts{margin-top:auto;padding-top:0}
.pc-ibtn,.pc-ibtn.pc-hide,.pc-ibtn.pc-del{background:var(--panel);color:var(--grey-70);border:1px solid var(--grey-30)}
.pc-ibtn.pc-del{color:#B0173A}
.pc-ibtn:hover,.pc-ibtn.pc-hide:hover{background:var(--panel);border-color:var(--grey-60);color:var(--ink)}
.pc-ibtn.pc-del:hover{background:var(--panel);border-color:#B0173A;color:#B0173A}
.pc-ibtn.pc-hide.is-on{background:var(--sunken);color:var(--ink);border-color:var(--grey-40)}
#plist-grid .pick-new{min-height:0;border:1px dashed var(--magenta);border-radius:12px;background:var(--panel);color:var(--ink)}
#plist-grid .pick-new:hover{background:var(--panel);border-style:solid}
@media (max-width:760px){
  #tab-projects .proj-hero{padding:24px 20px!important}
  #tab-projects .proj-hero h1{font-size:28px}
  .proj-hero .ph-steps{flex-wrap:wrap}
}

/* ── Generations ──────────────────────────────────────────────────────── */
#fav-panel .fav-link,.fav-link.fav-empty{border:0;border-radius:8px;background:var(--sunken);padding:12px 16px;color:var(--grey-60);font-size:13px}
#fav-panel .fav-link b{font-weight:500;color:var(--ink)}
#fav-panel .fav-link:hover{background:var(--grey-20)}
.gal-connect-btn,.ak-select-btn{background:var(--panel);border:1px solid var(--grey-30);color:var(--ink);font-weight:600}
.gal-connect-btn:hover,.ak-select-btn:hover{background:var(--panel);border-color:var(--grey-60);color:var(--ink)}
.gal-connect-btn .ico{stroke:currentColor}
#gal-grid .gal-item{border-radius:12px}
#gal-grid .gal-name,.gal-name{font-size:14px;font-weight:500;line-height:20px;color:var(--ink)}
.gal-sub{font-family:var(--font);font-size:13px;line-height:18px;color:var(--grey-60)}
.gal-when{font-size:13px;color:var(--grey-60)}
.gal-usd{font-weight:500}
@media (max-width:760px){ main .sec-head h2{font-size:28px} main .sec-head p{font-size:15px;line-height:22px} }

/* ── Favourites ───────────────────────────────────────────────────────── */
.fav-add.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:none}
.fav-add.panel::before,.fav-add.panel::after{display:none}
.fav-add .p-note,.fav-add .fav-tip{color:var(--grey-60);font-size:13px}
.fav-none{border:0!important;border-radius:12px;background:var(--sunken)!important;padding:40px 20px}
.fav-none svg{color:var(--grey-50)!important}
.fav-none b{font-size:16px;font-weight:600;color:var(--ink)}
.fav-none span{font-size:14px;color:var(--grey-60)}

/* ── Shared: KPI tiles, panels, bars, tables (Activity, spend, Paymo…) ── */
.kpis{gap:12px;grid-auto-rows:1fr}
.kpi{display:flex;flex-direction:column;gap:4px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.kpi.accent{background:var(--panel);border:1px solid var(--line);animation:none}
.kpi.warn{border-color:var(--line)}
.kpi .k-lab{font-size:13px;line-height:18px;letter-spacing:0;text-transform:none;color:var(--grey-60)}
.kpi .k-val{margin:0;font-size:24px;font-weight:700;line-height:28px;letter-spacing:0}
.kpi .k-note{margin:0;font-size:13px;line-height:18px;color:var(--grey-60)}
.kpi.alert .k-val{color:var(--red-dark)}
.kpi.alert .k-lab::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--red-dark);vertical-align:2px}
.panel{border-radius:12px}
.panel-pad{padding:20px}
.panel h3,.tbl-head h3{font-size:16px;font-weight:600;line-height:22px}
.panel h3 + .p-note,.tbl-head .p-note{font-size:13px;line-height:18px;color:var(--grey-60);margin-top:2px}
.row2{gap:12px;margin-top:24px;align-items:stretch}
.bars{gap:14px;margin-top:16px}
.bar-row{gap:6px 6px}
.bar-row .b-lab{font-size:14px;line-height:20px}
.bar-row .b-val{font-size:14px;line-height:20px;font-weight:500;color:var(--ink)}
.bar-row .b-track,.bar-row .b-fill{height:6px}
.tblwrap{margin-top:24px;border-radius:12px}
.tbl-head{padding:20px;gap:24px}
th{font-size:12px;font-weight:500;line-height:16px;letter-spacing:0;text-transform:none;color:var(--grey-60);padding:10px 16px}
td{padding:12px 16px;font-size:14px;line-height:20px}
.a-name{font-size:13px;color:var(--grey-60)}
.a-meta{font-family:var(--font);font-size:13px;color:var(--grey-60)}
.tool .t-model{font-family:var(--font);font-size:13px;color:var(--grey-60)}
.money{font-weight:400}
#act-tbl .asset .th{width:48px;height:48px;border-radius:6px}
tfoot td{border-top:1px solid var(--line);background:var(--sunken)}
.row-head .chips .chip{height:30px;padding:0 12px;border-radius:999px;font-size:13px}
td.money,td.money.mono,td.cost.mono{font-size:14px;font-weight:500;letter-spacing:0}
tfoot td.r.mono{font-size:16px;font-weight:600}
td.mono{font-family:var(--font);font-size:14px;color:var(--ink)}

/* ── Project spend ────────────────────────────────────────────────────── */
.sp-tile{gap:4px;padding:16px;border:1px solid var(--line);border-radius:12px;transform:none}
.sp-tile:hover{border-color:var(--grey-40);transform:none}
.sp-tile[aria-pressed="true"]{border:1.5px solid var(--magenta-medium,#A924B4);padding:15.5px;background:var(--panel);box-shadow:none}
.sp-t-co{font-size:12px;letter-spacing:0;text-transform:none}
.sp-t-name{font-size:14px;font-weight:600;line-height:20px;min-height:0}
.sp-t-foot b{font-size:20px;font-weight:700}
.sp-t-foot em{font-size:12px}
.ratecard{font-family:var(--font);font-size:12px;color:var(--grey-60);background:var(--sunken);border:0;border-radius:999px;padding:6px 12px;white-space:nowrap;align-self:center}
.pdfbar label{font-size:12px;letter-spacing:0;text-transform:none}
#p-name{font-size:20px;font-weight:600;line-height:28px}
.panel .p-note b{font-weight:500;color:var(--ink)}

/* ── API generations ──────────────────────────────────────────────────── */
.ak-tok.none{align-items:center;padding:12px 16px;border-radius:8px;background:var(--sunken);margin:0 0 24px;font-size:13px;color:var(--grey-60)}
.ak-tok.none a,.ak-tok.none button,.ak-tok.none .link{color:var(--magenta-medium,#A924B4)}
.ak-keys-head .pp-h{font-size:20px;font-weight:600;line-height:28px}
.ak-runs-head .pp-h{font-size:16px;font-weight:600;line-height:22px}
.ak-runs-head{margin-top:32px}
.ak-acc{gap:0;margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.ak-acc-item{border:0;border-radius:0;border-top:1px solid var(--line);box-shadow:none}
.ak-acc-item:first-child{border-top:0}
.ak-run.gal-like .gal-name{font-weight:500}
.ak-select-btn,.ak-give-btn{background:var(--panel);border:1px solid var(--grey-30);color:var(--ink)}
.ak-tok.none .ak-tok-link{color:var(--magenta-medium,#A924B4);font-weight:500}

/* ── Paymo ────────────────────────────────────────────────────────────── */
.pm-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:24px}
.pm-kpis .kpi{padding:20px}
.pm-kpis .k-val{font-size:24px}
.pm-noprice-n{color:var(--red-dark);font-weight:400}
.pm-tbl th{font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:none;background:var(--sunken);padding:10px 16px}
.pm-tbl td{padding:12px 16px}
.pm-tbl td b,.pm-tbl td strong{font-weight:500}
.pm-tbl .pm-who b,.pm-tbl td.pm-val{font-weight:400}
.pm-tbl tfoot td,.pm-tbl tfoot td b{font-weight:600}
#tab-paymo .p-note,.pm-foot{max-width:900px}
.pm-hid{gap:6px;padding:3px 12px;border:0;background:var(--sunken)}
.pm-unext{border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:500;color:var(--magenta-medium,#A924B4);cursor:pointer}
.pm-unext:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:900px){ .pm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ---------- Projects & people ---------- */
.field label,.em-card .field label,#pw-form .field label{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--grey-70)}
.adm-tabs{border-radius:16px;margin-bottom:24px}
.adm-glide{box-shadow:0 1px 3px rgba(0,0,0,.06);border-radius:12px}
.adm-tabs button{min-height:72px;border-radius:12px}
.adm-t b{font-size:16px;font-weight:600}
.adm-t small{font-size:13px}
.adm-tabs button svg{width:24px;height:24px}
.adm-tabs button[aria-selected="true"] svg{transform:none}
#tab-admin .console{background:var(--panel);border-radius:12px}
#tab-admin .console-tag{border-bottom:0;padding:20px 20px 4px}
#tab-admin .console-tag .t{font-size:16px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink)}
#tab-admin .console-tag .s{font-size:13px;letter-spacing:0;text-transform:none;color:var(--magenta-medium,#A924B4)}
.cp-group{border-radius:12px}
@media (min-width:1201px){ .cp-grid{grid-template-columns:repeat(7,minmax(0,1fr))} }
.cp-tile{border-radius:12px;min-height:0;height:100%}
#np-members{gap:8px}
#np-members .chip{padding:3px 12px 3px 3px;font-size:13px;min-height:0}
#np-members .chip .av{width:24px;height:24px;font-size:10px}
#admin-projects .panel{border-radius:12px;padding:20px;display:flex;flex-direction:column}
#admin-projects .panel::before{display:none}
#admin-projects .panel .btn{height:36px}
#admin-projects .panel > div:last-child{margin-top:auto!important;padding-top:14px}
.adm-co{font-size:13px;letter-spacing:0;text-transform:none}
.adm-name{font-size:16px;font-weight:600;margin-top:8px}
.adm-mlab{font-size:13px;color:var(--grey-60)}
#admin-projects .btn-danger{background:var(--panel);border:1px solid var(--line);color:#B0173A}
#admin-projects .btn-danger:hover{border-color:#B0173A;background:var(--panel)}
#tab-admin .callout{border:0;border-radius:12px;background:var(--sunken);padding:14px 20px}
@media (min-width:721px) and (max-width:1200px){ .cp-grid{grid-template-columns:repeat(4,minmax(0,1fr))} }

/* ---------- How it works ---------- */
#tab-how .steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#tab-how .step{padding:20px;border-radius:12px;background:var(--panel)}
#tab-how .s-n{font-family:inherit;font-size:13px;font-weight:500;letter-spacing:0;color:var(--magenta-medium,#A924B4)}
#tab-how .step h3{font-size:16px;line-height:22px;font-weight:600;margin:8px 0 10px}
#tab-how .step p{font-size:14px;line-height:20px;color:var(--grey-60)}
#tab-how .step code,#tab-how .callout code{background:none;border:0;padding:0;font-family:inherit;font-size:inherit;font-weight:500;color:var(--ink)}
#tab-how .callout{border:0;border-radius:12px;background:var(--sunken);padding:14px 16px;font-size:14px}
#tab-how .foot{border-top:0;font-size:13px;color:var(--grey-50)}
@media (max-width:1100px){ #tab-how .steps{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){ #tab-how .steps{grid-template-columns:1fr} }

/* ---------- Sign in ---------- */
.login-card{border-radius:16px}
.login-card .grad-line{display:none}
.login-body{padding:32px}
.login-body h1{font-size:24px;font-weight:600;margin-bottom:8px}
.login-body p{color:var(--grey-60)}
#pw-form .btn-primary{margin-top:12px;border-radius:999px}
.pw-forgot-below .pw-forgot{font-size:14px;font-weight:500}
.login-body p.pw-forgot-below{margin-top:20px}

/* ---------- Tour button + onboarding tour ---------- */
.hd-tour{position:relative;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:1px solid var(--grey-40,#a8a8a8);border-radius:999px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px;font-weight:500;cursor:pointer;margin-right:4px}
.hd-tour:hover{border-color:var(--ink)}
.hd-tour-dot{display:none;position:absolute;top:-2px;right:2px;width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#FC31BB,#FF7A00);box-shadow:0 0 0 2px var(--panel)}
.hd-tour.is-new .hd-tour-dot{display:block}
@media (max-width:1180px){ .hd-tour span{display:none} .hd-tour{width:40px;padding:0;justify-content:center} }
.tour{position:fixed;inset:0;z-index:9000}
.tour.is-modal,.tour.is-busy{background:rgba(17,17,17,.42)}
.tour-hole{position:fixed;border-radius:16px;box-shadow:0 0 0 8px rgba(255,255,255,.9),0 0 0 9999px rgba(17,17,17,.42);pointer-events:none;transition:left .25s,top .25s,width .25s,height .25s}
.tour-card{position:fixed;z-index:1;background:var(--panel);color:var(--ink);border-radius:16px;padding:20px;box-shadow:0 20px 50px rgba(0,0,0,.22)}
.tour-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.tour-n{font-size:13px;color:var(--grey-60)}
.tour-skip{border:0;background:var(--sunken);border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:500;color:var(--ink);cursor:pointer}
.tour-card h3{font-size:16px;line-height:22px;font-weight:600;margin:0 0 6px}
.tour-card p{font-size:14px;line-height:20px;color:var(--grey-60);margin:0}
.tour-dots{display:flex;gap:4px;margin:14px 0 16px}
.tour-dots i{width:6px;height:6px;border-radius:99px;background:var(--grey-30,#c6c6c6)}
.tour-dots i.done{background:var(--ink)}
.tour-dots i.on{width:18px;background:linear-gradient(90deg,#2DE1FD,#FC31BB 55%,#FF7A00)}
.tour-nav{display:flex;justify-content:space-between;align-items:center}
.tour-nav .btn,.tour-acts .btn{border-radius:999px;height:40px;padding:0 16px;gap:6px}
.tour-nav .btn span,.tour-acts .btn span{font-size:18px;line-height:1}
.tour-modal{left:50%;top:50%;transform:translate(-50%,-50%);width:min(480px,calc(100vw - 32px));padding:32px}
.tour-badge{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;color:#fff;background:linear-gradient(135deg,#2DE1FD,#FC31BB 55%,#FF7A00);margin-bottom:20px}
.tour-badge svg{width:22px;height:22px}
.tour-modal h2{font-size:24px;line-height:30px;font-weight:600;margin:0 0 8px}
.tour-modal p{font-size:16px;line-height:24px}
.tour-facts{list-style:none;margin:20px 0 0;padding:12px 16px;border-radius:12px;background:var(--sunken);display:grid;gap:8px}
.tour-facts li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink-2,var(--ink))}
.tour-facts svg{width:12px;height:12px;flex:none}
.tour-acts{display:flex;align-items:center;gap:20px;margin-top:24px}
.tour-link{border:0;background:none;padding:0;font:inherit;font-size:14px;font-weight:500;color:var(--grey-70);cursor:pointer}
.tour-link:hover{color:var(--ink)}
:root[data-theme="dark"] .tour-hole{box-shadow:0 0 0 8px rgba(255,255,255,.18),0 0 0 9999px rgba(0,0,0,.6)}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .tour-hole{box-shadow:0 0 0 8px rgba(255,255,255,.18),0 0 0 9999px rgba(0,0,0,.6)} }
@media (prefers-reduced-motion:reduce){ .tour-hole{transition:none} }
:root[data-theme="dark"] #admin-projects .btn-danger{color:#FF8A9A}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) #admin-projects .btn-danger{color:#FF8A9A} }
:root[data-theme="dark"] .pc-ibtn.pc-del{color:#FF8A9A}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .pc-ibtn.pc-del{color:#FF8A9A} }


/* ---------- Home: your active projects as a list (default) or panels ---------- */
.home-ph-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.home-pview{display:inline-flex;flex:none;padding:3px;border-radius:999px;background:var(--sunken);border:1px solid var(--line)}
.home-pview button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:999px;background:none;font:inherit;font-size:13px;font-weight:500;color:var(--grey-60);cursor:pointer}
.home-pview button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-pview button[aria-pressed="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.home-pcard{border-radius:12px;padding:16px 20px}
.home-pcard:hover{border-color:var(--magenta-medium,#A924B4);box-shadow:none;transform:none}
.hp-top{font-size:13px;letter-spacing:0;text-transform:none}
.hp-name{font-size:16px;line-height:22px}
.hp-meta,.hp-foot{font-size:13px}
.home-pgrid.is-list{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.home-pgrid.is-list .home-pcard{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr) minmax(120px,200px) minmax(200px,260px) 96px;align-items:center;gap:16px;border:0;border-radius:0;border-top:1px solid var(--line);padding:14px 20px}
.home-pgrid.is-list .home-pcard:first-child{border-top:0}
.home-pgrid.is-list .home-pcard:hover{background:var(--sunken)}
.home-pgrid.is-list .hp-name{font-size:14px;line-height:20px;font-weight:600}
.home-pgrid.is-list .hp-foot{margin-top:0;justify-content:flex-start;gap:16px}
.home-pgrid.is-list .pp-meter{grid-column:5;margin:0}
@media (max-width:1100px){ .home-pgrid.is-list .home-pcard{grid-template-columns:minmax(0,1fr) auto} .home-pgrid.is-list .hp-top{grid-column:1 / -1} .home-pgrid.is-list .hp-meta{display:none} .home-pgrid.is-list .pp-meter{grid-column:1 / -1} }
@media (max-width:640px){ .home-ph-row{flex-direction:column} .home-pgrid.is-list .home-pcard{grid-template-columns:1fr} .home-pgrid.is-list .hp-foot{justify-content:space-between} }

/* ---------- File inputs: dragging a new file over a filled field shows it'll replace ---------- */
.field.up-over .up-item{outline:1.5px solid var(--magenta-medium,#A924B4);outline-offset:2px;border-radius:12px;background:rgba(169,36,180,.05)}
.ft-head > div.ft-view{flex:none}
.ft-none{margin:0;font-size:14px;color:var(--grey-60)}

/* =====================================================================
   V1.2 (Figma "Replicate Version 1.2 (23/10)")
   ===================================================================== */

/* ---------- Header: 68 tall + 2px line; logo, links, search, Tour, you, sign out ---------- */
header.app .hd-in{height:68px;max-width:1680px;gap:24px}
header.app .grad-line{height:2px}
.hd-mark{gap:10px;flex:none}
.hd-ce{display:block;width:32px;height:32px}
.hd-mark .hd-name{display:inline;font-size:16px;line-height:22px;font-weight:600;color:var(--ink);border:0;padding:0;white-space:nowrap}
nav.hd-nav{flex:0 0 auto;height:68px;margin-left:0;justify-content:flex-start;overflow:visible}
nav.hd-nav > :first-child{margin-left:0}
nav.hd-nav > :last-child{margin-right:0}
nav.hd-nav button,nav.hd-nav .nav-more{padding:0 12px;gap:7px;font-size:14px}
nav.hd-nav .caret{font-size:10px;line-height:1;transition:transform .2s}
nav.hd-nav button[aria-expanded="true"] .caret{transform:rotate(180deg)}
header.app .hd-right{gap:24px}
.hd-tour{height:38px}
#who.who-badge{gap:10px;padding:0}
#who .who-av{padding:0;background:none}
#who .who-av .av{width:36px;height:36px;border:0;box-sizing:border-box}
#who .who-n{font-size:14px;line-height:20px;font-weight:400;text-transform:none}
#who .who-r{display:block;font-size:12px;line-height:14px;font-weight:500;letter-spacing:0;text-transform:none;background:none;-webkit-text-fill-color:currentColor;color:var(--magenta)}
#who .who-r::first-letter{text-transform:uppercase}
.hd-right{gap:10px}
#who + .hd-out{margin-left:-14px}
#hd-signout.hd-out{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--grey-70);cursor:pointer;transition:border-color .15s,color .15s}
#hd-signout.hd-out:hover,#hd-signout.hd-out:focus-visible{background:var(--panel);border-color:var(--ink);color:var(--ink)}
#hd-signout.hd-out svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:1320px){ nav.hd-nav button .ico,nav.hd-nav .nav-more .ico{display:none} #who .who-t{display:none} #who + .hd-out{margin-left:0} }
@media (max-width:1180px){ .hd-mark .hd-name{display:none} header.app .hd-in{gap:16px} header.app .hd-right{gap:12px} }
@media (max-width:1000px){ header.app .hd-in{height:60px} .hd-mark .hd-name{display:inline} }

/* ---------- Explore menu ---------- */
.ex-menu{position:fixed;z-index:70;width:620px;max-width:calc(100vw - 24px);background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.14);overflow:hidden}
.exm-cols{display:grid;grid-template-columns:1fr 1fr}
.exm-col{padding:20px 16px 18px}
.exm-col + .exm-col{border-left:1px solid var(--line)}
.exm-h{padding:0 12px 10px;font-size:13px;line-height:18px;color:var(--grey-60)}
.exm-item{display:flex;align-items:center;gap:12px;width:100%;height:44px;padding:0 12px;border:0;border-radius:8px;background:none;font:inherit;font-size:16px;color:var(--ink);text-align:left;cursor:pointer}
.exm-item:hover,.exm-item:focus-visible{background:var(--sunken);outline:none}
.exm-item svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--grey-70);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.exm-all{display:inline-flex;gap:6px;margin:14px 12px 0;padding:0;border:0;background:none;font:inherit;font-size:14px;font-weight:600;color:var(--magenta-medium,#A924B4);cursor:pointer}
.exm-all:hover,.exm-all:focus-visible{text-decoration:underline;text-underline-offset:3px;outline:none}
.exm-foot{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 28px;border-top:1px solid var(--line);background:var(--sunken);font-size:13px;color:var(--grey-60)}
.exm-run{height:28px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font:inherit;font-size:13px;color:var(--ink);cursor:pointer}
.exm-run:hover,.exm-run:focus-visible{border-color:var(--ink);outline:none}
body.exm-open main{filter:brightness(.97)}
@media (max-width:1000px){ .ex-menu{display:none} }

/* ---------- Safe zone: every page's content is at most 1600 wide (1680 less the 40px gutters), centred ---------- */
main{max-width:1680px}

/* ---------- ⓘ tips: the line under a title lives in a tooltip ---------- */
.tip-src{display:none!important}
.info-tip{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:8px;padding:0;border:0;border-radius:50%;background:none;color:var(--grey-50);vertical-align:middle;cursor:help;flex:none}
.info-tip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
.info-tip:hover,.info-tip:focus-visible{color:var(--ink);outline:none;background:var(--sunken)}
main .sec-head h2 .info-tip{width:24px;height:24px;margin-left:10px;position:relative;top:-3px}
main .sec-head h2 .info-tip svg{width:20px;height:20px}
.tip-pop{position:fixed;z-index:120;max-width:280px;padding:10px 12px;border-radius:8px;background:#111;color:#fff;font-size:13px;line-height:18px;box-shadow:0 10px 30px rgba(0,0,0,.25);pointer-events:none}
.tip-pop b,.tip-pop strong{color:#fff;font-weight:600}
.tip-pop code{background:rgba(255,255,255,.12);color:#fff;padding:0 4px;border-radius:4px;font-size:12px}
:root[data-theme="dark"] .tip-pop{background:#2a2a2a}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .tip-pop{background:#2a2a2a} }

/* ---------- Generations V1.2 ---------- */
#tab-gallery #fav-panel{display:none}
.gal-view{display:inline-flex;flex:none;padding:3px;border-radius:999px;background:var(--sunken);border:1px solid var(--line);margin-right:4px}
.gal-view button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:999px;background:none;font:inherit;font-size:13px;font-weight:500;color:var(--grey-60);cursor:pointer}
.gal-view button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gal-view button[aria-pressed="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
/* the project chip on each generation */
.gal-pchip{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;max-width:100%;height:24px;padding:0 8px;border:0;border-radius:6px;background:var(--sunken);font:inherit;font-size:12px;font-weight:500;color:var(--grey-70);text-align:left;cursor:default}
.gal-pchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.gal-pchip i{font-style:normal;font-size:9px;opacity:.7;flex:none}
button.gal-pchip{cursor:pointer}
button.gal-pchip:hover,button.gal-pchip:focus-visible{background:var(--grey-20,#e0e0e0);color:var(--ink);outline:none}
.gal-pchip.none{background:#FFE3F6;color:#A0157A}
button.gal-pchip.none:hover,button.gal-pchip.none:focus-visible{background:#FFD0F0;color:#7d0f60}
.gal-in .gal-pchip{display:flex;width:100%;margin-top:8px}
:root[data-theme="dark"] .gal-pchip.none{background:rgba(252,49,187,.18);color:#FF8AD8}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .gal-pchip.none{background:rgba(252,49,187,.18);color:#FF8AD8} }
/* Move to project */
.gal-move{position:fixed;z-index:90;width:300px;max-height:min(440px,calc(100vh - 24px));display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px rgba(0,0,0,.16);overflow:hidden}
.gm-h{padding:14px 16px 8px;font-size:14px;font-weight:600}
.gm-search{display:flex;align-items:center;gap:8px;margin:0 12px 6px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px}
.gm-search:focus-within{border-color:var(--ink)}
.gm-search svg{width:14px;height:14px;fill:none;stroke:var(--grey-60);stroke-width:1.6;flex:none}
.gm-search input{flex:1;min-width:0;border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--ink);outline:none}
.gm-list{overflow-y:auto;padding:4px 0}
.gm-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 16px;border:0;background:none;font:inherit;text-align:left;color:var(--ink);cursor:pointer}
button.gm-opt:hover,button.gm-opt:focus-visible{background:var(--sunken);outline:none}
.gm-opt.on{background:var(--sunken)}
.gm-none{cursor:default}
.gm-t{display:flex;flex-direction:column;min-width:0;flex:1}
.gm-n{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-c{font-size:12px;color:var(--grey-60);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-tick{flex:none;width:14px;height:8px;border-left:2px solid var(--magenta-medium,#A924B4);border-bottom:2px solid var(--magenta-medium,#A924B4);transform:rotate(-45deg) translate(1px,-2px)}
.gm-empty{padding:10px 16px;font-size:13px;color:var(--grey-60)}
.gm-note{padding:10px 16px;border-top:1px solid var(--line);background:var(--sunken);font-size:12px;line-height:16px;color:var(--grey-60)}
/* List view */
#gal-grid.gal-list{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.gal-lhead,.gal-row{display:grid;grid-template-columns:44px minmax(220px,2.2fr) minmax(130px,1.2fr) minmax(90px,.8fr) minmax(130px,1fr) 90px 80px 108px;align-items:center;gap:0 12px;padding:0 12px}
.gal-lhead{height:40px;background:var(--sunken);border-bottom:1px solid var(--line);font-size:12px;font-weight:500;color:var(--grey-60)}
.gal-lhead .r,.gr-cost{text-align:right}
.gal-row{min-height:72px;border-bottom:1px solid var(--line);font-size:14px;color:var(--ink);cursor:pointer;outline:none}
.gal-row:last-child{border-bottom:0}
.gal-row:hover,.gal-row:focus-visible{background:var(--sunken)}
.gal-row.picked{background:rgba(169,36,180,.06)}
.gr-ck{display:grid;place-items:center}
.gr-ck .gal-check{position:static;width:18px;height:18px;border:1.5px solid var(--grey-40,#a8a8a8);border-radius:4px;background:var(--panel);cursor:pointer;opacity:1}
.gr-ck .gal-check[aria-pressed="true"]{background:var(--magenta-medium,#A924B4);border-color:var(--magenta-medium,#A924B4);box-shadow:inset 0 0 0 3px var(--panel)}
.gr-out{display:flex;align-items:center;gap:12px;min-width:0}
.gr-th{position:relative;flex:none;width:48px;height:48px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#3b1050,#c2288f)}
.gr-th img{width:100%;height:100%;object-fit:cover;display:block}
.gr-play{position:absolute;inset:0;margin:auto;width:0;height:0;border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;transform:translateX(2px)}
.gr-t{display:flex;flex-direction:column;min-width:0}
.gr-t b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-t em{font-style:normal;font-size:13px;color:var(--grey-60)}
.gr-model,.gr-who{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2,var(--ink))}
.gr-proj{min-width:0}
.gr-date{color:var(--ink-2,var(--ink))}
.gr-cost{font-weight:500}
.gr-acts{display:flex;justify-content:flex-end;gap:4px}
.gr-btn{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:none;color:var(--grey-60);cursor:pointer}
.gr-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gr-more svg{fill:currentColor;stroke:none}
.gr-btn:hover,.gr-btn:focus-visible{background:var(--panel);color:var(--ink);outline:none}
.gr-btn.gal-fav.on{color:var(--magenta)}
.gr-btn.gal-fav.on svg{fill:currentColor}
.gal-peek{position:fixed;z-index:80;width:320px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 18px 44px rgba(0,0,0,.18);pointer-events:none}
.gp-media{display:block;width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--sunken)}
.gp-media img,.gp-media video{width:100%;height:100%;object-fit:cover;display:block}
.gp-cap{display:block;padding:8px 4px 2px;font-size:12px;color:var(--grey-60)}
@media (max-width:1100px){ .gal-lhead,.gal-row{grid-template-columns:40px minmax(200px,2fr) minmax(110px,1fr) minmax(120px,1fr) 70px 70px} .gal-lhead>:nth-child(3),.gr-model,.gal-lhead>:nth-child(4),.gr-who{display:none} }
@media (max-width:700px){ .gal-lhead{display:none} .gal-row{grid-template-columns:36px minmax(0,1fr) auto;padding:8px 12px} .gr-proj,.gr-date,.gr-acts{display:none} }
/* Models used on a project */
.gal-pstrip{margin:0 0 16px;padding:20px;border-radius:12px;background:#FFE3F6}
:root[data-theme="dark"] .gal-pstrip{background:rgba(252,49,187,.12)}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .gal-pstrip{background:rgba(252,49,187,.12)} }
.gps-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.gps-h b{font-size:16px;font-weight:600}
.gps-tot{font-size:13px;color:var(--grey-70)}
.gps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gps-card{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1.5px solid transparent;border-radius:10px;background:var(--panel)}
.gps-card.top{border-color:var(--magenta-medium,#A924B4)}
.gps-th{flex:none;width:44px;height:44px;border-radius:8px;overflow:hidden;background:var(--sunken)}
.gps-th img{width:100%;height:100%;object-fit:cover;display:block}
.gps-t{display:flex;flex-direction:column;min-width:0;flex:1;font-size:13px;color:var(--grey-60)}
.gps-n{display:flex;align-items:center;gap:8px;min-width:0}
.gps-n b{font-size:14px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gps-most{flex:none;font-style:normal;font-size:11px;font-weight:500;padding:1px 8px;border-radius:999px;background:#FFE3F6;color:#A0157A}
.gps-card .btn{flex:none;border-radius:999px}
@media (max-width:1000px){ .gps-grid{grid-template-columns:1fr} .gps-head{flex-direction:column;align-items:flex-start;gap:4px} }
.gal-empty-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.gal-empty-card b{font-size:16px;font-weight:600;color:var(--ink)}
.gal-empty-card span{font-size:14px;color:var(--grey-60)}
.gal-empty-card .btn{margin-top:8px;border-radius:999px}
#gal-grid:not(.gal-list) .gal-item{display:flex;flex-direction:column}
#gal-grid:not(.gal-list) .gal-item .gal-in{display:flex;flex-direction:column;gap:3px;flex:1}
#gal-grid:not(.gal-list) .gal-in .gal-when{margin-bottom:8px}
#gal-grid:not(.gal-list) .gal-in .gal-pchip{margin-top:auto}

/* ---------- Most used: a ranked list with bars (V1.2) ---------- */
.home-top-slot .ft-row.ft-ranked{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(3,auto);gap:4px 24px}
.home-top-slot .ft-ranked .ft-card{display:grid;grid-template-columns:36px 36px minmax(110px,1.1fr) minmax(80px,1.6fr) 84px;align-items:center;gap:12px;padding:8px 10px;border-radius:10px}
.home-top-slot .ft-ranked .ft-card:hover,.home-top-slot .ft-ranked .ft-card:focus-visible{background:var(--sunken);outline:none}
.home-top-slot .ft-ranked .ft-card:hover b{text-decoration:none}
.home-top-slot .ft-ranked .ft-no{font-size:20px;line-height:1;font-weight:400;color:var(--grey-50);font-variant-numeric:tabular-nums}
.home-top-slot .ft-ranked .ft-no.hot{background:linear-gradient(135deg,#2DE1FD,#FC31BB 60%,#FF7A00);-webkit-background-clip:text;background-clip:text;color:transparent}
.home-top-slot .ft-ranked .ft-cover,.home-top-slot .ft-ranked .ft-first .ft-cover{width:36px;height:36px;border-radius:6px}
.home-top-slot .ft-ranked .ft-t b{font-size:14px;line-height:20px;font-weight:500}
.home-top-slot .ft-ranked .ft-own{font-size:12px;line-height:16px}
.ft-bar{display:block;height:6px;border-radius:99px;background:var(--sunken);overflow:hidden}
.ft-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2DE1FD,#FC31BB 60%,#FF7A00)}
.home-top-slot .ft-ranked .ft-meta{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.home-top-slot .ft-ranked .ft-meta b{font-size:13px;font-weight:400;color:var(--ink);white-space:nowrap}
.home-top-slot .ft-ranked .ft-meta span{display:block;margin:0;font-size:12px;color:var(--grey-60);white-space:nowrap}
.ft-foot{display:inline-flex;gap:6px;margin-top:14px;padding:0;border:0;background:none;font:inherit;font-size:13px;color:var(--grey-60);cursor:pointer}
.ft-foot:hover,.ft-foot:focus-visible{color:var(--ink);outline:none}
@media (max-width:900px){ .home-top-slot .ft-row.ft-ranked{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none} .home-top-slot .ft-ranked .ft-card{grid-template-columns:28px 36px minmax(0,1fr) 70px} .home-top-slot .ft-ranked .ft-bar{display:none} }

/* ---------- Home for members (V1.2) ---------- */
#home-body.home-member{gap:32px}
.hm{display:flex;flex-direction:column;gap:32px}
.hm-stats{display:flex;flex-wrap:wrap;gap:0}
.hm-stat{display:flex;flex-direction:column;gap:2px;padding:0 32px;border-left:1px solid var(--line)}
.hm-stat:first-child{padding-left:0;border-left:0}
.hm-l{font-size:13px;line-height:18px;color:var(--grey-60)}
.hm-stat b{font-size:24px;line-height:32px;font-weight:700;color:var(--ink)}
.hm-n{font-size:13px;line-height:18px;color:var(--grey-60)}
.hm-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.hm-two > .hm-card{border:0;border-radius:0}
.hm-two > .hm-card + .hm-card{border-left:1px solid var(--line)}
.hm-card{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.hm-ch{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.hm-link{flex:none;display:inline-flex;gap:6px;padding:0;border:0;background:none;font:inherit;font-size:13px;color:var(--grey-60);cursor:pointer}
.hm-link:hover,.hm-link:focus-visible{color:var(--ink);outline:none}
.hm-favs{display:flex;flex-direction:column}
.hm-fav{display:flex;align-items:center;gap:14px;padding:8px 0}
.hm-th{position:relative;flex:none;width:32px;height:32px;border-radius:6px;overflow:hidden;background:var(--sunken)}
.hm-th > *{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-t{display:flex;flex-direction:column;min-width:0;flex:1}
.hm-t b{font-size:14px;line-height:20px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-t span{font-size:12px;line-height:16px;color:var(--grey-60)}
.hm-star{flex:none;color:var(--magenta-medium,#A924B4);font-size:14px}
.hm-run{flex:none;height:28px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font:inherit;font-size:12px;font-weight:500;color:var(--ink);cursor:pointer}
.hm-run:hover,.hm-run:focus-visible{border-color:var(--ink);outline:none}
.hm-recent{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 12px}
.hm-rc{display:flex;flex-direction:column;min-width:0}
.hm-rcov{position:relative;display:block;aspect-ratio:2/1;border-radius:8px;overflow:hidden;background:var(--sunken);margin-bottom:8px}
.hm-rcov > img,.hm-rcov > .m-skel,.hm-rcov > video,.hm-rcov > .cover,.hm-rcov > span:not(.hm-chip){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-chip{position:absolute;left:8px;top:8px;z-index:1;padding:2px 8px;border-radius:999px;background:#fff;font-size:11px;font-weight:500;color:#111}
.hm-again{position:absolute;right:8px;bottom:8px;z-index:1;height:26px;padding:0 10px;border:0;border-radius:999px;background:#111;font:inherit;font-size:11px;font-weight:500;color:#fff;cursor:pointer}
.hm-again:hover,.hm-again:focus-visible{background:var(--magenta);outline:none}
.hm-rn{font-size:13px;line-height:18px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-ro{font-size:12px;line-height:16px;color:var(--grey-60)}
.hm-empty{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:20px;border-radius:10px;background:var(--sunken)}
.hm-empty b{font-size:16px;line-height:22px;font-weight:600;color:var(--ink)}
.hm-empty span{font-size:14px;line-height:20px;color:var(--grey-60)}
.hm-empty .btn{margin-top:10px;border-radius:999px}
/* projects list */
.hm-projects{padding:0;overflow:hidden}
.hm-ph{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;padding:16px 20px}
.hm-ph .home-ph{margin-right:auto}
.hm-psearch{display:flex;align-items:center;gap:8px;width:300px;max-width:100%;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel)}
.hm-psearch:focus-within{border-color:var(--ink)}
.hm-psearch svg{flex:none;width:14px;height:14px;fill:none;stroke:var(--grey-60);stroke-width:1.6}
.hm-psearch input{flex:1;min-width:0;border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--ink);outline:none}
.hm-psearch input::-webkit-search-cancel-button{display:none}
.hm-pclear{flex:none;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:var(--sunken);font-size:14px;line-height:1;color:var(--grey-70);cursor:pointer}
.hm-pchips{display:inline-flex;padding:3px;border-radius:999px;background:var(--sunken)}
.hm-pchips button{height:30px;padding:0 12px;border:0;border-radius:999px;background:none;font:inherit;font-size:12px;font-weight:500;color:var(--grey-70);cursor:pointer;white-space:nowrap}
.hm-pchips button em{font-style:normal;color:var(--grey-50);margin-left:2px}
.hm-pchips button[aria-pressed="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.hm-projects .hm-empty{margin:0 20px 20px}
.hm-ptbl{display:flex;flex-direction:column}
.hm-prow{display:grid;grid-template-columns:minmax(220px,3fr) minmax(140px,1.4fr) 120px minmax(110px,1.2fr) 120px 100px 120px;align-items:center;gap:12px;width:100%;min-height:50px;padding:8px 20px;border:0;border-top:1px solid var(--line);background:var(--panel);font:inherit;font-size:13px;color:var(--ink);text-align:left;cursor:pointer}
.hm-prow.hm-phead{min-height:36px;background:var(--sunken);font-size:12px;font-weight:500;color:var(--grey-60);cursor:default}
.hm-prow .r{text-align:right;justify-content:flex-end}
button.hm-prow:hover,button.hm-prow:focus-visible{background:var(--sunken);outline:none}
.hm-pn{display:flex;flex-direction:column;min-width:0}
.hm-pn b{font-size:14px;line-height:20px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-pn em{font-style:normal;font-size:12px;color:var(--grey-60)}
.hm-pc{display:flex;align-items:center;gap:8px;min-width:0}
.hm-pc > span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-plogo{flex:none;display:inline-flex;align-items:center;height:24px;max-width:72px}
.hm-plogo img{height:18px;max-width:72px;width:auto;object-fit:contain;margin:0}
.hm-pini{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:4px;background:var(--sunken);font-size:10px;font-weight:600;color:var(--grey-70)}
.hm-st{display:inline-block;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:500;white-space:nowrap}
.hm-st.st-active{background:#DDF6E4;color:#14743A}
.hm-st.st-presales{background:#D9F6FC;color:#0B6E80}
.hm-st.st-client-review{background:#FFE6D6;color:#A04416}
.hm-st.st-archived{background:var(--sunken);color:var(--grey-60)}
.hm-plead{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2,var(--ink))}
.hm-pspend{display:flex;flex-direction:column;align-items:flex-end}
.hm-pspend b{font-weight:500}
.hm-pspend em{font-style:normal;font-size:11px;color:var(--grey-60)}
.hm-pgo{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--magenta-medium,#A924B4)}
.hm-pgo span{opacity:0;transition:opacity .15s}
.hm-pgo i{font-style:normal;color:var(--grey-50)}
button.hm-prow:hover .hm-pgo span,button.hm-prow:focus-visible .hm-pgo span{opacity:1}
button.hm-prow:hover .hm-pgo i{color:var(--magenta-medium,#A924B4)}
:root[data-theme="dark"] .hm-st.st-active{background:rgba(52,199,89,.16);color:#7EE29A}
:root[data-theme="dark"] .hm-st.st-presales{background:rgba(45,225,253,.14);color:#7FE6F7}
:root[data-theme="dark"] .hm-st.st-client-review{background:rgba(255,122,0,.16);color:#FFB27A}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .hm-st.st-active{background:rgba(52,199,89,.16);color:#7EE29A} :root:not([data-theme="light"]) .hm-st.st-presales{background:rgba(45,225,253,.14);color:#7FE6F7} :root:not([data-theme="light"]) .hm-st.st-client-review{background:rgba(255,122,0,.16);color:#FFB27A} }
@media (max-width:1200px){ .hm-prow{grid-template-columns:minmax(200px,3fr) minmax(120px,1.4fr) 110px 110px 90px 28px} .hm-prow > :nth-child(4){display:none} .hm-pgo span{display:none} }
@media (max-width:1000px){ .hm-two{grid-template-columns:1fr} .hm-two > .hm-card + .hm-card{border-left:0;border-top:1px solid var(--line)} }
@media (max-width:760px){ .hm-stat{padding:0 16px} .hm-recent{grid-template-columns:repeat(2,minmax(0,1fr))} .hm-psearch{width:100%} .hm-pchips{max-width:100%;overflow-x:auto} .hm-prow{grid-template-columns:minmax(0,1fr) auto} .hm-prow > :nth-child(2),.hm-prow > :nth-child(4),.hm-prow > :nth-child(5),.hm-prow > :nth-child(6),.hm-prow > :nth-child(7){display:none} }

/* ---------- Explore V1.2: no hero; Latest + New on Replicate beside Popular; All models ---------- */
#tab-explore .ex-hero{padding:0;margin:0 0 32px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
#tab-explore .ex-hero .ex-bg{display:none}
#tab-explore .ex-hero .sec-head{margin:0}
#tab-explore .ex-hero .sec-head h2,#tab-explore .ex-hero h2{color:var(--ink)}
/* Explore's own search (the only one: it's not in the header). */
#tab-explore .ex-hero .searchbar{display:flex;align-items:center;gap:10px;max-width:640px;height:44px;margin-top:16px;padding:0 8px 0 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:none}
#tab-explore .ex-hero .searchbar:focus-within{border-color:var(--ink)}
#tab-explore .ex-hero .searchbar input{font-size:14px}
#tab-explore .ex-kbd{flex:none;padding:3px 8px;border-radius:6px;background:var(--sunken);border:0;font-family:inherit;font-size:12px;line-height:16px;font-weight:500;color:var(--grey-60)}
#tab-explore .searchbar:focus-within .ex-kbd{visibility:hidden}
#lateststrip{display:none!important}
.ex-h{margin:0 0 16px;font-size:20px;line-height:28px;font-weight:600;color:var(--ink)}
.ex-top{display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:32px;margin-bottom:40px}
.ex-top:has(.ex-pop[hidden]){grid-template-columns:minmax(0,1fr)}
.ex-main{display:flex;flex-direction:column;gap:28px;min-width:0}
.ex-feat{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);min-height:340px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.ex-fcov{position:relative;display:block;padding:0;border:0;background:var(--sunken);cursor:pointer;overflow:hidden}
.ex-fcov > :not(.ex-fslug){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ex-fslug{position:absolute;left:12px;bottom:12px;z-index:1;padding:4px 10px;border-radius:6px;background:#111;font-size:12px;color:#fff}
.ex-ft{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:32px 40px}
.ex-fown{font-size:16px;color:var(--grey-60)}
.ex-fname{font-size:28px;line-height:34px;font-weight:600;color:var(--ink);word-break:break-word}
.ex-ftag{margin:4px 0 0;font-size:16px;line-height:24px;color:var(--ink)}
.ex-fdesc{margin:0;font-size:14px;line-height:20px;color:var(--grey-60);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ex-go{align-self:flex-start;margin-top:8px;padding:0;border:0;background:none;font:inherit;font-size:14px;font-weight:600;color:var(--magenta-medium,#A924B4);cursor:pointer}
.ex-go:hover,.ex-go:focus-visible{text-decoration:underline;text-underline-offset:3px;outline:none}
.ex-newhead{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.ex-newhead .ex-h{margin:0 auto 0 0}
.ex-pg{font-size:13px;color:var(--grey-60)}
.ex-arrow{width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);font-size:16px;line-height:1;color:var(--ink);cursor:pointer}
.ex-arrow:disabled{opacity:.4;cursor:default}
.ex-new{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ex-ncard,.ex-pcard{display:flex;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);font:inherit;color:var(--ink);text-align:left;cursor:pointer;overflow:hidden;transition:border-color .15s}
.ex-ncard:hover,.ex-pcard:hover,.ex-ncard:focus-visible,.ex-pcard:focus-visible{border-color:var(--grey-40,#a8a8a8);outline:none}
.ex-ncard{flex-direction:column}
.ex-ncov{position:relative;display:block;aspect-ratio:2.2/1;background:var(--sunken)}
.ex-ncov > :not(.ex-chip){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ex-chip{position:absolute;left:12px;top:12px;z-index:1;padding:2px 8px;border-radius:999px;background:#fff;font-size:12px;font-weight:500;color:#111}
.ex-nt{display:flex;flex-direction:column;gap:4px;padding:14px 16px 18px}
.ex-nn{font-size:15px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-nn span{color:var(--grey-60)}
.ex-nn b{font-weight:600}
.ex-nd{font-size:13px;line-height:18px;color:var(--grey-60);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ex-popl{display:flex;flex-direction:column;gap:16px}
.ex-pcard{flex-direction:row;min-height:120px}
.ex-pcov{position:relative;flex:none;width:120px;background:var(--sunken)}
.ex-pcov > *{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ex-pt{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;padding:14px 16px}
.ex-pm{display:flex;justify-content:space-between;align-items:center;margin-top:auto;font-size:12px}
.ex-pm b{font-weight:600;color:var(--magenta-medium,#A924B4)}
.ex-off{color:var(--grey-70)}
.ex-help{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.ex-help span{color:var(--magenta-medium,#A924B4)}
.ex-help:hover,.ex-help:focus-visible{border-color:var(--grey-40,#a8a8a8);outline:none}
.ex-allh{margin-top:0}
/* light filter chips (selected black) */
#tab-explore #catfilters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
#tab-explore .cf-chip{background:var(--panel);border:1px solid var(--line);color:var(--grey-70);box-shadow:none}
#tab-explore .cf-chip .cf-ic{color:var(--grey-70)}
#tab-explore .cf-chip:hover{border-color:var(--grey-40,#a8a8a8);color:var(--ink)}
#tab-explore .cf-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--ground,#fff)}
#tab-explore .cf-chip[aria-pressed="true"] .cf-ic{color:inherit}
@media (max-width:1300px){ .ex-top{grid-template-columns:minmax(0,1fr) 400px} .ex-ft{padding:24px} }
@media (max-width:1100px){ .ex-top{grid-template-columns:1fr} .ex-new{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:760px){ .ex-feat{grid-template-columns:1fr} .ex-fcov{aspect-ratio:2/1} .ex-new{grid-template-columns:1fr} .ex-fname{font-size:22px;line-height:28px} }
.ex-top.no-latest{grid-template-columns:minmax(0,1fr)}
.ex-top.no-latest .ex-main{display:none}
.ex-top.no-latest .ex-popl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ex-top.no-latest .ex-help{max-width:520px}
@media (max-width:900px){ .ex-top.no-latest .ex-popl{grid-template-columns:1fr} }
@media (max-width:760px){ .hm-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px} .hm-stat{padding:0;border:0} }
@media (max-width:1560px){ .gal-view button span{display:none} .gal-view button{padding:0 10px} }

/* ---------- Most used on Home: back on its dark brand background, so it stands apart ---------- */
/* The same gradient as the hero at the top of Home. */
#tab-home .topstrip,.home-top-slot .topstrip{position:relative;overflow:hidden;border:0;border-radius:16px;color:#fff;
  background:linear-gradient(120deg,#1b1330 0%,#4a1d5e 45%,#c1287f 85%,#ff7a00 130%);
  box-shadow:0 20px 50px -24px rgba(74,29,94,.75)}
.home-top-slot .topstrip::before{display:none}
.home-top-slot .ft-head b,.home-top-slot .ft-t b,.home-top-slot .ft-ranked .ft-t b,.home-top-slot .ft-ranked .ft-meta b{color:#fff}
.home-top-slot .ft-own,.home-top-slot .ft-ranked .ft-own,.home-top-slot .ft-ranked .ft-meta span,.home-top-slot .ft-meta,.home-top-slot .ft-none{color:rgba(255,255,255,.62)}
.home-top-slot .ft-ranked .ft-no{color:rgba(255,255,255,.55)}
.home-top-slot .ft-ranked .ft-no.hot{background:none;-webkit-text-fill-color:currentColor;color:#fff}
.home-top-slot .ft-ranked .ft-card:hover,.home-top-slot .ft-ranked .ft-card:focus-visible{background:rgba(255,255,255,.08)}
.home-top-slot .ft-ranked .ft-cover{background:rgba(255,255,255,.08)}
.home-top-slot .ft-bar{background:rgba(255,255,255,.18)}
.home-top-slot .ft-bar i{background:linear-gradient(90deg,#2DE1FD,#fff)}
.home-top-slot .info-tip{color:rgba(255,255,255,.6)}
.home-top-slot .info-tip:hover,.home-top-slot .info-tip:focus-visible{color:#fff;background:rgba(255,255,255,.1)}
.home-top-slot .ft-view{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12)}
.home-top-slot .ft-view button{color:rgba(255,255,255,.7)}
.home-top-slot .ft-view button[aria-pressed="true"]{background:#fff;color:#111;box-shadow:none}
.home-top-slot .ft-foot{color:rgba(255,255,255,.65)}
.home-top-slot .ft-foot:hover,.home-top-slot .ft-foot:focus-visible{color:#fff}


/* ---------- People list (Projects & people): readable on any width ---------- */
.person-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:6px 14px;padding:14px 0}
.person-row .pwho{gap:1px}
.person-row .pwho b{font-size:15px;line-height:20px;font-weight:600}
.person-row .a-meta{font-size:13px;line-height:18px;overflow-wrap:normal}
.person-row .p-email{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-row .acts{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.person-row .p-pills{display:flex;flex-wrap:wrap;gap:6px}
.person-row .rolepill{display:inline-block;padding:3px 10px;border:0;border-radius:999px;background:var(--sunken);font-size:12px;line-height:16px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--grey-70);white-space:nowrap}
.person-row .rolepill.pr-role::first-letter{text-transform:uppercase}
.person-row .rolepill.pr-temp{background:#FFF1E6;color:#A04416}
.person-row .rolepill.pr-off{background:#FDE7EA;color:#92001E}
:root[data-theme="dark"] .person-row .rolepill.pr-temp{background:rgba(255,122,0,.16);color:#FFB27A}
:root[data-theme="dark"] .person-row .rolepill.pr-off{background:rgba(255,80,110,.16);color:#FF8A9A}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .person-row .rolepill.pr-temp{background:rgba(255,122,0,.16);color:#FFB27A} :root:not([data-theme="light"]) .person-row .rolepill.pr-off{background:rgba(255,80,110,.16);color:#FF8A9A} }
.people-prune-row{margin:0 0 12px}
@media (max-width:700px){
  .person-row{grid-template-columns:40px minmax(0,1fr);align-items:start}
  .person-row .acts{grid-column:2;justify-content:space-between;flex-wrap:wrap;margin-top:6px}
  .person-row .acts .btn{margin-left:auto}
  .people-prune-row .btn{width:100%;justify-content:center;white-space:normal;height:auto;min-height:40px}
}
@media (max-width:640px){ .adm-tabs button{padding:8px 10px;gap:8px;min-height:56px} .adm-tabs .adm-n{min-width:26px;height:24px;padding:0 8px;font-size:12px} .adm-t b{font-size:15px} }

/* ---------- Phone menu: Explore opens like the desktop Explore menu ---------- */
.mnav-exbtn .mnav-caret{margin-left:auto;font-style:normal;font-size:12px;color:var(--grey-60);transition:transform .2s}
.mnav-exbtn[aria-expanded="true"] .mnav-caret{transform:rotate(180deg)}
.mnav-sub{margin:0 0 8px 44px;padding:4px 0 8px;border-left:1px solid var(--line)}
.mnav-subh{margin:12px 0 4px 14px;font-size:12px;color:var(--grey-60)}
.mnav-subitem{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:0 14px;border:0;border-radius:8px;background:none;font:inherit;font-size:15px;color:var(--ink);text-align:left;cursor:pointer}
.mnav-subitem:active,.mnav-subitem:focus-visible{background:var(--sunken);outline:none}
.mnav-subitem svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--grey-70);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mnav-suball{font-weight:600;color:var(--magenta-medium,#A924B4);gap:6px}
.mnav-runs{display:flex;flex-wrap:wrap;gap:8px;padding:4px 14px 0}

/* ---------- Header: the links sit in the centre of the bar (logo left, Tour + you right) ---------- */
@media (min-width:1001px){
  header.app .hd-in{display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center}
  header.app .hd-mark{justify-self:start}
  header.app nav.hd-nav{justify-self:center;justify-content:center}
  header.app .hd-right{justify-self:end;margin-left:0}
}

/* ---------- Edit person: drop a photo ---------- */
.pe-photo-field{grid-column:1 / -1}
.pe-photo-drop{display:flex;align-items:center;gap:16px;padding:14px 16px;border:1.5px dashed var(--grey-30,#c6c6c6);border-radius:12px;background:var(--panel);cursor:pointer;transition:border-color .15s,background .15s}
.pe-photo-drop:hover,.pe-photo-drop:focus-visible,.pe-photo-drop.over{border-color:var(--magenta-medium,#A924B4);background:rgba(169,36,180,.04);outline:none}
.pe-photo-drop.over{border-style:solid}
.pe-photo-drop.busy{opacity:.7;cursor:progress}
.pe-photo-drop .pe-photo-view{width:64px;height:64px}
.pe-photo-t{display:flex;flex-direction:column;gap:2px;font-size:14px;color:var(--grey-70)}
.pe-photo-t b{font-weight:600;color:var(--ink)}
.pe-photo-t u{color:var(--magenta-medium,#A924B4);text-underline-offset:3px}
.pe-photo-t em{font-style:normal;font-size:12px;color:var(--grey-50)}
.pe-photo-field .pe-photo{width:100%;margin-top:8px}
.pe-photo-msg{display:block;min-height:18px;margin-top:6px;font-size:12px;color:var(--grey-60)}
.pe-photo-msg.bad{color:var(--red-dark,#92001E)}
/* Monthly spend: invoice charges with no run in the console, under their month. */
.inv-unm td{padding-top:0;font-size:12.5px;color:var(--ink-2);border-top:0;white-space:normal}
.inv-unm-lab{color:var(--ink-3,var(--ink-2))}

/* ---- V1.3 Generations: Connect beside the title; Model, Date and Sort filters ---- */
#tab-gallery .sec-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
#tab-gallery .sec-head h2{flex:1 1 auto}
#tab-gallery .sec-head .gal-connect-btn{margin-left:auto;height:42px;padding:0 20px;border-radius:999px}
.gal-bar .gal-proj{flex:0 0 250px;min-width:0;width:250px}
.gfd{position:relative}
.gfd-btn,.gal-who-btn{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font:inherit;font-size:14px;color:var(--ink);cursor:pointer;white-space:nowrap;position:relative}
.gal-who-btn{padding-right:34px}
.gfd-btn:hover,.gfd.open .gfd-btn{border-color:var(--grey-60)}
.gfd-l,.gal-who-l{font-size:12px;color:var(--grey-60)}
.gfd-v{font-weight:600}
.gfd-c{width:7px;height:7px;margin:-3px 2px 0 4px;border-right:1.7px solid #8D8D8D;border-bottom:1.7px solid #8D8D8D;transform:rotate(45deg);transition:transform .18s}
.gfd.open .gfd-c{transform:rotate(-135deg);margin-top:3px}
/* In use: black, with ✕ to clear it (Made by too). */
.gfd-btn.set,.gal-who-btn.set,.gal-who-btn.set:hover{background:var(--ink);border-color:var(--ink);color:var(--ground)}
.gfd-btn.set .gfd-l,.gal-who-btn.set .gal-who-l{color:rgba(255,255,255,.62)}
.gal-who-btn.set{padding-right:14px}
.gal-who-btn.set::after{display:none}
.gfd-x{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:-4px;border-radius:50%;font-size:11px;line-height:1;color:inherit;opacity:.8}
.gfd-x:hover{opacity:1;background:rgba(255,255,255,.18)}
.gfd-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:60;width:280px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 18px 40px -18px rgba(0,0,0,.35);font-size:14px}
.gfd-menu[hidden]{display:none}
.gfd-models{width:320px;padding:12px 0 0}
.gfd-h{font-size:14px;font-weight:600;color:var(--ink);padding:0 0 10px}
.gfd-models .gfd-h,.gfd-models .gfd-find,.gfd-models .gfd-list{margin:0 12px}
.gfd-find{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.gfd-find svg{width:14px;height:14px;fill:none;stroke:var(--grey-60);stroke-width:1.8;flex:none}
.gfd-find input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:13.5px;color:var(--ink)}
.gfd-find:focus-within{border-color:var(--grey-60)}
.gfd-list{max-height:min(320px,50vh);overflow:auto;padding:4px 0 8px}
.gfd-g{font-size:12px;color:var(--grey-60);padding:12px 0 6px}
.gfd-opt{display:flex;align-items:center;gap:10px;width:100%;padding:7px 0;border:0;background:none;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.gfd-box{width:16px;height:16px;border:1.5px solid var(--grey-30,#bbb);border-radius:4px;flex:none;position:relative}
.gfd-opt[aria-checked="true"] .gfd-box{background:var(--ink);border-color:var(--ink)}
.gfd-opt[aria-checked="true"] .gfd-box::after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border:solid var(--ground);border-width:0 1.8px 1.8px 0;transform:rotate(45deg)}
.gfd-opt[aria-checked="true"] .gfd-n{font-weight:600}
.gfd-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gfd-k{font-size:12px;color:var(--grey-60);font-variant-numeric:tabular-nums}
.gfd-none{padding:14px 0;color:var(--grey-60);font-size:13px}
.gfd-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 12px;border-top:1px solid var(--line);font-size:12.5px;color:var(--grey-60)}
.gfd-clear,.gal-clear-all{border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer}
.gal-clear-all{margin-left:12px;font-size:12.5px;text-decoration:underline;text-underline-offset:2px}
.gfd-pre{display:flex;align-items:center;justify-content:space-between;width:100%;height:38px;padding:0 10px;margin:0 -10px;width:calc(100% + 20px);border:0;border-radius:8px;background:none;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.gfd-pre:hover{background:var(--sunken)}
.gfd-pre[aria-checked="true"],.gfd-custom[aria-expanded="true"]{background:var(--sunken);font-weight:600}
.gfd-pre i{font-style:normal;color:var(--ink)}
.gfd-range{border-top:1px solid var(--line);margin-top:8px;padding-top:12px}
.gfd-ft{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gfd-ft label{display:flex;align-items:center;gap:6px;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:10px;font-size:12px;color:var(--grey-60)}
.gfd-ft label:focus-within{border-color:var(--ink)}
.gfd-ft input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:12.5px;color:var(--ink);padding:0}
.gfd-mo{display:flex;align-items:center;justify-content:space-between;margin:12px 0 6px;font-size:13px}
.gfd-nav{width:28px;height:28px;border:0;border-radius:50%;background:none;font-size:18px;line-height:1;color:var(--ink);cursor:pointer}
.gfd-nav:hover:not(:disabled){background:var(--sunken)}
.gfd-nav:disabled{opacity:.3;cursor:default}
.gfd-wk,.gfd-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.gfd-wk span{font-size:11px;color:var(--grey-60);padding:4px 0}
.gfd-day{height:34px;border:0;background:none;font:inherit;font-size:12.5px;color:var(--ink);cursor:pointer;border-radius:50%}
.gfd-day:hover:not(:disabled){background:var(--sunken)}
.gfd-day.mid{background:var(--sunken);border-radius:0}
.gfd-day.end,.gfd-day.end:hover:not(:disabled){background:var(--ink);color:var(--ground);font-weight:600}
.gfd-day.today:not(.end){color:var(--magenta);font-weight:600}
.gfd-day:disabled{color:var(--grey-30,#bbb);cursor:default}
.gfd-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.gfd-acts .btn{border-radius:999px}
#gal-sort .gfd-menu{left:auto;right:0}
/* Day headings across the grid (and the list). */
.gal-day{grid-column:1/-1;font-size:16px;font-weight:600;color:var(--ink);margin:14px 0 2px}
.gal-grid > .gal-day:first-child{margin-top:0}
.gal-grid.gal-list > .gal-day{padding:14px 12px 8px;margin:0;background:var(--panel);border-bottom:1px solid var(--line)}
/* Nothing matches the filters. */
.gal-nomatch{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:none;padding:44px 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel);text-align:center}
.gal-nomatch b{font-size:16px;font-weight:600;color:var(--ink)}
.gal-nomatch .btn{margin-top:10px;border-radius:999px}
.gnm-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--sunken);margin-bottom:6px}
.gnm-ic svg{width:20px;height:20px;fill:none;stroke:var(--grey-60);stroke-width:1.8}
@media (max-width:900px){
  .gal-bar .gal-proj{flex:1 1 100%;width:auto}
  .gal-bar .gfd,.gal-bar .gal-who{flex:1 1 calc(50% - 5px);min-width:0}
  .gal-bar .gfd-btn,.gal-bar .gal-who-btn{width:100%}
  .gfd-v{overflow:hidden;text-overflow:ellipsis}
  .gfd-c,.gfd-x{margin-left:auto}
  .gal-bar .spacer{display:none}
  .gfd-menu,.gfd-models{position:fixed;left:16px;right:16px;top:auto;width:auto;max-height:70vh;overflow:auto}
}
@media (max-width:700px){ .gal-bar .gfd{order:3} .gal-bar .gal-view{order:5} #tab-gallery .sec-head .gal-connect-btn{height:38px;padding:0 14px} }
@media (min-width:901px){ .gal-bar{gap:8px} .gal-bar .gal-src button{padding:0 13px} .gfd-btn{padding:0 14px} .gal-who-btn{padding-left:14px} }
.gfd-ft{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.gfd-ft label{min-width:0}
.gfd-ft input{width:100%}
.gal-grid > .gal-nomatch{grid-column:1/-1}
.gfd-btn.set .gfd-l,.gal-who-btn.set .gal-who-l{color:inherit;opacity:.62}
.gfd-x:hover{background:color-mix(in srgb,currentColor 18%,transparent)}
/* All spend on the account: made through the console vs outside it. */
.as-src{grid-template-columns:repeat(2,minmax(0,1fr))}
.as-src .kpi.ok{border-left:4px solid #1f9d55}
.as-src .kpi.warn{border-left:4px solid #e8a23a}
.as-sys{color:#1f9d55;font-weight:600}
.as-out{color:#c77a12;font-weight:600}
.as-none{color:var(--grey-60)}
@media (max-width:700px){ .as-src{grid-template-columns:1fr} }
.inv-con{color:var(--ink-2,var(--grey-60));margin-top:2px}
.inv-con b{font-weight:600}
.inv-warn{color:#c77a12}
/* CE Console vs Replicate (the month's Compare window). */
.cmp-card .em-body{background:var(--sunken)}
.cmp-sum{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.cmp-sum > div{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.cmp-sum > div span{display:block;font-size:12.5px;color:var(--grey-60)}
.cmp-sum > div b{font-size:22px;font-weight:600}
.cmp-sum .p-note{grid-column:1/-1;margin:0}
.cmp-row{border:1px solid var(--line);border-radius:14px;background:var(--panel);margin:0 0 12px;overflow:hidden}
.cmp-row.cmp-off{border-color:rgba(224,138,0,.45)}
.cmp-row.cmp-none{border-color:rgba(224,138,0,.45)}
.cmp-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.cmp-h b{font-size:15px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmp-h .inv-tag{flex:none;white-space:nowrap}
.cmp-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.cmp-side{padding:12px 16px;min-width:0}
.cmp-side + .cmp-side{border-left:1px solid var(--line)}
.cmp-sh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 6px;font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--grey-60)}
.cmp-sh b{font-size:15px;letter-spacing:0;text-transform:none;color:var(--ink)}
.cmp-con .cmp-sh span{color:var(--magenta)}
.cmp-lines{list-style:none;margin:0;padding:0}
.cmp-lines li{display:grid;grid-template-columns:minmax(0,1fr) auto 76px;gap:10px;align-items:baseline;padding:6px 0;border-top:1px dashed var(--line);font-size:13.5px}
.cmp-lines li:first-child{border-top:0}
.cmp-n{min-width:0}
.cmp-n em{display:block;font-style:normal;font-size:12px}
.cmp-q{color:var(--grey-60);white-space:nowrap}
.cmp-c{text-align:right;white-space:nowrap}
.cmp-none{font-size:13px;color:var(--grey-60);padding:6px 0}
@media (max-width:760px){
  .cmp-cols{grid-template-columns:1fr}
  .cmp-side + .cmp-side{border-left:0;border-top:1px solid var(--line)}
  .cmp-h{flex-wrap:wrap;padding:12px 14px}
  .cmp-h b{white-space:normal;word-break:break-word}
  .cmp-side{padding:10px 14px}
  .cmp-lines li{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n c" "q q";row-gap:2px}
  .cmp-n{grid-area:n}.cmp-c{grid-area:c}.cmp-q{grid-area:q;font-size:12.5px}
  .cmp-sum b{font-size:18px}
}
/* Replicate out of credit: across the top for everyone. */
.credit-bar{display:flex;align-items:center;gap:14px;max-width:1600px;margin:16px auto 0;padding:14px 18px;border:1px solid rgba(214,48,49,.35);border-radius:14px;background:#fff1f1;color:#7a1515}
.cb-ic{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#d63031;color:#fff;font-weight:700}
.cb-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:14px}
.cb-t b{font-weight:600}
.cb-t span{font-size:13px;color:#8a2a2a}
.credit-bar .btn+.btn{margin-left:8px}
@media (max-width:640px){.credit-bar{flex-wrap:wrap}.credit-bar .btn{margin-left:0}.credit-bar .btn+.btn{margin-left:8px}}
.credit-bar .btn{flex:none;border-radius:999px;background:#d63031;border-color:#d63031;color:#fff}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .credit-bar{background:#3a1414;border-color:#6b2222;color:#ffd6d6} :root:not([data-theme="light"]) .cb-t span{color:#f3b0b0} }
:root[data-theme="dark"] .credit-bar{background:#3a1414;border-color:#6b2222;color:#ffd6d6}
:root[data-theme="dark"] .cb-t span{color:#f3b0b0}
@media (max-width:700px){ .credit-bar{flex-wrap:wrap;margin:12px 16px 0;padding:12px 14px} .credit-bar .btn{width:100%} }
.credit-bar{margin:16px auto 20px}
.credit-bar .btn{text-decoration:none}
@media (max-width:700px){ .credit-bar{margin:12px 0 16px} }
/* "A new version is ready": its own width on a wide screen; on a phone, the
   full width above the browser's bottom bar, the button under the words. */
.update-bar{width:max-content;max-width:min(780px,calc(100vw - 32px));line-height:1.4}
.update-bar > span{min-width:0}
@media (max-width:700px){
  .update-bar{left:16px;right:16px;transform:none;width:auto;max-width:none;flex-direction:column;align-items:stretch;gap:12px;padding:16px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));font-size:14px}
  .update-bar .btn{width:100%;height:44px;border-radius:999px}
}
/* Offline for over an hour: runs that came back without their settings. */
.gap-note{display:flex;gap:12px;align-items:flex-start;margin:12px 0 0;padding:14px 16px;border:1px solid rgba(224,138,0,.45);border-radius:14px;background:#fff8ec;color:#5a3a00}
.gap-ic{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e08a00;color:#fff;font-weight:700;font-size:13px}
.gap-note b{font-weight:600}
.gap-note p{margin:4px 0 0;font-size:13.5px;line-height:1.45}
.gap-note ul{margin:6px 0 0;padding-left:18px;font-size:13px}
:root[data-theme="dark"] .gap-note{background:#2e2410;border-color:#6b4f12;color:#f3dcae}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .gap-note{background:#2e2410;border-color:#6b4f12;color:#f3dcae} }
/* Generations cards. A video's preview fills its card like an image's (it
   kept its own 16:9 shape, leaving the rest of the card grey). */
.gal-thumb video{display:block;width:100%;height:100%;object-fit:cover}
/* On a phone: smaller tools that leave the picture visible, a smaller play
   button, names on up to two lines, and the round buttons out of the way. */
@media (max-width:700px){
  .gal-tools{top:6px;right:6px;gap:4px}
  .gal-tools .pr-btn{width:28px;height:28px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
  .gal-tools .pr-btn svg{width:14px;height:14px}
  .gal-item.gal-sel-on .gal-tools{left:38px}
  .gal-play{width:38px;height:38px;margin:-19px 0 0 -19px}
  .gal-play::after{left:15px;top:11px;border-width:8px 0 8px 12px}
  #gal-grid .gal-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all;font-size:13px;line-height:18px}
  #gal-grid .gal-sub,#gal-grid .gal-when{font-size:12px}
  #gal-grid .gal-foot{font-size:12px;gap:6px}
  #gal-grid .gal-pchip{font-size:12px}
  .bill-fab{left:10px;bottom:calc(10px + env(safe-area-inset-bottom, 0px));height:44px}
  .bill-fab .bf-ic{width:44px;height:44px}
  .bill-fab.lb-fab{bottom:calc(62px + env(safe-area-inset-bottom, 0px))}
}
/* Compare: Download PDF, Export generations and Close wrap on a phone. */
.cmp-card .em-foot{flex-wrap:wrap;gap:8px}
@media (max-width:600px){ .cmp-card .em-foot .em-sp{display:none} .cmp-card .em-foot .btn{flex:1 1 calc(50% - 4px)} .cmp-card .em-foot .em-cancel{flex-basis:100%} }
/* Monthly spend: By model next to Download PDF; the By model window. */
.as-acts{display:inline-flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cmp-sum .bm-n,.bm-tbl .bm-n{display:block;font-style:normal;font-size:12px;color:var(--grey-60);font-weight:400}
.bm-tbl td{vertical-align:top;padding-top:10px;padding-bottom:10px}
.bm-tbl .bm-sys b{color:#1f9d55}
.bm-tbl .bm-out b{color:#c77a12}
.bm-none{color:var(--grey-60)}
/* How a generation was made: the ⓘ beside who made it, and its window. */
.orig-i{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;margin-left:4px;padding:0;border:0;border-radius:50%;background:none;color:var(--grey-60);cursor:pointer;vertical-align:middle}
.orig-i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.orig-i:hover,.orig-i:focus-visible{color:var(--magenta);background:var(--tint-pink,rgba(252,49,187,.1))}
.og-say{margin:0 0 14px}
.og-rows{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.og-row{display:flex;justify-content:space-between;gap:16px;padding:10px 14px;border-top:1px solid var(--line);font-size:14px}
.og-row:first-child{border-top:0}
.og-row > span{color:var(--grey-60)}
.og-row > b{font-weight:500;text-align:right;min-width:0;word-break:break-word}
.og-none{color:var(--grey-60);font-weight:400}
.og-key{font-family:var(--mono,monospace);font-size:12.5px;background:var(--sunken);padding:1px 6px;border-radius:6px}
/* By model: an accordion - each model's totals, opening to its generations. */
.cmp-sum .bm-sys{color:#1f9d55}
.cmp-sum .bm-out{color:#c77a12}
.bm-acc{display:flex;flex-direction:column;gap:10px}
.bm-item{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.bm-item > summary{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)) 20px;gap:12px;align-items:center;padding:14px 16px;cursor:pointer;list-style:none}
.bm-item > summary::-webkit-details-marker{display:none}
.bm-item > summary:hover{background:var(--sunken)}
.bm-model{min-width:0;display:flex;flex-direction:column}
.bm-model b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm-model i,.bm-amt i{font-style:normal;font-size:12px;color:var(--grey-60)}
.bm-amt{display:flex;flex-direction:column;align-items:flex-end;min-width:0}
.bm-amt em{font-style:normal;font-size:11.5px;color:var(--grey-60)}
.bm-amt b{font-size:15px;font-weight:600}
.bm-amt.sys b{color:#1f9d55}
.bm-amt.out b{color:#c77a12}
.bm-chev{width:8px;height:8px;border-right:1.8px solid var(--grey-60);border-bottom:1.8px solid var(--grey-60);transform:rotate(45deg);transition:transform .18s;justify-self:end}
.bm-item[open] .bm-chev{transform:rotate(-135deg)}
.bm-body{border-top:1px solid var(--line);padding:4px 16px 12px}
.bm-grp{margin-top:10px}
.bm-gh{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:13px}
.bm-grp.sys .bm-gh b{color:#1f9d55}
.bm-grp.out .bm-gh b{color:#c77a12}
.bm-gh span{color:var(--grey-60)}
.bm-runs{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;max-height:min(420px,55vh);overflow-y:auto}
.bm-runs li{display:grid;grid-template-columns:118px minmax(0,1.4fr) minmax(0,1fr) 80px;gap:12px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);font-size:13px}
.bm-runs li:first-child{border-top:0}
.bm-when{color:var(--grey-60);white-space:nowrap}
.bm-who,.bm-lvl{min-width:0;display:flex;flex-direction:column}
.bm-who em,.bm-lvl em{font-style:normal;font-size:12px;color:var(--grey-60);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm-cost{text-align:right}
@media (max-width:700px){
  .bm-item > summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 16px;row-gap:8px}
  .bm-model{grid-column:1 / 3}
  .bm-chev{grid-column:3;grid-row:1}
  .bm-amt{align-items:flex-start}
  .bm-amt.tot{display:none}
  .bm-runs li{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who cost" "when lvl"}
  .bm-who{grid-area:who}.bm-cost{grid-area:cost}.bm-when{grid-area:when;font-size:12px}.bm-lvl{grid-area:lvl;align-items:flex-end;text-align:right}
}
/* The Generate shortcut, under the button (not on touch screens). */
.run-kbd{margin-top:8px;text-align:center;font-size:12px;color:var(--grey-60)}
.run-kbd kbd{font-family:inherit;font-size:11px;padding:1px 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;background:var(--panel);color:var(--ink-2,var(--ink))}
@media (hover:none){ .run-kbd{display:none} }
/* A generated picture, previewed over the page. */
body.peek-open{overflow:hidden}
.peek{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:56px 72px;background:rgba(10,8,20,.86);animation:peek-in .16s ease}
@keyframes peek-in{from{opacity:0}to{opacity:1}}
.peek-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:100%;max-height:100%}
.peek-fig img{display:block;max-width:min(1400px,100%);max-height:calc(100vh - 170px);object-fit:contain;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.5);background:#111}
.peek-fig figcaption{display:flex;align-items:center;gap:14px;color:rgba(255,255,255,.8);font-size:13px}
.peek-dl{border-radius:999px}
.peek-x{position:absolute;top:16px;right:16px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.peek-nav{position:absolute;top:50%;width:48px;height:48px;margin-top:-24px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.peek-nav.prev{left:16px}.peek-nav.next{right:16px}
.peek-x:hover,.peek-nav:hover{background:rgba(255,255,255,.26)}
@media (max-width:700px){ .peek{padding:64px 12px 24px} .peek-nav{top:auto;bottom:20px;margin:0} .peek-nav.prev{left:16px}.peek-nav.next{right:16px} .peek-fig img{max-height:calc(100vh - 190px)} }
.ppk-used{color:var(--magenta);font-size:11.5px;white-space:nowrap}
.run-examples-bottom{margin:24px 0 0}
/* Activity > Every run: the Date filter. */
.acc-date{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px}
.acc-date label{color:var(--grey-60);font-size:12.5px}
.acc-date select,.acc-date input[type=date]{height:38px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font:inherit;font-size:13.5px;color:var(--ink)}
.acc-date > span{color:var(--grey-60)}
.acc-date .acc-n{margin-left:4px}
.peek-dl,.peek-dl:hover{text-decoration:none}
/* Administration > People > Email. */
.mail-card[hidden]{display:none}
.mail-res{padding:10px 14px;border-radius:10px;font-size:13.5px;margin-top:4px}
.mail-res.ok{background:#e9f7ef;color:#14532d}
.mail-res.bad{background:#fff1f1;color:#7a1515}
.mail-last{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.mail-last li{display:grid;grid-template-columns:120px minmax(0,1fr) minmax(0,1.2fr);gap:12px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);font-size:13px}
.mail-last li:first-child{border-top:0}
.ml-when{color:var(--grey-60);white-space:nowrap}
.ml-t{display:flex;flex-direction:column;min-width:0}
.ml-t b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-t em{font-style:normal;font-size:12px;color:var(--grey-60);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-last li.ok .ml-r{color:#1f9d55}
.mail-last li.bad .ml-r{color:#c0392b}
@media (max-width:700px){ .mail-last li{grid-template-columns:1fr} }
/* Replicate credit left: on Home under the welcome, and under Generate. */
.credit-left{display:flex;align-items:center;gap:16px;margin:16px 0 24px;padding:16px 20px;border:1px solid var(--line);border-left:4px solid #1f9d55;border-radius:14px;background:var(--panel)}
.credit-left.low{border-left-color:#e08a00;background:#fff8ec}
.credit-left.out{border-left-color:#d63031;background:#fff1f1}
.cl-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-l{font-size:12.5px;color:var(--grey-60)}
.cl-v{font-size:26px;font-weight:600;line-height:1.2}
.credit-left.low .cl-v{color:#b86a00}
.credit-left.out .cl-v{color:#c0392b}
.cl-s{font-size:13px;color:var(--grey-60);line-height:1.45}
.cl-s b{color:var(--ink);font-weight:600}
.credit-left .btn{flex:none;border-radius:999px}
.cl-add{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:4px}
.run-credit{margin-top:8px;text-align:center;font-size:12.5px;color:var(--grey-60)}
.run-credit b{color:var(--ink);font-weight:600}
.run-credit.low b{color:#b86a00}
:root[data-theme="dark"] .credit-left.low{background:#2e2410} :root[data-theme="dark"] .credit-left.out{background:#3a1414}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .credit-left.low{background:#2e2410} :root:not([data-theme="light"]) .credit-left.out{background:#3a1414} }
@media (max-width:700px){ .credit-left{flex-wrap:wrap;padding:14px 16px} .credit-left .btn{width:100%} .cl-v{font-size:22px} }
