/* 🏠 HOME — the premium pass (Patrik 2026-10-14: "it's not screaming premium tool"). The landing's own language
   carried into the app: warm light from the top on near-black, Space Grotesk for the voice, one amber accent that
   means "press this". Navigation the Higgsfield way he liked (every door is a big, labelled, visual tile) without
   its look. Loaded LAST in index.html, scoped to the home (html body:not(.editing)) so the editor is untouched.
   Every id app.js drives (#drop, #file, #chooseBtn, #startBlank, #startStudio, #startBatch, #projGrid…) is kept. */

/* ONE SOLID GROUND (Patrik 2026-10-14: "remove that upper darker tab so we have one solid background on the page").
   The header, the rail and the page are the same colour on the home; the header keeps no band and no rule. */
html body:not(.editing){background:var(--bg)!important;}
html body:not(.editing) > header{background:var(--bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  border-bottom-color:transparent!important;box-shadow:none!important;}

/* ---------- the tools, where the greeting was ---------- */
.hm-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:calc(100% - 44px);margin:28px auto 16px;}
body.editing .hm-tools,html.arriving .hm-tools{display:none;}
.hm-tool{display:flex;align-items:center;gap:14px;min-width:0;padding:16px 18px;border-radius:16px;text-align:left;cursor:pointer;
  border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,240,225,.05),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,235,210,.08);color:var(--tx);font:inherit;
  transition:transform .22s var(--ease),border-color .22s ease,background .22s ease;}
.hm-tool:hover{transform:translateY(-2px);border-color:rgba(255,170,100,.45);background:linear-gradient(180deg,rgba(255,170,100,.12),rgba(255,138,61,.03));}
.hm-tool:focus-visible{outline:2px solid var(--acc-l);outline-offset:2px;}
.hm-tool[aria-disabled="true"]{cursor:default;}
.hm-tool[aria-disabled="true"]:hover{transform:none;border-color:rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(255,240,225,.05),rgba(255,255,255,.015));}
.hm-ti{flex:none;width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,138,61,.10);border:1px solid rgba(255,138,61,.22);}
.hm-ti svg{width:21px;height:21px;fill:none;stroke:var(--acc-l);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.hm-tt{display:flex;flex-direction:column;gap:3px;min-width:0;}
.hm-tt b{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15.5px;color:var(--tx);white-space:nowrap;}
.hm-tt small{font-size:13px;color:var(--tx3,#8f877d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hm-pill{font-size:.58rem;font-weight:700;letter-spacing:.08em;padding:2px 7px;border-radius:999px;color:var(--acc-l);
  background:rgba(254,177,34,.12);border:1px solid rgba(254,177,34,.4);}
.hm-pill.soon{color:var(--tx2);background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);}
@media (max-width:1280px){ .hm-tools{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:600px){ .hm-tools{grid-template-columns:1fr;margin-top:18px;} }

/* ---------- the doors ---------- */
html body:not(.editing) #uploadCard#uploadCard{max-width:calc(100% - 44px)!important;margin:0 auto 34px!important;padding:0!important;
  background:none!important;border:0!important;box-shadow:none!important;}
/* the three side doors live in the tools row now (#homeTools); upload is the one door below it */
html body:not(.editing) #uploadCard .startrow{display:block;}
html body:not(.editing) #uploadCard .startcard:not(#drop){display:none!important;}

/* the three side doors: dark glass slabs, lit along the top edge */
html body:not(.editing) #uploadCard .startcard:not(#drop){position:relative;display:flex;align-items:center;gap:16px;
  padding:18px 52px 18px 18px;border-radius:18px;border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,240,225,.045),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,235,210,.08);
  transition:transform .25s var(--ease),border-color .25s ease,background .25s ease;}
html body:not(.editing) #uploadCard .startcard:not(#drop)::after{content:'→';position:absolute;right:20px;top:50%;
  transform:translate(-4px,-50%);opacity:.35;color:var(--tx);font-size:1.05rem;transition:transform .25s var(--ease),opacity .25s ease;}
html body:not(.editing) #uploadCard .startcard:not(#drop):hover{transform:translateY(-2px);border-color:rgba(255,170,100,.32);
  background:linear-gradient(180deg,rgba(255,170,100,.09),rgba(255,255,255,.02));}
