/* KairoCut UI v2 (Oct 13 2026): Austin + Tanner picked "B's clean layout with A's colours" - dark violet base with a
   soft purple->cyan glow, frosted-glass cards, big bold headings, radio-list modes, floating glass tab bar, bottom
   sheets on phones. Loaded AFTER style.css and app.html's own styles, so it only restyles; markup stays the same. */
:root{
  --bg:#0b0a14; --panel:rgba(255,255,255,.045); --panel2:rgba(255,255,255,.07); --line:rgba(255,255,255,.09);
  --text:#f4f2ff; --muted:#a19cbb; --a1:#8b5cf6; --a2:#22d3ee;
  --grad:linear-gradient(120deg,#8b5cf6 0%,#6d5cff 45%,#22d3ee 100%);
  --glass:rgba(22,19,40,.62); --r-lg:24px; --r-md:16px; --r-sm:12px;
  --shadow:0 18px 40px -22px rgba(0,0,0,.7);
}
body{background:radial-gradient(120% 60% at 15% -10%,rgba(124,77,255,.32) 0%,rgba(11,10,20,0) 55%),
                radial-gradient(90% 50% at 110% 10%,rgba(34,211,238,.12) 0%,rgba(11,10,20,0) 60%),var(--bg);
     background-attachment:fixed;letter-spacing:-.005em}
h1,h2,.logo{font-family:'Plus Jakarta Sans',Inter,system-ui,sans-serif}
h1{font-size:30px;font-weight:800;letter-spacing:-.03em;margin:22px 0 4px}
h2{font-size:19px;font-weight:800;letter-spacing:-.02em}
.muted{color:var(--muted)}

/* top bar: lighter glass, the hours chip opens Plan */
nav{background:rgba(11,10,20,.55);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--line)}
.pillbal{background:var(--panel2);border:1px solid var(--line);backdrop-filter:blur(10px)}
.avatar{background:var(--grad)!important;color:#fff!important;font-weight:800}

/* surfaces */
.card,.modal,.ed-insp,.ed-opts>div,.ed-tl{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:var(--shadow)}
.modal{background:rgba(20,17,36,.92)}
input,select,textarea{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:var(--r-sm)}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(139,92,246,.7);outline-offset:0;border-color:transparent}

/* buttons */
.btn{border-radius:14px;font-weight:700;box-shadow:0 8px 22px -12px rgba(109,92,255,.9)}
.btn.sm{border-radius:11px}
.btn.ghost{background:var(--panel2);border:1px solid var(--line);box-shadow:none}
.btn.danger{background:rgba(244,63,94,.08);border-color:rgba(244,63,94,.3);box-shadow:none}

