/* 6NEMASTER PRO — production workspace (audit "Création projet 2", 21 Oct 2026).
   Light work area, dark green side menu, white panels, green on actions and
   selections, Arial for the interface and Courier for screenplay text. */
:root { --st-bg: #F3F5F4; --st-line: #D7E1DC; --st-text: #1B2925; --st-dim: #63736D; --st-green: #18C78C; --st-green-d: #087D5C; --st-green-bg: #E5F3EC;
  --st-warn-bg: #FFF6DF; --st-warn-line: #E8D4A4; --st-warn: #705218; --st-blue-bg: #E3EAF6; --st-red: #B3261E; --st-black: #1B2925; }
body, #appShell, #authScreen, #appShell button, #appShell input, #appShell select, #appShell textarea, #authScreen button, #authScreen input, #authScreen select, #authScreen textarea,
#appShell .mono, #appShell .eyebrow, #appShell .navGroupLabel, #appShell .pdEyebrow, #appShell .pdTabs button, #appShell .statTile .l, #appShell .form label span,
#authScreen .form label span, #authScreen .tabs button, #appShell .planBadge, #appShell .moduleStatus, #appShell .serifH, #authScreen .serifH, #appShell h1, #appShell h2, #appShell h3, #authScreen h1 {
  font-family: Arial, Helvetica, sans-serif !important; }
