/* الهوية من موقع dakin.studio (تصميم الاستوديو): نفس الخطوط والألوان والزوايا والحركة.
   Changa للعربي (مع «ع» المعدّلة تبع الهوية)، Lexend Exa للعناوين الإنكليزية، Inter للنص الإنكليزي. كلها محفوظة جوّا الموقع */
@font-face { font-family: "Changa"; src: url("fonts/changa-arabic-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 300 600; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend Exa"; src: url("fonts/lexend-exa-latin.woff2") format("woff2"); font-weight: 200 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend Exa"; src: url("fonts/lexend-exa-latin-ext.woff2") format("woff2"); font-weight: 200 500; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

/* ألوان الموقع: فحمي #0B0B0B، ورق #E6E7E8، أحمر الهوية #ED1C24 للتمييز بس.
   الأزرار الأساسية حيادية (حبر على ورق) وبتصير حمرا لما تمرّ عليها، متل الموقع */
:root, [data-theme="light"] {
  --bg: #F1F1F2;
  --panel: #E9E9EA;
  --card: #FFFFFF;
  --card-2: #F4F4F5;
  --line: rgb(10 10 10 / .1);
  --hover-line: rgb(10 10 10 / .28);
  --ink: #0A0A0A;
  --muted: #626365;
  --faint: #626365;
  --accent: #D9141C;
  --red: #ED1C24;
  --btn: #0A0A0A;
  --on-btn: #E6E7E8;
  --tag: #0A0A0A;
  --on-tag: #F1F1F2;
  --sel: #FCE3E4;
  --field: #F1F1F2;
  --accent-t: rgb(237 28 36 / .08);
  --danger: #B5121A;
  --backdrop: rgb(10 10 10 / .45);
  --shadow: none;

  --s-idea: #8E8F91;
  --s-ready: #B98A1E;
  --s-shot: #3F7BB0;
  --s-editing: #E0661F;
  --s-review: #7E5BC2;
  --s-done: #2F8A3C;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0B0B;
  --panel: #111111;
  --card: #161616;
  --card-2: #1D1D1D;
  --line: rgb(230 231 232 / .12);
  --hover-line: rgb(230 231 232 / .3);
  --ink: #E6E7E8;
  --muted: #9A9B9D;
  --faint: #8C8D8F;
  --accent: #F2393F;
  --red: #ED1C24;
  --btn: #E6E7E8;
  --on-btn: #0A0A0A;
  --tag: #E6E7E8;
  --on-tag: #0B0B0B;
  --sel: #2A1113;
  --field: #0B0B0B;
  --accent-t: rgb(237 28 36 / .14);
  --danger: #FF6B6B;
  --backdrop: rgb(0 0 0 / .7);
  --shadow: none;

  --s-idea: #9A9B9D;
  --s-ready: #F2C14E;
  --s-shot: #7DB4E6;
  --s-editing: #FF9259;
  --s-review: #B99AF0;
  --s-done: #7CCB82;
  color-scheme: dark;
}
:root {
  --f-text: "Changa", "Inter", system-ui, sans-serif;
  --f-display: "Changa", "Lexend Exa", system-ui, sans-serif;
  --r: 24px; --r-s: 16px; --r-xs: 10px; --r-row: 14px;
  --wrap: 1240px; --gut: 20px;
  --m-fast: .35s; --m-mid: .8s;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-w: 208px;
  font-family: var(--f-text);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ———— الهيكل ———— */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100dvh; }
.nav {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2px;
  padding: 20px 12px; background: var(--panel); border-inline-end: 1px solid var(--line);
}
.brand { display: grid; justify-items: end; gap: 8px; padding: 8px 16px 24px; color: var(--ink); direction: ltr; }
.brand .wm { width: 104px; height: auto; }
.brand small { font-family: "Lexend Exa", system-ui, sans-serif; font-size: 8px; letter-spacing: .3em; margin-right: -.3em; color: var(--muted); font-weight: 500; }
.nav a[data-tab] { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--r-s); color: var(--muted); }
.nav a[data-tab]:hover { background: var(--card-2); color: var(--ink); }
.nav a.on { background: var(--card); color: var(--ink); }
.nav .ic { flex: none; opacity: .85; }
.sync { margin-top: auto; padding: 8px 12px; font-size: 12px; color: var(--faint); }
.sync::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); margin-inline-end: 8px; }
.sync.ok::before { background: var(--s-done); }
.sync.err::before { background: var(--danger); }

main { padding: 32px clamp(16px, 4vw, 48px) 80px; max-width: 1440px; width: 100%; margin-inline: auto; outline: none; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: auto 0 0 0; height: auto; z-index: 20; flex-direction: row; justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line);
  }
  .brand, .sync { display: none; }
  .nav a[data-tab] { flex-direction: column; gap: 0; font-size: 11px; padding: 8px 8px; }
  .nav .ic { font-size: 17px; }
  main { padding: calc(16px + env(safe-area-inset-top)) 16px 112px; }
}