/* ---- Create: modes as a clean radio list ---- */
.fmts{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
.fmt{display:flex!important;flex-direction:row!important;align-items:center!important;text-align:left;gap:12px!important;
  background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:12px 14px!important;
  position:relative;min-width:0;transition:border-color .15s,background .15s}
.fmt .fi{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(139,92,246,.28),rgba(34,211,238,.16));border:1px solid rgba(255,255,255,.08)}
.fmt .fi img{width:26px!important;height:26px!important}
.fmt b{font-size:14.5px;font-weight:700;display:block;line-height:1.25}
.fmt small{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:var(--muted);line-height:1.35;margin-top:2px}
.fmt::after{content:"";margin-left:auto;flex:none;width:20px;height:20px;border-radius:50%;border:2px solid rgba(255,255,255,.22)}
.fmt[aria-checked="true"]{border-color:rgba(139,92,246,.85)!important;background:rgba(139,92,246,.13)!important;box-shadow:0 0 0 1px rgba(139,92,246,.5)}
.fmt[aria-checked="true"]::after{border:6px solid #a78bfa}
.fmtdesc{display:none}
.drop{border:1.5px dashed rgba(167,139,250,.45)!important;border-radius:22px!important;background:linear-gradient(135deg,rgba(139,92,246,.10),rgba(34,211,238,.05));padding:30px 16px!important}
.drop::before{content:"";display:block;width:52px;height:52px;margin:0 auto 12px;border-radius:17px;background:var(--grad) center/24px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E"),var(--grad);
  background-size:24px,100%;box-shadow:0 10px 24px -10px rgba(109,92,255,.9)}
.drop b{font-family:'Plus Jakarta Sans',Inter,sans-serif;font-size:17px}
.moreopts{border-radius:14px!important}

/* ---- My videos ---- */
.job{border-radius:var(--r-lg)!important}
.sortbar{display:inline-flex!important;background:rgba(255,255,255,.06);border-radius:13px;padding:3px;gap:2px}
.sortbar button{border:0!important;background:transparent!important;border-radius:10px!important;padding:6px 12px!important;color:var(--muted)!important;font-weight:600}
.sortbar button.on{background:rgba(255,255,255,.13)!important;color:var(--text)!important}
.cl,.clip{border-radius:18px!important}
.ms{border-radius:999px!important;font-weight:800}
.tag{border-radius:999px;background:var(--panel2)}

/* ---- tab bar: desktop = underline tabs, phone = floating glass bar ---- */
.tabbar{background:rgba(11,10,20,.88)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
@media (max-width:760px){
  h1{font-size:28px}
  .wrap{padding-left:16px;padding-right:16px}
  .fmts{grid-template-columns:1fr!important}
  .fmt{padding:11px 12px!important}
  .tabbar{left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;border-radius:24px!important;
    background:var(--glass)!important;backdrop-filter:blur(22px) saturate(1.5);-webkit-backdrop-filter:blur(22px) saturate(1.5);
    border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 18px 40px -12px rgba(0,0,0,.8);padding:6px 4px!important}
  .tabbar button{border-top:0!important;border-radius:16px;padding:8px 2px 7px!important;font-size:10.5px!important;color:#9d98b8}
  .tabbar button.on{color:#fff;background:rgba(139,92,246,.22)}
  .tabbar button.on svg{filter:drop-shadow(0 0 6px rgba(167,139,250,.9))}
  body{padding-bottom:96px}
  /* pop-ups slide up from the bottom like a native sheet */
  .modal-bg{align-items:flex-end!important;padding:0!important}
  .modal{border-radius:26px 26px 0 0!important;max-height:90vh!important;padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px))!important;
    animation:kcSheet .26s cubic-bezier(.2,.8,.2,1)}
  .modal::before{content:"";display:block;width:40px;height:5px;border-radius:3px;background:rgba(255,255,255,.22);margin:-8px auto 14px}
  /* the account menu becomes a bottom sheet too */
  .menu .dd{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;
    border-radius:26px 26px 0 0!important;padding:14px 10px calc(18px + env(safe-area-inset-bottom,0px))!important;
    background:rgba(20,17,36,.96)!important;backdrop-filter:blur(22px);border:1px solid var(--line)!important;z-index:60;
    box-shadow:0 -20px 50px rgba(0,0,0,.6)}
  .menu.open::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:59}
  .menu .dd button,.menu .dd a{font-size:16px!important;padding:13px 16px!important;border-radius:14px!important}
}
@keyframes kcSheet{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.modal{animation:none}}

/* --- round 2 --- */
/* mode rows: name on top, one line of explanation underneath, check on the right */
.fmt{display:grid!important;grid-template-columns:40px minmax(0,1fr) 20px;grid-template-areas:"ic t ck" "ic s ck";column-gap:12px!important;row-gap:1px}
.fmt .fi{grid-area:ic}.fmt b{grid-area:t;align-self:end}.fmt small{grid-area:s;align-self:start;-webkit-line-clamp:2!important}
.fmt::after{grid-area:ck;margin:0}
/* Edit tab: a calm empty state instead of a big black box */
.ed-stage{background:linear-gradient(160deg,rgba(139,92,246,.16),rgba(34,211,238,.06)),rgba(0,0,0,.35)!important;border:1px solid var(--line);border-radius:26px!important}
#ed_empty{color:var(--muted)}
#ed_empty::before{content:"";width:58px;height:58px;border-radius:19px;background:var(--grad);opacity:.95;
  -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' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4L8.1 15.9M14.5 14.5L20 20M8.1 8.1L12 12'/%3E%3C/svg%3E") center/30px no-repeat,linear-gradient(#000,#000);
  -webkit-mask-composite:xor;mask-composite:exclude}
@media (max-width:760px){
  /* the bar's blur would make it the box that 'fixed' sheets attach to - solid on phones so sheets reach the bottom */
  nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(11,10,20,.94)!important}
  .pillbal .btn{display:none}                                  /* the hours chip itself opens Plan on phones */
  .pillbal{cursor:pointer;padding:7px 13px!important}
  .ed-stage{max-height:52vh!important}
}
@media (max-width:760px){ body:has(.menu.open) .tabbar, body:has(.modal-bg.show) .tabbar{display:none!important} }
.hero h1{margin:16px auto 18px!important;line-height:1.08}