html body:not(.editing) #uploadCard .startcard:not(#drop):hover::after{transform:translate(0,-50%);opacity:1;color:var(--acc-l);}
html body:not(.editing) #uploadCard .startcard:not(#drop) .stthumb{width:56px;height:56px;border-radius:14px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);}
html body:not(.editing) #uploadCard .startcard:not(#drop) .stthumb .ph{top:6px;}
html body:not(.editing) #uploadCard .startcard:not(#drop) .stmeta b{font-family:var(--disp);font-weight:500;font-size:1.06rem;
  letter-spacing:-.015em;color:var(--tx);}
html body:not(.editing) #uploadCard .startcard:not(#drop) .drop-sub{font-size:.82rem;color:var(--tx2);opacity:.8;margin:2px 0 0;}
html body:not(.editing) #uploadCard .propill{font-family:var(--ui);font-size:.58rem;font-weight:700;letter-spacing:.08em;
  padding:2px 7px;border-radius:999px;color:var(--acc-l);background:rgba(254,177,34,.10);border:1px solid rgba(254,177,34,.35);}

/* 📁 the upload door is a FOLDER (Patrik 2026-10-14, his fanned-photos reference): three of your clips fan out of a
   dark pocket, amber light in the corner like the reference's red. The pocket holds the words, the count, the button. */
/* NO BOX AROUND IT (Patrik 2026-10-14: "it's not blending into the tab below … this is our first impression to anyone").
   The folder sits on the page itself: its light is a soft amber pool behind it that fades to the page colour on every
   side, so the hero melts into the library below instead of ending at a frame. */
html body:not(.editing) #uploadCard #drop{position:relative;overflow:visible;display:flex!important;align-items:flex-end!important;
  justify-content:center;min-height:0;padding:30px 24px 0!important;border-radius:0!important;
  border:0!important;box-shadow:none!important;background:none!important;}
html body:not(.editing) #uploadCard #drop::after{content:'';position:absolute;left:50%;top:-40px;width:min(1400px,120%);height:calc(100% + 160px);
  transform:translateX(-50%);pointer-events:none;z-index:0;
  background:
    radial-gradient(50% 62% at 50% 56%,rgba(255,112,36,.34),rgba(255,112,36,.11) 46%,transparent 76%),
    radial-gradient(24% 34% at 50% 30%,rgba(255,176,110,.26),transparent 72%);
  filter:blur(10px);transition:opacity .4s ease;}