html[lang="ar"] body *:not(#edText):not(#edText *):not(.stScript):not(.stScript *) { font-family: Arial, "Noto Sans Arabic", Helvetica, sans-serif !important; }
#appShell .serifH, #authScreen .serifH { font-weight: 400; }
#appShell.lpMode .pro-main, #appShell.prodMode .pro-main { background: var(--st-bg); }
#appShell.stNoHead #techHead { display: none !important; }

/* ---------- side menu ---------- */
.stNav { display: none; }
#appShell.stOn .prodNav { display: none !important; }
#appShell.stOn .stNav { display: block; }
#appShell.stOn .sidebar-foot #btnLogout, #appShell.stOn .sidebar-foot .tTrash, #appShell.stOn .sidebar-foot .prodHelp { display: none !important; }
.stNav .stCreate { display: block; width: 100%; background: #18C78C; border: 1px solid #18C78C; color: #08271D; border-radius: 8px; font-weight: 700; padding: 12px 14px; font-size: .9rem; margin-bottom: 26px; }
.stNav .stCreate:hover { background: #2DD39A; }
.stNav .stGroup { color: #A8BDB2; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stNav .stItem, .stFoot .stItem { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #D7E1DC;
  padding: 10px 12px; margin-bottom: 3px; font-size: .9rem; text-align: start; cursor: pointer; text-decoration: none; }
.stNav .stItem:hover, .stFoot .stItem:hover { background: #1F3830; color: #fff; }
.stNav .stItem.active, .stFoot .stItem.active { background: #244739; color: #fff; font-weight: 700; }
.stNav .stItem.stSub { padding-inline-start: 26px; font-size: .84rem; }
.stNav .stItem.dim { opacity: .45; pointer-events: none; }
.stNav .stItem .lk { font-size: .62rem; color: #8FA89B; }
.stFoot { display: none; }
#appShell.stOn .stFoot { display: block; margin-top: 18px; }

/* ---------- page frame ---------- */
#studioView { color: var(--st-text); }
.stCrumb { font-size: .78rem; color: var(--st-dim); margin: 0 0 18px; }
.stCrumb button { background: none; border: 0; padding: 0; color: var(--st-dim); font-size: inherit; cursor: pointer; }
.stCrumb button:hover { color: var(--st-green-d); text-decoration: underline; }
.stHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.stHead h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 400 !important; margin: 0; letter-spacing: -0.01em; }
.stHead .sub { color: var(--st-dim); margin: 8px 0 0; font-size: .92rem; }
.stHead .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stTabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.stTabs button { background: #fff; border: 1px solid var(--st-line); border-radius: 8px; padding: 9px 16px; font-size: .84rem; font-weight: 700; color: var(--st-text); cursor: pointer; }
.stTabs button.on { background: var(--st-green); border-color: var(--st-green); color: #08271D; }
.stTabs button:not(.on):hover { border-color: var(--st-green-d); color: var(--st-green-d); }
.stBtn { background: var(--st-green); color: #08271D; border: 1px solid var(--st-green); border-radius: 8px; font-weight: 700; font-size: .86rem; padding: 11px 22px; cursor: pointer; white-space: nowrap; }
.stBtn:hover { filter: brightness(1.05); }
.stBtn:disabled, .stBtn2:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.stBtn2 { background: #fff; color: var(--st-text); border: 1px solid var(--st-line); border-radius: 8px; font-weight: 700; font-size: .86rem; padding: 10px 20px; cursor: pointer; white-space: nowrap; }
.stBtn2:hover:not(:disabled) { border-color: var(--st-green-d); color: var(--st-green-d); }
.stBtn.sm, .stBtn2.sm { padding: 7px 12px; font-size: .78rem; }
.stLink { background: none; border: 0; padding: 0; color: var(--st-green-d); font-weight: 700; font-size: .82rem; cursor: pointer; }
.stLink:hover { text-decoration: underline; }
.stDanger { color: var(--st-red) !important; }
.stCard { background: #fff; border: 1px solid var(--st-line); border-radius: 10px; padding: 20px 22px; min-width: 0; }
.stCard > h2, .stCard > h3 { font-size: 1.05rem; font-weight: 700 !important; margin: 0 0 14px; }
.stCard .cardSub { color: var(--st-dim); font-size: .84rem; margin: -8px 0 14px; }
.stGrid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stGrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stGrid3w { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stGridL { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.stFootRow { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.stFootRow .note { color: var(--st-dim); font-size: .76rem; }
.stFootRow .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.stNote { color: var(--st-dim); font-size: .78rem; }
.stEmpty { color: var(--st-dim); font-size: .9rem; padding: 18px 0; }
.stBanner { border: 1px solid var(--st-warn-line); background: var(--st-warn-bg); color: var(--st-warn); border-radius: 8px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-weight: 700; font-size: .88rem; }
.stBanner.ok { border-color: #9CCDB5; background: var(--st-green-bg); color: var(--st-green-d); }
.stBanner.err { border-color: #E6B4AF; background: #FCEDEB; color: var(--st-red); }
.stBanner .stLink { color: inherit; }
.stBadge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 5px; padding: 3px 8px; background: var(--st-green-bg); color: var(--st-green-d); white-space: nowrap; }
.stBadge.warn { background: var(--st-warn-bg); color: var(--st-warn); }
.stBadge.grey { background: #ECEFEE; color: var(--st-dim); }
.stBadge.red { background: #FCEDEB; color: var(--st-red); }
.stBadge.dark { background: var(--st-black); color: #fff; }

/* form fields */
.stF { display: block; margin-bottom: 14px; }
.stF > span { display: block; font-size: .78rem; font-weight: 700; color: var(--st-text); margin-bottom: 6px; }
.stF > span em { color: var(--st-red); font-style: normal; }
.stF input, .stF select, .stF textarea, .stIn { width: 100%; box-sizing: border-box; background: #F4F7F5; border: 1px solid var(--st-line); border-radius: 8px; padding: 10px 12px; font-size: .9rem; color: var(--st-text); }
.stF input:focus, .stF select:focus, .stF textarea:focus, .stIn:focus { outline: 2px solid #9CCDB5; border-color: var(--st-green-d); background: #fff; }
.stF input:disabled, .stF select:disabled, .stF textarea:disabled { opacity: .6; }
.stF .err, .stErr { color: var(--st-red); font-size: .78rem; margin-top: 5px; min-height: 0; }
.stF .hint { color: var(--st-dim); font-size: .74rem; margin-top: 5px; }
.stFrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.stFrow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.stFrow4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
.stCheck { display: flex; gap: 8px; align-items: center; font-size: .86rem; margin: 6px 0; }

/* rows / tables */
.stRow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #E6ECE9; }
.stRow:last-child { border-bottom: 0; }
.stRow b { display: block; font-size: .9rem; }
.stRow .s { display: block; color: var(--st-dim); font-size: .78rem; margin-top: 3px; }
.stTable { width: 100%; border-collapse: collapse; font-size: .84rem; }
.stTable th { text-align: start; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--st-dim); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--st-line); }
.stTable td { padding: 10px 8px; border-bottom: 1px solid #E6ECE9; vertical-align: top; }
.stTable tr.click { cursor: pointer; }
.stTable tr.click:hover td { background: #F6FAF8; }
.stScroll { overflow-x: auto; }

/* dashboard */
.stKpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.stKpi { background: #fff; border: 1px solid var(--st-line); border-radius: 10px; padding: 18px 20px; cursor: pointer; text-align: start; }
.stKpi:hover { border-color: var(--st-green-d); }
.stKpi .l { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-dim); }
.stKpi .v { font-size: 1.9rem; margin: 14px 0 8px; color: var(--st-text); min-height: 2.2rem; }
.stKpi .v.small { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.stKpi .c { font-size: .8rem; color: var(--st-green-d); }
.stSecHead { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.stSecHead h2 { font-size: 1.1rem; font-weight: 700 !important; margin: 0; }
.stPort { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.stProj { background: #fff; border: 1px solid var(--st-line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stProj h3 { font-size: 1.05rem; font-weight: 700 !important; margin: 0; text-transform: uppercase; }
.stProj .m { color: var(--st-dim); font-size: .82rem; }
.stProj .stage { color: var(--st-green-d); font-size: .72rem; font-weight: 700; text-transform: uppercase; margin-top: 8px; }
.stProj .ft { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.stToday .ev { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E6ECE9; font-size: .86rem; }
.stToday .ev:last-child { border-bottom: 0; }
.stToday .ev .tm { color: var(--st-green-d); font-weight: 700; }
.stToday .ev .tm.rev { color: var(--st-dim); font-weight: 400; font-size: .78rem; }
.stDashCols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stDemo { color: var(--st-dim); font-size: .72rem; margin-top: 12px; }

/* option cards (create project, import) */
.stOpt { display: block; width: 100%; text-align: start; background: #fff; border: 1px solid var(--st-line); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.stOpt b { font-size: .95rem; }
.stOpt b::before { content: "○  "; color: var(--st-dim); }
.stOpt.on { background: var(--st-green-bg); border-color: var(--st-green-d); }
.stOpt.on b { color: var(--st-green-d); }
.stOpt.on b::before { content: "●  "; color: var(--st-green-d); }
.stOpt span { display: block; font-size: .8rem; color: var(--st-dim); margin-top: 5px; padding-inline-start: 22px; }
.stDrop { border: 2px dashed #B9CCC2; border-radius: 10px; padding: 34px 18px; text-align: center; background: #FAFCFB; }
.stDrop.over { border-color: var(--st-green-d); background: var(--st-green-bg); }
.stDrop b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.stFileRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #F4F7F5; border: 1px solid var(--st-line); border-radius: 8px; padding: 10px 14px; margin-top: 12px; font-size: .86rem; }
.stSteps .stp { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #E6ECE9; }
.stSteps .stp:last-child { border-bottom: 0; }
.stSteps .n { font-weight: 700; color: var(--st-green-d); }
.stProgress { height: 6px; background: #E6ECE9; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.stProgress i { display: block; height: 100%; background: var(--st-green); width: 0; transition: width .2s; }

/* screenplay text */
.stScript, .stScript * { font-family: "Courier Prime", "Courier New", Courier, monospace !important; }
.stScript { background: #FFFEFA; border: 1px solid var(--st-line); border-radius: 8px; padding: 26px 30px; font-size: .9rem; line-height: 1.45; color: #111; min-height: 300px; }
.stScript .el { white-space: pre-wrap; margin: 0 0 12px; }
.stScript .el-scene { font-weight: 700; text-transform: uppercase; }
.stScript .el-character { margin-inline-start: 38%; margin-bottom: 0; text-transform: uppercase; }
.stScript .el-parenthetical { margin-inline-start: 30%; margin-bottom: 0; }
.stScript .el-dialogue { margin-inline-start: 18%; margin-inline-end: 18%; }
.stScript .el-transition { text-align: end; text-transform: uppercase; }
.stScript .el-shot { text-transform: uppercase; }
.stScript .issue { background: #FFF1C9; outline: 1px solid #E8C35A; }
.stScript mark.tg-ok { background: #CDEFE0; color: inherit; border-bottom: 2px solid var(--st-green-d); cursor: pointer; }
.stScript mark.tg-pend { background: #FFE9A8; color: inherit; border-bottom: 2px dashed #B98A10; cursor: pointer; }
.stScript mark.tg-sel { background: #FFE38A; color: inherit; outline: 1px solid #B98A10; }
.stSceneList button { display: grid; grid-template-columns: 30px 1fr; gap: 8px; width: 100%; text-align: start; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 8px 8px; font-size: .78rem; cursor: pointer; color: var(--st-text); margin-bottom: 4px; }
.stSceneList button:hover { background: #F2F6F4; }
.stSceneList button.on { background: var(--st-green-bg); border-color: #9CCDB5; font-weight: 700; }
.stSceneList button .w { color: var(--st-warn); font-weight: 700; }
.stSceneList .n { color: var(--st-green-d); font-weight: 700; }

/* breakdown sheet */
.stSheetHead { background: #E9EFEC; border: 1px solid var(--st-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.stSheetHead .g { display: grid; grid-template-columns: 70px 90px minmax(0, 2fr) 100px 110px; gap: 10px; }
.stSheetHead .g2 { display: grid; grid-template-columns: 90px repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.stSheetHead label { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--st-dim); }
.stSheetHead input, .stSheetHead select { width: 100%; box-sizing: border-box; margin-top: 4px; background: #fff; border: 1px solid var(--st-line); border-radius: 6px; padding: 7px 8px; font-size: .82rem; }
.stSheetHead .syn { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.stCats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.stCat { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EEF2F0; font-size: .8rem; align-items: start; }
.stCat .k { font-weight: 700; color: var(--st-text); }
.stCat .items { display: flex; flex-wrap: wrap; gap: 4px; }
.stEl { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 2px 7px; font-size: .78rem; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--st-text); }
.stEl.ok { color: var(--st-green-d); font-weight: 700; }
.stEl.pend { background: var(--st-warn-bg); border: 1px dashed #D9B45B; color: var(--st-warn); }
.stEl.sel { outline: 2px solid var(--st-green-d); }
.stEl small { font-weight: 400; opacity: .85; }
/* Breakdown category colours (corrections pptx 24 Oct) */
.stCatDot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cc); margin-inline-end: 6px; vertical-align: 0; flex: none; }
.stEl.cc.ok { background: var(--cb); color: var(--cc); border: 1px solid var(--cc); }
.stEl.cc.pend { background: var(--cb); color: var(--cc); border: 1px dashed var(--cc); opacity: .92; }
.stElName { color: var(--cc); }
.stScript mark.cc.tg-ok { background: var(--cb); border-bottom: 2px solid var(--cc); }
.stScript mark.cc.tg-pend { background: var(--cb); border-bottom: 2px dashed var(--cc); }
.stScript mark.cc sup { color: var(--cc); }
.stCatLegend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: .72rem; color: var(--st-dim); }
.stCatLegend span { display: inline-flex; align-items: center; }
.stCatCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stCatCard { background: #fff; border: 1px solid var(--st-line); border-inline-start: 3px solid #9CB5A8; border-radius: 6px; padding: 8px 10px; font-size: .78rem; min-height: 42px; }
.stCatCard b { display: block; font-size: .74rem; margin-bottom: 3px; }
.stCatCard .none { color: #9AA8A2; }
.stReview { border-inline-start: 3px solid #D9B45B; }
.stQuote { background: #FAFCFB; border: 1px solid var(--st-line); border-radius: 6px; padding: 10px 12px; font-family: "Courier New", monospace !important; font-size: .82rem; margin: 6px 0 10px; }

/* stripboard */
.stStrip { display: grid; grid-template-columns: 22px 34px 1fr; gap: 8px; align-items: center; border: 1px solid var(--st-line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fff; cursor: grab; font-size: .78rem; user-select: none; }
.stStrip.int-day { background: #FFFFFF; }
.stStrip.ext-day { background: #FBF4D8; }
.stStrip.int-night { background: #E3EAF6; }
.stStrip.ext-night { background: #DCE4F2; }
.stStrip.sel { outline: 2px solid var(--st-green-d); }
.stStrip.drag { opacity: .4; }
.stStrip .h { font-size: .7rem; color: var(--st-dim); }
.stStrip .no { font-weight: 700; }
.stStrip .t { font-weight: 700; display: block; }
.stStrip .m { display: flex; justify-content: space-between; gap: 8px; color: var(--st-dim); margin-top: 3px; font-size: .72rem; }
.stStrip .grip { color: #9AA8A2; cursor: grab; text-align: center; }
.stStrip.event { background: #F4F7F5; border-style: dashed; grid-template-columns: 22px 1fr auto; }
.stDayBanner { background: var(--st-black); color: #fff; border-radius: 6px; padding: 9px 12px; margin: 10px 0 8px; font-size: .78rem; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stDayBanner small { display: block; font-weight: 400; font-size: .66rem; color: #CFD8D4; margin-top: 2px; }
.stDayBanner .stLink { color: #fff; font-size: .7rem; }
.stDrop2 { min-height: 46px; border-radius: 8px; padding: 2px; }
.stDrop2.over { background: var(--st-green-bg); outline: 2px dashed var(--st-green-d); }
.stDayTotal { display: flex; justify-content: space-between; font-size: .76rem; color: var(--st-dim); padding: 6px 4px 10px; border-bottom: 1px solid var(--st-line); margin-bottom: 6px; }
.stPoolHead { background: var(--st-black); color: #fff; border-radius: 6px 6px 0 0; padding: 9px 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; }
/* Stripboard: the Unscheduled column stays visible while the days scroll (corrections pptx 24 Oct) */
.stStripGrid { align-items: start; }
/* Audit 25 Oct: also sticky on narrow windows (it used to stop at 860 px, where
   the panel scrolled away): there it sits above the days with half the height. */
.stPoolCol { position: -webkit-sticky; position: sticky; top: 82px; z-index: 3; max-height: calc(100vh - 210px); min-height: 260px; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; box-shadow: 0 6px 16px rgba(15, 30, 25, .08); }
.stPoolCol .stPoolHead { position: -webkit-sticky; position: sticky; top: 0; z-index: 2; }
.stTapHint { margin: 0 0 8px; }
@media (max-width: 860px) { .stPoolCol { top: 72px; max-height: 42vh; margin-bottom: 12px; } }

/* side menu folded behind a Menu button on small screens (audit 25 Oct, P2) */
.stMenuBtn { display: none; align-items: center; gap: 6px; background: #1B2925; color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; font-size: .86rem; font-weight: 700; cursor: pointer; flex: none; }
@media (max-width: 860px) {
  #appShell.stOn .stMenuBtn { display: inline-flex; }
  #appShell.stOn .pro-sidebar { display: none !important; }
  #appShell.stOn.stMenuOpen .pro-sidebar { display: block !important; position: fixed !important; top: 66px !important; left: 0; right: 0; bottom: 0; width: auto !important; height: auto !important; overflow-y: auto; z-index: 60; padding: 16px !important; }
  #appShell.stOn.stMenuOpen .pro-sidebar .sidebar-foot, #appShell.stOn.stMenuOpen .stFoot { display: block !important; }
}
.stLegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .7rem; color: var(--st-dim); margin-top: 10px; }
.stLegend i { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--st-line); border-radius: 3px; vertical-align: -2px; margin-inline-end: 4px; }

/* calendar */
.stCal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--st-line); border-radius: 10px; overflow: hidden; background: #fff; }
.stCal .d { min-height: 128px; border-inline-end: 1px solid #E6ECE9; border-bottom: 1px solid #E6ECE9; padding: 10px; font-size: .74rem; position: relative; }
.stCal .d:nth-child(7n) { border-inline-end: 0; }
.stCal .d .dn { font-size: .66rem; color: var(--st-dim); text-transform: uppercase; }
.stCal .d .dd { font-size: 1.15rem; margin: 4px 0 8px; }
.stCal .d.out { background: #FAFBFA; color: #A9B5B0; }
.stCal .d.today .dd { color: var(--st-green-d); font-weight: 700; }
.stCal .day { display: block; width: 100%; text-align: start; background: var(--st-green-bg); border: 1px solid #9CCDB5; border-radius: 6px; padding: 6px 7px; font-size: .7rem; margin-bottom: 4px; cursor: pointer; color: var(--st-text); }
.stCal .day.sel { outline: 2px solid var(--st-green-d); }
.stCal .none { color: #9AA8A2; font-size: .68rem; }
.stCal .add { position: absolute; bottom: 6px; inset-inline-end: 6px; font-size: .68rem; opacity: 0; }
.stCal .d:hover .add { opacity: 1; }
.stCal.month .d { min-height: 92px; }

/* DOOD grid */
.stDood { border-collapse: collapse; font-size: .78rem; min-width: 100%; }
.stDood th, .stDood td { border-bottom: 1px solid #E6ECE9; padding: 9px 8px; text-align: center; }
.stDood th { font-size: .64rem; color: var(--st-dim); text-transform: uppercase; }
.stDood td.l, .stDood th.l { text-align: start; }
.stDood td .cell { display: inline-block; min-width: 34px; padding: 5px 4px; border-radius: 5px; background: var(--st-green-bg); color: var(--st-green-d); font-weight: 700; cursor: pointer; border: 0; }
.stDood td .cell.prov { background: #EAF6F0; }
.stDood thead tr.ban th { background: var(--st-black); color: #fff; text-align: start; font-size: .72rem; }

/* preview of a document (PDF export) */
.stPreviewWrap { background: #DDE5E1; border-radius: 10px; padding: 18px; overflow: auto; max-height: 72vh; }
.stPreviewWrap iframe { width: 100%; height: 66vh; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }

/* modal */
.stModal { position: fixed; inset: 0; background: rgba(15, 30, 25, .45); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.stModal .box { background: #fff; border-radius: 12px; width: min(560px, 100%); padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.stModal .box.wide { width: min(900px, 100%); }
.stModal h2 { font-size: 1.15rem; font-weight: 700 !important; margin: 0 0 12px; }

/* misc */
.stKV { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 8px 12px; font-size: .84rem; }
.stKV dt { color: var(--st-dim); }
.stKV dd { margin: 0; }
.stMiss { color: var(--st-warn); }
.stChecklist .it { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E6ECE9; }
.stChecklist .it:last-child { border-bottom: 0; }
.stChecklist .it b { display: block; font-size: .9rem; }
.stChecklist .it span { font-size: .78rem; color: var(--st-dim); }
.stChecklist .it.done b::before { content: "✓ "; color: var(--st-green-d); }
.stWf .s { padding: 9px 0; color: var(--st-dim); font-size: .88rem; }
.stWf .s.on { color: var(--st-green-d); font-weight: 700; }
.stWf .s.cur { color: var(--st-text); font-weight: 700; }
.stLocked { text-align: center; padding: 40px 20px; }
.stLocked p { color: var(--st-dim); }
.stHist .h { padding: 9px 0; border-bottom: 1px solid #E6ECE9; font-size: .8rem; }
.stHist .h small { color: var(--st-dim); display: block; }
.stPill { display: inline-block; background: #ECEFEE; border-radius: 12px; padding: 3px 10px; font-size: .74rem; margin: 2px; }

/* editor (screens 05 / 08) */
#appShell.stOn #editorView .stEdTop { display: flex; }
.stEdTop { display: none; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.stEdFoot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--st-dim); font-size: .76rem; margin-top: 10px; }
.stEdFoot .pg { display: flex; gap: 10px; align-items: center; }
.stEdFoot .pg button { background: none; border: 0; cursor: pointer; color: var(--st-dim); font-size: .9rem; }
.edSrcNote { font-size: .74rem; color: var(--st-dim); padding: 8px 0 0; border-top: 1px solid #E6ECE9; margin-top: 16px; }
#edText.isEmpty::before { color: #9AA8A2; }
.stEdHelp { color: #9AA8A2; font-family: "Courier New", monospace !important; font-size: .88rem; line-height: 1.6; pointer-events: none; }
.cpHelp { background: var(--st-warn-bg); border: 1px solid var(--st-warn-line); color: var(--st-warn); border-radius: 6px; padding: 8px 10px; font-size: .78rem; margin: 8px 0; }

@media (max-width: 1100px) {
  .stGridL, .stGrid3w { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .stGridL > :last-child, .stGrid3w > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .stGrid2, .stGrid3, .stGridL, .stGrid3w, .stDashCols, .stKpis, .stFrow, .stFrow3, .stFrow4, .stCats, .stCatCards { grid-template-columns: minmax(0, 1fr); }
  .stSheetHead .g, .stSheetHead .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stCal { grid-template-columns: minmax(0, 1fr); }
  .stCal .d { min-height: 0; }
  .stHead .acts { width: 100%; }
}

/* ---------- legacy navigation replaced by the studio menu ---------- */
#appShell.stOn .pro-sidebar > nav, #appShell.stOn .flowNav, #appShell.stOn #btnNewProject, #appShell.stOn #techTabs, #appShell.stOn #techHead .pdEyebrow { display: none !important; }
#appShell.stOn #edPageNo { display: none !important; }
#appShell.stOn .edBar { position: sticky; top: 0; z-index: 6; }
#appShell.stOn #edText > .el-general { font-family: "Courier Prime", "Courier New", Courier, monospace; }
#appShell.stOn .stEdTop .stBadge { align-self: center; margin-inline-start: auto; }
.stEdFoot button:disabled { opacity: .35; cursor: default; }

/* ---------- sign-in / sign-up (01A, 01B) ---------- */
#loginForm.emailClosed > label, #loginForm.emailClosed .loginForgot, #loginForm.emailClosed #loginErr, #loginForm.emailClosed #loginSubmit,
#loginForm.emailClosed .socialOrText, #indivSignupForm.emailClosed .socialOrText,
#indivSignupForm.emailClosed > .roundCard, #indivSignupForm.emailClosed .signupSide > .roundCard, #indivSignupForm.emailClosed #indivErr, #indivSignupForm.emailClosed #indivSubmit { display: none !important; }
#indivSignupForm.emailClosed .signupSide { grid-column: 1 / -1; }
.fieldErr { color: #B3261E; font-size: .76rem; margin: -6px 0 8px; }
#authScreen [aria-invalid="true"] { border-color: #B3261E !important; }
#authScreen button[type="submit"]:disabled { opacity: .7; cursor: wait; }
.stCheck input[type="checkbox"], .stCheck input[type="radio"] { width: auto !important; flex: 0 0 auto; margin: 0; }
.stCheck { justify-content: flex-start; }
@media (max-width: 860px) {
  #studioView [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  #studioView .stGridL > *, #studioView .stGrid3w > * { grid-column: auto !important; }
  #appShell.stOn .pro-topbar .orgName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  #studioView .stGridL[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important; }
  #studioView .stGridL[style*="grid-template-columns"] > :last-child { grid-column: 1 / -1; }
}

/* Cast & Crew: list buttons, photo, documents (corrections 24 Oct) */
.cwBar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.cwBar .cwNote { font-size: .8rem; color: var(--st-dim); }
.cwThumb { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #E5F3EC center / cover no-repeat; color: #087D5C; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-inline-end: 10px; font-size: .9rem; }
#castingMembersList .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--st-line); font-size: .86rem; flex-wrap: wrap; }
#castingMembersList .row > span:nth-child(2) { flex: 1 1 220px; }
#castingMembersList .row .d { color: var(--st-dim); }
.cwDlg { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: start; }
.cwPhotoBox { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 200px; }
.cwPhHint { font-size: .78rem; }
.cwPhPend { display: flex; flex-direction: column; gap: 6px; }
.cwPhPend[hidden] { display: none; }
.cwPhPend .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cwPhoto { width: 160px; height: 200px; border-radius: 10px; background: #EEF2F0 center / cover no-repeat; border: 1px solid var(--st-line); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #A7B5AF; font-weight: 700; }
.cwDocs h3 { margin: 0 0 8px; }
.cwDocList { list-style: none; margin: 0 0 12px; padding: 0; }
.cwDocList li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--st-line); align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .cwDlg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  #appShell.stOn .pro-topbar { gap: 8px !important; padding: 0 10px !important; }
  #appShell.stOn .flowBrand .brandLogo { height: 20px; }
  #appShell.stOn .flowBrand > span, #appShell.stOn .stMenuBtn .t { display: none; }
}
/* Breakdown: bulk review, duplicates (audit 25 Oct) */
.stBulkBar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin: 4px 0 12px; background: #F4F7F5; border: 1px solid var(--st-line); border-radius: 8px; font-size: .84rem; }
.stBulkBar #elSelN { font-weight: 700; margin-inline-end: 6px; }
.stBulkBar button:disabled, .stBulkBar select:disabled { opacity: .45; cursor: default; }
.stBulkMove { display: inline-flex; gap: 6px; align-items: center; }
.stBulkMove select { padding: 5px 8px; border: 1px solid var(--st-line); border-radius: 6px; }
.stDupCard { margin-bottom: 14px; border-color: var(--st-warn-line); background: var(--st-warn-bg); }
.stDupRow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stDupRow .acts { margin-inline-start: auto; display: inline-flex; gap: 6px; align-items: center; }
.stDupName { padding: 5px 8px; border: 1px solid var(--st-line); border-radius: 6px; font-size: .84rem; width: 170px; }
.stBulkScene { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--st-line); }
.stInfo { color: var(--st-dim); cursor: help; font-size: .85em; }
.modErr p { margin: 0 0 6px; } .modErr .d { color: var(--st-dim); font-size: .8rem; }

/* ---------- department dashboards (deck "PRO departments dashboards", 25 Oct) ----------
   Shared shell; --da (accent), --dai (accent readable on white) and --dab
   (light tint) only colour the active menu item, KPIs, badges, chart and
   actions. Never the page background. */
.stNav .stItem.active { box-shadow: inset 3px 0 0 var(--da, #18C78C); }
html[dir="rtl"] .stNav .stItem.active { box-shadow: inset -3px 0 0 var(--da, #18C78C); }
.dpGroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dpGroup { border-inline-start: 5px solid var(--da); }
.dpGroup > h2 { color: var(--dai); font-size: .8rem !important; letter-spacing: .06em; text-transform: uppercase; }
.dpLink { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 6px; padding: 8px 6px; font-size: .88rem; color: var(--st-text); text-align: start; cursor: pointer; }
.dpLink:hover, .dpLink:focus-visible { background: var(--dab); }
.dpLink span:first-of-type { flex: 1; }
.dpDot { width: 9px; height: 9px; border-radius: 50%; background: var(--da); flex: none; }
.dpBadge { font-size: .7rem; font-weight: 700; color: var(--dai); border: 1px solid var(--da); border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.dpChoose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.dpChoose fieldset { border: 1px solid var(--st-line); border-radius: 8px; padding: 10px 12px; margin: 0; }
.dpChoose legend { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.dpChoose .stCheck { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: .86rem; }
.dpHead { align-items: center; }
.dpCrumb { margin: 0 0 6px; }
.dpCrumb .stLink { color: var(--st-dim); font-weight: 400; }
.dpSwitch select { border: 1px solid var(--st-line); border-radius: 8px; padding: 8px 10px; background: #fff; font-size: .84rem; max-width: 240px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dpPill { background: #fff; border: 1px solid var(--da); color: var(--dai); border-radius: 8px; padding: 8px 26px; font-weight: 700; font-size: .84rem; cursor: pointer; }
.dpPill:hover { background: var(--dab); }
.dpKpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.dpKpi { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid var(--st-line); border-radius: 10px; padding: 16px 18px; cursor: pointer; text-align: start; min-width: 0; }
.dpKpi:hover, .dpKpi:focus-visible { border-color: var(--da); box-shadow: 0 0 0 3px var(--dab); }
.dpKpi .l { font-size: .74rem; font-weight: 700; color: var(--st-dim); }
.dpKpi .v { font-size: 1.75rem; font-weight: 700; color: var(--dai); line-height: 1.15; overflow-wrap: anywhere; }
.dpKpi .v.small { font-size: 1.1rem; }
.dpKpi .v.warn { color: var(--st-red); }
.dpKpi .c { font-size: .76rem; color: var(--st-dim); }
.dpCols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.dpBars { display: flex; align-items: flex-end; gap: 14px; height: 210px; padding: 8px 4px 0; border-bottom: 1px solid var(--st-line); margin-top: 10px; overflow-x: auto; }
.dpBars.many { gap: 8px; }
.dpBar { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--st-dim); font-size: .7rem; }
.dpBar .col { flex: 1; width: 64%; max-width: 54px; display: flex; align-items: flex-end; background: linear-gradient(var(--st-bg), var(--st-bg)) bottom / 100% 100% no-repeat; border-radius: 4px 4px 0 0; }
.dpBar .col i { display: block; width: 100%; background: var(--da); border-radius: 4px 4px 0 0; transition: height .3s; }
.dpBar:hover .col i, .dpBar:focus-visible .col i { filter: brightness(.92); }
.dpBar .p { font-weight: 700; color: var(--st-text); margin-top: 6px; }
.dpBar .d { line-height: 1.3; text-align: center; margin-top: 2px; }
.dpBar.today .d { color: var(--dai); font-weight: 700; }
.dpBar.empty .p { color: var(--st-dim); }
.dpAct { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--st-line); }
.dpAct .t { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.dpAct.done .t b { text-decoration: line-through; color: var(--st-dim); font-weight: 400; }
.dpTick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--da); background: #fff; cursor: pointer; margin-top: 1px; position: relative; }
.dpTick[aria-pressed="true"] { background: var(--da); }
.dpTick[aria-pressed="true"]::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: .7rem; line-height: 16px; text-align: center; font-weight: 700; }
.dpTick:disabled { opacity: .55; cursor: default; }
.dpDel { font-size: 1.1rem !important; line-height: 1; }
.dpSugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0 4px; }
.dpChip { background: var(--dab); border: 1px dashed var(--da); color: var(--dai); border-radius: 20px; padding: 5px 10px; font-size: .78rem; cursor: pointer; text-align: start; }
.dpChip:hover { border-style: solid; }
.dpDone { margin-top: 10px; font-size: .84rem; }
.dpDone summary { cursor: pointer; color: var(--st-dim); font-weight: 700; padding: 6px 0; }
.dpAdd { display: inline-block; margin-top: 14px; background: var(--da); border: 1px solid var(--da); color: var(--dat, #08271D); border-radius: 8px; font-weight: 700; font-size: .84rem; padding: 9px 18px; cursor: pointer; }
.dpAdd.sm { margin-top: 0; padding: 7px 14px; }
.dpAdd:hover { filter: brightness(1.05); }
.dpAdd:disabled { opacity: .5; }
#dpForm { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--st-line); }
.dpFormActs { display: flex; gap: 8px; justify-content: flex-end; }
.dpRo { margin-top: 12px; }
.dpTodayHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dpTodayHead h2 { margin: 0 !important; font-size: 1.05rem; }
.dpRole { font-size: .78rem; color: var(--st-dim); display: inline-flex; align-items: center; gap: 6px; }
.dpRole select { border: 1px solid var(--st-line); border-radius: 6px; padding: 5px 8px; font-size: .78rem; background: #fff; }
.dpLine { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.dpLine .ev { border-inline-start: 4px solid var(--da); padding: 2px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.dpLine .tm { color: var(--dai); font-weight: 700; font-size: .78rem; }
.dpNextDay { margin: 12px 0 0; }
@media (max-width: 1100px) { .dpKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dpGroups, .dpChoose { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dpCols, .dpGroups, .dpChoose { grid-template-columns: minmax(0, 1fr); } .dpBars { height: 170px; gap: 8px; } }
@media (max-width: 340px) { .dpKpis { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .dpHead .acts { width: 100%; } .dpSwitch, .dpSwitch select { width: 100%; max-width: none; } }