/* --- round 3: clip tiles like a modern creator app --- */
.clips{gap:12px!important}
.clip{background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important}
.clip .cv{position:relative;border-radius:18px;overflow:hidden;cursor:pointer;background:linear-gradient(160deg,#17171f,#0c0c11);box-shadow:0 10px 26px -14px rgba(0,0,0,.9)}
.clip .cv video{border-radius:0;display:block;width:100%;aspect-ratio:9/16;object-fit:contain;background:#000}
.clip .cv button.cplay{padding:0;font:inherit;cursor:pointer}   /* a real button so keyboard users can play clips; mouse taps still land on .cv */
.clip .cv:focus-within{outline:2px solid #a78bfa;outline-offset:2px}
.clip .cv:has(.ms:focus-visible){outline:0}
.clip .cplay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:grid;place-items:center;color:#fff;
  border:1px solid rgba(255,255,255,.25);transition:opacity .2s,transform .2s;pointer-events:none}
.clip .cplay svg{margin-left:3px}
.clip .cv.playing .cplay{opacity:0;transform:translate(-50%,-50%) scale(.8)}
.clip .cv .ms{position:absolute;top:8px;left:8px;z-index:2;background:rgba(10,10,18,.62)!important;backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);color:#a3a3b8;border:1px solid rgba(255,255,255,.14);padding:3px 9px!important;font-size:12px!important;cursor:pointer}
.clip .cv .ms.hi{color:#4ade80}.clip .cv .ms.mid{color:#facc15}
.clip .cdur{position:absolute;top:8px;right:8px;background:rgba(10,10,18,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-radius:999px;padding:3px 8px;font:700 11.5px Inter;color:#fff;font-variant-numeric:tabular-nums}
.clip .cprog{position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--grad);transition:width .25s linear}
.clip .ci{padding:9px 2px 2px!important;gap:6px!important}
.clip .ct{font-size:13px!important;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clip .ct .cn{color:var(--muted);font-weight:600}
.cbar{display:flex;gap:6px;margin-top:auto;align-items:center}
.ib{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;min-width:36px;padding:0 10px;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line);color:var(--text);font:700 13px Inter;cursor:pointer;text-decoration:none;list-style:none}
.ib::-webkit-details-marker{display:none}
.ib.wide{flex:1}.ib:hover{background:rgba(255,255,255,.11)}.ib:disabled{opacity:.45}
.cmore{position:relative}.cmore .jmenu{right:0;left:auto;bottom:42px;top:auto;min-width:190px}
.keepwarn{margin-top:8px;display:inline-block;background:rgba(250,204,21,.1);color:#fde68a;border:1px solid rgba(250,204,21,.25);border-radius:999px;padding:4px 11px}
.job .jh .name{font-family:'Plus Jakarta Sans',Inter,sans-serif;font-weight:800;font-size:16px}
/* toasts instead of browser pop-ups */
#kctoast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:80;
  max-width:min(92vw,460px);padding:12px 18px;border-radius:16px;background:rgba(30,26,52,.96);border:1px solid rgba(167,139,250,.4);
  box-shadow:0 18px 40px -12px rgba(0,0,0,.8);font:600 14px var(--font,Geist,system-ui,sans-serif);color:#fff;pointer-events:none;transition:all .25s}
#kctoast.show{opacity:1;transform:translate(-50%,0)}
#kctoast.bad{border-color:rgba(244,63,94,.5)}
@media (min-width:761px){#kctoast{bottom:28px}}
/* auth pages */
.authwrap,.auth{position:relative}
/* phones: compact 2-up mode tiles, description of the chosen one underneath */
@media (max-width:760px){
  .fmts{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .fmt{grid-template-columns:1fr!important;grid-template-areas:"ic" "t"!important;padding:12px!important;row-gap:8px!important;align-items:start!important}
  .fmt small{display:none!important}
  .fmt::after{position:absolute;top:12px;right:12px;width:18px;height:18px}
  .fmt .fi{width:36px;height:36px}
  .fmt b{font-size:13.5px!important}
  .fmtdesc{display:block!important;margin:10px 2px 4px;color:var(--muted);font-size:13px;line-height:1.45}
}
@media (max-width:760px){
  /* the sticky Make-clips bar floats ABOVE the glass tab bar, as its own glass strip */
  .actrow{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;background:rgba(22,19,40,.82)!important;
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.1)!important;
    border-radius:20px;padding:10px!important;margin:0 -6px}
  .actrow .btn{width:100%;height:50px;font-size:16px}
}
.jmenu{background:rgba(24,21,42,.98)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:16px!important;
  box-shadow:0 20px 44px -12px rgba(0,0,0,.85)!important;padding:6px!important;z-index:30!important;backdrop-filter:blur(18px)}
.jmenu a,.jmenu button{border-radius:11px!important;font-size:14px!important}
@media (max-width:760px){.actrow{background:rgba(22,19,40,.97)!important}}
.clip .cv .ms,.clip .cdur{top:auto!important;bottom:10px}
/* --- round 4: chip pickers instead of short dropdowns --- */
select.chipped{display:none!important}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chips .chip{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:999px;padding:8px 13px;
  font:600 13px Inter,sans-serif;cursor:pointer;transition:background .15s,border-color .15s;min-height:36px}
.chips .chip:hover{background:rgba(255,255,255,.1)}
.chips .chip.on{background:rgba(139,92,246,.22);border-color:rgba(167,139,250,.85);color:#fff;box-shadow:0 0 0 1px rgba(139,92,246,.4)}
.chips .chip:disabled{opacity:.45;cursor:default}
.opts>div{min-width:0}
.opts label{font-weight:700;color:var(--text);font-size:13px}
@media (max-width:760px){
  .actrow:has(#up:disabled),.actrow:has(#adgo:disabled){position:static!important;background:transparent!important;border:0!important;margin:0!important;padding:12px 0!important;backdrop-filter:none}
}
@media (max-width:760px){.clips{grid-template-columns:repeat(2,minmax(0,1fr))!important}.job{min-width:0}.sortbar{max-width:100%}.sortbar button{white-space:normal}}