html body:not(.editing) #uploadCard #drop.over::after{opacity:1.6;}
html body:not(.editing) #uploadCard #drop .hm-stage{z-index:1;}
html body:not(.editing) #uploadCard #drop.over .hm-pocket path{stroke:var(--acc);}
html body:not(.editing) #uploadCard #drop > .stthumb{display:none;}
.hm-stage{position:relative;width:min(640px,100%);height:330px;flex:none;}
.hm-back{position:absolute;left:16%;right:16%;top:26px;height:220px;border-radius:26px;background:#171413;border:1px solid rgba(255,220,190,.07);}
.hm-card{position:absolute;bottom:96px;left:50%;width:150px;height:206px;margin-left:-75px;border-radius:20px;
  border:5px solid #f4efe9;background:#2a2421 center/cover no-repeat;box-shadow:0 20px 40px -18px rgba(0,0,0,.9);
  transform-origin:50% 100%;transition:transform .55s var(--ease);}
.hm-card.empty{background-image:linear-gradient(160deg,rgba(255,138,61,.55),rgba(120,40,10,.5) 55%,#1a1513)!important;}
.hm-card.c1{transform:translateX(-118px) rotate(-16deg);}
@keyframes hmFloat{0%,100%{translate:0 0}50%{translate:0 -6px}}
.hm-card.c1{animation:hmFloat 6s ease-in-out infinite;} .hm-card.c2{animation:hmFloat 6s ease-in-out -2s infinite;}
.hm-card.c3{animation:hmFloat 6s ease-in-out -4s infinite;}
.hm-card.c3{transform:translateX(118px) rotate(16deg);}
.hm-card.c2{transform:translateY(-14px);}
html body:not(.editing) #uploadCard #drop:hover .hm-card.c1{transform:translateX(-132px) rotate(-19deg);}
html body:not(.editing) #uploadCard #drop:hover .hm-card.c3{transform:translateX(132px) rotate(19deg);}
html body:not(.editing) #uploadCard #drop:hover .hm-card.c2{transform:translateY(-24px);}
html body:not(.editing) #uploadCard #drop.over .hm-card.c1{transform:translateX(-170px) rotate(-24deg);}
html body:not(.editing) #uploadCard #drop.over .hm-card.c3{transform:translateX(170px) rotate(24deg);}
html body:not(.editing) #uploadCard #drop.over .hm-card.c2{transform:translateY(-40px);}
.hm-pocket{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:190px;filter:drop-shadow(0 -10px 24px rgba(0,0,0,.55));}
.hm-pocket path{fill:#1f1b19;stroke:rgba(255,220,190,.14);stroke-width:1;vector-effect:non-scaling-stroke;transition:stroke .25s ease;}
html body:not(.editing) #uploadCard #drop .stmeta{position:absolute;left:0;right:0;bottom:0;height:190px;display:grid!important;
  grid-template-columns:1fr auto;grid-template-rows:auto auto 1fr;align-items:end;padding:22px 64px 26px 52px;text-align:left;gap:0;}
html body:not(.editing) #uploadCard #drop .stmeta b{grid-column:1 / -1;align-self:start;font-family:var(--ui)!important;font-weight:600!important;
  font-size:19px!important;letter-spacing:-.01em;color:var(--tx);margin:0!important;}
html body:not(.editing) #uploadCard #drop .drop-sub{grid-column:1 / -1;align-self:start;font-size:14.5px!important;color:var(--tx3,#8f877d)!important;
  margin:4px 0 0 18px!important;}
.hm-count{grid-column:1;grid-row:3;align-self:end;font-size:14px;color:var(--tx3,#8f877d);margin-left:46px;}
.hm-count em{font-style:normal;font-family:var(--disp);font-weight:500;font-size:44px;line-height:1;letter-spacing:-.03em;color:var(--tx);margin-right:6px;}
html body:not(.editing) #uploadCard #drop #chooseBtn{grid-column:2;grid-row:3;align-self:end;height:38px;margin:0 22px 4px 0!important;padding:0 18px;border-radius:999px;border:0;
  font:600 14px/1 var(--ui);color:#141210;background:var(--tx);box-shadow:none;transition:background .15s ease;}
html body:not(.editing) #uploadCard #drop #chooseBtn:hover{background:#fff;}
@media (max-width:760px){
  .hm-stage{height:300px;}
  .hm-card{width:116px;height:160px;margin-left:-58px;bottom:110px;}
  .hm-card.c1{transform:translateX(-84px) rotate(-14deg);} .hm-card.c3{transform:translateX(84px) rotate(14deg);}
  html body:not(.editing) #uploadCard #drop .stmeta{padding:20px 30px 22px 30px;}
  .hm-count{margin-left:0;} .hm-count em{font-size:34px;}
  html body:not(.editing) #uploadCard #drop #chooseBtn{margin-right:6px!important;}
}

/* ---------- the library ---------- */
html body:not(.editing) #projCard#projCard{max-width:calc(100% - 44px)!important;margin:0 auto!important;padding:0!important;background:none!important;
  border:0!important;box-shadow:none!important;}
html body:not(.editing) #projCard .kp-head{align-items:center;margin-bottom:18px;padding-top:34px;border-top:0;}
html body:not(.editing) #projCard .kp-head .c-eyebrow{font-family:var(--disp);font-size:1.3rem;font-weight:500;letter-spacing:-.02em;
  text-transform:none;color:var(--tx);}
html body:not(.editing) #projCard .kp-head small{color:var(--tx3,#8f877d);font-size:.82rem;}
html body:not(.editing) #libFind{height:38px;border-radius:999px;padding:0 16px;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);}
html body:not(.editing) #libFind:focus{border-color:rgba(254,177,34,.5);outline:none;}
html body:not(.editing) #projGrid.projgrid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr))!important;gap:22px 18px!important;}
html body:not(.editing) .projgrid .pc{border:0!important;background:none!important;border-radius:0!important;overflow:visible!important;}
html body:not(.editing) .projgrid .pc:hover{transform:none!important;}
html body:not(.editing) .projgrid .pc .th{aspect-ratio:9/16;border-radius:16px;border:1px solid rgba(255,255,255,.07);
  transition:transform .3s var(--ease),box-shadow .3s ease,border-color .3s ease;}
html body:not(.editing) .projgrid .pc:hover .th{transform:translateY(-3px);border-color:rgba(255,170,100,.4);
  box-shadow:0 22px 40px -22px rgba(0,0,0,.9),0 0 0 1px rgba(255,170,100,.2),0 18px 50px -30px rgba(255,138,61,.6);}
html body:not(.editing) .projgrid .pc.cur .th{border-color:rgba(254,177,34,.6);}
html body:not(.editing) .projgrid .pc .pnm{padding:12px 2px 2px!important;font-family:var(--ui);font-weight:600;font-size:.88rem;color:var(--tx);}
html body:not(.editing) .projgrid .pc .pdt{padding:0 2px!important;font-size:.74rem;color:var(--tx3,#8f877d);}
html body:not(.editing) .projgrid .pc .dur{top:10px;right:10px;border-radius:999px;padding:3px 8px;background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font-variant-numeric:tabular-nums;}

/* ---------- the card chips (Patrik 2026-10-14: "those Reexport, Previews, Time, and Download buttons. It's a super
   super old design") ---------- */
/* One chip language: dark glass over the picture, sentence case, a dot for a state, an icon for an action.
   The JS still writes "RE-EXPORT" / "↓ previous" / "Download"; the words shown come from ::after so the
   label can change without touching the card builder (app.js ~11103). */
html body:not(.editing) #projGrid .pc .exp,html body:not(.editing) #projGrid .pc .dur{
  display:inline-flex!important;align-items:center;gap:6px;height:24px;padding:0 10px!important;border-radius:999px!important;
  background:rgba(12,10,9,.62)!important;border:1px solid rgba(255,255,255,.12)!important;color:var(--tx)!important;
  backdrop-filter:blur(10px) saturate(1.2);-webkit-backdrop-filter:blur(10px) saturate(1.2);
  font:600 11.5px/1 var(--ui)!important;letter-spacing:0!important;text-transform:none!important;box-shadow:0 6px 16px -8px rgba(0,0,0,.8);}
html body:not(.editing) #projGrid .pc .exp{left:10px!important;top:10px!important;}
html body:not(.editing) #projGrid .pc .dur{right:10px!important;top:10px!important;font-variant-numeric:tabular-nums;color:var(--tx2)!important;}
/* states: a dot */
html body:not(.editing) #projGrid .pc .exp-stale,html body:not(.editing) #projGrid .pc .exp-tx{font-size:0!important;}
html body:not(.editing) #projGrid .pc .exp-stale::before,html body:not(.editing) #projGrid .pc .exp-tx::before{content:'';width:6px;height:6px;border-radius:50%;
  background:var(--acc);box-shadow:0 0 8px var(--acc);}
html body:not(.editing) #projGrid .pc .exp-stale::after{content:'Edited';font-size:11.5px;}
html body:not(.editing) #projGrid .pc .exp-tx::before{background:var(--tx2);box-shadow:none;}
html body:not(.editing) #projGrid .pc .exp-tx::after{content:'Transcribing…';font-size:11.5px;}
/* actions: an icon */
html body:not(.editing) #projGrid .pc .exp-dl{font-size:0!important;cursor:pointer;transition:border-color .2s ease,background .2s ease;}
html body:not(.editing) #projGrid .pc .exp-dl::before{content:'';width:13px;height:13px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;}
html body:not(.editing) #projGrid .pc .exp-dl::after{content:'Download';font-size:11.5px;}
html body:not(.editing) #projGrid .pc .exp-dl.exp-prev{color:var(--tx2)!important;}
html body:not(.editing) #projGrid .pc .exp-dl.exp-prev::after{content:'Previous';}
html body:not(.editing) #projGrid .pc .exp-dl:hover{border-color:rgba(255,170,100,.6)!important;background:rgba(40,24,14,.75)!important;filter:none;}
html body:not(.editing) #projGrid .pc .exp-stale ~ .exp-dl{top:40px!important;}
/* the open clip is marked on its picture, never by a box around the whole card */
html body:not(.editing) #projGrid .pc.cur{box-shadow:none!important;border:0!important;}

/* ---------- the rail ---------- */
html body:not(.editing) #appSide{background:var(--bg)!important;border-right:1px solid rgba(255,255,255,.06);}
html body:not(.editing) #appSide .libitem.on{background:rgba(255,138,61,.10);border-color:rgba(255,138,61,.35);color:var(--tx);}
/* Upgrade is a quiet accent, not a glowing pill (Patrik 2026-10-14: "Next thing to fix is this button. I don't like
   that"): amber text on a faint amber ground, one hairline, an arrow that moves on hover. */
html body:not(.editing) #appSide .su-upg{display:flex;align-items:center;justify-content:space-between;width:100%;height:36px;
  margin-top:12px;padding:0 12px 0 14px;border-radius:10px;font:600 13px/1 var(--ui);letter-spacing:0;text-transform:none;
  color:var(--acc-l);background:rgba(255,138,61,.08);border:1px solid rgba(255,138,61,.28);box-shadow:none;
  transition:background .2s ease,border-color .2s ease;}
