/* استوديو قبيلة آل عامر شمران — صفحةٌ واحدة (٢٣ نوفمبر ٢٠٢٦)
   هويةُ القبيلة: كحلي #12293A، تركواز #0DA9A6، ذهبي #C9B27C — وخطُّ الهوية HNW23. */
@font-face { font-family: 'HNW23'; src: url('/assets/fonts/hnw23-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HNW23'; src: url('/assets/fonts/hnw23-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --navy: #12293A; --navy-2: #15445A; --navy-3: #0A1822; --night: #0E2231;
  --teal: #0DA9A6; --teal-ink: #066361; --teal-bg: #E3F5F4; --cyan: #69CEE3;
  --gold: #C9B27C; --gold-2: #E6D3A3; --gold-ink: #7D6636; --gold-bg: #FBF7EC;
  --ink: #12293A; --muted: #4F6574; --line: #E1E7EB; --field: #D5DEE3; --bg: #EEF2F4; --paper: #FFFFFF;
  --bad: #9B2C2C; --bad-bg: #FBEAEA;
  --hd: 76px; --ease: cubic-bezier(.22,.9,.24,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'HNW23', system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: clip; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }

/* ═══ الشريط العلوي ═══ */
.hd { position: sticky; top: 0; z-index: 30; background: var(--navy); border-bottom: 3px solid var(--gold); }
.hd__in { height: var(--hd); padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1680px; margin: 0 auto; }
.hd__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.hd__brand img { height: 46px; width: auto; }
.hd__brand span { display: flex; flex-direction: column; gap: 2px; }
.hd__brand b { color: #fff; font-size: 18px; white-space: nowrap; }
.hd__brand small { color: var(--cyan); font-size: 12px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--navy-3); border-radius: 16px; padding: 5px; width: 300px; }
.tabs__a { height: 44px; border-radius: 12px; color: #C8D6DE; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .25s var(--ease), color .25s; }
.tabs__a:hover { color: #fff; }
.tabs__a.is-on { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.hd__end { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.hd__link { height: 42px; padding: 0 12px; border-radius: 12px; color: #fff; font-size: 14px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.hd__link:hover, .hd__link.is-on { background: rgba(255,255,255,.1); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-2); color: var(--gold-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; text-decoration: none; flex-shrink: 0; margin-inline-start: 6px; }
.avatar--soft { background: var(--teal-bg); color: var(--teal-ink); }

/* ═══ الصفحة الواحدة: الأدوات يميناً والمعاينة يساراً ═══ */
.studio { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 24px; padding: 24px; height: calc(100vh - var(--hd) - 3px); max-width: 1680px; margin: 0 auto; }
.tools { order: -1; display: flex; flex-direction: column; min-height: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 20px 50px -34px rgba(10,24,34,.35); }
.tools__in { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 16px; scrollbar-width: thin; }
.act { flex-shrink: 0; border-top: 1px solid var(--line); padding: 12px 20px 18px; background: #FAFBFC; display: flex; flex-direction: column; gap: 8px; }
.act__btns { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.progress { margin: 0; font-size: 13px; color: var(--teal-ink); text-align: center; }
.progress:empty { display: none; }

.stage { position: relative; min-height: 0; border-radius: 30px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 42%, #fff, #E2E8EC 78%); display: grid; place-items: center; padding: 76px 24px 24px; }
.stage__slot { position: absolute; inset: 64px 0 0 0; }
.pv-frame { position: absolute; z-index: 5; }
.pv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.pv__wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.stage__media { position: absolute; inset: 72px 24px 24px; display: flex; align-items: center; justify-content: center; }   /* لا grid: صفُّه يكبر مع القماش فلا يحدّه max-height */
.stage__cv { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -26px rgba(10,24,34,.6); background: var(--night); }
.stage__pick { position: absolute; z-index: 6; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 30px; border-radius: 22px; border: 1.5px dashed rgba(255,255,255,.55); background: rgba(10,24,34,.55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); max-width: 80%; }
.stage__pick b { font-size: 17px; } .stage__pick span { font-size: 12.5px; color: #C8D6DE; text-align: center; }
.stage__pick:hover { background: rgba(10,24,34,.7); }
.seg--float { position: absolute; z-index: 7; top: 16px; left: 50%; transform: translateX(-50%); width: min(380px, calc(100% - 32px)); box-shadow: 0 10px 24px -14px rgba(10,24,34,.35); }
.player { position: absolute; z-index: 7; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px;
  background: rgba(10,24,34,.78); backdrop-filter: blur(8px); border-radius: 16px; padding: 8px 12px; color: #fff; font-size: 12.5px; }
.player__b { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.player__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; }
.player__bar i { position: absolute; inset-block: 0; right: 0; width: 0; border-radius: 6px; background: var(--teal); }
.player__t { white-space: nowrap; color: #C8D6DE; }
.clipsrc { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; top: 0; left: 0; }

/* ═══ أقسام الأدوات ═══ */
.sec { border-bottom: 1px solid #F1F4F6; }
.sec:last-child { border-bottom: 0; }
.sec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; font-size: 16px; font-weight: 700; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary svg { color: var(--muted); transition: transform .25s var(--ease); }
.sec[open] > summary svg { transform: rotate(180deg); }
.sec__in { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--bg); border: 0; font-size: 13px; cursor: pointer; transition: background .2s; }
.chip:hover { background: #E2E8EC; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.tile__sw { width: 100%; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 17px; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 0 0 1px var(--line); }
.tile:hover .tile__sw { transform: translateY(-2px); }
.tile[aria-pressed="true"] .tile__sw { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.tile__t { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.4; }
.tile[aria-pressed="true"] .tile__t { color: var(--ink); font-weight: 700; }

.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.fld--wide { grid-column: 1 / -1; }
.fld small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.fld input, .fld textarea, .fld select { min-height: 46px; border: 1px solid var(--field); border-radius: 12px; padding: 0 12px; font-size: 14.5px; background: var(--paper); font-weight: 400; width: 100%; transition: border-color .2s, box-shadow .2s; }
.fld textarea { padding: 10px 12px; resize: vertical; line-height: 1.8; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,169,166,.14); }

.sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sw button { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; }
.sw i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.sw button[aria-pressed="true"] i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.sw--sm button { width: 32px; height: 32px; }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { min-height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 13.5px; cursor: pointer; padding: 0 10px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 700; }
.seg--sm { background: var(--bg); border: 0; } .seg--sm button { min-height: 34px; font-size: 12.5px; }

.srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 0 6px; }
.src { text-align: start; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: border-color .2s, background .2s; }
.src b { font-size: 15px; } .src span { font-size: 12px; color: var(--muted); }
.src[aria-pressed="true"] { border: 2px solid var(--teal); background: var(--teal-bg); padding: 13px; }
.file { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--teal); border-radius: 16px; padding: 10px 12px; }
.file .btn--soft { width: 100%; height: 46px; }
.file__th { width: 46px; height: 46px; border-radius: 10px; background: var(--navy-2); display: grid; place-items: center; flex-shrink: 0; }
.file b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { font-size: 12px; color: var(--muted); }
.note { margin-top: 10px; background: var(--gold-bg); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--gold-ink); }
.note b { color: var(--ink); font-size: 14px; }
.adv { display: flex; align-items: center; gap: 10px; min-height: 54px; color: var(--muted); font-size: 13.5px; text-decoration: none; border-bottom: 1px solid #F1F4F6; }
.adv:hover { color: var(--teal-ink); }
.tweet { border: 1px solid var(--field); border-radius: 12px; background: #FAFBFC; padding: 10px 12px; font-size: 14px; line-height: 1.8; resize: vertical; width: 100%; }
.tweet:focus { outline: none; border-color: var(--teal); background: #fff; }

/* ═══ عناصر عامة ═══ */
.btn { height: 52px; border-radius: 16px; border: 0; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; width: 100%; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--line { background: var(--paper); color: var(--navy); border: 1px solid var(--navy); font-size: 15px; }
.btn--line:hover { background: var(--bg); }
.btn--soft { background: var(--teal-bg); color: var(--teal-ink); height: 40px; font-size: 13.5px; width: auto; padding: 0 16px; border-radius: 12px; }
.btn--soft:hover { background: #d3efed; }
.btn--danger { background: none; color: var(--bad); width: auto; padding: 0 12px; height: 46px; font-size: 14.5px; }
.btn--danger:hover { background: var(--bad-bg); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.muted { color: var(--muted); font-size: 13px; }
.msg { margin: 0; font-size: 13px; color: var(--bad); min-height: 1.2em; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: var(--bg); color: var(--muted); }
.pill--ok { background: var(--teal-bg); color: var(--teal-ink); }
.pill--wait { background: var(--gold-bg); color: var(--gold-ink); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.dot--off { background: #B9C6CE; } .dot--warn { background: var(--gold); }
.agent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .agent.is-on { color: var(--teal-ink); }

/* ═══ السجل والإعدادات ═══ */
.page { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 16px; }
h1.h { margin: 0; font-size: 26px; }
.h2 { margin: 0; font-size: 16px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; align-items: center; gap: 12px; }
.item__th { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--navy-2); display: grid; place-items: center; }
.item__t { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__m { font-size: 12px; color: var(--muted); }
.item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.empty { text-align: center; padding: 30px 12px; color: var(--muted); font-size: 14px; background: var(--paper); border: 1px dashed var(--field); border-radius: 18px; }
.member { padding: 8px 0; border-top: 1px solid #F1F4F6; }
.addform { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 16px; padding: 14px; }

/* ═══ الدخول ═══ */
.login { min-height: 100vh; background: var(--navy); display: flex; flex-direction: column; }
.login__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 24px 28px; text-align: center; }
.login__hero img { height: 120px; width: auto; }
.login__hero h1 { margin: 8px 0 0; color: #fff; font-size: 26px; }
.login__hero p { margin: 0; color: var(--cyan); font-size: 14px; }
.login__hero i { width: 64px; height: 2px; background: var(--gold); margin-top: 6px; }
.login__form { background: var(--paper); border-radius: 28px 28px 0 0; padding: 28px 22px calc(34px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 480px; margin: 0 auto; }
.login__form .fld input { min-height: 52px; font-size: 16px; }
@media (min-width: 700px) { .login__form { border-radius: 28px; margin-bottom: 56px; } }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(10,24,34,.6); transition: all .3s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═══ الجوال: المعاينة أولاً، ثم الأدوات، وزرّا النشر مثبّتان أسفل الشاشة ═══ */
@media (max-width: 900px) {
  :root { --hd: 116px; }
  .hd__in { grid-template-columns: 1fr auto; grid-template-areas: 'brand end' 'tabs tabs'; height: auto; padding: 10px 14px 12px; row-gap: 10px; }
  .hd__brand { grid-area: brand; } .hd__brand img { height: 36px; } .hd__brand small { display: none; } .hd__brand b { font-size: 16px; }
  .hd__end { grid-area: end; } .hd__link span { display: none; } .hd__link { padding: 0 9px; }
  .tabs { grid-area: tabs; width: 100%; } .tabs__a { height: 40px; font-size: 15px; }
  .studio { display: block; height: auto; padding: 12px 12px 140px; }
  .stage { height: 56vh; min-height: 360px; border-radius: 22px; padding: 64px 12px 12px; }
  .stage__slot { inset: 56px 0 0 0; }
  .stage__media { inset: 62px 12px 12px; }
  .tools { margin-top: 12px; border-radius: 22px; overflow: visible; }
  .tools__in { overflow: visible; padding: 4px 16px 8px; }
  .act { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; border-radius: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -18px rgba(10,24,34,.4); }
  .toast { bottom: 100px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* شريطُ التشغيل لا يغطّي العنوان: المعاينةُ ترتفع فوقه */
.stage:has(.player:not([hidden])) .stage__media { bottom: 78px; }

/* ═══ «صورة» = المصمّم الكامل في إطار تحت شريط الاستوديو ═══ */
.designer { height: calc(100vh - var(--hd) - 3px); }
.designer iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ═══ المقاطع وطريقة المونتاج ═══ */
.clips { display: flex; flex-direction: column; gap: 6px; }
.clip { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 4px 4px 6px; background: var(--paper); }
.clip.is-on { border-color: var(--teal); background: var(--teal-bg); }
.clip__sel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px; cursor: pointer; text-align: start; }
.clip__sel b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip__sel small { font-size: 12px; color: var(--muted); }
.clip__n { width: 30px; height: 30px; border-radius: 9px; background: var(--navy-2); color: var(--gold-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.iconbtn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex-shrink: 0; }
.iconbtn:hover:not([disabled]) { background: var(--bg); color: var(--ink); }
.iconbtn[disabled] { opacity: .3; cursor: default; }
.iconbtn--bad:hover:not([disabled]) { background: var(--bad-bg); color: var(--bad); }
.modes { display: flex; flex-direction: column; gap: 8px; }
.mode { text-align: start; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.mode b { font-size: 14.5px; display: flex; align-items: center; gap: 8px; } .mode > span { font-size: 12.5px; color: var(--muted); }
.mode[aria-pressed="true"] { border: 2px solid var(--teal); background: var(--teal-bg); padding: 11px 13px; }
.mode[disabled] { cursor: default; opacity: .7; }
.soon { font-size: 11px; font-weight: 700; background: var(--gold-bg); color: var(--gold-ink); padding: 2px 8px; border-radius: 99px; }

/* ═══ الإعدادات: ثلاثة تبويبات ═══ */
.settabs { max-width: 520px; }
.setbody { display: flex; flex-direction: column; gap: 14px; }
.soc { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.soc__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.soc__h b { font-size: 15px; }
.soc__ic { width: 38px; height: 38px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.tg { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tg input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: #CFD8DE; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.tg input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.tg input:checked { background: var(--teal); } .tg input:checked::after { inset-inline-start: 21px; }
.tg input:disabled { opacity: .5; cursor: default; }
.fld input:disabled { background: var(--bg); color: var(--muted); }

/* ═══ الحذف (٢٣ نوفمبر: «ما اضفت حذف الصورة او الفيديو لما اضيفه») ═══ */
.stage__del { position: absolute; z-index: 8; top: 16px; left: 16px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px; background: rgba(155,44,44,.92); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.stage__del:hover { background: var(--bad); }
.linkbtn--bad { color: var(--bad); }
.delbtn { height: 34px; padding: 0 10px; border-radius: 10px; border: 0; background: var(--bad-bg); color: var(--bad); font-size: 12.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-inline-start: 2px; }
.delbtn:hover { background: #f5d5d5; }
@media (max-width: 900px) { .stage__del { top: 64px; left: 12px; height: 36px; } }

/* ═══ المونتير الذكي ═══ */
.stage__vid { max-width: 100%; max-height: 100%; border-radius: 22px; background: #000; box-shadow: 0 30px 60px -26px rgba(10,24,34,.6); }
.smart { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--bg); }
.steps2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: st; }
.steps2 li { counter-increment: st; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.steps2 li::before { content: counter(st, arabic-indic); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #D5DEE3; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.steps2 li.is-done { color: var(--teal-ink); } .steps2 li.is-done::before { content: '✓'; background: var(--teal); }
.steps2 li.is-on { color: var(--ink); font-weight: 700; } .steps2 li.is-on::before { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ═══ إضافةُ ملفاتٍ أو مجلد ═══ */
.addrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.addrow .btn--soft { width: 100%; height: 46px; padding: 0 10px; }
.clip__n--img { background: var(--gold-bg); color: var(--gold-ink); }
