:root{--background:#f6f6f6;--surface:#ffffff;--surface-soft:#f9f9f9;--text:#262626;--text-muted:#767676;--border:#e7e7e7;--brand:#282828;--brand-soft:#f2f2f2;--success:#656565;--warning:#6f6f6f;--danger:#5c5c5c;--radius-sm:6px;--radius-md:11px;--shadow-soft:0 5px 24px #29292910;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;color-scheme:light;font-family:Inter,Arial,'Noto Sans Arabic',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--text);font-size:14px;line-height:1.55}button,input,textarea,select{font:inherit}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.25;font-weight:650;letter-spacing:-.7px}h2{font-size:18px;font-weight:650;letter-spacing:-.3px}h3{font-size:15px;font-weight:650}.muted{color:var(--text-muted)}.small{font-size:12px}.mono{font-family:ui-monospace,monospace;font-size:12px}img{max-width:100%}svg.icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,a:focus-visible{outline:3px solid #a4a4a4;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #d1d1d1;outline-offset:0;border-color:#939393}.boot{min-height:100vh;display:grid;place-content:center;text-align:center;gap:20px;color:var(--text-muted)}.boot img{width:200px}
.shell{display:grid;grid-template-columns:244px 1fr;min-height:100vh}.sidebar{position:fixed;width:244px;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--border);padding:30px 20px 20px;display:flex;flex-direction:column;z-index:40}.brand{display:block;padding:0 13px 24px}.brand img{width:170px;display:block}.brand small{display:block;font-size:9px;letter-spacing:1.2px;text-transform:uppercase;color:#8a8a8a;margin-top:7px}.nav-label{padding:20px 14px 8px;text-transform:uppercase;color:#999999;font-size:10px;letter-spacing:1.3px;font-weight:600}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:7px;color:#6d6d6d;margin:2px 0;font-size:13px;font-weight:500}.nav-link:hover{background:var(--surface-soft);text-decoration:none;color:var(--brand)}.nav-link.active{background:var(--brand-soft);color:var(--brand);font-weight:650}.sidebar-footer{margin-top:auto;padding-top:24px}.account{display:flex;gap:10px;align-items:center;border-top:1px solid var(--border);padding:17px 10px 3px}.avatar{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--brand-soft);border:1px solid #e2e2e2;border-radius:50%;font-size:11px;font-weight:700;color:#565656;flex-shrink:0}.account-info{flex:1;min-width:0}.account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:12px}.account-role{color:var(--text-muted);text-transform:capitalize;font-size:11px}.main-shell{grid-column:2;min-width:0}.topbar{height:77px;border-bottom:1px solid var(--border);padding:0 36px;background:#ffffffd9;backdrop-filter:blur(12px);display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:30}.breadcrumb{font-size:12px;color:var(--text-muted)}.breadcrumb span{color:var(--text);font-weight:500}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:14px}.workspace-badge{font-size:11px;border:1px solid var(--border);border-radius:5px;padding:5px 9px;color:var(--text-muted)}.topbar-date{font-size:12px;color:var(--text-muted)}.mobile-menu{display:none}.content{max-width:1600px;margin:auto;padding:35px 36px 50px}.page-header{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;margin-bottom:27px}.eyebrow{text-transform:uppercase;color:var(--text-muted);letter-spacing:1.3px;font-size:10px;font-weight:600;margin-bottom:8px}.page-subtitle{color:var(--text-muted);margin-top:9px;font-size:13px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px;border:1px solid var(--border);background:white;color:var(--text);padding:8px 13px;border-radius:var(--radius-sm);font-size:12px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}.btn:hover{background:#f5f5f5;text-decoration:none}.btn-primary{background:var(--brand);border-color:var(--brand);color:#ffffff}.btn-primary:hover{background:#3a3a3a}.btn-danger{color:var(--danger);background:#f6f6f6;border-color:#d8d8d8}.btn-small{min-height:30px;font-size:11px;padding:6px 9px}.btn-ghost{border-color:transparent;background:transparent}.icon-btn{width:34px;height:34px;padding:7px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-muted);border:1px solid transparent;border-radius:6px;background:transparent}.icon-btn:hover{background:var(--surface-soft);border-color:var(--border)}.badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;font-size:10px;font-weight:600;background:#f1f1f1;color:#6e6e6e;white-space:nowrap}.badge.active,.badge.success{background:#f2f2f2;color:#676767}.badge.locked{background:#f0f0f0;color:#6e6e6e}.badge.archived,.badge.disabled{background:#f1f1f1;color:#828282}.badge.draft{background:#f1f1f1;color:#747474}.badge.ready_for_payment{background:#ededed;color:#6a6a6a}.dot{width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:5px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:0 2px 8px #1e1e1e03;margin-bottom:22px;overflow:hidden}.panel-head{padding:19px 21px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--border)}.panel-head h2{font-size:15px}.panel-body{padding:21px}.panel-head .muted{font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:29px}.metric{padding:21px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md)}.metric-label{font-size:12px;color:var(--text-muted);display:flex;justify-content:space-between;align-items:center}.metric-value{font-size:31px;line-height:1.3;font-weight:600;letter-spacing:-1px;margin:11px 0 6px}.metric .icon{color:#919191}.metric-note{font-size:11px;color:#9a9a9a}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:24px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 14px}.section-title h2{font-size:16px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{padding:13px 19px;background:#fcfcfc;color:#8a8a8a;font-size:10px;letter-spacing:.4px;font-weight:600;white-space:nowrap;border-bottom:1px solid var(--border)}td{padding:15px 19px;border-bottom:1px solid #f0f0f0;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfbfb}td strong{font-weight:600}.row-sub{font-size:10px;color:var(--text-muted);margin-top:4px}.table-actions{display:flex;gap:4px;justify-content:flex-end}.table-name{display:flex;gap:12px;align-items:center}.table-thumb{width:34px;height:42px;object-fit:cover;border-radius:5px;background:var(--surface-soft)}.list-item{padding:17px 21px;border-bottom:1px solid #f0f0f0;display:flex;gap:14px;align-items:center}.list-item:last-child{border-bottom:0}.day-tile{border:1px solid var(--border);border-radius:6px;width:41px;height:44px;display:flex;align-items:center;flex-direction:column;justify-content:center;background:#fafafa;flex-shrink:0}.day-tile b{font-size:17px;font-weight:600;line-height:1.1}.day-tile span{font-size:8px;text-transform:uppercase;color:var(--text-muted)}.list-content{flex:1;min-width:0}.list-title{font-size:12px;font-weight:600}.list-sub{font-size:11px;color:var(--text-muted);margin-top:3px}.empty{padding:48px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--text-muted);gap:9px}.empty-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border);background:var(--surface-soft);border-radius:10px;margin-bottom:5px}.empty h3{color:var(--text);font-size:14px}.empty p{max-width:370px;font-size:12px}.empty .btn{margin-top:7px}.error-box{padding:22px;border:1px solid #d0d0d0;color:#505050;background:#f9f9f9;border-radius:8px;margin-bottom:20px}.loading{height:180px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--text-muted);font-size:12px}.spinner{width:18px;height:18px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--brand);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.search-input{position:relative;flex:1;min-width:200px}.search-input input{padding-left:38px;width:100%}.search-input>.icon{position:absolute;left:12px;top:11px;width:17px;color:#8e8e8e}.filter-select{width:145px}.filter-panel{padding:18px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;background:white;border:1px solid var(--border);border-radius:8px;margin-bottom:19px}.filter-panel[hidden]{display:none}.result-summary{display:flex;align-items:center;justify-content:space-between;color:var(--text-muted);font-size:11px;margin:14px 0 17px}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.cast-card,.entity-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;transition:border-color .15s,box-shadow .15s;position:relative}.cast-card:hover,.entity-card:hover{border-color:#d3d3d3;box-shadow:var(--shadow-soft)}.card-photo{height:245px;background:#ececec;position:relative;overflow:hidden;display:block}.card-photo img{width:100%;height:100%;object-fit:cover}.portrait-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f3f3f3,#e6e6e6);color:#b4b4b4}.portrait-placeholder .icon{width:54px;height:54px;stroke-width:1}.card-photo .badge{position:absolute;top:12px;left:12px;background:#ffffffe8;backdrop-filter:blur(6px);color:#666666}.card-body{padding:16px}.card-body h3{font-size:14px;margin-bottom:4px;overflow-wrap:anywhere}.card-meta{font-size:11px;color:var(--text-muted)}.card-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px;min-height:21px}.tag{border:1px solid #eaeaea;background:#fbfbfb;font-size:10px;color:#868686;border-radius:4px;padding:2px 6px}.card-foot{padding:12px 16px;border-top:1px solid #f0f0f0;color:var(--text-muted);font-size:10px;display:flex;align-items:center;justify-content:space-between}.card-select{position:absolute;right:12px;top:12px;z-index:3;background:#ffffffdb;padding:3px 5px;border-radius:4px}.card-select input{width:15px;height:15px;margin:0}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:24px;color:var(--text-muted);font-size:11px}.page-buttons{display:flex;gap:4px;align-items:center}.page-buttons .btn{min-width:32px}.page-buttons .current{background:var(--brand);color:white;border-color:var(--brand)}.selection-bar{position:sticky;bottom:18px;z-index:20;display:flex;gap:14px;align-items:center;padding:14px 18px;border:1px solid #dadada;background:#fffffff0;backdrop-filter:blur(12px);box-shadow:var(--shadow-soft);border-radius:9px;margin-top:22px}.selection-bar .actions{margin-left:auto}
label.field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;color:#5d5d5d;min-width:0}.field span.required{color:var(--danger)}input,textarea,select{width:100%;border:1px solid #e4e4e4;border-radius:6px;padding:9px 11px;background:white;color:var(--text);font-size:12px;min-height:38px}textarea{resize:vertical;min-height:95px;line-height:1.6}input::placeholder,textarea::placeholder{color:#ababab}input[type=checkbox]{accent-color:var(--brand);min-height:auto;width:15px;height:15px}input[type=file]{padding:8px}input[type=color]{padding:2px}.field-help{font-size:10px;color:var(--text-muted);font-weight:400}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.span-2{grid-column:1/-1}.form-section{margin-bottom:26px}.form-section h3{margin-bottom:15px;font-size:12px;text-transform:uppercase;letter-spacing:.7px;color:#858585}.form-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;padding-top:20px;border-top:1px solid var(--border);margin-top:24px}.check-label{display:flex;gap:8px;align-items:center;color:#656565;font-size:12px}.check-list{display:flex;flex-direction:column;gap:11px}.form-note{background:#f8f8f8;border:1px solid #e9e9e9;border-radius:7px;padding:13px 15px;font-size:12px;color:#737373;margin-bottom:20px}.field-error{font-size:11px;color:var(--danger)}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:22px 0 24px;overflow-x:auto}.tab{padding:12px 14px;background:transparent;border:0;border-bottom:2px solid transparent;font-size:12px;white-space:nowrap;color:var(--text-muted)}.tab.active{color:var(--brand);border-bottom-color:var(--brand);font-weight:650}.tab-panel[hidden]{display:none}.profile-layout{display:grid;grid-template-columns:290px 1fr;gap:25px}.profile-portrait{width:100%;height:340px;object-fit:cover;background:#f0f0f0;border-radius:9px}.profile-summary{padding:20px 0}.profile-summary h2{font-size:22px;margin-bottom:7px}.profile-summary p{font-size:12px;color:var(--text-muted)}.profile-facts{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:21px}.fact-label{font-size:10px;color:var(--text-muted);margin-bottom:3px}.fact-value{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.facts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.description{font-size:13px;line-height:1.9;white-space:pre-wrap}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.photo-item{position:relative}.photo-item img{width:100%;height:180px;object-fit:cover;border-radius:7px;background:#f0f0f0}.photo-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.photo-type{font-size:10px;color:var(--text-muted)}.upload-zone{border:1px dashed #c8c8c8;border-radius:8px;padding:20px;text-align:center;background:#fcfcfc;display:flex;flex-direction:column;gap:10px;margin:15px 0}.upload-zone p{font-size:11px;color:var(--text-muted)}.image-previews{display:flex;gap:10px;flex-wrap:wrap}.preview-item{position:relative;width:110px}.preview-item img{width:110px;height:120px;object-fit:cover;border-radius:6px}.preview-item small{font-size:9px;display:block;margin-top:5px;color:var(--text-muted)}.timeline{list-style:none;padding:0;margin:0}.timeline li{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #f0f0f0}.timeline li:last-child{border:0}.timeline-dot{width:9px;height:9px;flex-shrink:0;border:2px solid #acacac;background:#ffffff;border-radius:50%;margin:5px}.timeline strong{font-size:12px}.timeline p{font-size:11px;color:var(--text-muted);margin-top:3px}.lock-banner{display:flex;gap:12px;align-items:center;padding:16px 20px;background:#f5f5f5;border:1px solid #e0e0e0;color:#727272;border-radius:8px;margin-bottom:20px;font-size:12px}.lock-banner .actions{margin-left:auto}.project-overview{display:grid;grid-template-columns:1.8fr 1fr;gap:23px}.project-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:25px}.project-stat{padding:18px 20px;background:#ffffff;border:1px solid var(--border);border-radius:8px}.project-stat b{display:block;font-size:22px;margin-bottom:4px}.project-stat span{font-size:11px;color:var(--text-muted)}.day-card{padding:21px;background:white;border:1px solid var(--border);border-radius:9px;margin-bottom:15px}.day-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}.day-card h3{font-size:15px}.day-details{display:flex;gap:22px;flex-wrap:wrap;font-size:11px;color:var(--text-muted)}.day-assignees{display:flex;gap:6px;flex-wrap:wrap;margin-top:17px}.payment-total{padding:22px;background:#fafafa;text-align:right;border-top:1px solid var(--border)}.payment-total span{font-size:12px;color:var(--text-muted);margin-right:18px}.payment-total strong{font-size:23px}.json-preview{font:11px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f8f8;border:1px solid var(--border);padding:15px;max-height:300px;overflow:auto;border-radius:6px}
dialog{padding:0;border:1px solid #dedede;border-radius:12px;box-shadow:0 24px 90px #22222233;color:var(--text);max-width:min(720px,calc(100vw - 32px));width:620px;max-height:90vh;background:white}dialog::backdrop{background:#26262666;backdrop-filter:blur(3px)}.dialog-head{padding:22px 25px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.dialog-head h2{font-size:18px}.dialog-body{padding:24px 25px;overflow:auto;max-height:70vh}.dialog-body .form-actions{position:sticky;bottom:-24px;background:#ffffff;padding-bottom:6px}.dialog-wide{width:860px;max-width:min(860px,calc(100vw - 32px))}.toasts{position:fixed;bottom:24px;right:24px;z-index:100;display:flex;flex-direction:column;gap:9px;max-width:420px}.toast{background:#ffffff;padding:14px 18px;border:1px solid #dfdfdf;border-left:3px solid var(--success);box-shadow:var(--shadow-soft);border-radius:7px;font-size:12px;display:flex;gap:12px;align-items:center}.toast.error{border-left-color:var(--danger)}.toast .icon-btn{height:22px;width:22px;padding:3px}.toast p{flex:1}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{padding:56px 60px;background:#282828;color:white;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;inset:28% -90px -90px 22%;border:1px solid #b4b4b428;border-radius:50%;pointer-events:none}.auth-story:before{content:'';position:absolute;inset:47% -190px -170px 0;border:1px solid #b4b4b42b;border-radius:50%;pointer-events:none}.auth-story .brand{padding:0;filter:brightness(0) invert(1);width:185px}.auth-story small{color:#d5d5d5;font-size:10px;letter-spacing:1px;margin-top:8px}.auth-story-content{margin:auto 0;max-width:410px;padding:60px 0;position:relative;z-index:1}.auth-story-content h1{font-size:42px;line-height:1.22;letter-spacing:-1px;font-weight:500}.auth-story-content p{color:#cbcbcb;line-height:1.8;margin-top:24px;font-size:14px}.auth-story-footer{font-size:11px;color:#aeaeae}.auth-main{padding:45px;display:flex;align-items:center;justify-content:center;background:#fcfcfc}.auth-card{max-width:380px;width:100%}.auth-card h1{font-size:27px}.auth-card>p{margin:13px 0 28px;color:var(--text-muted);font-size:13px}.auth-card .field{margin-bottom:18px}.auth-card .btn-primary{width:100%;margin-top:12px;min-height:43px}.auth-links{display:flex;gap:16px;justify-content:center;font-size:11px;margin-top:30px}.auth-note{color:var(--text-muted);font-size:11px;margin-top:23px;line-height:1.7}.otp-input{font-size:24px;letter-spacing:15px;text-align:center;padding-left:25px}.public-header{border-bottom:1px solid var(--border);background:white;padding:22px 40px;display:flex;justify-content:space-between;align-items:center;gap:20px}.public-header img{width:180px}.public-header .actions{font-size:12px;gap:22px}.public-content{max-width:930px;margin:40px auto;padding:0 24px 50px}.public-intro{margin-bottom:28px}.public-intro p{font-size:13px;line-height:1.8;color:var(--text-muted);max-width:610px;margin-top:12px}.public-footer{font-size:11px;text-align:center;color:var(--text-muted);padding:24px}.audit-change{display:grid;grid-template-columns:1fr 1fr;gap:15px}.import-mapping{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.status-line{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--text-muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1600px){.card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.card-photo{height:280px}}@media(max-width:1280px){.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content{padding:30px 28px}.topbar{padding:0 28px}.dashboard-grid{grid-template-columns:1.5fr 1fr}.profile-layout{grid-template-columns:250px 1fr}.facts-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:1050px){.shell{grid-template-columns:210px 1fr}.sidebar{width:210px;padding:25px 13px}.brand img{width:155px}.nav-link{padding:10px 12px}.content{padding:27px 22px}.topbar{padding:0 22px}.metric-grid{gap:10px}.metric{padding:16px}.dashboard-grid,.project-overview{grid-template-columns:1fr}.card-photo{height:205px}.filter-panel{grid-template-columns:repeat(3,1fr)}.profile-layout{grid-template-columns:220px 1fr}.profile-portrait{height:290px}.photo-grid{grid-template-columns:repeat(2,1fr)}.topbar-date{display:none}}@media(max-width:800px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:244px}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #22222255}.main-shell{width:100%}.mobile-menu{display:flex}.content{padding:26px 20px}.topbar{height:65px;padding:0 20px}.metric-grid{grid-template-columns:repeat(2,1fr)}.metric-value{font-size:29px}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card-photo{height:190px}.page-header{gap:15px;flex-wrap:wrap}.page-header h1{font-size:25px}.page-header>.actions{width:100%}.toolbar{gap:8px}.filter-select{width:120px}.auth-story{padding:35px}.auth-story-content h1{font-size:32px}.auth-main{padding:30px}.auth-links{flex-wrap:wrap}.profile-layout{grid-template-columns:1fr}.profile-side{display:grid;grid-template-columns:220px 1fr;gap:24px}.profile-portrait{height:280px}.profile-facts{grid-template-columns:1fr 1fr}.form-grid{gap:15px}.filter-panel{grid-template-columns:repeat(2,1fr)}.public-header{padding:20px 24px}.public-header img{width:145px}.project-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.content{padding:24px 16px}.topbar{padding:0 15px}.workspace-badge{display:none}.topbar-right{gap:6px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card-photo{height:200px}.card-body{padding:12px}.card-foot{padding:10px 12px}.card-body h3{font-size:12px}.card-tags{gap:4px}.card-meta{font-size:10px}.card-select{top:9px;right:9px}.card-photo .badge{top:9px;left:9px;font-size:9px}.metric{padding:16px}.page-header h1{font-size:24px}.form-grid,.import-mapping,.audit-change{grid-template-columns:1fr}.span-2{grid-column:1}.auth-layout{display:block}.auth-story{padding:26px}.auth-story-content{display:none}.auth-story-footer{display:none}.auth-main{min-height:calc(100vh - 91px);padding:35px 26px}.auth-story .brand img{width:160px}.public-header .actions{gap:10px;font-size:11px}.public-header img{width:125px}.public-content{padding:0 16px;margin-top:30px}.public-header{padding:20px 16px}.profile-side{display:block}.profile-portrait{height:370px}.profile-facts{grid-template-columns:repeat(2,1fr)}.facts-grid{grid-template-columns:repeat(2,1fr);gap:17px}.dialog-body{padding:20px}.dialog-head{padding:18px 20px}.panel-body{padding:18px}.panel-head{padding:17px 18px}.day-head{align-items:flex-start}.day-head .actions{justify-content:flex-end}.btn{padding:8px 10px;font-size:11px}.selection-bar{padding:12px;gap:8px;font-size:11px}.pagination{gap:10px;align-items:flex-start}.page-buttons{flex-wrap:wrap;justify-content:flex-end}.filter-panel{padding:14px;gap:12px}.filter-select{width:calc(50% - 4px)}.search-input{flex-basis:100%}.toasts{bottom:15px;right:15px;left:15px}.lock-banner{align-items:flex-start;flex-wrap:wrap}.lock-banner .actions{margin-left:0;width:100%}.tabs{margin-bottom:18px}.tab{padding:12px 10px;font-size:11px}.table-wrap th,.table-wrap td{padding:12px 14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.client-logo{width:86px;height:50px;object-fit:contain;object-position:left center;margin-bottom:13px}.card-foot{min-height:47px}.card-foot>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-body>.avatar{margin-bottom:12px}.badge.failed{background:#f3f3f3;color:var(--danger)}

.form-fields{border:0;padding:0;margin:0;min-width:0}.btn[aria-disabled=true]{opacity:.5;cursor:wait}
/* The editor uses the same markup and placement rules as saved forms. */
.form-builder{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.form-builder [data-fields] .form-grid{grid-template-columns:1fr}.custom-field-preview{position:relative;border:1px solid var(--border);border-radius:12px;padding:16px;background:#fafafa}.field-preview-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.field-preview-tools .actions{gap:5px}.custom-field-preview[draggable=true]{cursor:grab}.custom-field-preview.dragging{opacity:.45}.drop-target{outline:2px dashed var(--brand);outline-offset:5px}.selected-field{outline:2px solid var(--brand);background:#f4f4f4}.field-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:28px}.form-builder-dialog{width:min(1120px,calc(100vw - 32px));max-width:1120px}.field-editor-preview{max-height:70vh;overflow:auto;border-left:1px solid var(--border);padding-left:24px}.field-editor-preview .form-grid{grid-template-columns:1fr}.field-advanced{margin:16px 0}.field-advanced summary{cursor:pointer;font-weight:600;margin-bottom:12px}.core-field input:disabled,.core-field textarea:disabled,.core-field select:disabled,.custom-field-preview input:disabled,.custom-field-preview textarea:disabled,.custom-field-preview select:disabled{opacity:1;color:var(--text);background:#ffffff}.form-builder [aria-busy=true]{opacity:.7}@media(max-width:850px){.form-builder,.field-editor{grid-template-columns:1fr}.field-editor-preview{border-left:0;border-top:1px solid var(--border);padding:20px 0 0;max-height:50vh}}

.optional-details{border:1px solid var(--border);border-radius:8px;padding:14px;margin-bottom:20px}.optional-details summary{cursor:pointer;font-weight:600}.optional-details[open] summary{margin-bottom:18px}.choice-list label{display:grid;gap:6px}.choice-list .btn{justify-self:start}.other-entry[hidden]{display:none}.bank-code{padding:10px;border:1px solid var(--border);border-radius:6px;background:var(--surface-soft);min-height:43px;font-family:ui-monospace,monospace}.profile-incomplete{position:absolute;bottom:10px;left:10px;background:#f5f5f5;color:#5b5b5b;border-radius:5px;padding:3px 8px;font-size:11px}.import-progress{margin:12px 0}.import-progress progress{width:100%;height:14px}.import-decision{min-width:190px}

.choice-menu{border:1px solid var(--border);border-radius:6px;background:white}.choice-menu summary{padding:10px 12px;cursor:pointer;min-height:43px}.choice-menu-options{display:grid;gap:10px;padding:0 12px 12px}.choice-menu-options label.check-label{display:flex;flex-direction:row;align-items:center;gap:8px}.choice-list select[hidden]{display:none}
/* Photo selection and project cast share the library's compact card layout. */
.picker-grid,.project-cast-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;padding:16px}
.picker-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--border,#e4e4e4);border-radius:12px;overflow:hidden;cursor:pointer;background:var(--surface,#ffffff)}
.picker-card:has(input:checked){outline:2px solid var(--accent,#989898)}
.picker-card>input{position:absolute;top:12px;right:12px;width:22px;height:22px;accent-color:var(--accent,#989898)}
.picker-photo img,.picker-photo .portrait-placeholder{width:100%;height:190px;object-fit:cover}
.picker-photo strong,.picker-photo .list-sub{display:block;margin:8px 12px}
.picker-footer{position:sticky;bottom:0;background:var(--surface,#ffffff);padding:16px 0;margin:0}
.project-cast-card{border:1px solid var(--border,#e4e4e4);border-radius:12px;overflow:hidden;background:var(--surface,#ffffff)}
.project-cast-card .card-photo{height:210px}.project-cast-card .card-body{padding:16px}.assignment-role{margin:4px 0 12px}.daily-summary{font-size:12px;line-height:1.7}.assignment-note{white-space:pre-wrap;max-height:90px;overflow:auto}.selected-people{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.day-cast-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}.day-person-card{border:1px solid var(--border,#e4e4e4);border-radius:10px;padding:10px}.day-person-card img{width:100%;height:155px;object-fit:cover;border-radius:6px}.day-person-card .check-label{margin-top:8px}.day-person-card .field{margin-top:8px}.weather-preview{padding:12px 0;font-size:13px;line-height:1.7}

/* File selection and search criteria. */
.file-dropzone{padding:28px 22px;border:1.5px dashed #c1c1c1;border-radius:14px;background:linear-gradient(145deg,#ffffff,#f8f8f8);text-align:center;transition:border-color .16s,background .16s,box-shadow .16s;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:9px}
.file-dropzone:hover,.file-dropzone:focus-within{border-color:#8f8f8f;box-shadow:0 0 0 3px #a6a6a612}.file-dropzone.is-dragging{border-color:#747474;background:#ededed;box-shadow:0 0 0 4px #a6a6a622}.file-dropzone[aria-busy=true]{cursor:default;opacity:.7}
.file-native[hidden]{display:none}.file-drop-icon{width:44px;height:44px;border:1px solid #dfdfdf;border-radius:13px;background:#ffffff;display:grid;place-items:center;color:#7d7d7d}.file-drop-icon .icon{width:23px;height:23px}.file-dropzone>strong{font-size:14px;color:#323232}.file-dropzone>p{font-size:11px;color:#747474;max-width:350px;line-height:1.7;margin:0}.file-dropzone .file-browse{border-radius:100px;padding:9px 19px;margin-top:3px;background:#ffffff;border-color:#c8c8c8;color:#454545;min-height:39px}.file-dropzone .file-selection{font-size:10px;overflow-wrap:anywhere;color:#666666}
.image-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;margin-top:15px}.preview-item{position:relative;width:auto;padding:8px;border:1px solid #e3e3e3;border-radius:12px;background:#ffffff;min-width:0}.preview-item img{width:100%;height:135px;border-radius:8px;object-fit:cover}.preview-item small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 2px 2px}.preview-item>span{font-size:10px;color:#898989;margin:2px}.preview-remove{position:absolute;inset-block-start:14px;inset-inline-end:14px;border:1px solid #dddddd;background:#ffffff;color:#393939;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;padding:0;box-shadow:0 2px 6px #00000022}.preview-remove .icon{width:13px;height:13px}.preview-remove:hover{color:#4b4b4b;background:#f6f6f6}
.import-file-options{display:grid;grid-template-columns:1fr 1fr;gap:20px}.import-file-options .file-dropzone{height:100%}.search-criteria{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 20px}.search-criteria .tag{background:#ededed;color:#525252;border-color:#dddddd}
@media(max-width:600px){.import-file-options{grid-template-columns:1fr}.file-dropzone{padding:24px 16px}.image-previews{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared application-built choices, calendar and time controls. */
.app-control{position:relative;min-width:0;width:100%}.control-source{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;clip-path:inset(50%);pointer-events:none}
.control-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;border:1px solid var(--border);border-radius:7px;padding:9px 12px;background:var(--surface);color:var(--text);text-align:start;font-weight:400}.control-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.control-chevron{color:var(--text-muted);font-size:18px;line-height:1}.control-trigger:hover{border-color:#b7b7b7}.control-trigger:focus-visible{outline:2px solid #d1d1d1;outline-offset:2px}.toolbar>.app-control{width:auto;min-width:150px}
.control-calendar-button{position:absolute;inset-inline-end:5px;top:4px;bottom:4px;display:grid;place-content:center;width:34px;border:0;border-radius:5px;background:transparent;color:var(--text-muted);font-size:23px}.app-control>input{width:100%;padding-inline-end:44px!important}.control-calendar-button:hover{background:var(--brand-soft);color:var(--brand)}
.control-popover{position:fixed;z-index:150;padding:12px;background:var(--surface);border:1px solid #dbdbdb;border-radius:13px;box-shadow:0 14px 44px #26262630;overflow:auto;color:var(--text);font-size:13px}.control-popover[hidden]{display:none}.control-popover input{width:100%;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:9px;min-height:38px}.control-popover input[type=search]{margin-bottom:8px}.control-options{max-height:290px;overflow:auto;display:grid;gap:2px}.control-option{width:100%;border:0;background:none;border-radius:7px;display:flex;justify-content:space-between;gap:12px;text-align:start;padding:10px 11px;color:var(--text);font-weight:400}.control-option[hidden]{display:none}.control-option:hover,.control-option:focus-visible{background:var(--surface-soft)}.control-option[aria-selected=true]{color:var(--brand);background:var(--brand-soft);font-weight:600}
.date-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}.date-head button,.control-footer button{border:0;background:transparent;padding:7px;color:var(--brand);font-weight:600;border-radius:6px}.date-head button:hover,.control-footer button:hover{background:var(--brand-soft)}.date-head input{width:85px;font-weight:600;text-align:center}.calendar-grid,.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-week{text-align:center;font-size:10px;color:var(--text-muted);margin-bottom:8px}.calendar-grid button{border:0;background:none;min-height:36px;border-radius:7px;color:var(--text);padding:5px}.calendar-grid button:hover{background:var(--brand-soft)}.calendar-grid button[aria-selected=true],.time-hour-grid .is-selected{background:var(--brand);color:#ffffff}.calendar-grid button:disabled{opacity:.3}.calendar-grid.month-grid{grid-template-columns:repeat(3,1fr)}.control-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--border);padding-top:8px;margin-top:12px}
.time-head{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:14px}.time-head label{display:grid;gap:5px;width:90px;text-align:center;color:var(--text-muted)}.time-head input{text-align:center;font-size:21px}.time-hour-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.time-hour-grid button,.time-minute-grid button{border:1px solid var(--border);border-radius:6px;background:var(--surface-soft);padding:8px 5px;color:var(--text)}.time-hour-grid button:hover,.time-minute-grid button:hover{border-color:var(--brand)}.time-minute-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-top:12px}.time-minute-grid button{font-size:11px;background:transparent}.control-footer .btn-primary{background:var(--brand);color:#ffffff}.control-error{display:block;color:var(--danger);font-size:11px;margin-top:6px}.control-error[hidden]{display:none}.control-invalid .control-trigger,.control-invalid>input{border-color:var(--danger)}
@media(max-width:560px){.toolbar>.app-control{min-width:140px;flex:1}.control-popover{font-size:14px}.control-trigger{min-height:43px}}

/* Private photos retain a stable frame throughout loading and retries. */
.media-frame{position:relative;display:block;overflow:hidden;width:100%;background:#f1f1f1;min-height:44px}.media-frame>img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .18s ease}.media-frame[data-photo-state=ready]>img{opacity:1}.media-loading,.media-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--text-muted);font-size:11px;background:linear-gradient(135deg,#f5f5f5,#ececec)}.media-loading[hidden],.media-error[hidden]{display:none}.media-loading .spinner{width:24px;height:24px;border-width:2px}.media-error button{font-size:11px;color:var(--brand);border:1px solid var(--border);border-radius:6px;padding:5px 12px;background:#ffffff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.card-photo>.media-frame{height:100%}.photo-indicators{position:absolute;bottom:10px;inset-inline:12px;display:flex;gap:4px;pointer-events:none}.photo-indicators span{height:3px;border-radius:4px;background:#ffffff55;flex:1;box-shadow:0 0 3px #00000055}.photo-indicators span.active{background:#ffffff}.profile-hero{position:relative;cursor:zoom-in}.profile-photo-count{position:absolute;bottom:12px;left:12px;display:flex;gap:7px;align-items:center;background:#222222a8;color:#ffffff;border-radius:7px;padding:6px 10px;font-size:11px}.profile-content{min-width:0}.profile-content>.panel{margin-bottom:20px}.photo-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}.photo-open .media-frame{height:210px;border-radius:7px}.day-person-card .media-frame{height:155px;border-radius:6px}.picker-card .media-frame{height:150px}.photo-viewer{width:min(1020px,calc(100vw - 24px));max-width:1020px;background:#141414;color:#ffffff}.photo-viewer .dialog-head{border-color:#ffffff1c}.photo-viewer .dialog-head .icon-btn{color:#ffffff}.photo-viewer .dialog-body{padding:12px}.photo-viewer-stage{touch-action:pan-y pinch-zoom}.photo-viewer-stage .media-frame{height:min(66vh,650px);background:#141414;border-radius:7px}.photo-viewer-stage img{object-fit:contain}.photo-viewer .media-loading{background:#141414;color:#cdcdcd}.photo-viewer-footer{display:flex;align-items:center;justify-content:center;gap:22px;padding:12px}.photo-viewer-footer .btn{background:#292929;border-color:#404040;color:#ffffff}
.selection-bar{position:fixed;inset:auto 30px 24px 274px;max-width:1120px;margin-inline:auto;z-index:48;background:#282828;color:#ffffff;border:1px solid #ffffff20;border-radius:14px;box-shadow:0 14px 45px #1b1b1b30;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.selection-bar .btn{background:#ffffff12;color:#ffffff;border-color:#ffffff30}.selection-bar .btn-primary{background:#d0d0d0;color:#252525;border-color:#d0d0d0}.selection-bar .btn-small{font-size:11px}.content:has(.selection-bar){padding-bottom:125px}
@media(max-width:800px){.selection-bar{left:18px;right:18px;bottom:18px}.profile-photo-count{left:12px}}@media(max-width:560px){.selection-bar{left:10px;right:10px;bottom:10px;flex-wrap:wrap;padding:12px;border-radius:11px;gap:10px}.selection-bar>.actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px}.selection-bar .btn-primary{grid-column:span 2}.content:has(.selection-bar){padding-bottom:190px}.photo-viewer-stage .media-frame{height:60vh}}
@media(prefers-reduced-motion:reduce){.media-frame>img{transition:none}.media-loading .spinner{animation:none}}
.schedule-location{border:1px solid var(--border);border-radius:14px;padding:16px;margin:10px 0;background:var(--surface,#ffffff)}.slot-title{margin-bottom:12px}.schedule-location [data-slot-detail]{display:grid;gap:12px}.schedule-location [data-slot-detail][hidden]{display:none}.schedule-location [data-slot-people]{display:grid;gap:12px}.day-location-timeline{display:grid;gap:14px;margin:18px 0}.day-location-slot{display:grid;grid-template-columns:165px 1fr;gap:18px;border-left:2px solid var(--gold,#9b9b9b);padding:4px 0 4px 14px}.slot-time{font-size:13px;color:var(--text-muted);font-variant-numeric:tabular-nums}.shoot-calendar{border:1px solid var(--border);border-radius:16px;padding:18px;background:var(--surface,#ffffff);margin-bottom:24px;overflow:auto}.calendar-weekdays,.shoot-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(95px,1fr));min-width:665px}.calendar-weekdays{text-align:center;color:var(--text-muted);font-size:12px;padding-bottom:12px}.calendar-cell{min-height:96px;border-top:1px solid var(--border);padding:8px;border-right:1px solid var(--border)}.calendar-cell:nth-child(7n){border-right:0}.calendar-cell.empty-cell{background:var(--background,#f8f8f8);opacity:.5}.calendar-day-number{font-size:12px;color:var(--text-muted);display:block;margin-bottom:8px}.calendar-event{border:0;background:#ededed;border-radius:8px;text-align:left;width:100%;padding:8px;color:var(--text);cursor:pointer;display:grid;gap:4px;margin-bottom:6px;font-size:11px}.calendar-event strong{font-size:12px}.calendar-event small{color:var(--text-muted)}.day-card[data-shoot-day]{scroll-margin-top:28px}@media(max-width:650px){.day-location-slot{grid-template-columns:1fr;gap:8px}.shoot-calendar{padding:12px}}

:root{--background:#f7f7f7;--surface:#ffffff;--surface-soft:#fafafa;--text:#171717;--text-muted:#686868;--border:#e4e4e4;--brand:#111111;--brand-soft:#f0f0f0}

[data-card-href]{cursor:pointer}[data-card-href]:hover{background:#f5f5f5}[data-card-href]:focus-visible{outline:2px solid #111;outline-offset:3px}.cast-card.is-selected{outline:2px solid #111;outline-offset:2px}.card-photo[role=button]{cursor:pointer}.photo-preview-action{position:absolute;right:12px;bottom:12px;width:38px;height:38px;display:grid;place-items:center;background:#ffffffed;color:#111;border:1px solid #ddd;border-radius:50%;z-index:3;box-shadow:0 2px 8px #0002}.photo-preview-action:hover{background:#111;color:white}.time-period{display:flex;gap:6px;margin:10px 0}.time-period button{flex:1;border:1px solid #ddd;background:#fff;border-radius:8px;padding:9px;font-weight:600}.time-period button[aria-pressed=true]{background:#111;color:#fff;border-color:#111}.time-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.time-presets button{border:1px solid #e3e3e3;border-radius:8px;padding:10px 5px;background:#fafafa;color:#222;min-height:42px}.time-presets button:hover,.time-presets button[aria-pressed=true]{background:#111;color:#fff;border-color:#111}.time-presets button:disabled{opacity:.3}.control-footer{display:flex;justify-content:space-between;gap:8px;padding-top:12px}.time-custom{border-top:1px solid #eee;margin-top:12px;padding-top:12px}.time-custom .form-grid{grid-template-columns:1fr 1fr}.field-is-hidden{opacity:.55;background:repeating-linear-gradient(45deg,#fafafa,#fafafa 6px,#f3f3f3 6px,#f3f3f3 12px)}.field-preview-tools button{min-height:32px}.slot-time-toggle{display:flex;align-items:center;gap:8px;margin:14px 0}.btn-primary:hover{background:#333}.card-select{z-index:4}.form-builder .field-preview-tools{flex-wrap:wrap}.form-builder .field-preview-tools .actions{gap:4px}
@media(max-width:600px){.control-popover.time-picker{border-radius:16px;padding:16px;box-shadow:0 8px 40px #0003;overflow:auto;overscroll-behavior:contain}.time-presets{grid-template-columns:repeat(4,1fr)}.time-presets button{min-height:46px}.time-presets button,.time-period button{touch-action:manipulation}.field-preview-tools{position:relative}.field-preview-tools .actions{flex-wrap:wrap}.form-builder .field-preview-tools button{min-height:38px}}

.time-picker-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.time-picker-head button{background:none;border:0;font-size:24px;padding:0 6px}.time-presets button:focus-visible{outline:2px solid #111;outline-offset:2px}
.picker-photo{position:relative}.picker-photo .photo-preview-action{bottom:54px;width:32px;height:32px}.picker-card:has(input:checked){outline:2px solid #111;outline-offset:2px}

.topbar .mobile-menu{display:none}@media(max-width:800px){.topbar .mobile-menu{display:inline-flex}}