html body:not(.editing) #appSide .su-upg::after{content:'→';font-size:14px;transition:transform .2s var(--ease);}
html body:not(.editing) #appSide .su-upg:hover{background:rgba(255,138,61,.14);border-color:rgba(255,138,61,.5);}
html body:not(.editing) #appSide .su-upg:hover::after{transform:translateX(3px);}
html body:not(.editing) #appSide .su-bar b{background:linear-gradient(90deg,var(--acc-d),var(--acc-l));}

/* ---------- narrower windows ---------- */
@media (max-width:760px){
  html body:not(.editing) #uploadCard .startrow{grid-template-columns:1fr;}
  html body:not(.editing) #uploadCard #drop{min-height:0;padding:28px 22px 28px!important;}
  html body:not(.editing) #projGrid.projgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (prefers-reduced-motion:reduce){
  .hm-card{animation:none!important;}
  .hm-card,html body:not(.editing) #uploadCard .startcard,html body:not(.editing) .projgrid .pc .th{transition:none!important;}
}

/* ---------- the card chips, quieter still (Patrik 2026-10-14: "I don't really like those buttons, like edited, previous
   and stuff like this") ---------- */
/* The picture carries nothing but its length. The STATE moves into the quiet line under the name, and the one ACTION,
   download, appears as a small icon only when you point at the card. The chips stay in the DOM (app.js builds and
   wires them), so download still works exactly as before. */
