@font-face{font-family:Marsa;src:url('/assets/Masaar-Regular.ttf')}@font-face{font-family:Marsa;src:url('/assets/Masaar-Bold.ttf');font-weight:700}
:root{font-family:Marsa,Arial,sans-serif;color:#1c2e49;background:#f2f4f7;font-synthesis:none;--bg:#f2f4f7;--panel:#f9fafc;--card:#fff;--ink:#1c2e49;--muted:#657890;--edge:#dce3ef;--primary:#2759ad;--soft:#eaf2fc;--shadow:0 8px 30px -20px #22466c55;--red:#ad355b;--green:#28765d;--ease:cubic-bezier(.22,1,.36,1);color-scheme:light}
html[data-theme=dark]{--bg:#111e31;--panel:#192b43;--card:#203650;--ink:#edf3ff;--muted:#b7c4d8;--edge:#334b68;--primary:#a5c8ff;--soft:#284365;--shadow:0 10px 30px -20px #0009;--red:#ffa4c2;--green:#9bdec1;color-scheme:dark;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;font-size:14px;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible{outline:3px solid #6299e8;outline-offset:3px}input,select,textarea{width:100%;border:1px solid var(--edge);border-radius:11px;background:var(--card);padding:10px 12px;min-height:44px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6492db26}textarea{resize:vertical;line-height:1.9}input[type=checkbox]{accent-color:#2759ad;width:18px;height:18px;min-height:18px;margin:0;flex-shrink:0}input[type=date],input[type=month]{direction:ltr;text-align:right}input[type=number]{direction:ltr}::placeholder{color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.5}h2{font-size:20px}h3{font-size:16px}small{font-size:12px;color:var(--muted)}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--edge);border-radius:11px;background:var(--card);padding:10px 14px;min-height:44px;font-size:13px;white-space:nowrap;transition:background .18s,box-shadow .18s,transform .18s}.btn:hover{background:var(--soft);box-shadow:var(--shadow)}.btn.primary{background:#2759ad;color:white;border-color:#2759ad}.btn.primary:hover{background:#1d4488}.btn.quiet{border-color:transparent;background:transparent}.btn.danger{color:var(--red)}.icon-btn{width:44px;padding:10px}.reverse{transform:rotate(180deg)}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.muted{color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border:1px solid var(--edge);border-radius:7px;background:var(--card);font-size:11px;white-space:nowrap}.pill.green{color:var(--green)}.pill.pink{color:var(--red)}.pill .icon{width:13px;height:13px}.tag{color:var(--muted);font-size:11px}.dot{width:7px;height:7px;display:inline-block;border-radius:100%;background:currentColor}.avatar{width:27px;height:27px;border-radius:50%;background:#6273aa;color:white;display:inline-flex;align-items:center;justify-content:center;font-size:11px;border:2px solid var(--card);flex-shrink:0}.avatars{display:inline-flex;align-items:center}.avatars .avatar+.avatar{margin-inline-start:-7px}.divider{height:1px;background:var(--edge);margin-block:18px}.boot{padding:40px}.layout{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:25px 16px 16px;border-inline-end:1px solid var(--edge);background:linear-gradient(160deg,var(--card),var(--panel));z-index:20;overflow:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 26px;direction:ltr;justify-content:flex-end}.brand img{width:37px;height:37px}.brand strong{font-size:21px;letter-spacing:-.6px}.brand small{display:block;font-size:10px;letter-spacing:2px}.nav-group{display:grid;gap:4px}.nav-title{font-size:11px;color:var(--muted);padding:22px 13px 8px}.nav-link{display:flex;align-items:center;gap:11px;min-height:46px;padding:11px 13px;border-radius:11px;color:var(--muted);transition:background .15s,color .15s}.nav-link .icon{width:18px}.nav-link:hover{background:var(--soft);text-decoration:none;color:var(--ink)}.nav-link.active{background:var(--soft);color:var(--primary);font-weight:700}.nav-link.active:before{content:'';width:3px;height:17px;border-radius:4px;background:var(--primary);position:absolute;margin-inline-start:-12px}.sidebar-foot{margin-top:auto;padding-top:30px}.profile{border:1px solid var(--edge);border-radius:14px;padding:12px;display:flex;align-items:center;gap:9px;background:var(--card)}.profile .icon-btn{margin-inline-start:auto;min-height:32px;width:32px;padding:6px}.main{min-width:0}.topbar{height:78px;border-bottom:1px solid var(--edge);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--panel)}.topbar .search{width:min(340px,35vw)}.search{position:relative;display:flex;align-items:center}.search .icon{position:absolute;inset-inline-start:13px;color:var(--muted);pointer-events:none}.search input{padding-inline-start:40px;min-height:42px;background:var(--card)}.crumb{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.crumb b{color:var(--ink);font-weight:400}.local-label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.local-label .dot{color:#cf994b}.content{padding:28px 32px 40px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:5px}.page-head p{color:var(--muted);margin-top:7px;font-size:13px;line-height:1.8}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}.toolbar .select-wrap{min-width:180px;max-width:260px}.toolbar .search{flex:1;min-width:170px}.select-wrap{position:relative;display:block}.select-wrap select{appearance:none;padding-inline-end:38px}.select-wrap>.icon{position:absolute;inset-inline-end:13px;top:15px;width:14px;height:14px;pointer-events:none;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric{border:1px solid var(--edge);background:var(--card);padding:17px 20px;border-radius:17px;box-shadow:var(--shadow)}.metric span{color:var(--muted);font-size:12px}.metric strong{display:block;font-size:29px;margin:8px 0 1px;line-height:1.2;font-weight:700}.metric small{font-size:10px}.panel{border:1px solid var(--edge);border-radius:18px;background:var(--card);padding:22px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.board{display:flex;gap:14px;overflow-x:auto;overflow-y:visible;padding:4px 3px 18px;scrollbar-width:thin;scrollbar-color:#98abc8 transparent;min-height:400px;scroll-behavior:smooth;align-items:flex-start}.column{flex:0 0 238px;background:var(--panel);border:1px solid var(--edge);border-radius:18px;padding:11px;min-height:180px;transition:background .15s}.column.over{background:var(--soft)}.column-head{padding:3px 4px 14px;display:flex;align-items:center;gap:7px;font-size:13px}.column-head small{margin-inline-start:auto}.column-head .btn{padding:0;min-height:30px;width:30px}.column-list{display:grid;gap:10px}.work-card{position:relative;text-align:start;border:1px solid #00000005;border-radius:14px;padding:13px 12px;width:100%;color:#25466e;background:#dfE9fb;box-shadow:0 2px 2px #18365903;cursor:pointer;transition:transform .18s var(--ease),box-shadow .18s;isolation:isolate;outline-offset:2px;touch-action:pan-y}.work-card:hover{transform:translateY(-2px);box-shadow:0 8px 14px -10px #1b3c7677;z-index:3}.work-card:focus-visible{outline:2px solid var(--primary)}.work-card.tone-1,.calendar-card.tone-1{background:#e9e0f8;color:#594180}.work-card.tone-2,.calendar-card.tone-2{background:#d9eee5;color:#285f4e}.work-card.tone-3,.calendar-card.tone-3{background:#fbe8cc;color:#80552d}.work-card.tone-4,.calendar-card.tone-4{background:#f7dde5;color:#873f5b}.work-card.tone-5,.calendar-card.tone-5{background:#daf0f4;color:#2f6374}.card-title{font-weight:400;font-size:13px;line-height:1.65;padding-inline-end:4px;overflow-wrap:anywhere}.card-project{font-size:10px;opacity:.8;margin:4px 0 9px}.card-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.card-meta .pill{border-color:#ffffff88;background:#ffffff70;font-size:10px;min-height:24px;color:inherit}.card-edit{position:absolute;top:5px;inset-inline-end:5px;opacity:0;pointer-events:none;min-height:30px;width:30px;border-radius:8px;background:#fffffff0;border:0;color:#566d8e;box-shadow:0 5px 12px #fff}.work-card:hover .card-edit,.work-card:focus-within .card-edit{opacity:1;pointer-events:auto}.card-stage{font-size:10px;margin-bottom:6px;opacity:.8}.stage-summary{margin-top:10px;font-size:10px;display:flex;justify-content:space-between;border-top:1px solid #ffffff60;padding-top:8px}.stage-summary progress{width:55px;height:5px;align-self:center;accent-color:currentColor}.calendar-shell{border:1px solid var(--edge);background:var(--card);border-radius:18px;overflow:auto}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(115px,1fr));min-width:805px}.weekdays{border-bottom:1px solid var(--edge);background:var(--panel)}.weekdays div{text-align:center;padding:13px;font-size:11px}.day{min-height:114px;padding:8px;border-inline-end:1px solid var(--edge);border-bottom:1px solid var(--edge);transition:background .16s}.day:nth-child(7n){border-inline-end:none}.day.empty-day{background:var(--panel)}.day.today{background:var(--soft)}.day.over{background:#cddff6;box-shadow:inset 0 0 0 2px var(--primary)}.day-head{display:flex;align-items:center;justify-content:space-between;min-height:30px;font-size:11px;margin-bottom:4px}.day.today .day-number{border-radius:50%;color:white;background:#2759ad;min-width:26px;height:26px;display:grid;place-items:center}.day-add{opacity:0;border:0;background:transparent;color:var(--muted);width:28px;height:28px}.day:hover .day-add,.day:focus-within .day-add{opacity:1}.calendar-card{display:flex;align-items:center;gap:5px;text-align:start;background:#dfe9fb;color:#25466e;border:1px solid #00000005;border-radius:8px;padding:8px;min-height:44px;margin-bottom:5px;width:100%;font-size:11px;cursor:grab;white-space:nowrap;transition:box-shadow .15s,transform .15s;overflow:hidden;touch-action:pan-y}.calendar-card b{font-weight:400;flex-shrink:0}.calendar-card span{overflow:hidden;text-overflow:ellipsis;opacity:.85}.calendar-card:hover{box-shadow:0 4px 9px -5px #16315277;transform:translateY(-1px)}.calendar-card:active{cursor:grabbing}.dragging{opacity:.45}.segmented{display:inline-flex;gap:3px;background:var(--panel);padding:3px;border:1px solid var(--edge);border-radius:12px}.segmented .btn{min-height:36px;border-color:transparent;background:transparent;padding:6px 12px;font-size:12px}.segmented .btn.active{background:var(--card);box-shadow:var(--shadow);color:var(--primary);border-color:var(--edge)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{padding:22px;border-radius:19px;background:var(--card);border:1px solid var(--edge);display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}.project-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:var(--soft);color:var(--primary)}.project-card h3{font-size:18px}.project-card .btn{flex:1}.project-stats{display:flex;gap:20px;border-block:1px solid var(--edge);padding-block:14px}.project-stats strong{font-size:19px;display:block}.list{display:grid;gap:9px}.list-item{padding:15px;border:1px solid var(--edge);background:var(--card);border-radius:12px;display:flex;align-items:center;gap:14px;text-align:start;width:100%}.list-item:hover{background:var(--soft)}.list-item .list-copy{flex:1;min-width:0}.list-copy strong{font-weight:400;display:block;overflow-wrap:anywhere}.list-copy small{display:block;margin-top:5px}.list-item>.icon{width:15px;color:var(--muted)}.empty{display:grid;justify-items:center;align-content:center;text-align:center;gap:12px;color:var(--muted);padding:55px 20px;min-height:200px}.empty>.icon{width:32px;height:32px;opacity:.5}.empty strong{font-weight:400;color:var(--ink)}.empty p{max-width:360px;font-size:12px;line-height:1.8}.table-wrap{overflow:auto;border:1px solid var(--edge);border-radius:15px}table{border-collapse:collapse;width:100%;font-size:12px;text-align:start;background:var(--card)}th{color:var(--muted);font-weight:400;background:var(--panel);white-space:nowrap}th,td{padding:14px 16px;border-bottom:1px solid var(--edge);text-align:start}tr:last-child td{border-bottom:0}td .btn{min-height:34px;padding:5px 9px;font-size:11px}td strong{font-weight:400}.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.callout{padding:14px 16px;border-radius:12px;border:1px solid var(--edge);background:var(--soft);line-height:1.9;font-size:12px;color:var(--muted)}.callout strong{color:var(--ink)}.bar-row{display:grid;grid-template-columns:95px 1fr 40px;align-items:center;gap:12px;font-size:12px;margin-block:15px}.bar-row progress{width:100%;height:9px;accent-color:#6c89c4}.subtle-link{font-size:12px}.notice{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;padding:10px 0}.error-copy{color:var(--red);padding:10px}.read-copy{white-space:pre-wrap;line-height:2.1;font-size:14px}.field{display:grid;gap:7px;min-width:0}.field>span{font-size:12px;color:var(--muted)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field.full{grid-column:1/-1}.check-list{display:flex;flex-wrap:wrap;gap:8px}.check-list label{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--edge);border-radius:10px;background:var(--card);font-size:12px;min-height:44px;cursor:pointer}.check-list label:has(input:checked){border-color:#7195c4;background:var(--soft)}details{border:1px solid var(--edge);border-radius:12px;background:var(--card)}details+details{margin-top:10px}summary{cursor:pointer;display:flex;align-items:center;gap:12px;min-height:51px;padding:13px 15px;list-style:none;font-size:13px}summary::-webkit-details-marker{display:none}summary:after{content:'⌄';margin-inline-start:auto;color:var(--muted);font-size:17px}details[open]>summary:after{transform:rotate(180deg)}.details-content{padding:0 15px 17px;display:grid;gap:15px}summary small{margin-inline-start:auto}summary small+span{margin-inline-start:0}dialog{border:1px solid var(--edge);border-radius:23px;background:var(--panel);color:var(--ink);padding:0;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-shadow:0 24px 90px #0f234444;overflow:hidden}dialog[open]{display:flex;flex-direction:column;animation:dialog-in .2s var(--ease)}dialog::backdrop{background:#182d4866;backdrop-filter:blur(5px)}.dialog-head{padding:21px 24px;border-bottom:1px solid var(--edge);display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card)}.dialog-head h2{font-size:19px;margin-top:5px}.dialog-head small{font-size:11px}.dialog-body{padding:24px;overflow:auto;overscroll-behavior:contain}.dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--edge);padding:16px 24px;background:var(--card)}.dialog-foot>.row{margin-inline-start:auto}.dialog-foot .primary{min-width:110px}.stage-row{display:flex;gap:10px;align-items:center;border:1px solid var(--edge);padding:12px;border-radius:12px;background:var(--panel)}.stage-row .stage-info{flex:1}.stage-row small{display:block;margin-top:5px}.stage-row .btn{min-height:36px;padding:6px 10px}.scene{padding:13px;border:1px solid var(--edge);border-radius:12px;display:grid;gap:10px}.scene .row{justify-content:space-between}.scene .btn{width:32px;min-height:32px;padding:4px}.history-row{border-bottom:1px solid var(--edge);padding:13px 0;line-height:1.8}.history-row p{font-size:12px;color:var(--muted)}.full-editor{min-height:360px}.note-editor{min-height:350px;line-height:2.2}.login{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;max-width:1500px;margin:auto;padding:50px;gap:70px;align-items:center}.login-story{padding:20px}.login-story .brand{justify-content:flex-end;padding:0 0 40px}.login-story h1{font-size:46px;line-height:1.5;max-width:450px;margin-bottom:18px}.login-story p{font-size:15px;line-height:2.2;color:var(--muted);max-width:430px}.login-art{display:flex;gap:12px;margin:45px 0;transform:rotate(-3deg);direction:rtl;max-width:420px}.login-art .mini{flex:1;border-radius:17px;padding:20px 13px;min-height:150px;background:#dce8fb;color:#25466e;box-shadow:var(--shadow)}.login-art .mini:nth-child(2){background:#e8def8;color:#594180;transform:translateY(20px)}.login-art .mini:nth-child(3){background:#d9eee5;color:#285f4e}.login-art .mini .icon{width:25px;height:25px}.login-art .mini strong{display:block;margin-top:35px;font-size:12px}.login-panel{padding:32px;background:var(--card);border:1px solid var(--edge);border-radius:24px;box-shadow:var(--shadow);max-width:480px;width:100%}.login-panel h2{margin-bottom:8px}.login-panel>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:24px}.login-panel form{display:grid;gap:17px}.review-accounts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.review-accounts button{text-align:start;min-height:54px;white-space:normal;justify-content:flex-start}.review-accounts small{font-size:10px}.login-panel details{margin-top:20px;border:0;background:transparent}.mobile-only{display:none}#toast{position:fixed;inset-inline-start:50%;bottom:25px;transform:translateX(50%) translateY(20px);background:#224e40;color:white;border-radius:13px;padding:12px 22px;max-width:calc(100vw - 32px);z-index:1000;opacity:0;pointer-events:none;box-shadow:var(--shadow);transition:opacity .15s,transform .15s;font-size:13px}#toast.show{opacity:1;transform:translateX(50%)}#toast.error{background:#8e3456}.inline-error{color:var(--red);font-size:12px;line-height:1.9}.portal-banner{border:1px solid var(--edge);padding:14px 18px;background:var(--soft);border-radius:14px;margin-bottom:20px;font-size:12px;color:var(--muted)}.account-role{color:var(--primary)}.split{display:flex;justify-content:space-between;gap:15px}.only-mobile-menu{position:fixed;inset:0;z-index:19;background:#0b1c3b55;border:0;display:none}.stat-foot{font-size:11px;line-height:1.9;color:var(--muted);margin-top:16px}.kanban-actions{margin-inline-start:auto}.table-count{font-variant-numeric:tabular-nums}.status-open{color:#77869b}.status-planned{color:#b64d7c}.status-active{color:#2a77ad}.status-review{color:#b57b24}.status-done{color:#368467}html[data-theme=dark] .work-card,html[data-theme=dark] .calendar-card{filter:saturate(.72) brightness(.82);color:#152f4c}html[data-theme=dark] .work-card.tone-1,html[data-theme=dark] .calendar-card.tone-1{color:#362252}html[data-theme=dark] .work-card.tone-2,html[data-theme=dark] .calendar-card.tone-2{color:#153e2d}html[data-theme=dark] .work-card.tone-3,html[data-theme=dark] .calendar-card.tone-3{color:#573611}.login-panel .review-label{font-size:11px;line-height:1.9}.draggable-hint{font-size:11px;color:var(--muted)}@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}@media(hover:none){.card-edit,.day-add{opacity:1;pointer-events:auto}.card-edit{background:#ffffff70}.work-card:hover{transform:none}}
@media(min-width:1600px){.column{flex-basis:calc((100% - 56px)/5)}}
@media(max-width:1100px){.layout{grid-template-columns:215px minmax(0,1fr)}.content{padding:24px}.topbar{padding-inline:24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{gap:10px}.metric{padding:15px}.two-col{grid-template-columns:1fr}.login{gap:25px;padding:35px}.login-story h1{font-size:37px}}
@media(max-width:760px){body{font-size:13px}.layout{display:block}.sidebar{position:fixed;width:254px;inset-inline-start:0;transform:translateX(110%);transition:transform .22s var(--ease)}.layout.nav-open .sidebar{transform:none}.layout.nav-open .only-mobile-menu{display:block}.mobile-only{display:inline-flex}.topbar{height:66px;padding-inline:16px;gap:8px}.topbar .search{display:none}.topbar .local-label{display:none}.topbar>.row{gap:4px}.crumb{font-size:11px}.content{padding:22px 16px}.page-head{margin-bottom:20px;align-items:flex-start;flex-wrap:wrap}.page-head h1{font-size:24px}.page-head .row{flex-wrap:wrap}.page-head p{font-size:12px}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.metric{padding:14px;border-radius:14px}.metric strong{font-size:25px}.metric span{font-size:11px}.metric small{font-size:9px}.toolbar{gap:8px}.toolbar .select-wrap{flex:1;min-width:140px;max-width:none}.toolbar .search{min-width:140px}.toolbar .btn{font-size:12px}.column{flex-basis:225px}.grid{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.panel{padding:16px}.field-grid{grid-template-columns:1fr}.dialog-head,.dialog-body{padding:18px}.dialog-foot{padding:13px 18px}.dialog-foot .btn{font-size:12px;padding-inline:10px}.dialog-foot>.row{width:100%;justify-content:flex-end}.login{display:block;padding:24px 18px}.login-story{padding:8px}.login-story .brand{padding-bottom:25px;justify-content:flex-end}.login-story h1{font-size:29px}.login-story p{font-size:13px}.login-art{display:none}.login-panel{margin:24px auto;padding:23px;max-width:100%}.login .local-label{margin-top:15px}.calendar-shell{margin-inline:-4px}.calendar-grid,.weekdays{grid-template-columns:repeat(7,minmax(112px,1fr));min-width:784px}.day{min-height:100px}.callout{font-size:11px}.bar-row{grid-template-columns:75px 1fr 30px}.project-card{padding:19px}.stage-row{flex-wrap:wrap}.stage-row .stage-info{min-width:150px}.calendar-title{font-size:16px}.kanban-actions{display:flex}.kanban-actions .btn{width:38px;min-height:38px}.topbar .btn{width:38px;min-height:38px}.hide-mobile{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

[hidden]{display:none!important}.profile strong{font-size:11px}.profile small{display:block;margin-top:4px;font-size:10px}.calendar-title{min-width:140px;text-align:center}
.reverse{transform:none}.reverse>.icon{transform:rotate(180deg)}.kanban-actions .btn span{display:none}.column-list{padding:3px;max-height:max(320px,calc(100dvh - 475px));overflow:auto;scrollbar-width:thin}.column{padding-bottom:8px}.board{min-height:0}.metrics .metric strong{overflow-wrap:anywhere}
.icon-btn>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.toolbar input[type=month]{width:165px;flex:none}.toolbar.between{gap:16px}.toolbar.between>.row{flex-shrink:0}.toolbar .calendar-title{padding-inline:8px}.row:has(>input[type=month]){max-width:100%}
.portrait{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--edge)}.portrait.large{width:100px;height:100px;border-radius:18px}
.work-card,.calendar-card{touch-action:auto}.segmented .btn{min-height:44px}
@media(max-width:760px){[data-page=calendar] .page-head p{display:none}[data-page=calendar] .page-head>.row>.btn span{display:none}[data-page=calendar] .page-head>.row>.btn{width:44px;padding:10px}[data-page=calendar] .toolbar{margin-bottom:14px}.calendar-card{font-size:10px}}
.avatar-control{border:0;padding:0;background:transparent;border-radius:8px;cursor:pointer;color:inherit;min-width:27px;min-height:27px}.card-meta button.pill:hover,.avatar-control:hover{box-shadow:0 0 0 2px #ffffff77}.avatar-control>.icon{width:18px;height:18px;margin:4px}
@media(hover:none){.card-meta button.pill,.avatar-control{min-height:44px;min-width:44px}}
html[data-theme=dark] .brand img{filter:brightness(0) invert(1)}
.production-spacer{margin-top:16px}.delivery-card{padding:15px;border:1px solid var(--edge);border-radius:13px;background:var(--panel);display:grid;gap:12px}.file-row{display:flex;gap:8px;align-items:center;min-width:0}.file-row.archived{opacity:.65}.file-row .btn{font-size:11px;padding:7px 9px;min-height:38px}.file-link{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--edge);border-radius:10px;background:var(--card);min-height:44px;width:100%;min-width:0;font-size:12px}.file-link span{overflow-wrap:anywhere;min-width:0;flex:1}.file-link small{white-space:nowrap;font-size:10px}.file-link .icon{width:17px}.revision-preview{border:1px solid var(--edge);padding:18px;border-radius:12px;background:var(--card);max-height:48dvh;overflow:auto}.production-spacer details[open]>summary{border-bottom:1px solid var(--edge);margin-bottom:15px}.production-spacer .callout{overflow-wrap:anywhere}
@media(max-width:760px){.file-row{flex-wrap:wrap}.file-row .file-link{flex:1;min-width:160px}.file-row .btn{min-height:44px}.delivery-card{padding:12px}.production-spacer .row{flex-wrap:wrap}.file-link small{max-width:60px}.revision-preview{max-height:42dvh;padding:14px}}

/* Account scopes and setup use the same surfaces in both themes. */
.accounts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px;align-items:start}
.account-group h2{font-size:1rem;margin:0 0 .5rem}.account-group h2 small{font-weight:400;opacity:.7}
.account-line{display:flex;align-items:center;justify-content:space-between;gap:.65rem;border-block-start:1px solid var(--edge);padding:.7rem 0}
.account-line small{display:block;margin-block-start:.3rem;color:var(--muted);overflow-wrap:anywhere}
.account-line>.row{flex-shrink:0}.account-line>div:first-child{min-width:0}
#project-grants-form [data-project-options]{max-height:min(45vh,22rem);overflow:auto}#project-grants-form label[hidden]{display:none}
@media(max-width:560px){.account-line{align-items:flex-start;flex-wrap:wrap}}
.account-tools{margin-block-start:12px}.link-receipt{max-width:28rem;margin:12vh auto;padding:1.5rem}.link-receipt strong{letter-spacing:.12em}
/* One existing portal editor, with the same controls and panels as project settings. */
.portal-section-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.portal-visibility{margin-block:20px}.portal-material-controls{display:grid;gap:10px}.portal-material-controls .row{justify-content:flex-start}.portal-material-controls small{margin-inline-start:auto}.appearance-preview-frame .client-dash{min-height:100%;padding:16px}.appearance-preview-frame .cd-grid{grid-template-columns:1fr 1fr}.appearance-preview-frame .cd-hero{padding:16px}.appearance-preview-frame .cd-metric{font-size:32px}