/* ———— عناصر عامة ———— */
h1:not(.dl *) { font-family: var(--f-display); font-size: 30px; font-weight: 600; margin: 0; line-height: 1.3; }
h2:not(.dl *) { font-size: 17px; font-weight: 600; margin: 0; }
h3:not(.dl *) { font-size: 15px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

.head { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.head .titles { flex: 1; min-width: 200px; }
/* رابط الرجوع للصفحة الأعلى: سهم واضح ومساحة ضغط مريحة */
.crumb { font-size: 14px; color: var(--muted); margin: 0 -8px 8px 0; padding: 8px 8px; border-radius: var(--r-xs); display: inline-flex; align-items: center; gap: 8px; }
.crumb::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(-45deg); flex: none; }
.crumb:hover { color: var(--ink); background: var(--panel); }
.saved { font-size: 13px; color: var(--faint); padding-bottom: 8px; transition: color .2s; }
.saved.on { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: var(--r-s);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.btn:hover { background: var(--card-2); }
.btn.primary { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--card); }
.btn.sm { padding: 4px 8px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.icon-btn { border: 0; background: transparent; color: var(--faint); padding: 4px 8px; border-radius: var(--r-xs); font-size: 14px; }
.icon-btn:hover { color: var(--ink); background: var(--card-2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.section { margin-top: 32px; }
.section > .row:first-child { margin-bottom: 12px; }

label.f { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.in, select.in, textarea.in {
  width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 8px 12px; color: var(--ink); font-size: 15px; transition: border-color .15s, background-color .15s;
}
textarea.in { resize: vertical; min-height: 70px; line-height: 1.6; overflow: hidden; }
.in:hover { border-color: var(--hover-line); }
.in:focus { border-color: var(--accent); background: var(--card); outline: none; }
.in::placeholder { color: var(--faint); }
.in.ltr { direction: ltr; text-align: left; }
.in.ltr.ph-rtl:placeholder-shown { direction: rtl; text-align: right; }
/* قوائم الاختيار: سهم خاص على اليسار والنص من اليمين */
select.in, select.in:focus, .shot select.mini {
  appearance: none; -webkit-appearance: none; text-align: right; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-repeat: no-repeat; background-size: 5px 5px; background-position: 12px 55%, 17px 55%;
  padding-inline-end: 32px !important;
}
.bare { background: transparent; border: 0; border-radius: var(--r-xs); padding: 2px 4px; width: 100%; color: var(--ink); }
.bare:hover { background: var(--panel); }
.bare:focus { background: var(--panel); outline: 1px solid var(--line); }
input.title-in { font-family: var(--f-display); font-size: 30px; font-weight: 600; padding: 0 4px; margin: 0 -4px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 4px 12px; border-radius: 100px; font-size: 13px;
}
.chip:hover { color: var(--ink); }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 2px 8px; border-radius: 100px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.pill .dot, .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.st-idea { --c: var(--s-idea); } .st-ready { --c: var(--s-ready); } .st-shot { --c: var(--s-shot); }
.st-editing { --c: var(--s-editing); } .st-review { --c: var(--s-review); } .st-done { --c: var(--s-done); }
[class*="st-"] .dot, .dot[class*="st-"] { background: var(--c); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 16px; }

/* ———— الرئيسية ———— */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.client-card { display: grid; gap: 16px; align-content: start; transition: border-color .15s, transform .15s; }
.client-card:hover { border-color: var(--hover-line); transform: translateY(-1px); }
.client-card .name { font-family: var(--f-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.client-card .k { font-size: 13px; color: var(--muted); }
.client-card .k b { color: var(--ink); font-weight: 600; }
.client-card .next { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.client-card .next .when { margin-inline-start: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }
.client-card .cta { font-size: 13px; color: var(--accent); font-weight: 600; }
.client-card .foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.client-card .crew { margin-inline-start: auto; font-size: 12px; color: var(--faint); }
.tag { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 2px 8px; border-radius: 100px; background: var(--card-2); color: var(--muted); }
.tag.hot { background: var(--btn); color: var(--on-btn); font-weight: 600; }
.meter { height: 6px; border-radius: 8px; background: var(--card-2); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--c); }
.month-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ———— الرئيسية: «القادم» + قائمة العملاء ———— */
.hello h1 { font-size: 34px; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 40px; align-items: start; }
.home .agenda { order: 2; position: sticky; top: 24px; }
.home .clist { order: 1; }
@media (max-width: 980px) { .home { grid-template-columns: 1fr; gap: 28px; } .home .agenda { order: 0; position: static; } }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .2px; margin: 0 0 8px; }
.agenda .eyebrow:not(:first-child) { margin-top: 24px; }
.agenda .li { padding: 8px 4px; border-radius: var(--r-s); border-top: 0; }
.agenda .li.first .datebox { background: var(--btn); color: var(--on-btn); }
.agenda .li.first .datebox span { color: inherit; opacity: .8; }
.agenda .li.note .t span { white-space: normal; }
.agenda .none { color: var(--faint); font-size: 14px; margin: 4px 0; }
.waits { display: grid; gap: 2px; }
.wait { display: flex; gap: 8px; align-items: baseline; text-align: start; background: none; border: 0; padding: 8px 4px; border-radius: var(--r-s); color: var(--ink); font-size: 15px; }
.wait:hover { background: var(--card-2); }
.wait b { font-family: var(--f-display); font-size: 18px; min-width: 22px; }
.wait.hot b { color: var(--accent); }

.clist { display: grid; }
.crow { display: grid; grid-template-columns: minmax(110px, 1.1fr) minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center;
  padding: 16px 8px; border-top: 1px solid var(--line); border-radius: var(--r-s); }
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow:hover { background: var(--card); }
.crow .cname { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.crow .ck { display: grid; gap: 8px; }
.crow .cflags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.crow .crew { font-size: 12px; color: var(--faint); }
@media (max-width: 760px) {
  .crow { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 4px; }
  .crow .cname { font-size: 20px; }
  .crow .ck { grid-column: 1 / -1; order: 3; }
  .crow .cnext { text-align: end; }
  .crow .cflags { grid-column: 1 / -1; order: 4; justify-content: flex-start; }
  .crow .cflags:empty { display: none; }
}
.list { display: grid; gap: 0; padding: 8px 0; align-content: start; }
.list > h2 { padding: 8px 16px 8px; font-size: 15px; }
.li { display: flex; gap: 16px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); }
.li:first-of-type { border-top: 0; }
.li:hover { background: var(--card-2); }
.li .t { flex: 1; min-width: 0; display: grid; }
.li .t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datebox { width: 46px; flex: none; text-align: center; border-radius: var(--r-s); background: var(--card-2); padding: 4px 0; line-height: 1.15; }
.datebox b { display: block; font-family: var(--f-display); font-size: 20px; }
.datebox span { font-size: 11px; color: var(--muted); }
.list .none { padding: 8px 16px 16px; color: var(--faint); font-size: 14px; }
.section-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.section-title h2 { font-family: var(--f-display); font-size: 22px; }

/* ———— الرفرنسات ———— */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.ref { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ref.dropped { opacity: .45; }
.ref .thumb { aspect-ratio: 9 / 13; background: var(--panel); position: relative; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.ref .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref .thumb .tagst { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 11px; padding: 2px 8px; border-radius: 100px; background: var(--tag); color: var(--on-tag); font-weight: 600; }
.ref .body { padding: 8px 12px 12px; display: grid; gap: 8px; flex: 1; align-content: start; }
.ref .note { font-size: 14px; }
.ref .meta { font-size: 12px; color: var(--faint); }
.ref .acts { display: flex; gap: 4px; padding: 0 8px 8px; flex-wrap: wrap; }
.likes { font-size: 12px; color: var(--accent); }
.mini-thumb { width: 54px; aspect-ratio: 9/13; border-radius: var(--r-xs); background: var(--panel); object-fit: contain; flex: none; display: grid; place-items: center; font-size: 10px; color: var(--faint); overflow: hidden; }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 16px; text-align: center; color: var(--muted); font-size: 13px;
  cursor: pointer; display: grid; place-items: center; gap: 8px; min-height: 120px;
}
.drop.over { border-color: var(--accent); color: var(--accent); }
.drop img { max-height: 220px; border-radius: var(--r-s); }

/* ———— خطة التصوير ———— */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .plan { grid-template-columns: minmax(0, 1fr); } .side { position: static; max-height: none; } }
.side { position: sticky; top: 20px; display: grid; gap: 8px; max-height: calc(100dvh - 40px); overflow: auto; }
.side-ref { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px; align-items: flex-start; }
.side-ref .t { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13px; }

.counter { font-size: 13px; color: var(--muted); }
.counter b { color: var(--ink); font-size: 18px; }

.vids { display: grid; gap: 8px; }
.vid { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.vid:hover { border-color: var(--hover-line); }
.vid .num { font-weight: 600; color: var(--faint); font-size: 20px; width: 26px; text-align: center; flex: none; }
.vid .t { flex: 1; min-width: 0; }
.vid .t h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid .t p { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ———— بطاقة الفيديو ———— */
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .vgrid { grid-template-columns: 1fr; } }
.statusbar { display: flex; gap: 4px; flex-wrap: wrap; }
.statusbar button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 4px 12px; border-radius: 100px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.statusbar button.on { background: var(--sel); color: var(--ink); border-color: var(--c); }

.linked-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.linked-refs .lr { position: relative; border-radius: var(--r-s); overflow: hidden; background: var(--panel); aspect-ratio: 9/13; display: grid; place-items: center; color: var(--faint); font-size: 12px; border: 1px solid var(--line); }
.linked-refs .lr img { width: 100%; height: 100%; object-fit: cover; }
.linked-refs .lr .cap { position: absolute; inset: auto 0 0 0; padding: 16px 8px 8px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .8)); }
.linked-refs .lr .x { position: absolute; top: 4px; inset-inline-end: 4px; background: rgb(0 0 0 / .6); color: #fff; }

/* الشوت ليست */
.shots { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.shot { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); align-items: start; }
.shot:first-child { border-top: 0; }
.shot .n { color: var(--faint); font-weight: 600; padding-top: 4px; text-align: center; }
.shot .main { display: grid; gap: 8px; min-width: 0; }
.shot .opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.shot select.mini, .shot input.mini {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 2px 8px; font-size: 12px; color: var(--muted);
}
.shot input.mini { width: 110px; }
.shot select.mini { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-repeat: no-repeat; background-size: 4px 4px; background-position: 8px 55%, 12px 55%; padding-inline-end: 24px !important; }
.shot .tools { display: flex; gap: 0; }
.shot.done .main input.bare { text-decoration: line-through; color: var(--faint); }
.shots-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); }

/* ———— يوم التصوير ———— */
.day-progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 16px; margin-bottom: 8px; }
.day-progress .meter { height: 8px; margin-top: 8px; }
.place { margin-top: 24px; }
.place h2 { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.check {
  display: flex; gap: 16px; align-items: center; width: 100%; text-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; margin-bottom: 8px;
}
.check .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; font-weight: 600; color: var(--bg); }
.check.on { opacity: .5; }
.check.on .box { background: var(--s-done); border-color: var(--s-done); }
.check .t { flex: 1; display: grid; gap: 2px; }
.check .t b { font-size: 16px; font-weight: 600; }
.check .t span { font-size: 12px; color: var(--muted); }

/* ———— حوار ———— */
dialog {
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 0;
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px);
}
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
dialog form { display: grid; gap: 16px; padding: 24px; }
dialog .foot { display: flex; gap: 8px; justify-content: flex-end; }

#toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 100px; font-weight: 600; font-size: 14px; transition: .2s; z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(50%) translateY(0); }
@media (max-width: 760px) { #toast { bottom: 90px; } }

textarea.msg { white-space: pre-wrap; min-height: 260px; font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }

/* ———— الدخول ———— */
body.gated .shell { grid-template-columns: 1fr; }
body.gated .nav { display: none; }
body.gated main { max-width: none; display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px; }
.gate { width: min(420px, 100%); gap: 16px; }
.gate h1 { font-size: 34px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.chip.pick { cursor: pointer; padding: 8px 16px; font-size: 15px; }
.chip.pick:has(input:checked) { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

/* ———— العقود ———— */
.mini-num { width: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 0 8px; color: var(--ink); font-size: 13px; text-align: center; }

/* ———— المونتاج حسب العميل والعقد ———— */
.cgroup { margin-bottom: 32px; }
.cgroup > h2 { font-family: var(--f-display); font-size: 24px; display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.kgroup { border-inline-start: 2px solid var(--line); padding-inline-start: 16px; margin: 8px 0 16px; display: grid; gap: 8px; }
.kname { color: var(--muted); font-size: 14px; letter-spacing: .3px; }
.erow { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.erow:hover { border-color: var(--hover-line); }
.erow .top { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 220px; }
.erow .top .mini-thumb { width: 40px; }
.erow .t { min-width: 0; }
.erow .t p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.btn.google { gap: 8px; padding: 12px 16px; font-size: 15px; }
.btn.google svg { background: #fff; border-radius: 50%; padding: 2px; width: 22px; height: 22px; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; }

.nav a[data-tab][data-count]:not([data-count=""])::after {
  content: attr(data-count); margin-inline-start: auto; background: var(--btn); color: var(--on-btn);
  font-size: 11px; font-weight: 600; min-width: 18px; padding: 0 4px; border-radius: 100px; text-align: center; line-height: 18px;
}
@media (max-width: 760px) { .nav a[data-tab] { position: relative; } .nav a[data-tab][data-count]:not([data-count=""])::after { position: absolute; top: 2px; inset-inline-end: 6px; } }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; }
.req { border-color: var(--btn); }
.wait-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--btn); }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .wait-dot { animation: none; } }

/* ———— صفحة العقد للعميل ———— */
body.public .shell { grid-template-columns: 1fr; }
body.public .nav { display: none; }
body.public main { max-width: none; padding: 0; }
.share { max-width: 620px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 16px 60px; display: grid; gap: 16px; }
.share-head { display: grid; gap: 4px; margin-bottom: 8px; }
.share-head h1 { font-size: 34px; }
.share footer { text-align: center; padding-top: 12px; font-family: var(--f-display); font-size: 15px; }
.sv .num { font-weight: 600; color: var(--faint); font-size: 18px; }
.frame { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--r-s); overflow: hidden; background: var(--panel); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pending-box { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-s); font-size: 14px; }
.cap { background: var(--panel); border-radius: var(--r-s); padding: 8px 12px; }
.cap p { margin: 8px 0 0; white-space: pre-wrap; font-size: 14px; }

.client-note { background: var(--accent-t); border-radius: var(--r); padding: 16px 16px; }
.client-note .eyebrow { display: block; margin: 0 0 4px; }
.client-note p { margin: 0; white-space: pre-wrap; font-size: 16px; }
.note-badge { color: var(--accent); font-weight: 600; }
.quick-ref { margin-bottom: 16px; }
.steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; line-height: 1.7; }
.steps code, .f code { direction: ltr; unicode-bidi: isolate; background: var(--panel); padding: 0 4px; border-radius: 4px; }

@media (max-width: 760px) {
  .head .titles { flex-basis: 100%; }
  .hello h1 { font-size: 30px; }
}

/* ———— الرفرنسات: شريط إضافة واحد + تبويبات ———— */
.refs-head { align-items: center; }
.addbar { display: flex; gap: 8px; align-items: center; flex: 0 1 560px; min-width: 280px; }
.addbar .in { flex: 1; min-width: 0; }
.filterbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab .c { font-size: 12px; color: var(--faint); margin-inline-start: 2px; }
select.in.client-filter { width: auto; padding: 8px 8px; font-size: 14px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .addbar { flex-basis: 100%; }
  .filterbar { gap: 8px; }
  select.in.client-filter { order: -1; width: 100%; margin: 0 0 4px; }
}
@media (max-width: 760px) {
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ref .body { padding: 8px 8px 8px; }
  .ref .note { font-size: 13px; }
}

.section.first { margin-top: 0; }
.client-info summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; }
.client-info summary::-webkit-details-marker { display: none; }
.client-info summary h2::before { content: "‹"; display: inline-block; margin-inline-end: 8px; color: var(--faint); transition: transform .2s cubic-bezier(.22,1,.36,1); }
.client-info[open] summary h2::before { transform: rotate(-90deg); }

/* ما خلّي أي محتوى عريض يوسّع الصفحة أعرض من الشاشة */
main { min-width: 0; }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .vid { flex-wrap: wrap; }
  .vid > div.w120, .vid > div.w140 { flex: 1 1 100%; width: auto !important; order: 5; }
}