html body:not(.editing) #projGrid .pc .exp-stale, html body:not(.editing) #projGrid .pc .exp-tx{display:none!important;}
html body:not(.editing) #projGrid .pc .exp-dl{left:auto!important;right:10px!important;top:auto!important;
  width:34px!important;height:34px!important;padding:0!important;justify-content:center;border-radius:50%!important;
  opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease,background .2s ease!important;}
html body:not(.editing) #projGrid .pc .exp-dl::after{content:none!important;}
html body:not(.editing) #projGrid .pc .exp-dl::before{width:15px;height:15px;}
/* sits on the picture's bottom edge: the picture is the card's first child, its height is the card minus the name lines */
html body:not(.editing) #projGrid .pc .exp-dl{bottom:62px!important;}
html body:not(.editing) #projGrid .pc:hover .exp-dl, html body:not(.editing) #projGrid .pc .exp-dl:focus-visible{opacity:1;transform:none;}
html body:not(.editing) #projGrid .pc .exp-stale ~ .exp-dl{top:auto!important;}
/* the state, in words, after the date */
html body:not(.editing) #projGrid .pc:has(.exp-stale) .pdt::after{content:' · Edited since export';color:var(--tx3,#8f877d);}
html body:not(.editing) #projGrid .pc:has(.exp-dl):not(:has(.exp-stale)) .pdt::after{content:' · Exported';color:var(--tx3,#8f877d);}
html body:not(.editing) #projGrid .pc:has(.exp-tx) .pdt::after{content:' · Transcribing…';color:var(--tx3,#8f877d);}

/* ======================================================================================================================
   🏠 THE APPROVED HOME (Patrik 2026-10-14, design-1014/q_home.html; "a finished product that we can polish afterwards").
   Overrides the earlier home passes above. The landing's light (ember top-right, dark top-left), one centred
   heading, the drop box with the landing's "Upload | your footage" pill, three ways in, Continue editing, all clips.
   ====================================================================================================================== */
