/* FRAME — screen layouts built from system.css */

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 16px 16px; gap: 22px; overflow-y: auto; }
.brand { display: grid; gap: 2px; padding: 0 10px; }
.logo { font-family: var(--latin); font-weight: 600; font-size: 26px; letter-spacing: .32em; direction: ltr; text-align: right; line-height: 1; color: var(--ink); }
.brand .studio { font-size: 13px; color: var(--ink-3); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(30,29,27,.08); }
.nav a[aria-current="page"] .ic { color: var(--olive); }
.nav .n { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nav-label { font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 0 12px; margin-bottom: 4px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.side-foot .who { flex: 1; min-width: 0; line-height: 1.4; }
.side-foot .who b { display: block; font-size: 14px; }
.side-foot .who span { font-size: 12.5px; color: var(--ink-3); }
.main { min-width: 0; }
.page { max-width: 1200px; margin: 0 auto; padding: 36px 40px 72px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.ph h1 { font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1.25; }
.ph p { color: var(--ink-2); margin-top: 4px; }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mtop, .mnav { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 30; height: 58px; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(246,243,237,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mtop .logo { font-size: 21px; }
  .page { padding: 22px 16px calc(var(--nav-h) + 48px + env(safe-area-inset-bottom)); }
  .ph { margin-bottom: 20px; }
  .ph h1 { font-size: 30px; }
  .mnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mnav a, .mnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--nav-h); padding: 6px 2px; color: var(--ink-3); font-size: 11.5px; font-weight: 500; background: none; border: 0; cursor: pointer; }
  .mnav .pill { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background .15s var(--ease); }
  .mnav [aria-current="page"] { color: var(--ink); font-weight: 700; }
  .mnav [aria-current="page"] .pill { background: var(--olive-soft); color: var(--olive-ink); }
  .mnav .dot { position: absolute; top: 9px; inset-inline-end: calc(50% - 22px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
  .toasts { bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
  .no-nav .toasts { bottom: 20px; }
}

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.05fr; }
.login-art { position: relative; overflow: hidden; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,.05) 40%, rgba(20,19,17,.65)); }
.login-art blockquote { position: absolute; z-index: 1; bottom: 48px; inset-inline: 48px; margin: 0; color: #fff; font-family: var(--display); font-size: 30px; line-height: 1.5; }
.login-art blockquote small { display: block; font-family: var(--ui); font-size: 14px; opacity: .8; margin-top: 8px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 88px); gap: 28px; }
.login-panel .logo { font-size: 34px; text-align: right; }
.login-panel h1 { font-family: var(--display); font-size: 40px; line-height: 1.3; }
.roles { display: grid; gap: 12px; }
.role-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--surface); cursor: pointer; text-align: start; width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.role-card:hover { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.role-card .row-main b { font-size: 16px; }
.role-card > .ic { color: var(--ink-3); }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.demo-note .ic { width: 16px; height: 16px; margin-top: 3px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { height: 260px; }
  .login-art blockquote { bottom: 22px; inset-inline: 22px; font-size: 22px; }
  .login-panel { padding: 28px 18px 40px; gap: 22px; }
  .login-panel h1 { font-size: 30px; }
}

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.hero .cover { min-height: 300px; }
.hero-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.hero-body h2 { font-family: var(--display); font-size: 34px; line-height: 1.3; }
.count { display: flex; align-items: baseline; gap: 8px; }
.count b { font-family: var(--display); font-size: 52px; line-height: 1; color: var(--olive-ink); }
.ready { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.ready li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ready .ic { width: 18px; height: 18px; }
.ready .ok { color: var(--green); }
.ready .no { color: var(--amber); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero .cover { min-height: 200px; } .hero-body { padding: 20px; } .hero-body h2 { font-size: 28px; } }
.agenda-day + .agenda-day { margin-top: 18px; }
.agenda-day h4 { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.ev { display: flex; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 14px; }
.ev:hover { background: var(--surface-2); }
.ev .thumb { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.ev .row-main b { font-weight: 600; }

/* ---------- Bookings ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toolbar .search { flex: 1 1 260px; max-width: 360px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(176px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--surface-2); border-radius: var(--r-l); padding: 12px; display: grid; gap: 10px; min-width: 0; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-weight: 600; font-size: 14px; }
.col-h .count { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.bcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.bcard .cover { height: 92px; }
.bcard-b { padding: 12px 14px 14px; display: grid; gap: 6px; }
.bcard h3 { font-family: var(--display); font-size: 20px; line-height: 1.3; }
.bcard .flag { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; }
.bcard .flag .ic { width: 15px; height: 15px; }
.bcard .flag.red { color: var(--red); } .bcard .flag.amber { color: var(--amber); }
.col .empty { padding: 18px 8px; font-size: 13px; }
.list-cards { display: grid; gap: 12px; }
.lcard { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.lcard .thumb { width: 72px; height: 72px; border-radius: 12px; flex: none; }
.lcard h3 { font-family: var(--display); font-size: 20px; line-height: 1.3; }
.board-mobile { display: none; }
@media (max-width: 900px) { .board { display: none; } .board-mobile { display: grid; gap: 14px; } }

/* ---------- Wizard ---------- */
.wiz { max-width: 720px; margin: 0 auto; }
.wiz-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.wiz-steps li { flex: 1; display: grid; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.wiz-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--surface-3); }
.wiz-steps li.done::before, .wiz-steps li.current::before { background: var(--olive); }
.wiz-steps li.current { color: var(--ink); font-weight: 700; }
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.pkg { display: block; }
.pkg input { position: absolute; opacity: 0; }
.pkg > span { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-l); cursor: pointer; background: var(--surface); height: 100%; }
.pkg input:checked + span { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.pkg input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.pkg b { font-size: 16px; }
.pkg .price { font-family: var(--display); font-size: 24px; color: var(--olive-ink); }

/* ---------- Calendar ---------- */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.cal-h { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--side); border-bottom: 1px solid var(--line); }
.cal-h div { padding: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-align: center; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.day { min-height: 118px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; text-align: start; background: var(--surface); cursor: pointer; border-bottom: 0; border-inline-end: 0; font: inherit; color: inherit; min-width: 0; }
.day:nth-child(7n+1) { border-inline-start: 0; }
.day:nth-child(-n+7) { border-top: 0; }
.day.out { background: #FCFBF8; color: var(--ink-3); }
.day .d { font-size: 13px; font-weight: 600; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.day.today .d { background: var(--ink); color: #fff; }
.day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--olive); }
.day .pillev { display: block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--olive-soft); color: var(--olive-ink); }
.pillev.s-inquiry { background: var(--blue-soft); color: var(--blue); }
.pillev.s-quote { background: var(--amber-soft); color: var(--amber); }
.pillev.s-cancelled { background: var(--surface-2); color: var(--ink-3); text-decoration: line-through; }
.pillev.s-delivery, .pillev.s-done { background: var(--surface-2); color: var(--ink-2); }
.day .dots { display: none; gap: 3px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
@media (max-width: 760px) {
  .day { min-height: 56px; padding: 4px; align-items: center; }
  .day .pillev { display: none; }
  .day .dots { display: flex; }
  .cal-h div { padding: 8px 2px; font-size: 12px; }
}

/* ---------- Booking page ---------- */
.bhead { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; margin-bottom: 0; }
.bhead .cover { position: absolute; inset: 0; }
.bhead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,.15) 0%, rgba(20,19,17,.25) 45%, rgba(20,19,17,.78) 100%); }
.bhead.nocover { color: var(--ink); min-height: 0; background: var(--surface); border: 1px solid var(--line); }
.bhead.nocover::after { display: none; }
.bhead-in { position: relative; z-index: 1; padding: 28px 32px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.bhead h1 { font-family: var(--display); font-size: 46px; line-height: 1.2; }
.bhead .when { font-size: 15px; opacity: .92; display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 6px; }
.bhead .when span { display: inline-flex; gap: 6px; align-items: center; }
.bhead .when .ic { width: 17px; height: 17px; }
.bhead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.back .ic { width: 18px; height: 18px; transform: scaleX(-1); }
.back:hover { color: var(--ink); }
.btabs { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: 8px 0 24px; }
@media (max-width: 900px) {
  .bhead { min-height: 240px; border-radius: 18px; margin-inline: -4px; }
  .bhead-in { padding: 20px; }
  .bhead h1 { font-size: 32px; }
  .btabs { top: 58px; margin-inline: -16px; padding-inline: 8px; }
}

/* Timeline */
.nownext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.nn { border-radius: var(--r-l); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.nn.now { background: var(--olive); border-color: var(--olive); color: #fff; }
.nn .lbl { font-size: 13px; font-weight: 600; opacity: .85; display: flex; gap: 6px; align-items: center; }
.nn .t { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.35; margin: 6px 0 2px; }
.nn .m { font-size: 14px; opacity: .9; }
.nn.now .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E3EBC4; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 600px) { .nownext { grid-template-columns: 1fr; } }
.tl > li.it { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.tl > li.it:first-child, .tl > li.place + li.it { border-top: 0; }
.tl .tm { font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.5; display: grid; font-size: 15px; }
.tl .tm small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.tl .tt { font-weight: 600; font-size: 15.5px; }
.tl .note { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.tl .side-acts { display: flex; gap: 2px; align-items: center; }
.tl .it.done .tt { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tl .it.past:not(.done) .tm { color: var(--ink-3); }
.tl .it.current { background: var(--olive-soft); border-radius: 14px; padding-inline: 14px; margin-inline: -14px; border-top-color: transparent; }
.tl .it.current + .it { border-top-color: transparent; }
.tl .place { display: flex; align-items: center; gap: 8px; padding: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--olive-ink); }
.tl .place:first-child { padding-top: 0; }
.tl .place::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tl .place .ic { width: 15px; height: 15px; }
.tl .nowline { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 12.5px; font-weight: 700; padding: 4px 0; }
.tl .nowline::after { content: ""; flex: 1; height: 2px; background: var(--red); border-radius: 2px; }
@media (max-width: 600px) { .tl > li.it { grid-template-columns: 74px minmax(0, 1fr); } .tl .side-acts { grid-column: 2; justify-content: space-between; } }

/* Shots */
.shot-group + .shot-group { margin-top: 24px; }
.shot-group h3 { font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.shots > li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.shots > li:first-child { border-top: 0; }
.shots .check { flex: 1; min-width: 0; }
.shots .txt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.shots .done .txt > span:first-child { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* Delivery */
.dlv { border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: grid; gap: 14px; }
.dlv + .dlv { margin-top: 12px; }
.dlv-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.dlv-h h3 { font-size: 16px; font-weight: 600; }
.dlv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.file-name { font-weight: 500; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; text-align: right; display: block; }

/* Shoot mode */
body.shoot { font-size: 17px; }
body.shoot .tl .tm { font-size: 19px; }
body.shoot .tl .tt { font-size: 18.5px; }
body.shoot .check input { width: 30px; height: 30px; border-radius: 9px; }
body.shoot .check input:checked::after { width: 8px; height: 15px; }
body.shoot .shots > li { padding: 15px 0; }
body.shoot .no-shoot { display: none !important; }

/* ---------- Client portal ---------- */
.portal { background: var(--bg); min-height: 100vh; }
.p-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; position: absolute; inset: 0 0 auto 0; z-index: 2; color: #fff; }
.p-top .logo { color: #fff; font-size: 20px; }
.p-hero { position: relative; height: min(78vh, 680px); min-height: 460px; display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.p-hero .cover { position: absolute; inset: 0; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,.35) 0%, rgba(20,19,17,.1) 35%, rgba(20,19,17,.72) 100%); }
.p-hero-in { position: relative; z-index: 1; padding: 0 20px 56px; display: grid; gap: 10px; justify-items: center; }
.p-hero .hello { font-size: 15px; opacity: .9; }
.p-hero h1 { font-family: var(--display); font-size: clamp(40px, 8vw, 72px); line-height: 1.15; }
.p-hero .date { font-size: 17px; opacity: .95; }
.p-count { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 8px; padding: 10px 22px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); }
.p-count b { font-family: var(--display); font-size: 30px; line-height: 1; }
.p-body { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; display: grid; gap: 22px; }
.p-sec h2 { font-family: var(--display); font-size: 28px; line-height: 1.3; margin-bottom: 14px; }
.p-moments li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.p-moments li:first-child { border-top: 0; padding-top: 0; }
.p-moments .tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.team-faces { display: flex; flex-wrap: wrap; gap: 16px; }
.team-faces li { display: flex; align-items: center; gap: 10px; }
.p-foot { text-align: center; color: var(--ink-3); font-size: 13px; padding: 24px 16px 40px; }
.preview-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 13.5px; }
.preview-bar .btn { min-height: 32px; }
@media (max-width: 900px) { .board-cancelled-desktop { display: none; } }
@media (max-width: 760px) { .cal-h .wd-l { display: none; } .cal-h .wd-s { display: inline !important; } }
@media (max-width: 900px) { .hide-m { display: none !important; } }