/* ———— مقاسات موحّدة ————
   ارتفاعين بس للعناصر: عادي ٤٠ وصغير ٣٢، وكل زر وخانة وقائمة وشريحة بيمشي عليهن */
:root { --h: 40px; --h-sm: 32px; }
.btn { min-height: var(--h); padding: 0 16px; font-size: 14px; line-height: 1; }
.btn.sm { min-height: var(--h-sm); padding: 0 12px; font-size: 13px; }
.btn.ghost.danger { margin-inline-start: -12px; }
input.in, select.in { height: var(--h); padding-block: 0; font-size: 15px; }
input.in.sm, select.in.sm, select.in.client-filter { height: var(--h-sm); font-size: 14px; padding-inline-start: 12px; }
input.in[type="date"] { width: auto; }
.icon-btn { min-width: var(--h-sm); height: var(--h-sm); display: inline-grid; place-items: center; }
.chip { min-height: var(--h-sm); padding: 0 12px; display: inline-flex; align-items: center; }
.statusbar button { min-height: var(--h-sm); padding: 0 12px; }
.pill, .tag { min-height: 24px; }
.chip.pick { min-height: var(--h); }
.btn.google { min-height: 44px; }

/* رأس الصفحة: عنوان + سطر وصف، والأزرار بنفس خط السطر */
.head .sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.head-acts { display: flex; gap: 8px; }
.metabar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 0 0 20px; margin: -8px 0 24px; border-bottom: 1px solid var(--line); }
.mf { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mf .chips { gap: 8px; }

/* قائمة الفيديوهات */
.vid { padding: 12px 16px; min-height: 76px; }
.vid .num { font-size: 15px; width: 18px; font-weight: 600; }
.vid .mini-thumb { width: 40px; }
.mini-thumb.blank { background: var(--card-2); }
.vid .pill { flex: none; }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; width: 100%;
  background: transparent; border: 1px dashed var(--hover-line); border-radius: var(--r); color: var(--muted); font-size: 14px; font-weight: 600; }
.add-row:hover { color: var(--ink); background: var(--card); border-style: solid; }
.hint { margin: 2px 0 0; text-align: center; }
.section > h2 { margin-bottom: 12px; }

/* الجانب */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--h-sm); }
.side-ref .t .row .btn.sm { min-height: 28px; padding: 0 8px; font-size: 12px; }

@media (max-width: 760px) {
  .head-acts { width: 100%; }
  .head-acts .btn { flex: 1; }
  .metabar { gap: 12px 20px; }
}
.metabar .head-acts { margin-inline-start: auto; }
@media (max-width: 760px) { .metabar .head-acts { margin-inline-start: 0; } }
/* القوائم الشبكية ما بتتمدد أعرض من مكانها بسبب نص طويل */
.vids, .waits, .clist, .list, .shots, .kgroup { grid-template-columns: minmax(0, 1fr); }
/* أقسام بطاقة الفيديو: كل قسم عنوان بنفس الحجم وتحته الخانة */
.fsec { display: grid; gap: 8px; }
.fsec > h2, .fsec-h { margin: 0; }
.fsec-h { display: flex; align-items: baseline; gap: 8px; }
.vgrid > .stack { gap: 28px; }
.vgrid aside.stack { gap: 16px; }
.vgrid aside .chips .chip { min-height: 30px; }