html body:not(.editing){background:
  radial-gradient(56% 46% at 86% -6%,rgba(255,96,26,.42),rgba(255,110,40,.14) 45%,transparent 72%),
  radial-gradient(40% 30% at 60% 0%,rgba(255,170,110,.10),transparent 70%),
  #121212!important;background-attachment:fixed!important}
/* the old doors and the folder pocket are retired */
html body:not(.editing) #uploadCard .startcard:not(#drop), html body:not(.editing) #drop > .stthumb, .hm-hi{display:none!important}

/* heading */
.hh{max-width:820px;margin:92px auto 22px;padding:0 24px;text-align:left}
body.editing .hh, html.arriving .hh, body.editing .hh-chips, body.editing .hc{display:none!important}
.hh-hi{margin:0 0 6px;font:500 21px/1.3 var(--ui);color:#cdbcb4}
.hh-title{margin:0;font:600 clamp(32px,3.2vw,46px)/1.08 var(--ui);letter-spacing:-.03em;color:#f6f1ea;text-wrap:balance}
.hh-hl{color:#fff}

/* the box (10-14 pm) retired: the folder upload is back (Patrik: "I really like that upload that we had earlier with three cards behind") */
html body:not(.editing) #uploadCard#uploadCard{max-width:calc(100% - 44px)!important;margin:0 auto!important;padding:0!important}

/* three ways in */
.hh-chips{max-width:820px;margin:12px auto 0;padding:0 24px;display:flex;flex-wrap:wrap;gap:8px}
.hh-chips button{height:36px;padding:0 15px 0 12px;border-radius:999px;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.05);color:rgba(246,241,234,.8);font:500 13.5px/1 var(--ui);transition:background .2s}
.hh-chips button:hover{background:rgba(255,255,255,.09);color:#fff}
.hh-chips svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* continue editing */
.hc{max-width:calc(100% - 44px);margin:64px auto 0;padding-top:28px;border-top:1px solid rgba(255,255,255,.06)}
.hc h2{margin:0;font:600 21px/1.2 var(--ui);letter-spacing:-.01em;color:#f6f1ea}
.hc p{margin:4px 0 0;color:#8f877d;font-size:14px}
.hc-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}
.hc-card{position:relative;height:160px;border-radius:18px;overflow:hidden;cursor:pointer;text-align:left;padding:18px;display:flex;flex-direction:column;justify-content:flex-end;
  border:1px solid rgba(255,255,255,.07);color:#fff;
  background:linear-gradient(110deg,#151312 30%,rgba(21,19,18,.4) 70%,rgba(21,19,18,.2)),radial-gradient(70% 90% at 70% 30%,rgba(255,106,26,.45),transparent 70%),var(--th) right 30%/58% auto no-repeat,#171514;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:transform .25s var(--ease),border-color .25s}
.hc-card:hover{transform:translateY(-2px);border-color:rgba(255,170,100,.4)}
.hc-card b{position:relative;font:600 16px/1.25 var(--ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%}
.hc-card small{position:relative;color:rgba(255,255,255,.65);font-size:13px;margin-top:3px}
.hc-sp{position:absolute;right:16px;top:14px;opacity:.8}
@media (max-width:1180px){ .hc-row{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){ .hc-row{grid-template-columns:1fr} .hb-note{display:none} .hh{margin-top:40px} }

/* all clips, under it */
html body:not(.editing) #projCard .kp-head{padding-top:44px!important}

/* the sidebar: search on top, raised pill for the open row */
html body:not(.editing) #appSide{background:linear-gradient(180deg,#191818,#141313)!important;border-right:1px solid rgba(255,255,255,.06)!important}
.sd-find .libfind{display:block;margin:0 0 14px}
.sd-find #libFind{width:100%;height:40px;border-radius:12px;padding:0 12px 0 36px;background:#0f0e0e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f877d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") 12px center/15px no-repeat;
  border:1px solid rgba(255,255,255,.07);color:#f6f1ea;font:500 13.5px/1 var(--ui);box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
html body:not(.editing) #appSide .libitem{height:40px;border-radius:12px;padding:0 12px;display:flex;align-items:center;gap:10px;border:1px solid transparent;
  background:none;color:rgba(246,241,234,.72);font:500 14px/1 var(--ui);width:100%;text-align:left;cursor:pointer}
html body:not(.editing) #appSide .libitem:hover{background:rgba(255,255,255,.04);color:#fff}
html body:not(.editing) #appSide .libitem.on{background:linear-gradient(180deg,#2c2a29,#242221);color:#fff;border-color:rgba(255,255,255,.06);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 6px 14px -8px #000}
html body:not(.editing) #appSide .libitem i{margin-left:auto;font-style:normal;font-size:12px;color:#8f877d}
.sd-pro{margin-left:auto;font:700 10px/1 var(--ui);padding:3px 7px;border-radius:6px;background:rgba(255,106,26,.12);color:#ff9a5a}
html body:not(.editing) #appSide .libsec{font:500 11px/1 var(--ui)!important;letter-spacing:.06em!important;text-transform:uppercase;color:#6f6860!important;margin:16px 12px 8px!important}
.sd-find,.sd-find .libfind,.sd-find #libFind{box-sizing:border-box;max-width:100%}
.sd-find #libFindX{display:none!important}
/* the ember reaches the top of the window, as in the concept: the home's header lets it through */
html body:not(.editing) > header{background:transparent!important}
html body:not(.editing)::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(900px 520px at 88% -80px,rgba(255,92,24,.55),rgba(190,60,20,.22) 45%,transparent 75%),
             radial-gradient(700px 380px at 40% -120px,rgba(150,40,20,.30),transparent 70%)}
.sd-find .libfind{width:100%!important;margin:0 0 14px!important;position:static!important}
.sd-find #libFind{width:100%!important;min-width:0!important}
/* tools at the top of the home (10-14) */
.hh-chips.hh-top{max-width:calc(100% - 44px);margin:22px auto 0;padding:0;justify-content:flex-start;gap:10px}
.hh-top button{height:40px;padding:0 16px 0 13px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#f6f1ea}
.hh-top button:hover{background:rgba(255,255,255,.09);border-color:rgba(255,190,120,.3)}
.hh-top .hh-soon{opacity:.55;cursor:default}
.hh-pro{font:700 9.5px/1 var(--ui);padding:3px 6px;border-radius:6px;background:rgba(255,106,26,.14);color:#ff9a5a;margin-left:2px}
.hh-soon .hh-pro{background:rgba(255,255,255,.08);color:#bdb4aa}
.hh{margin-top:70px}
/* the main features as cards above the upload (10-14), the Continue-editing family: dark glass, one ember bloom, icon top-left */
.hf{max-width:calc(100% - 44px);margin:26px auto 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.editing .hf, html.arriving .hf{display:none!important}
.hf-card{position:relative;height:150px;border-radius:18px;overflow:hidden;cursor:pointer;text-align:left;padding:18px;display:flex;flex-direction:column;
  justify-content:flex-end;border:1px solid rgba(255,255,255,.07);color:#fff;font:inherit;
  background:radial-gradient(70% 95% at 72% 18%,var(--bl,rgba(255,106,26,.5)),transparent 70%),linear-gradient(180deg,#1b1817,#141211);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);transition:transform .25s var(--ease),border-color .25s}
.hf-card:hover{transform:translateY(-2px);border-color:rgba(255,170,100,.42)}
.hf-card .hf-ic{position:absolute;left:18px;top:18px;width:22px;height:22px;fill:none;stroke:var(--k,#ffb77a);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hf-card b{position:relative;display:flex;align-items:center;gap:8px;font:600 16px/1.25 var(--ui)}
.hf-card b em{font:700 9.5px/1 var(--ui);font-style:normal;padding:3px 6px;border-radius:6px;background:rgba(255,106,26,.16);color:#ffab70}
.hf-card small{position:relative;color:rgba(255,255,255,.66);font-size:13px;margin-top:4px}
.hf-batch{--bl:rgba(255,96,26,.55)} .hf-studio{--bl:rgba(220,70,30,.42)} .hf-blank{--bl:rgba(150,52,20,.5)} .hf-hook{--bl:rgba(255,140,60,.28)}
.hf-card.soon{cursor:default;opacity:.62}
.hf-card.soon:hover{transform:none;border-color:rgba(255,255,255,.07)}
.hf-card.soon b em{background:rgba(255,255,255,.08);color:#bdb4aa}
.hh{margin-top:56px!important}
@media (max-width:1180px){ .hf{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){ .hf{grid-template-columns:1fr} .hf-card{height:110px} }
/* Continue editing retired (Patrik 2026-10-14: "it's a duplicate of what we have below it") — the grid below opens on the
   newest clips anyway. The section and its script stay in the page; delete this line to bring it back. */
#homeCont{display:none!important}
html body:not(.editing) #projCard#projCard{margin-top:56px!important;border-top:1px solid rgba(255,255,255,.06)!important}

/* the feature cards, compact again (Patrik 10-14: "slightly bigger than I wanted") — one row each: icon tile, name, one line */
.hf{gap:14px!important}
.hf-card{height:auto!important;min-height:0!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px;padding:15px 18px!important;
  background:radial-gradient(60% 140% at 85% 0%,var(--bl,rgba(255,106,26,.45)),transparent 70%),linear-gradient(180deg,#1b1817,#141211)!important}
.hf-card .hf-ic{position:static!important;flex:none;width:42px!important;height:42px!important;padding:10px;border-radius:12px;box-sizing:border-box;
  background:rgba(255,138,61,.10);border:1px solid rgba(255,138,61,.22)}
.hf-card .hc-sp{display:none}
.hf-card > b{display:none}
.hf-card .hf-tx{display:flex;flex-direction:column;gap:3px;min-width:0}
.hf-card .hf-tx b{display:flex;align-items:center;gap:8px;font:600 15px/1.2 var(--ui)}
.hf-card .hf-tx b em{font:700 9.5px/1 var(--ui);font-style:normal;padding:3px 6px;border-radius:6px;background:rgba(255,106,26,.16);color:#ffab70}
.hf-card.soon .hf-tx b em{background:rgba(255,255,255,.08);color:#bdb4aa}
.hf-card .hf-tx small{color:rgba(255,255,255,.6);font-size:12.5px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hh{margin-top:40px!important;max-width:calc(100% - 44px)!important;text-align:center!important}
/* the folder's amber pool must not widen the page (it overflowed by ~80px at 1280) */
html body:not(.editing) #uploadCard{overflow-x:clip!important}
.hf-card .hf-tx b{white-space:nowrap}
.hf-card .hf-tx{flex:1}
@media (max-width:1440px){ .hf-card .hf-tx small{display:none} .hf-card{padding:13px 14px!important} .hf-card .hf-ic{width:38px!important;height:38px!important;padding:9px} }

/* ===== 🎛 tool keys (Patrik 10-15: "same principle" as the batch step cards — his "Sleep mode · Active" reference):
   a matte key, a faint big icon in the corner, a grey word over the name in light type, an LED (green = ready). ===== */
html body #homeTools.hf{gap:12px}
html body #homeTools .hf-card,html body #homeTools .hf-card:hover{position:relative;overflow:hidden;display:flex;align-items:flex-end;min-height:104px;padding:16px 18px!important;
  border-radius:20px!important;background:linear-gradient(160deg,#1c1c1d 0%,#121213 55%,#0e0e0f 100%)!important;border:1px solid rgba(255,255,255,.06)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 30px -20px rgba(0,0,0,.9)!important;transition:transform .25s,border-color .25s,box-shadow .25s;text-align:left}
html body #homeTools .hf-card::before,html body #homeTools .hf-card::after{display:none!important}
html body #homeTools .hf-card:hover{transform:translateY(-2px);border-color:rgba(255,246,226,.24)!important;
  background:radial-gradient(90% 120% at 0% 0%,rgba(255,246,226,.07),transparent 60%),linear-gradient(160deg,#212122 0%,#141415 60%,#0f0f10 100%)!important}
html body #homeTools .hf-card .hf-ic{position:absolute!important;left:-10px;top:-12px;width:64px!important;height:64px!important;padding:0!important;margin:0!important;border:0!important;
  background:none!important;box-shadow:none!important;fill:none;stroke:#fff!important;stroke-width:1.4;opacity:.08;transition:opacity .25s}
html body #homeTools .hf-card:hover .hf-ic{opacity:.15}
html body #homeTools .hf-tx{display:flex;flex-direction:column;gap:6px;min-width:0;padding-right:18px}
html body #homeTools .hf-tx small{font:400 12.5px/1 var(--ui)!important;color:#77736d!important;letter-spacing:.01em;margin:0!important}
html body #homeTools .hf-tx b{font:300 22px/1.1 var(--ui)!important;letter-spacing:-.02em;color:#ece9e4!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #homeTools .hf-card .st-led{position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:#59ff6e;box-shadow:0 0 6px #59ff6e,0 0 18px rgba(89,255,110,.55)}
html body #homeTools .hf-card.soon{cursor:default}
html body #homeTools .hf-card.soon:hover{transform:none;border-color:rgba(255,255,255,.06)!important}
html body #homeTools .hf-card.soon .st-led{background:#1d1d1e;box-shadow:inset 0 1px 2px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.05)}
html body #homeTools .hf-card.soon .hf-tx b{color:#77736d!important}
@media (max-width:700px){ html body #homeTools .hf-card{min-height:84px;padding:12px!important} html body #homeTools .hf-tx b{font-size:17px!important} }
html body #homeTools .hf-card{min-height:104px!important;align-items:flex-end!important;flex-direction:row!important}
html body #homeTools .hf-card.soon{opacity:.75}
/* the tool keys stay ABOVE the greeting, full width (Patrik 10-15: tried under the drop folder — "it looked better above") */
html body #homeTools .hf-tx small{display:block!important}
html body #homeTools .hf-card{min-height:104px!important}
