/* Dailies · Foundation views: Home (Days), Cuts, Search, the #new picker, the #ingest placeholder,
   the plain #assembly fallback and the basic #cut. Tokens and components come from app.css. */

/* ================= HOME ================= */
.cover{position:relative;display:block;margin:10px var(--gut) 0;height:436px;border-radius:var(--r-cover);overflow:hidden;background:#221d17;color:#F7F4EE;cursor:pointer;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset;transform:translateZ(0)}
.cover-pic{position:absolute;inset:0}
.cover-pic .pl-pic img{object-position:50% 70%!important}
.cover::after{content:"";position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(180deg,rgba(8,6,4,.3) 0%,rgba(8,6,4,0) 16%),
  linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.58) 64%,rgba(0,0,0,.7) 100%)}
.cv-cap{position:absolute;top:16px;left:16px;z-index:3;height:28px;padding:0 12px 0 11px;border-radius:14px;display:flex;align-items:center;gap:8px;color:#fff;font-size:13px;line-height:16px;font-weight:500}
.cv-cap .cap{color:rgba(255,255,255,.92)}
.cv-cap .tn{min-width:38px}
.cv-bot{position:absolute;left:20px;right:16px;bottom:30px;z-index:3}
.cv-date{font-size:13px;line-height:18px;color:rgba(255,255,255,.8);letter-spacing:-.08px;margin-bottom:2px}
.cv-title{font-family:var(--ny);font-size:60px;line-height:56px;font-weight:500;letter-spacing:-1.6px;font-variation-settings:"opsz" 60;text-wrap:balance}
.cv-meta{margin-top:10px;font-size:15px;line-height:20px;color:rgba(255,255,255,.86)}
.cv-meta+.cv-meta{margin-top:0;color:rgba(255,255,255,.72)}
.cv-cta{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.cv-beats{position:absolute;left:20px;right:20px;bottom:10px;height:16px;z-index:3;color:#fff}
.howcut{padding:24px var(--gut-t) 0}
.howcut h3{font-size:20px;line-height:25px;font-weight:700;letter-spacing:-.45px;margin-bottom:6px}
.hc{display:flex;align-items:center;gap:14px;width:100%;min-height:56px;text-align:left}
.hc .when{width:44px;flex:none;text-align:right;font-size:15px;line-height:20px;color:var(--ink2);font-variant-numeric:tabular-nums}
.hc .line{font-size:15px;line-height:20px;color:var(--ink)}
.days{display:flex;align-items:flex-start;gap:10px;padding:0 var(--gut);overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding:0 16px}
.days::-webkit-scrollbar{display:none}
.day{flex:none;width:148px;text-align:left;scroll-snap-align:start}
.day .pic{height:184px;border-radius:var(--r-card);overflow:hidden;background:var(--inset);position:relative}
.day .pic img{width:100%;height:100%;object-fit:cover;filter:saturate(1.02) sepia(.04)}
.day h4{font-family:var(--ny);font-size:17px;line-height:21px;font-weight:500;margin-top:8px;letter-spacing:-.2px}
.day p{font-size:13px;line-height:16px;color:var(--ink2);margin-top:2px}

/* ================= CUTS + SEARCH ================= */
.cuts-seg{padding:12px var(--gut) 4px}
.cgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px;padding:12px var(--gut) 0}
.ccard{position:relative;min-width:0}
.ccard-hit{display:block;width:100%;text-align:left}
.ccard .pic{position:relative;aspect-ratio:3/4;border-radius:var(--r-card);overflow:hidden;background:var(--inset)}
.ccard .pic img{width:100%;height:100%;object-fit:cover;filter:saturate(1.02) sepia(.04)}
.ccard .badge{position:absolute;left:8px;bottom:8px;height:24px;padding:0 9px;border-radius:12px;display:flex;align-items:center;gap:6px;font-size:12px;line-height:14px;font-weight:600;color:#fff}
.ccard .badge.tag{bottom:auto;top:8px}
.ccard .more{position:absolute;top:6px;right:6px;z-index:2}
.ccard h4{font-family:var(--ny);font-size:17px;line-height:21px;font-weight:500;margin-top:8px;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ccard p{font-size:13px;line-height:16px;color:var(--ink2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ccard.lead{grid-column:1/-1}
.ccard.lead .pic{aspect-ratio:16/10;border-radius:28px}
.ccard.lead h4{font-size:22px;line-height:26px;letter-spacing:-.4px}
.ccard.lead .more{top:10px;right:10px}
.ccard.lead .badge{left:12px;bottom:12px}.ccard.lead .badge.tag{top:12px;bottom:auto}
.cuts-empty{padding:72px 36px 24px}
.cuts-empty .fl{width:64px;height:64px;fill:none;stroke:var(--ink3);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;margin-bottom:12px}
.cuts-empty .fl .ph{stroke:var(--tally)}
.cuts-empty span{font-size:15px;line-height:20px;max-width:280px}
.cut-peek{margin:0 16px 16px;height:180px;border-radius:var(--r-card);overflow:hidden}
.cut-peek img{width:100%;height:100%;object-fit:cover}
.search-bar{padding:8px var(--gut) 4px}
.sres{padding:4px 0 0}
.found{padding:0 var(--gut-t) 10px;margin-top:-4px;font-size:13px;line-height:18px;color:var(--ink2)}
.mlist .su .q{font-style:normal;color:var(--ink)}
.mlist .row .th{object-fit:cover}
.mlist .row .ti.serif{font-family:var(--ny);font-weight:500;letter-spacing:-.2px}
.try{display:flex;align-items:center;gap:10px;padding:8px 0 0 var(--gut-t)}
.try-l{flex:none;font-size:13px;line-height:18px;color:var(--ink2);letter-spacing:-.08px}
.try .chips{flex:1;min-width:0;padding-left:0}
.face{display:block;border-radius:50%;overflow:hidden;flex:none;background:var(--inset);position:relative}
.face img{width:100%;height:100%;object-fit:cover}
.people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 var(--gut)}
.pp{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:4px 0}
.pp .face{margin-bottom:6px}
.pp b{font-size:15px;line-height:20px;font-weight:600;letter-spacing:-.23px}
.pp small{font-size:13px;line-height:18px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.person{display:flex;align-items:center;gap:14px;margin:12px var(--gut) 0;padding:12px 14px;border-radius:var(--r-card);background:var(--card)}
.person b{display:block;font-size:20px;line-height:25px;font-weight:600;letter-spacing:-.45px}
.person small{display:block;font-size:13px;line-height:18px;color:var(--ink2)}
.idx{padding:18px 40px 0;text-align:center;text-wrap:balance}

/* ================= PICKER (#new) ================= */
.ui-sheet.picker .sh-body{padding-bottom:0}
.pk-top{display:flex;align-items:center;gap:8px;padding:0 16px 10px}
.pk-top .seg{flex:1}
.pk-sec{display:flex;align-items:baseline;justify-content:space-between;padding:16px 16px 8px 16px}
.pk-sec b{font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.43px}
.pk-sec small{display:block;font-size:13px;line-height:18px;color:var(--ink2)}
.pk-sec .link{font-size:15px;color:var(--ink);min-height:44px;margin:-12px -8px;padding:0 8px}
.pk-foot{display:flex;flex-direction:column;gap:10px}
.pk-tray{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;min-height:44px;align-items:center}
.pk-tray::-webkit-scrollbar{display:none}
.pk-tray .tray-th{width:40px;height:40px;border-radius:8px;overflow:hidden;flex:none}
.pk-tray .tray-th img{width:100%;height:100%;object-fit:cover}
.pk-tray .ph-empty{font-size:13px;color:var(--ink2)}
.pk-row{display:flex;align-items:center;gap:12px}
.pk-row .cnt{flex:1;min-width:0;font-size:13px;line-height:18px;color:var(--ink2)}
.pk-row .cnt b{display:block;font-size:15px;line-height:20px;color:var(--ink);font-weight:600;letter-spacing:-.23px}

/* ================= INGEST placeholder ================= */
.ing{display:flex;flex-direction:column;height:100%}
.ing-head{position:relative;height:calc(var(--top) + 250px);flex:none;overflow:hidden;background:var(--picture);color:#fff}
.ing-head img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.04) contrast(1.04) sepia(.05)}
.ing-head::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 30%,rgba(0,0,0,0) 45%,rgba(0,0,0,.7) 100%)}
.ing-head .navbar{z-index:3}
.ing-head .ttl-b{position:absolute;left:20px;right:20px;bottom:18px;z-index:3}
.ing-head h2{font-family:var(--ny);font-size:34px;line-height:36px;font-weight:500;letter-spacing:-.8px}
.ing-head p{font-size:13px;line-height:18px;color:rgba(255,255,255,.8);margin-top:4px}
.ing-body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:16px 0 140px}
.ing-body::-webkit-scrollbar{display:none}
.ing-tray{display:flex;gap:3px;overflow-x:auto;padding:0 16px;scrollbar-width:none}
.ing-tray::-webkit-scrollbar{display:none}
.ing-tray .pcell{width:64px;flex:none;border-radius:8px}
.ing-dock{position:absolute;left:0;right:0;bottom:0;padding:24px 16px calc(var(--bot) + 30px);background:linear-gradient(180deg,rgba(14,13,11,0),var(--field) 24px)}
:root[data-theme=light] .ing-dock{background:linear-gradient(180deg,rgba(246,243,238,0),var(--field) 24px)}

/* ================= ASSEMBLY fallback (four honest stages) ================= */
.asm{display:flex;flex-direction:column;height:100%;background:var(--field)}
.asm .player{height:calc(var(--top) + 254px)}
.asm .player::after{background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,0) 26%),linear-gradient(0deg,rgba(0,0,0,.7) 0%,rgba(0,0,0,0) 40%)}
.asm-row{display:flex;justify-content:space-between;align-items:baseline;padding:14px 18px 0}
.asm-row .count{font-size:20px;line-height:25px;font-weight:600;letter-spacing:-.45px}
.asm-row .count b{font-weight:700}
.asm-row span:last-child{font-size:13px;color:var(--ink2)}
.asm-beats{position:relative;margin:12px 18px 0;height:16px;color:var(--ink)}
.asm-sheet{position:relative;margin:16px 12px 0;flex:1;min-height:0}
.contact{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));column-gap:1px;row-gap:6px}
.contact i{position:relative;display:block;aspect-ratio:1;background-color:var(--inset);background-repeat:no-repeat;opacity:.5;filter:saturate(.55) sepia(.05);transition:opacity 280ms var(--ease),filter 280ms var(--ease)}
.contact i.used{opacity:1;filter:saturate(1) sepia(.04)}
.contact i.out{opacity:.22;filter:grayscale(.8)}
.contact i.out::after{content:"";position:absolute;inset:18%;background:linear-gradient(45deg,transparent calc(50% - 1px),var(--tally) calc(50% - 1px),var(--tally) calc(50% + 1px),transparent calc(50% + 1px))}
.stages{position:absolute;left:12px;right:12px;bottom:calc(var(--bot) + 28px);border-radius:var(--r-card);background:var(--card);padding:6px 0;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.stage-r{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 16px;color:var(--ink3);transition:color 160ms var(--ease)}
.stage-r .dot{width:22px;height:22px;border-radius:50%;flex:none;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px currentColor}
.stage-r .dot svg.i{width:14px;height:14px;stroke-width:2.4;opacity:0}
.stage-r .nm{flex:1;font-size:15px;line-height:20px;font-weight:500;letter-spacing:-.23px}
.stage-r .ct{font-size:13px;color:var(--ink2)}
.stage-r.on{color:var(--ink)}
.stage-r.on .dot{box-shadow:inset 0 0 0 2px var(--ink)}
.stage-r.done{color:var(--ink)}
.stage-r.done .dot{background:var(--ink);color:var(--field);box-shadow:none}
.stage-r.done .dot svg.i{opacity:1}
.stage-r .bar{position:absolute;left:50px;right:16px;bottom:4px;height:2px;border-radius:1px;background:var(--fill2);overflow:hidden;opacity:0}
.stage-r.on .bar{opacity:1}
.stage-r .bar i{display:block;height:100%;width:0;background:var(--ink);transition:width linear}
.stage-r{position:relative}

/* ================= CUT (basic; the Director agent replaces it) ================= */
.cutv{display:flex;flex-direction:column;height:100%;background:var(--field)}
.cutv .player{height:calc(var(--top) + 338px);cursor:pointer}
.cutv .p-bot{right:20px}
.scrub{position:relative;flex:none;padding:12px 0 0}
.ovrow{display:flex;align-items:center;gap:12px;margin:0 16px}
.ovrow .ov{flex:1;min-width:0;height:4px;color:var(--ink)}
.ovrow .tc{color:var(--ink2);flex:none}
.cutv .tl-wrap{margin-top:10px}
.cut-body{flex:1;min-height:0;overflow-y:auto;padding:2px 0 160px;scrollbar-width:none}
.cut-body::-webkit-scrollbar{display:none}
.reasons{padding:4px 20px 12px}
.reasons b{display:block;font-size:20px;line-height:25px;font-weight:600;letter-spacing:-.45px}
.reasons p{font-size:15px;line-height:20px;color:var(--ink2);margin-top:1px}
.dock{position:absolute;left:0;right:0;bottom:-2px;padding:40px 0 calc(var(--bot) + 26px);z-index:10;
  background:linear-gradient(180deg,rgba(14,13,11,0) 0,var(--field) 32px,var(--field) 100%)}
:root[data-theme=light] .dock{background:linear-gradient(180deg,rgba(246,243,238,0) 0,var(--field) 32px,var(--field) 100%)}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]) .dock,:root:not([data-theme=dark]) .ing-dock{background:linear-gradient(180deg,rgba(246,243,238,0) 0,var(--field) 32px,var(--field) 100%)}}
.dock .chips{padding-bottom:12px}