/* ———— لمسات الهوية ———— */
/* خط أحمر رفيع جنب عنوان الصفحة، متل عناوين العرض */
.head .titles { border-inline-start: 2px solid var(--accent); padding-inline-start: 16px; }
/* معين أحمر صغير قبل العناوين الصغيرة */
.eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); margin-inline-end: 8px; vertical-align: 2px; }
/* الترقيم: 0 خفيف + الرقم عريض (01، 02…) */
.idx { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.idx i { font-style: normal; font-weight: 300; opacity: .55; }
.vid .num { color: var(--ink); font-weight: 600; width: 30px; }
.vid .num .idx { color: var(--accent); }
.btn.primary { border-color: var(--btn); }
.nav a.on { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .nav a.on { background: var(--card-2); }
.gate .wm { width: 150px; color: var(--ink); justify-self: center; margin: 8px 0 4px; }
.share footer .wm { width: 72px; color: var(--muted); margin: 0 auto; }
input[type="checkbox"] { accent-color: var(--accent); }
.shot { grid-template-columns: 30px 1fr auto; }

/* ———— الرئيسية: جملة «القادم» + بطاقات العملاء ———— */
.upnext { margin: -8px 0 36px; }
.sentence { font-size: 19px; line-height: 1.7; margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
.sentence b { color: var(--ink); font-weight: 600; }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.up { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; min-width: 0; }
.up:hover { border-color: var(--hover-line); }
.up .t { display: grid; min-width: 0; }
.up .t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up .t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up .datebox b { font-size: 18px; }
.up.hot .datebox { background: var(--accent-t); }
.up.hot .datebox b { color: var(--accent); font-size: 12px; line-height: 1.6; }
.up .datebox b:only-child { line-height: 1.9; }

.clients { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.client-card { min-height: 190px; padding: 16px; gap: 16px; }
.client-card:hover { transform: none; border-color: var(--hover-line); }
.client-card .name { font-size: 24px; }
.client-card .ck { display: grid; gap: 8px; }
.client-card .next .datebox { width: 42px; }
.client-card .next b { font-size: 13px; }
.client-card .foot { margin-top: auto; }
@media (max-width: 760px) {
  .sentence { font-size: 17px; }
  .ups { grid-template-columns: minmax(0, 1fr); }
  .clients { grid-template-columns: minmax(0, 1fr); }
  .client-card { min-height: 0; }
}

/* غلاف إنستغرام الرسمي (embed) لما ما في صورة */
.ig-embed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--panel); }
.ig-embed iframe { position: absolute; top: 0; inset-inline-start: 0; width: 326px; height: 760px; border: 0;
  transform-origin: top right; }
[dir="ltr"] .ig-embed iframe { transform-origin: top left; }
/* لمسة الأحمر بالبطاقة: تاريخ التصوير القادم */
.client-card .next .datebox { background: var(--accent-t); }
.client-card .next .datebox b { color: var(--accent); }

/* أيقونات خطّية: حجم واحد وسماكة وحدة، لونها من لون النص */
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.btn.primary .ic-heart, [aria-pressed="true"] .ic-heart { fill: currentColor; }
.check .box .ic { width: 18px; height: 18px; stroke-width: 2; }
.policy-link { color: var(--faint); text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
.share footer .policy-link { display: block; margin-top: 8px; font-family: var(--f-text); }

/* لقطات الستوري بورد */
.shot .main { grid-template-columns: minmax(0, 1fr); }
.shot .main.has-img { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.shot .mtext { display: grid; gap: 8px; min-width: 0; }
.shot-img { width: auto; height: auto; max-width: 72px; max-height: 80px; border-radius: var(--r-xs); background: var(--panel); flex: none; display: block; }
.check .shot-img { max-width: 64px; max-height: 64px; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; }
.sb-grid:empty { display: none; }
.sb-grid label { position: relative; cursor: pointer; }
.sb-grid img { width: 100%; height: auto; border-radius: var(--r-xs); display: block; border: 2px solid transparent; }
.sb-grid input { position: absolute; top: 4px; inset-inline-start: 4px; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.sb-grid input:checked + img { border-color: var(--accent); }
.sb-grid input:not(:checked) + img { opacity: .35; }

/* تقويم النشر بصفحة العميل */
.cal h3 { font-size: 15px; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid .wd { font-size: 11px; color: var(--faint); padding-bottom: 4px; }
.cal-grid .d { min-height: 44px; display: grid; place-items: center; align-content: center; border-radius: var(--r-xs); font-size: 13px; color: var(--muted); }
.cal-grid .d.on { background: var(--accent-t); color: var(--accent); border: 0; font: inherit; cursor: pointer; gap: 0; }
.cal-grid .d.on b { font-size: 14px; font-weight: 600; }
.cal-grid .d.on small { font-size: 10px; }
.cal-grid .d.on .idx i { opacity: .5; font-style: normal; }
.sv { scroll-margin-top: 16px; }
.note-d summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.note-d[open] summary { margin-bottom: 8px; }

/* الصور بشكلها الحقيقي (طولي، مربع، عرضي) بدل قصّها كلها طولي */
.ref .thumb:has(> img) { aspect-ratio: auto; display: block; }
.ref .thumb > img { height: auto; display: block; }
.linked-refs .lr:has(> img) { aspect-ratio: auto; display: block; }
.linked-refs .lr > img { height: auto; display: block; }
.sb-grid { align-items: start; }
.frame.ar-9-16 { max-width: 380px; }
.frame.ar-4-5 { max-width: 440px; }
.frame.ar-1-1 { max-width: 480px; }

/* يوم التصوير: صور كبيرة وأزرار سهلة باليد */
.day-progress { padding: 12px 0 16px; display: grid; gap: 8px; }
.day-progress .meter { margin-top: 0; }
.day-tabs { display: flex; gap: 8px; }
.day-tabs .chip { min-height: 44px; padding: 0 10px; font-size: 15px; flex: none; padding: 0 16px; justify-content: center; white-space: nowrap; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.day-grid .check { grid-column: 1 / -1; margin: 0; min-height: 60px; }
.shotcard { display: grid; gap: 8px; text-align: start; padding: 0; background: none; border: 0; cursor: pointer; }
.shotcard .pic { position: relative; display: block; border-radius: var(--r-s); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.shotcard img { width: 100%; height: auto; display: block; transition: opacity .2s cubic-bezier(.22,1,.36,1); }
.shotcard .box { position: absolute; top: 8px; inset-inline-start: 8px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: oklch(1 0 0 / .85); border: 2px solid oklch(0.3 0.01 60 / .35); color: var(--bg); }
.shotcard .box .ic { width: 20px; height: 20px; stroke-width: 2.5; }
.shotcard.on img { opacity: .3; }
.shotcard.on .box { background: var(--s-done); border-color: var(--s-done); }
.shotcard.on .pic::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--s-done); border-radius: inherit; }
.shotcard .t { display: grid; gap: 2px; padding: 0 2px; }
.shotcard .t b { font-size: 15px; font-weight: 600; }
.shotcard .t span { font-size: 12px; color: var(--muted); }
.shotcard.on .t { opacity: .5; }
.day-end .btn { width: 100%; min-height: 52px; font-size: 16px; justify-content: center; }
@media (min-width: 700px) { .day-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } .day-end .btn { width: auto; } }
.day-opts { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.day-opts summary { list-style: none; display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.day-opts summary::-webkit-details-marker { display: none; }
.day-opts[open] summary { border-bottom: 1px solid var(--line); }
.day-opt { display: grid; gap: 8px; padding: 12px; }
.day-opt + .day-opt { padding-top: 0; }
.day-opt > span { font-size: 12px; color: var(--faint); }
.day-opt .day-tabs { flex-wrap: wrap; }
.day-opt .day-tabs .chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
.day-grid.v-small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.day-grid.v-small .shotcard .t b { font-size: 13px; }
.day-grid.v-small .shotcard .box { width: 26px; height: 26px; top: 6px; inset-inline-start: 6px; }
.day-grid.v-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.day-grid.v-list .check { padding: 12px 16px; }
@media (min-width: 700px) { .day-grid.v-small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }

/* سحب للتحديث */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 50; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--muted);
  opacity: 0; transform: translate(-50%, 0); pointer-events: none; transition: opacity .2s; box-shadow: 0 2px 8px oklch(0.2 0.01 60 / .12); }
.ptr .ic { width: 18px; height: 18px; stroke-width: 2; }
.ptr.ready { color: var(--accent); }
.ptr.spin { opacity: 1 !important; transform: translate(-50%, 48px) !important; }
.ptr.spin .ic { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* فلتر العملاء: الحشوة العمودية كانت تقصّ الكلمة على الآيفون */
select.in.client-filter { padding-block: 0; line-height: normal; }
@media (max-width: 700px) { select.in.client-filter { height: 44px; font-size: 15px; } }

/* الشوت ليست: الوصف كامل على كذا سطر بدل ما ينقص */
.shot textarea.shot-text { width: 100%; resize: none; overflow: hidden; font: inherit; font-size: 15px; line-height: 1.6; padding: 2px 4px; min-height: 0; border: 0; background: none; color: inherit; display: block; }
.shot.done textarea.shot-text { text-decoration: line-through; color: var(--faint); }
.shot input.mini { width: auto; flex: 1 1 140px; min-width: 0; max-width: 220px; }

/* زر إغلاق بكل نافذة */
dialog { position: fixed; }
dialog > form > h2:first-child { padding-inline-end: 40px; }
.dlg-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: none; border: 0; color: var(--muted); cursor: pointer; }
.dlg-x:hover { background: var(--panel); color: var(--ink); }
.dlg-x .ic { width: 20px; height: 20px; }

/* صور جلسة التصوير بصفحة العميل: معاينة مجلد الدرايف */
.photos h2 { font-size: 20px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pgrid > a, .pgrid .ph { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; background: var(--panel); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.pgrid > a:hover img { transform: scale(1.03); }
.pgrid .more { position: absolute; inset: 0; display: grid; place-items: center; background: oklch(0.15 0.01 60 / .62); color: oklch(0.98 0.005 60); font-size: 26px; font-weight: 600; }
.pgrid .ph { animation: ph-pulse 1.4s ease-in-out infinite alternate; }
@keyframes ph-pulse { from { opacity: .5; } to { opacity: 1; } }

/* ترتيب الفيديوهات */
.vid-row { display: flex; gap: 4px; align-items: center; }
.vid-row .vid { flex: 1; min-width: 0; }
.vmove { display: grid; gap: 2px; }
.vmove .icon-btn { width: 36px; height: 34px; }
.vmove .icon-btn:disabled { opacity: .25; }

/* نقل الفيديوهات غير المصوّرة */
.unshot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.pickrow { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; }
.pickrow input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }

/* صفحة العقد: التسليم مقسّم حسب التصوير */
.deliv { gap: 12px; }
.deliv .num { font-weight: 600; color: var(--accent); width: 24px; flex: none; }
.deliv h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deliv-f { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; }
@media (max-width: 600px) { .deliv-f { grid-template-columns: minmax(0, 1fr); } }

/* صفحة التصوير المبسّطة */
.shoot-body { gap: 16px; }
.add-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notes-d { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.notes-d summary { list-style: none; display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; cursor: pointer; min-height: 44px; }
.notes-d summary::-webkit-details-marker { display: none; }
.notes-d summary .faint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.notes-d[open] summary .faint { display: none; }
.notes-d textarea { margin: 0 12px 12px; width: calc(100% - 24px); }
.ref-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.rp { display: grid; gap: 6px; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.rp img, .rp-ph { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-xs); background: var(--panel); border: 2px solid transparent; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.rp:hover img, .rp:focus-visible img { border-color: var(--accent); }
.rp .small { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* على التلفون: إحساس تطبيق. آيفون بيعمل زووم لحاله إذا خط الخانة أصغر من 16px، ومنمنع السحب الجانبي */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) {
  input, select, textarea, .in, input.in.sm, select.in.sm, select.in.client-filter, .shot input.mini, .shot textarea.shot-text { font-size: 16px !important; }
}

/* مشغّل درايف على التلفون: أزراره بتطلع أكبر من الإطار الضيق وبتنقص. منكبّر الإطار ١٫٤ مرة ومنصغّره لنفس المكان، فبتظبط الأزرار */
@media (pointer: coarse) {
  .frame iframe[src*="drive.google.com"] { inset: auto; top: 0; left: 0; width: 140%; height: 140%; transform: scale(calc(1 / 1.4)); transform-origin: 0 0; }
}
.frame video.dvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0b0b; display: block; }

/* ═══════════════ نظام موقع dakin.studio، حرفياً ═══════════════
   القيم منقولة من assets/site.css تبع الموقع: نفس الألوان والشفافيات والزوايا والأحجام والحركة.
   - شريط علوي حبري دائماً (#0A0A0A) بارتفاع 72px، فيه الشعار والتنقل ونقطة المزامنة وزر الوضع
   - البطاقات كتل لون بلا حدود ولا ظل: بطاقة 16px، صف 14px، لوحة كبيرة 24px
   - الأزرار حبوب 999px: أساسي بلون الزر (ورق بالليلي، حبر بالنهاري) وبيحمرّ عالمرور؛ ثانوي بلون البطاقة
   - أزرار الأيقونات دوائر 40px بحد line-d وبتتعبّى أحمر عالمرور
   - الخانات خلفيتها لون الصفحة، زاوية 10px، حشوة 14/16، وحد أحمر عالتركيز
   - العناوين Changa خفيفة 300، والأرقام 200
*/
:root, [data-theme="dark"] { --line-d: rgba(230,231,232,.14); --ghost: rgba(230,231,232,.14); --ghost-2: rgba(230,231,232,.35); --hover: rgba(230,231,232,.06); --muted-d: #9A9B9D; }
[data-theme="light"] { --ghost: rgba(10,10,10,.14); --ghost-2: rgba(10,10,10,.35); --hover: rgba(10,10,10,.04); }
::selection { background: #ED1C24; color: #fff; }
:focus-visible { outline: 2px solid #ED1C24; outline-offset: 3px; border-radius: 4px; }
body { font-size: 16px; line-height: 1.6; transition: background .4s, color .4s; }

/* ── الشريط العلوي (كمبيوتر) ── */
@media (min-width: 761px) {
  .shell { display: block; }
  .nav { position: sticky; top: 0; z-index: 70; height: 72px; display: flex; flex-direction: row; align-items: center; gap: clamp(18px, 2.6vw, 40px);
    background: #0A0A0A; color: #E6E7E8; padding: 0 calc(var(--gut) + 20px); border: 0; width: auto; }
  .nav .brand { order: 0; margin-left: auto; padding: 0; }
  .nav .sync { margin-right: auto !important; }
  .nav a[data-tab] { padding: 0; background: none !important; box-shadow: none !important; border-radius: 0; color: #E6E7E8; opacity: .75; font-size: 14px; letter-spacing: 0;
    transition: opacity .2s, color .2s; }
  .nav a[data-tab] .ic { display: none; }
  .nav a[data-tab]:hover, .nav a[data-tab].on { opacity: 1; color: #ED1C24; }
  .nav .sync { margin: 0; padding: 0; color: #9A9B9D; font-size: 12px; order: 9; }
  .nav .theme-btn { order: 10; }
  main { max-width: calc(var(--wrap) + 48px); padding: 56px 24px 96px; }
}
.brand { display: flex; align-items: center; gap: 14px; color: #E6E7E8; direction: ltr; }
.brand .logo-mark { width: 18px; height: 28px; flex: none; display: block; }
.brand .lockup { height: 13px; width: auto; color: #E6E7E8; display: block; }
.brand .wm, .brand .mark, .brand small { display: none; }
.theme-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; color: #E6E7E8; background: none; flex: none; }
.theme-btn:hover { border-color: #ED1C24; color: #ED1C24; }
.theme-btn .ic { width: 16px; height: 16px; }

/* ── شريط التلفون السفلي: نفس الحبر والأحمر ── */
@media (max-width: 760px) {
  .nav { background: #0A0A0A !important; color: #E6E7E8; border-top: 1px solid var(--line-d) !important; }
  .nav a[data-tab] { color: #E6E7E8; opacity: .7; background: none !important; box-shadow: none !important; border-radius: 0; }
  .nav a[data-tab].on { opacity: 1; color: #ED1C24; }
  .nav .theme-btn { display: none; }
}

/* ── رأس الصفحة: خط تحتاني متل .head بالموقع، بلا الخط الأحمر الجانبي ── */
.head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 40px; align-items: end; gap: 24px; }
.head .titles { border: 0 !important; padding-inline-start: 0 !important; }
h1:not(.dl *), .title-in { font-family: var(--f-display) !important; font-weight: 300 !important; font-size: clamp(32px, 4vw, 58px) !important; line-height: 1.2 !important; letter-spacing: 0; }
h2:not(.dl *) { font-family: var(--f-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 24px); }
h3:not(.dl *) { font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.crumb { font-size: 14px; color: var(--muted); padding: 0; margin: 0 0 8px; background: none !important; }
.crumb:hover { color: #ED1C24; }
.sub, .head .sub, .muted { color: var(--muted); }
.eyebrow { font-size: 14px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.eyebrow::before { background: #ED1C24; }
.section { margin-top: clamp(40px, 5vw, 64px); }
.section > .row:first-child, .side-head, .fsec-h { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }

/* ── الأزرار ── */
.btn { border: 0 !important; border-radius: 999px; min-height: 44px; padding: 0 20px; gap: 10px; font-size: 14px; font-weight: 400;
  background: var(--card); color: var(--ink); box-shadow: none;
  transition: background var(--m-fast), color var(--m-fast), transform var(--m-fast) var(--ease); }
.card .btn:not(.primary):not(.ghost), dialog .btn:not(.primary):not(.ghost), .deliv .btn:not(.primary) { background: var(--bg); }
.btn:hover { background: var(--hover); color: var(--ink); filter: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--btn); color: var(--on-btn); }
.btn.primary:hover { background: #ED1C24; color: #fff; }
.btn.primary.red { background: #ED1C24; border-color: #ED1C24; color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--hover); }
.btn.sm { min-height: 34px; padding: 0 16px; font-size: 13px; }
.btn.danger, .btn.ghost.danger { color: #ED1C24; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--muted);
  transition: background .2s, border-color .2s, color .2s; }
.icon-btn:hover:not(:disabled) { background: #ED1C24; border-color: #ED1C24; color: #fff; }
.icon-btn:disabled { opacity: .3; }
.shot .icon-btn, .vmove .icon-btn { width: 34px; height: 34px; }
.add-row { border: 1px dashed var(--line-d) !important; border-radius: var(--r-row) !important; background: transparent !important; color: var(--muted); min-height: 56px; }
.add-row:hover { border-color: #ED1C24 !important; color: #ED1C24; }

/* ── الرقاقات (chips) والحالات ── */
.chip, .statusbar button { border: 1px solid var(--line) !important; border-radius: 999px; padding: 6px 14px; min-height: 0; font-size: 13px; background: transparent; color: var(--ink);
  transition: background var(--m-fast), border-color var(--m-fast), color var(--m-fast); }
.chip:hover, .statusbar button:hover { border-color: currentColor !important; background: var(--hover); }
.chip.on, .chip.pick:has(input:checked) { background: var(--btn); border-color: var(--btn) !important; color: var(--on-btn); }
.statusbar button.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn) !important; }
.pill { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.day-tabs .chip, .day-opt .day-tabs .chip { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ── البطاقات والصفوف: كتل لون بلا حدود ── */
.card, .client-card, .day-opts, .notes-d, .unshot, .cal, .photos, .sv, .empty, .shots, .fsec .shots {
  background: var(--card); border: 0 !important; border-radius: var(--r-s); box-shadow: none !important; }
.client-card { padding: 24px; gap: 20px; }
.client-card .name { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.03em; }
.client-card:hover { background: var(--card); transform: none; }
.client-card .foot { border-top: 1px solid var(--line); }
.vid, .li, .shot, .check, .side-ref, .ref, .lr, .up, .wait { border: 0 !important; box-shadow: none !important; }
.vid { background: var(--card); border-radius: var(--r-row); padding: 20px 22px; min-height: 76px; transition: background .3s var(--ease); }
.vid:hover { background: var(--card-2); }
.vids { gap: 8px; }
.shots { overflow: hidden; }
.shot { border-top: 1px solid var(--line) !important; }
.shot:first-child { border-top: 0 !important; }
.check { background: var(--card); border-radius: var(--r-row); padding: 20px 22px; }
.ref { background: var(--card); border-radius: var(--r-s); overflow: hidden; }
.ref .thumb img, .lr { border-radius: 10px; }
.mini-thumb, .shot-img, .pgrid > a, .shotcard .pic, .rp img, .sb-grid img { border-radius: 10px; border: 0; }
.empty { color: var(--muted); padding: 56px 24px; }
.idx, .vid .num, .sv .num, .deliv .num, .num { font-family: var(--f-display); font-weight: 200; letter-spacing: -.04em; color: var(--ink); }
.idx i { font-style: normal; opacity: .3; }
.vid .num .idx { color: var(--ink); }
.datebox { border-radius: 10px; }

/* ── الخانات: متل نموذج الموقع ── */
.in, select.in, textarea.in, .bare:focus { font-size: 15px; }
.in, select.in, textarea.in { background: var(--card); border: 1px solid transparent !important; border-radius: 10px; padding: 12px 16px; height: auto; min-height: 44px; color: var(--ink); box-shadow: none; }
.card .in, .card select.in, .card textarea.in, dialog .in, dialog select.in, dialog textarea.in, .deliv .in, .day-opts .in, .notes-d .in, .client-card .in { background: var(--bg); }
.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: #ED1C24 !important; background: inherit; }
.in.sm, select.in.sm { min-height: 36px; padding: 6px 14px; }
.f, label.f, .mf > span, .deliv-f .f { font-size: 12px; color: var(--muted); gap: 6px; }
.shot input.mini, .shot select.mini { background: var(--bg); border: 1px solid transparent; border-radius: 10px; }
input[type="checkbox"] { accent-color: #ED1C24; }

/* ── الحوارات والإشعارات ── */
dialog { background: var(--card); border: 0; border-radius: var(--r); }
dialog form { padding: 32px; gap: 16px; }
dialog h2 { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.dlg-x { border: 1px solid var(--line); width: 40px; height: 40px; }
.dlg-x:hover { background: #ED1C24; border-color: #ED1C24; color: #fff; }
#toast { background: #0A0A0A; color: #E6E7E8; border-radius: 999px; border: 1px solid var(--line-d); }

/* ── صفحة العميل ── */
.share { max-width: 680px; padding-top: calc(40px + env(safe-area-inset-top)); gap: 12px; }
.share-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; }
.share-head h1 { font-size: clamp(40px, 9vw, 64px) !important; }
.photos h2, .sv h2 { font-family: var(--f-display); font-weight: 300; font-size: 22px; }
.sv, .photos { padding: 24px; }
.frame { border-radius: var(--r-s); }
.cal .d.on { background: #ED1C24; color: #fff; }
.note-d summary { color: var(--muted); }
.share footer { padding-top: 40px; }
.share footer .logo-mark { width: 14px; height: 22px; margin: 0 auto; display: block; }
.share footer .lockup { height: 11px; color: var(--muted); margin: 8px auto 0; display: block; }

/* ── الحركة: نفس منحنى الموقع ── */
@keyframes dk-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
main.entering > * { animation: dk-rise .8s var(--ease) both; }
main.entering > *:nth-child(2) { animation-delay: .06s; }
main.entering > *:nth-child(3) { animation-delay: .12s; }
main.entering > *:nth-child(n+4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { main.entering > * { animation: none; } }

/* التلفون: خطوط أكبر بشوي */
@media (max-width: 760px) {
  main { padding: 24px 16px 110px; }
  .head { margin-bottom: 28px; }
  .vid, .check { padding: 16px 18px; }
}
.gate .logo-mark { width: 22px; height: 34px; justify-self: center; display: block; }
.gate .lockup { height: 16px; color: var(--ink); justify-self: center; display: block; margin: 4px 0; }

/* «Changa Ain» بالموقع بس لزر اللغة: إذا حطّيناه بالنص بيكسر وصل حرف العين بنص الكلمة */
/* التلفون: المحتوى ما بيفوت تحت شريط الساعة، والشعار مش بالشريط السفلي */
@media (max-width: 760px) {
  main { padding-top: calc(24px + env(safe-area-inset-top)) !important; }
  .nav .brand { display: none !important; }
}
/* بطاقة الرفرنس: الحالة بتنقرا كاملة */
.ref .acts select.in.sm { padding: 6px 12px; min-width: 0; text-align: center; }
.ref .acts { gap: 8px; align-items: center; }

/* النوافذ على التلفون: كل شي جوّا العرض. الأزرار بتنزل سطر جديد، والخانات ما بتعرّض النافذة */
dialog { max-width: calc(100vw - 24px); overflow-x: hidden; }
dialog form { min-width: 0; }
dialog form > * { min-width: 0; max-width: 100%; }
dialog .in, dialog input, dialog select, dialog textarea { width: 100%; min-width: 0; }
dialog .foot { flex-wrap: wrap; }
dialog > form > h2:first-child { padding-inline-end: 56px; }
@media (max-width: 760px) {
  dialog form { padding: 24px 20px; }
  dialog .foot { justify-content: stretch; }
  dialog .foot .btn { flex: 1 1 auto; }
  dialog .foot #rotate { flex-basis: 100%; order: 9; margin: 0 !important; }
}

/* التسليم: كل فيديو صف مسكّر، بيتمدد بالضغط */
.deliv-list { display: grid; gap: 8px; }
.deliv { background: var(--card); border-radius: var(--r-row); overflow: hidden; }
.deliv summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; min-height: 72px; }
.deliv summary::-webkit-details-marker { display: none; }
.deliv summary .num { width: 30px; flex: none; font-size: 18px; }
.deliv summary .dt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.deliv summary .dt b { font-family: var(--f-display); font-weight: 400; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deliv summary .dmeta { font-size: 13px; color: var(--muted); }
.deliv summary .dmeta .ok { color: var(--s-done); display: inline-flex; gap: 4px; align-items: center; }
.deliv summary .dmeta .ok .ic { width: 13px; height: 13px; stroke-width: 2; }
.deliv summary .pill { flex: none; }
.deliv .chev { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; background: var(--btn); color: var(--on-btn); }
.deliv .chev::before, .deliv .chev::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 1px; background: currentColor; translate: -50% -50%; transition: rotate .3s var(--ease); }
.deliv .chev::after { rotate: 90deg; }
.deliv[open] .chev::after { rotate: 0deg; }
.deliv summary:hover .chev { background: #ED1C24; color: #fff; }
.deliv-body { padding: 0 20px 20px; gap: 12px; animation: dk-rise .5s var(--ease) both; }
.deliv-body .in { background: var(--bg); }
@media (max-width: 600px) { .deliv summary .pill { display: none; } .deliv summary { padding: 16px; gap: 12px; } .deliv-body { padding: 0 16px 16px; } }

/* القوائم المنسدلة: رجّعنا السهم (كان انمحى مع لون الخلفية الجديد) */
select.in { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
  background-repeat: no-repeat !important; background-size: 5px 5px !important; background-position: 14px 55%, 19px 55% !important; }
/* حالة الرفرنس بالبطاقة: مساحة ضيقة، فبلا سهم وبحشوة صغيرة لتنقرا الكلمة كاملة */
.ref .acts { flex-wrap: nowrap; padding: 0 10px 10px; }
.ref .acts .btn.sm { padding: 0 12px; flex: none; }
.ref .acts .icon-btn { width: 36px; height: 36px; flex: none; }
.ref .acts select.in.sm { flex: 1 1 auto; min-width: 0; padding: 6px 8px !important; text-align: center; text-align-last: center; background-image: none !important; font-size: 14px !important; }
/* زر التعديل فوق زاوية الصورة، متل أزرار الموقع فوق الصور: دائرة حبرية شفافة مغبّشة */
.ref { position: relative; }
.ref-edit { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(10,10,10,.65); color: #E6E7E8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.ref-edit:hover { background: #ED1C24; color: #fff; }
.ref-edit .ic { width: 16px; height: 16px; }
.ref .acts select.in.sm { padding: 6px 10px !important; }

/* أقسام بتتسكّر وبتنفتح (صفحة الفيديو): مسكّرة بتبيّن العنوان، ونقطة وملخص صغير إذا في بيانات */
.fold { background: var(--card); border-radius: var(--r-s); }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; min-height: 64px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold-t { display: flex; align-items: center; gap: 10px; flex: none; }
.fold-t h2 { font-size: 18px; font-weight: 400; margin: 0; }
.fold-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ghost-2); flex: none; }
.fold-dot.on { background: #ED1C24; border-color: #ED1C24; }
.fold-hint { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold[open] .fold-hint, .fold[open] .fold-thumb { visibility: hidden; }
.fold-thumb { width: 28px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.fold .chev { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; background: var(--btn); color: var(--on-btn); transition: background .25s; }
.fold .chev::before, .fold .chev::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 1px; background: currentColor; translate: -50% -50%; transition: rotate .3s var(--ease); }
.fold .chev::after { rotate: 90deg; }
.fold[open] .chev::after { rotate: 0deg; }
.fold > summary:hover .chev { background: #ED1C24; color: #fff; }
.fold-body { padding: 0 20px 20px; gap: 12px; animation: dk-rise .5s var(--ease) both; }
.fold-body .in { background: var(--bg); }
.fold .shots { background: transparent; border-radius: 0; }
.fold .shots-foot { background: transparent; border-top: 1px solid var(--line); padding: 12px 0 0; }
.vgrid > .stack, .vgrid > aside { gap: 8px; }
.fold.card { padding: 0; }
@media (max-width: 600px) { .fold > summary { padding: 16px; } .fold-body { padding: 0 16px 16px; } }

/* بدل دائرة +/−: سهم الموقع الرفيع (i-down من dakin.studio)، بلا تعبئة، وبينقلب لفوق لما ينفتح القسم */
.fold .chev, .deliv .chev {
  width: 18px; height: 18px; border-radius: 0; background: currentColor !important; color: var(--muted);
  -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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease), color .25s;
}
.fold .chev::before, .fold .chev::after, .deliv .chev::before, .deliv .chev::after { display: none; }
.fold[open] .chev, .deliv[open] .chev { transform: rotate(180deg); }
.fold > summary:hover .chev, .deliv summary:hover .chev { color: #ED1C24; }

/* مقبض الترتيب جوّا بطاقة الفيديو (متل الآيفون): ثلاث خطوط رفيعة، بالسحب بيرتّب */
.vid-row { display: block; transition: transform .25s var(--ease); }
.vid-row.dragging { transition: none; position: relative; z-index: 5; }
.vid-row.dragging .vid, .vid-row.dragging .deliv { background: var(--card-2); box-shadow: 0 12px 32px rgb(0 0 0 / .28) !important; }
.grip { flex: none; width: 36px; height: 36px; margin-inline-start: -6px; display: grid; place-items: center; cursor: grab; touch-action: none; color: var(--ghost-2); }
.grip::before { content: ""; width: 16px; height: 9px; border-block: 1.5px solid currentColor; box-shadow: inset 0 3.75px 0 -2.25px currentColor; }
.grip:hover { color: var(--ink); }
.vid-row.dragging .grip { cursor: grabbing; color: #ED1C24; }

/* زر الرجوع: فوق على اليسار (متل ما الإيد متعودة، ومتل سحبة الآيفون من اليسار).
   دائرة 40px بحد رفيع وسهم ← (سهم i-back من موقع الاستوديو)، بتتعبّى أحمر عالمرور، وجنبها اسم الصفحة الأم */
.backbar { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.backbar .crumb { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 10px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); background: none !important; max-width: 70vw; }
.backbar .crumb::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transform: none;
  background: var(--ink) center / 18px 18px no-repeat;
  -webkit-mask: none; mask: none;
  background-image: none;
  box-shadow: none; }
.backbar .crumb::before {
  background: transparent;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A1A3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M5 12l6 6m-6-6l6-6'/%3E%3C/svg%3E");
  background: var(--arrow) center / 18px 18px no-repeat;
  transition: background-color .2s, border-color .2s;
}
.backbar .crumb:hover { color: var(--ink); }
.backbar .crumb:hover::before { background-color: #ED1C24; border-color: #ED1C24;
  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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M5 12l6 6m-6-6l6-6'/%3E%3C/svg%3E"); }
.backbar .crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .backbar { margin: -4px 0 8px; } }
.backbar .crumb::before { border-color: var(--ghost-2); background-size: 19px 19px; }
.backbar .crumb { color: var(--ink); opacity: .85; }

/* المونتاج: الفلاتر سطر واحد بخط تحتها، والمحتوى بيبلّش فوراً */
.board-head { margin-bottom: 16px; align-items: center; }
.board-head .chip { flex: none; }
.board-tabs { margin-bottom: 24px; }
.board-tabs .tab { font-size: 15px; padding: 10px 12px; }
.board-tabs .tab.on { border-bottom-color: #ED1C24; font-weight: 500; }
.erow .statusbar { gap: 6px; }
.erow .statusbar button { padding: 4px 12px; font-size: 13px; min-height: 32px; }
@media (max-width: 760px) {
  .board-head h1 { font-size: 34px !important; }
  .board-head .titles { flex-basis: auto !important; }
  .board-tabs .tab { padding: 10px 8px; font-size: 14px; }
}

/* الشعار متل الموقع: العلامة الحمرا، DAKIN، وخط رفيع وبعده «استوديو إبداعي» */
.brand { direction: rtl; gap: 12px; }
.brand .sub { font-size: 12px; color: #9A9B9D; padding-inline-start: 12px; border-inline-start: 1px solid rgba(230,231,232,.14); line-height: 1.6; white-space: nowrap; }
@media (max-width: 760px) { .brand .sub { display: none; } }
/* «متزامن» ما إلها لزوم */
.nav .sync { display: none !important; }
@media (min-width: 761px) { .nav .theme-btn { margin-right: auto; } }

/* ═══════ حركة وتفاعل من موقع الاستوديو ═══════ */
/* لوحة الترحيب: لوحة حبرية بزوايا 24 وفيها مروحة البطاقات الحمرا (نفس ألوان dk-fan)، بتدخل وبتتمايل ببطء، وبتميل مع الماوس */
.hero-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r); background: #0A0A0A; color: #E6E7E8;
  min-height: clamp(200px, 26vw, 300px); display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: clamp(24px, 4vw, 48px); margin-bottom: 40px; }
.hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.25) 55%, rgba(10,10,10,0) 100%); }
.hero-panel h1 { color: #E6E7E8; font-size: clamp(34px, 4.2vw, 60px) !important; animation: dk-rise 1.1s var(--ease) .5s both; }
.hero-panel p { margin: 4px 0 0; color: #9A9B9D; font-size: 15px; animation: dk-rise 1.1s var(--ease) .65s both; }
.hero-panel .head-acts { animation: dk-rise 1.1s var(--ease) .8s both; }
.hero-panel .btn { background: rgba(230,231,232,.1); color: #E6E7E8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-panel .btn:hover { background: #ED1C24; color: #fff; }
.fan-wrap { position: absolute; inset: -6%; z-index: -2; container-type: size; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .8s var(--ease); }
.fan { position: absolute; inset-inline-end: 0; top: 50%; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; translate: 0 -50%; scale: -1 1; }
.fan i { position: absolute; inset: 0; transform-origin: 47% 0; will-change: transform; animation: fan-in 1.3s var(--ease) both, fan-sway 9s ease-in-out 1.6s infinite alternate; }
.fan i:nth-child(2) { animation-delay: .07s, 1.7s; } .fan i:nth-child(3) { animation-delay: .14s, 1.8s; }
.fan i:nth-child(4) { animation-delay: .21s, 1.9s; } .fan i:nth-child(5) { animation-delay: .28s, 2s; }
.fan i:nth-child(6) { animation-delay: .35s, 2.1s; } .fan i:nth-child(7) { animation-delay: .42s, 2.2s; }
.fan i:nth-child(even) { animation-duration: 1.3s, 11s; }
@keyframes fan-in { from { opacity: 0; transform: rotate(-24deg); } }
@keyframes fan-sway { from { transform: rotate(0deg); } to { transform: rotate(2.2deg); } }
@media (max-width: 760px) { .hero-panel { margin-bottom: 28px; min-height: 220px; } .hero-panel .head-acts { width: 100%; } }

/* شظايا حمرا بتسبح ببطء (صفحة العميل وصفحة الدخول) */
.shards { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.shard { position: absolute; display: block; background: linear-gradient(160deg, #ED1C24, #7C1317); clip-path: polygon(6% 0, 94% 14%, 100% 90%, 0 100%); opacity: .9;
  animation: shard-in 1.4s var(--ease) both, shard-drift var(--t, 14s) ease-in-out infinite alternate; animation-delay: calc(var(--d, 0s) + .4s), var(--d, 0s); will-change: transform; }
.shard:nth-child(even) { clip-path: polygon(0 8%, 100% 0, 88% 100%, 10% 92%); background: linear-gradient(200deg, #C71920, #300D0E); }
.s1 { width: 46px; height: 70px; left: 8%; top: 18%; --t: 13s; --r: -14deg; --x: 30px; --y: -40px; }
.s2 { width: 22px; height: 34px; left: 24%; top: 70%; --t: 9s; --r: 22deg; --x: -20px; --y: 26px; --d: .2s; }
.s3 { width: 90px; height: 130px; right: 6%; top: 8%; --t: 18s; --r: 10deg; --x: -36px; --y: 44px; opacity: .55; --d: .4s; }
.s4 { width: 30px; height: 44px; right: 22%; bottom: 18%; --t: 11s; --r: -26deg; --x: 24px; --y: -30px; --d: .1s; }
.s5 { width: 14px; height: 22px; left: 44%; top: 12%; --t: 8s; --r: 40deg; --x: 18px; --y: 22px; --d: .5s; }
.s6 { width: 60px; height: 88px; left: 4%; bottom: 6%; --t: 16s; --r: 16deg; --x: 40px; --y: -24px; opacity: .4; --d: .3s; }
.s7 { width: 18px; height: 28px; right: 38%; bottom: 30%; --t: 10s; --r: -36deg; --x: -26px; --y: -18px; --d: .6s; }
@keyframes shard-in { from { opacity: 0; transform: scale(.4) rotate(0deg); } }
@keyframes shard-drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.share-head { position: relative; isolation: isolate; }
body.gated main { position: relative; isolation: isolate; overflow: hidden; }

/* ضو أحمر بيلحق المؤشر جوّا البطاقات (نفس --gc تبع الموقع) */
.client-card, .vid, .fold, .deliv, .erow, .ref, .up, .check { position: relative; isolation: isolate; }
.client-card::before, .vid::before, .fold > summary::before, .deliv summary::before, .erow::before, .up::before, .check::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(237 28 36 / .14), transparent 70%); }
.fold > summary, .deliv summary { position: relative; isolation: isolate; border-radius: inherit; }
.client-card:hover::before, .vid:hover::before, .fold > summary:hover::before, .deliv summary:hover::before, .erow:hover::before, .up:hover::before, .check:hover::before { opacity: 1; }

/* بطاقة العميل متل «طريقة عملنا»: عالمرور أو اللمس بتصير حمرا خفيف وبيطلع سطر زيادة */
.client-card { transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.client-card:hover, .client-card:focus-visible { background: rgba(237,28,36,.10) !important; box-shadow: inset 0 0 0 1px rgba(237,28,36,.45) !important; transform: translateY(-3px); }
.client-card .more { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-height: 0; opacity: 0; overflow: hidden; margin-top: -20px;
  font-size: 14px; color: var(--muted); transition: max-height .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.client-card:hover .more, .client-card:focus-visible .more { max-height: 40px; opacity: 1; margin-top: 0; }
.client-card .more .go { color: #ED1C24; display: inline-flex; align-items: center; gap: 6px; }
.arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.client-card:hover .arr { transform: translateX(-4px); }
@media (hover: none) { .client-card .more { max-height: 40px; opacity: 1; margin-top: 0; } }

/* لمس بدون ضغط (تلفون): ضغطة خفيفة بتعطي استجابة فورية */
.client-card:active, .vid:active, .fold > summary:active, .deliv summary:active, .erow .top:active, .up:active { transform: scale(.985); transition: transform .15s; }
.btn:hover:not(.primary):not(.ghost) { transform: translateY(-1px); }
.ref .thumb img, .lr img { transition: transform .8s var(--ease); }
.ref:hover .thumb img, .lr:hover img { transform: scale(1.04); }
.icon-btn:active, .chip:active, .tab:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .fan i, .shard, .hero-panel h1, .hero-panel p, .hero-panel .head-acts { animation: none !important; }
  .client-card:hover { transform: none; }
}

/* ———— الباقات والتصميم ———— */
.chip.pick { position: relative; }
.chip.pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc-pick legend { padding: 0; margin-bottom: 8px; }
.vgrid.solo { grid-template-columns: minmax(0, 420px); }
.design { margin-bottom: 40px; gap: 12px; }
.design h3 { font-family: var(--f-display); font-size: 18px; font-weight: 500; margin: 12px 0 0; }

/* المراحل: أربع خطوات بخط واحد، اللي خلصت باهتة والحالية بلون */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 8px; }
.stage { all: unset; cursor: pointer; display: grid; gap: 2px; padding: 12px 4px 4px; border-top: 2px solid transparent; margin-top: -1px; color: var(--muted); font-size: 14px; transition: color .3s cubic-bezier(.22,1,.36,1); }
.stage .idx { font-family: var(--f-display); font-size: 20px; }
.stage:hover { color: var(--ink); }
.stage.past { color: var(--ink); border-top-color: var(--line); }
.stage.on { color: var(--ink); border-top-color: var(--accent); font-weight: 500; }
.stage.on .idx { color: var(--accent); }
.stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ملف تصميم عند الفريق: معاينة صغيرة + الحقول */
.frows { display: grid; gap: 12px; }
.frow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.frow .fthumb { aspect-ratio: 1; border-radius: var(--r-xs); }
.fr-f { gap: 8px; }
.fr-top { flex-wrap: nowrap; gap: 8px; }
.fr-top .in { width: auto; }
.fr-top .in:first-child { flex: 1; min-width: 0; }
.fr-top select.in { flex: none; }
.dec { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.dec .ic { width: 15px; height: 15px; }
.dec-ok { color: var(--s-done); }
.dec-changes { color: var(--accent); }
.frow .client-note { padding: 12px; display: grid; gap: 8px; justify-items: start; }

/* معاينة درايف: صورة، أو اسم النوع (PSD، AI…) بخط كبير إذا ما في معاينة */
.fthumb { position: relative; display: block; overflow: hidden; background: var(--panel); border-radius: var(--r-s); color: var(--muted); text-decoration: none; }
.fthumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
a.fthumb:hover img { transform: scale(1.02); }
.fthumb .ft-ph { display: none; }
.fthumb.nothumb { display: grid; place-items: center; min-height: 112px; }
.fthumb.nothumb .ft-ph { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 300; letter-spacing: .02em; }
.fthumb.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.fthumb.fgrid img { aspect-ratio: 1; }
.ftag { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; direction: ltr; }

/* البريف عند الفريق */
.answers { gap: 12px; padding: 16px; background: var(--panel); border-radius: var(--r-s); }
.answers b { font-size: 13px; font-weight: 500; color: var(--muted); }
.answers p { margin: 2px 0 0; white-space: pre-wrap; }
.qs summary { cursor: pointer; padding: 6px 0; }
.qs[open] { display: grid; gap: 12px; }
.qlist { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.qlist li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.board-wrap { aspect-ratio: 16 / 10; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.board-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* صفحة العميل */
.sec-t { font-family: var(--f-display); font-weight: 300; font-size: 28px; margin: 28px 0 4px; }
.share h3 { font-family: var(--f-display); font-weight: 500; font-size: 18px; margin: 0; }
.track { padding: 24px; }
.track h2 { font-family: var(--f-display); font-weight: 300; font-size: 22px; }
.trk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trk li { display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid var(--line); color: var(--faint); font-size: 13px; }
.trk li .idx { font-family: var(--f-display); font-size: 22px; }
.trk li.past { color: var(--muted); border-top-color: var(--muted); }
.trk li.on { color: var(--ink); border-top-color: var(--accent); font-weight: 500; }
.trk li.on .idx { color: var(--accent); }
.brief-f { gap: 20px; }
.brief-f fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.brief-f legend { padding: 0; margin-bottom: 8px; }
.brief-f b { font-weight: 500; }
.brief-f > .btn { justify-self: start; }
.fcard { padding: 24px; scroll-margin-top: 16px; }
.fcard h2 { font-family: var(--f-display); font-weight: 300; font-size: 22px; }
.fcard .num { font-weight: 600; color: var(--faint); font-size: 18px; }
.fcard > .fthumb img { height: auto; max-height: 80vh; object-fit: contain; background: var(--panel); }
.fcard > .fthumb.nothumb { min-height: 220px; }
.decide .ic { width: 15px; height: 15px; }
.fgal { display: grid; gap: 28px 16px; }
.fgal.brand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgal.brand:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.fgal.brand .fthumb { aspect-ratio: 4 / 3; }
.fgal.apps { grid-template-columns: minmax(0, 1fr); }
.fgal.apps .fthumb img { height: auto; }
.ftile { margin: 0; display: grid; gap: 10px; }
.ftile > .fthumb, .fcard > .fthumb { width: 100%; }
.ftile figcaption { display: grid; gap: 4px; }
.ftile figcaption .row { gap: 8px; }
.final { gap: 24px; }
@media (max-width: 560px) {
  .fgal.brand { grid-template-columns: minmax(0, 1fr); }
  .frow { grid-template-columns: 72px minmax(0, 1fr); }
  .stage { font-size: 12px; }
  .trk li { font-size: 12px; }
}
.pre { white-space: pre-wrap; margin: 0; }
.collab-bar { margin-top: -8px; }
.card .row > select.in.sm { width: auto; flex: none; }

/* ———— العقود: محرّر على اليمين ومعاينة الصفحات على اليسار ———— */
.deal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.deal-prev { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 4px 4px 24px; scrollbar-width: thin; }
.deal-info { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.deal-info.warn { color: #ED1C24; }
.deal-tabs.seg { display: none; margin-bottom: 16px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--card); }
.seg button { min-height: 32px; padding: 0 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--btn); color: var(--on-btn); }
.deal-status { padding: 20px; border-radius: var(--r-s); border: 1px solid var(--line); gap: 10px; }
.deal-status h2 { margin: 0; font-size: 18px; font-weight: 500; }
.deal-status p { margin: 0; }
.drow { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.drow:first-of-type { border-top: 0; padding-top: 0; }
.dr-top { display: flex; gap: 8px; flex-wrap: wrap; }
.dr-top > .in, .dr-top > .f { flex: 1 1 140px; min-width: 0; }
.dr-top > .in.sm { flex: 0 1 150px; }
.dr-top > .num-in { flex: 0 1 110px; }
.dr-tools { display: flex; gap: 4px; justify-content: flex-end; }
.dr-tools .btn { min-width: 34px; }
.deal-on { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.deal-on input { accent-color: #ED1C24; width: 18px; height: 18px; }
.deal-foot { padding-top: 8px; }
.deal-n { font-size: 12px; }
.deals { margin-bottom: 10px; }
@media (max-width: 980px) {
  .deal-wrap { grid-template-columns: minmax(0, 1fr); }
  .deal-tabs.seg { display: inline-flex; }
  .deal-prev { position: static; max-height: none; overflow: visible; display: none; }
  .deal-wrap.show-prev .deal-prev { display: block; }
  .deal-wrap.show-prev .deal-edit { display: none; }
}
.deal-prev.measure { display: block !important; visibility: hidden; position: absolute !important; inset-inline-start: -99999px; top: 0; }

/* ———— بريف التصوير وهوية العميل ———— */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.brief-sec { margin-top: 8px; }
.brief-sec > .row { margin-bottom: 12px; }
.ck-row { display: flex; gap: 8px; align-items: center; }
.ck-row > .in { flex: 1 1 0; min-width: 0; }
.ck-row > .t-in { flex: 0 0 130px; }
.ck-row > input[type="checkbox"] { width: 20px; height: 20px; accent-color: #ED1C24; flex: none; }
.ck-row.done > .in { text-decoration: line-through; color: var(--muted); }
.day-brief { background: var(--card); border-radius: var(--r-s); margin-bottom: 20px; }
.day-brief > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 16px 20px; cursor: pointer; }
.day-brief > summary::-webkit-details-marker { display: none; }
.day-brief > summary .faint { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-brief .chev { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; background: var(--btn); color: var(--on-btn); }
.day-brief .chev::before, .day-brief .chev::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 1px; background: currentColor; translate: -50% -50%; transition: rotate .3s var(--ease); }
.day-brief .chev::after { rotate: 90deg; }
.day-brief[open] .chev::after { rotate: 0deg; }
.db-body { display: grid; gap: 18px; padding: 0 20px 20px; }
.db-facts { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.db-fact { display: grid; gap: 2px; padding: 8px 14px; border-radius: 10px; background: var(--bg); min-width: 92px; }
.db-fact span { font-size: 12px; color: var(--muted); }
.db-fact b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.db-map { align-self: center; margin-inline-start: auto; }
.db-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.db-plan li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.db-plan li > :first-child { color: #ED1C24; font-variant-numeric: tabular-nums; }
.db-notes { margin: 0; font-size: 14px; color: var(--muted); white-space: pre-line; }
.db-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; }
.db-list h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.db-list h3 span { font-size: 12px; color: var(--muted); font-weight: 400; }
.db-list > div { display: grid; }
.bcheck { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 2px; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font-size: 14px; cursor: pointer; }
.bcheck .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--faint); flex: none; display: grid; place-items: center; color: var(--bg); }
.bcheck .box .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.bcheck.on > span:last-child { text-decoration: line-through; color: var(--muted); }
.bcheck.on .box { background: var(--s-done); border-color: var(--s-done); }
.color-in { width: 44px; height: 36px; padding: 0; border: 0; background: none; flex: none; cursor: pointer; }
.color-in::-webkit-color-swatch-wrapper { padding: 0; }
.color-in::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 8px; }
.ck-row > .hex-in { flex: 0 0 110px; }
.brand-sec > summary { list-style: none; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.brand-sec > summary::-webkit-details-marker { display: none; }
.swatch-mini { display: inline-flex; gap: 4px; }
.swatch-mini i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.swatch-b { display: grid; gap: 4px; text-align: start; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.swatch-b i { display: block; height: 64px; border-radius: 10px; border: 1px solid var(--line); }
.swatch-b b { font-size: 14px; font-weight: 500; }
.swatch-b span { font-size: 12px; color: var(--muted); }
.font-list { display: grid; gap: 6px; }

/* رفرنسات الفيديو: غلاف بزر تشغيل، والمشغّل بيشتغل جوّا البطاقة */
.ref .vthumb, .ref .thumb.vthumb:has(> img) { cursor: pointer; aspect-ratio: 9 / 13; display: block; background: #0d0d0d; }
.ref .vthumb img, .ref .vthumb .ref-first { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref .vthumb .play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; background: rgba(10, 10, 10, .6); display: grid; place-items: center; transition: background .25s, scale .25s var(--ease); }
.ref .vthumb .play svg { width: 24px; height: 24px; fill: #fff; margin-inline-start: 3px; }
.ref .vthumb:hover .play { background: #ED1C24; scale: 1.06; }
.ref .vthumb.playing { cursor: default; aspect-ratio: 9 / 13; }
.ref .ref-player { width: 100%; height: 100%; border: 0; display: block; background: #000; }

/* ———— بدل style="" (سياسة الأمان صارت تمنع الستايلات جوّا الصفحة) ———— */
.fan i:nth-child(1) { background: #0A0A0A; clip-path: polygon(10% 0,10% 12.58%,93.55% 54.34%,100% 13.56%,100% 0); }
.fan i:nth-child(2) { background: #300D0E; clip-path: polygon(10% 0,10% 29.26%,100% 63.57%,100% 0); }
.fan i:nth-child(3) { background: #561013; clip-path: polygon(25.12% 0,24.03% 54.93%,100% 72.52%,100% 0); }
.fan i:nth-child(4) { background: #7C1317; clip-path: polygon(37.3% 0,46.45% 83.8%,100% 85.75%,100% 0); }
.fan i:nth-child(5) { background: #A1161B; clip-path: polygon(44.6% 0,66.14% 100%,100% 100%,100% .83%,99.13% 0); }
.fan i:nth-child(6) { background: #C71920; clip-path: polygon(48.24% 0,78.65% 100%,100% 100%,100% 23.96%,98.31% 20.87%,79.58% 0); }
.fan i:nth-child(7) { background: #ED1C24; clip-path: polygon(49.03% 0,86.98% 100%,100% 100%,100% 45.75%,95.25% 39.6%,64.66% 0); }
.seg-c { background: var(--c); }
.meter i.meter-done { background: var(--s-done); }
.ar-9-16 { aspect-ratio: 9 / 16; } .ar-4-5 { aspect-ratio: 4 / 5; } .ar-1-1 { aspect-ratio: 1 / 1; } .ar-16-9 { aspect-ratio: 16 / 9; }
.m0 { margin: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb24 { margin-bottom: 24px; } .me-auto { margin-inline-end: auto; }
.gap8 { gap: 8px; } .flex1 { flex: 1; } .grow { flex: 1; min-width: 0; } .grow140 { flex: 1; min-width: 140px; } .grow160 { flex: 1; min-width: 160px; } .grow200 { flex: 1; min-width: 200px; }
.js-start { justify-self: start; } .danger-t { color: var(--danger); }
.w-auto { width: auto; } .w90 { width: 90px; } .w120 { width: 120px; } .w140 { width: 140px; } .mw120 { max-width: 120px; } .mw640 { max-width: 640px; }
.sep-top { border-top: 1px solid var(--line); padding-top: 16px; }


/* صفحة الفريق بالعقود (حسابي) */
.crew-row-edit { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
.crew-ph { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; cursor: pointer; color: #ED1C24; font-size: 22px; }
.crew-ph img { width: 100%; height: 100%; object-fit: cover; }
.crew-f { display: grid; gap: 8px; min-width: 0; }

/* ملاحظات العميل المتعددة */
.snotes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.snotes li { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.snotes li p, .cn-item p { margin: 0 0 4px; white-space: pre-line; }
.cn-item { padding: 8px 0; border-top: 1px solid var(--line); }
.cn-item:first-of-type { border-top: 0; }
.cn-done p { color: var(--muted); }
.cn-donebox { border-top: 1px solid var(--line); padding-top: 8px; }
.cn-donebox > summary, .snotes-done > summary { cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.client-note.all-done { background: var(--panel); }
.snotes-done { margin: 0 0 10px; }
.snotes li.done p { color: var(--muted); }

/* مسودة المونتاج (للفريق) */
.draft-frame { width: 100%; max-width: 340px; border-radius: 12px; overflow: hidden; background: #000; }
.draft-frame.ar-16-9 { max-width: none; }
.draft-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.erow .draft-link { margin: 6px 0 0; justify-self: start; }

/* خدمات الباقة: عالتلفون سطر واحد بعرض الشاشة، بلا عنوان وباسم مختصر للسوشال */
.svc-row .narrow { display: none; }
@media (max-width: 600px) {
  .svc-row { width: 100%; }
  .svc-row > span, .svc-row .wide { display: none; }
  .svc-row .narrow { display: inline; }
  .svc-row .chips { flex: 1; flex-wrap: nowrap; gap: 6px; }
  .svc-row .chip { flex: 1 1 auto; justify-content: center; padding: 8px 6px; white-space: nowrap; }
}

/* صفحة 404: شكل الشعار هو الصفر، ومروحة الهوية طالعة من تحت */
.nf { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center;
  min-height: min(760px, calc(100dvh - 170px)); padding: clamp(32px, 6vh, 64px) 24px 240px; border-radius: var(--r); background: var(--card); }
.nf h1 { display: grid; justify-items: center; gap: 8px; margin: 0; font-size: clamp(28px, 4vw, 40px); }
.nf-n { display: flex; align-items: center; gap: .05em; direction: ltr; font: 200 clamp(120px, 26vw, 210px)/.9 "Lexend Exa", var(--f-display); letter-spacing: 0; }
.nf-n svg { height: .76em; width: auto; fill: #ED1C24; transform-origin: 50% 0; animation: nf-hang .9s var(--ease) both; }
.nf .btn { margin-top: 12px; }
.nf .fan-wrap { inset: auto -6% -36px; height: 250px; z-index: -1; scale: 1 -1; rotate: 5deg; }
.nf .fan { top: 0; width: 100%; height: 100%; aspect-ratio: auto; translate: none; }
.nf p { text-wrap: balance; }
@keyframes nf-hang { from { transform: rotate(24deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nf-n svg { animation: none; } }
.pkg-del { margin-top: 48px; }

/* كاروسيل بصفحة العميل: سلايدات بالسحب، والتالي بيبيّن طرفه */
.car { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px; scrollbar-width: thin; border-radius: var(--r-s); }
.car figure { flex: 0 0 min(84%, 340px); margin: 0; scroll-snap-align: start; display: grid; gap: 8px; text-align: center; }
.car .frame { max-width: none; }
.car img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* عقد للمشاهدة بس */
.deal-wrap.locked { grid-template-columns: minmax(0, 900px); justify-content: center; }
.deal-wrap.locked .deal-prev { display: block; position: static; max-height: none; overflow: visible; }

/* رابط خطة يوم التصوير */
.plan-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 20px; margin: 8px 0 0; }
.plan-facts div { display: grid; gap: 2px; align-content: start; }
.plan-facts dt { font-size: 13px; color: var(--muted); }
.plan-facts dd { margin: 0; font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.plan-sec { margin-top: 28px; display: grid; gap: 12px; }
.plan-sec h2 { font-size: 20px; margin: 0; }
.plan-notes { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.plan-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.plan-list li::marker { color: #ED1C24; }
.plan-vid { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-vid > div { display: grid; gap: 8px; min-width: 0; }
.plan-vid .n { color: #ED1C24; font-variant-numeric: tabular-nums; line-height: 1.6; }
.plan-sec .swatch-b { cursor: default; }
.plan-sec .db-plan li > :first-child, .plan-sec .swatch-b .ltr-inline { justify-self: start; }
.brief-acts { display: flex; gap: 8px; }
@media (max-width: 600px) { .brief-acts { width: 100%; } .brief-acts > .btn { flex: 1; } }
/* اختيار أشخاص: بقياس الأزرار */
.people { display: grid; gap: 10px; }
.people .chip { min-height: 44px; min-width: 104px; padding: 0 20px; font-size: 14px; justify-content: center; }
.pkg-del { gap: 20px; }
