/* 1.4 — On location. Navigation stays put; only the changed surface moves. */
:root{--ease-out:cubic-bezier(.22,1,.36,1);--ease-drawer:cubic-bezier(.32,.72,0,1);--motion-fast:140ms;--motion-base:220ms;--motion-sheet:300ms;--motion-route:160ms;--motion-feedback:100ms;--app-height:100dvh;--visual-top:0px;--visual-bottom:0px;--dock-height:74px;}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%;}body{overscroll-behavior:none;}
.auth-note a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.auth-recovery-status{padding:8px 0;line-height:1.8;overflow-wrap:anywhere;}.auth-recovery-status strong{font-size:18px;}.auth-recovery-status p{font-size:13px;color:var(--muted);margin:8px 0;}.auth-recovery-status>span{font-size:14px;}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent;}button,a{touch-action:manipulation;}
.btn:disabled{cursor:default;}
.content,.panel,.toast{animation:none;}.panel::backdrop{backdrop-filter:none;background:rgb(18 18 18 / .18);}
.panel-header h2{margin:0;line-height:1.35;}.panel-header .eyebrow:empty{display:none;}.panel-body{scrollbar-gutter:stable;}.sheet-handle{display:none;}.sheet-dragging{user-select:none;}
.topbar::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:30%;background:var(--ink);transform:translateX(-110%);opacity:0;pointer-events:none;}.route-loading .topbar::after{opacity:1;animation:route-progress 1s linear infinite;}@keyframes route-progress{to{transform:translateX(430%);}}
.view-skeleton{display:grid;grid-template-columns:1fr 1.5fr;gap:20px;width:100%;height:100%;padding:16px 0;}.view-skeleton>i{position:relative;display:block;background:#f5f5f5;border-radius:6px;overflow:hidden;min-height:70px;}.view-skeleton>i:first-child{grid-column:1/-1;max-height:70px;}.view-skeleton>i::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(100deg,transparent,#ffffff70,transparent);animation:skeleton-pass 1.2s linear infinite;}@keyframes skeleton-pass{to{transform:translateX(100%);}}
.tabs{flex-wrap:nowrap;overscroll-behavior-x:contain;scrollbar-width:none;}.tabs button{flex-shrink:0;}
.field input,.field select,.field textarea{transition:border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease;background:var(--surface);border-color:var(--line);}.field input:focus,.field select:focus,.field textarea:focus{box-shadow:0 0 0 2px var(--acid);border-color:var(--ink);}:focus-visible{outline:2px solid var(--ink);outline-offset:3px;}
.toast{gap:10px;align-items:center;border-radius:12px;padding:12px 12px 12px 16px;box-shadow:0 8px 28px #00000014;max-width:min(500px,calc(100vw - 24px));pointer-events:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);}.toast>span{min-width:0;overflow-wrap:anywhere;line-height:1.5;}.toast [data-dismiss]{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;opacity:.7;border-radius:50%;margin-left:3px;}.toast [data-dismiss]:hover{background:#ffffff;}
.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.more-grid button{display:grid;grid-template-columns:24px minmax(0,1fr) 14px;gap:12px;align-items:center;min-height:68px;padding:14px;background:#f5f5f5;text-align:left;border-radius:12px;font-weight:600;}.more-grid button>svg:first-child{color:#626262;}.more-grid button>svg:last-child{opacity:.4;}.more-profile{display:flex;gap:12px;align-items:center;padding:0 0 22px;}.more-profile>div{display:flex;flex-direction:column;gap:5px;min-width:0;}.more-profile strong{font-size:18px;}.more-profile small{font-size:12px;color:var(--muted);}.more-logout{margin-top:20px!important;color:var(--muted);}.more-dialog{max-width:480px;}
.mobile-home-tabs,.settings-mobile-picker,.mobile-chat-history,.project-mobile-list{display:none;}.experience-settings{max-width:650px;}.motion-options{padding:0;border:0;margin:12px 0;}.motion-options legend{font-size:13px;margin-bottom:12px;}.motion-option{display:flex;align-items:center;gap:15px;border:1px solid var(--line);padding:18px;margin-bottom:10px;border-radius:10px;cursor:pointer;}.motion-option:has(:checked){border-color:var(--ink);background:#ffffff;}.motion-option input{width:18px;height:18px;accent-color:var(--ink);}.motion-option span{display:flex;flex-direction:column;gap:6px;}.motion-option small{font-size:12px;color:var(--muted);}
@media(max-width:900px){
 .shell,.workspace{height:var(--app-height);min-height:0;}.workspace{padding-top:env(safe-area-inset-top);padding-bottom:calc(var(--dock-height) + env(safe-area-inset-bottom));grid-template-rows:54px minmax(0,1fr);}.sidebar{visibility:hidden;pointer-events:none;transform:translateX(-110%);background:var(--surface);color:var(--ink);}
 .topbar{height:54px;min-height:54px;padding:0 16px;gap:6px;border-bottom-color:transparent;background:var(--paper);}.topbar [data-menu]{display:none;}.topbar .breadcrumb .slash,.topbar .breadcrumb [data-current]{display:none;}.topbar .studio-top-name{font-size:14px;max-width:145px;font-weight:700;letter-spacing:-.025em;}.topbar .breadcrumb::before{content:"";width:23px;height:23px;background:url("/assets/mark.svg") center/contain no-repeat;margin-right:6px;flex-shrink:0;}.topbar .btn{min-height:40px;border-radius:10px;padding:9px 12px;font-size:12px;}.topbar .search-trigger{min-width:42px;height:44px;justify-content:center;padding:0;background:none;}.search-trigger kbd{display:none;}.topbar .icon-btn{width:42px;height:44px;min-width:42px;background:transparent;}
 .mobile-dock{inset:auto 0 0;isolation:isolate;height:calc(var(--dock-height) + env(safe-area-inset-bottom));padding:7px 12px calc(11px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);backdrop-filter:none;gap:3px;box-shadow:none;color:var(--muted);}.mobile-dock a,.mobile-dock button{position:relative;z-index:1;min-height:54px;max-width:none;gap:5px;font-size:10px;font-weight:600;height:54px;border-radius:15px;background:transparent;color:#626262;}.mobile-dock a.active,.mobile-dock button.active{color:var(--ink);background:none;}.mobile-dock a.active::before{display:none;}.mobile-dock a svg,.mobile-dock button svg{width:21px;height:21px;stroke-width:1.7;}.mobile-dock .dock-indicator{position:absolute;left:0;top:7px;height:54px;border-radius:15px;z-index:0;background:var(--surface);border:1px solid rgba(20,20,20,.08);box-shadow:0 2px 8px rgba(20,20,20,.07);transition:transform var(--motion-base) var(--ease-out);pointer-events:none;}.mobile-dock .dock-indicator::after{content:"";position:absolute;top:4px;left:50%;width:16px;height:2.5px;transform:translateX(-50%);border-radius:2px;background:var(--acid);}.mobile-dock a:hover,.mobile-dock button:hover{color:var(--ink);}
 .content{padding:10px 20px 12px;min-height:0;overflow:hidden;}.page-heading h1{font-size:32px;letter-spacing:-.06em;}.page-heading .eyebrow{font-size:8px;color:#626262;}.btn{min-height:40px;border-radius:9px;font-size:13px;padding:10px 13px;}.btn.small,.btn.text{min-height:40px;font-size:12px;}.icon-btn,.icon-btn.small{width:42px;height:42px;min-width:42px;border-radius:10px;}.segmented button{min-height:36px;font-size:12px;border-radius:7px;}.segmented{border-radius:10px;gap:1px;padding:3px;}.filter-select,.compact-select,.period-select select{min-height:40px;border-radius:9px;font-size:13px;}
 .field input,.field select,.field textarea,.panel .field input,.panel .field select,.panel .field textarea{font-size:16px;min-height:44px;border-radius:9px;padding:10px 12px;line-height:1.4;}.field input,.field select{height:46px;}.field{font-size:13px;gap:8px;}.field small,.form-hint{font-size:11px;line-height:1.65;}.field-row{gap:14px;}.check-line{min-height:40px;font-size:13px;line-height:1.5;}.check-line input{width:19px;height:19px;flex-shrink:0;}.tabs{gap:20px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex-shrink:0;}.tabs button{min-height:44px;font-size:13px;padding:10px 2px;}
 #toasts{bottom:calc(var(--dock-height) + env(safe-area-inset-bottom) + 10px);left:12px;right:12px;width:auto;align-items:center;pointer-events:none;}body.dialog-open #toasts{bottom:calc(env(safe-area-inset-bottom) + 16px);}.toast{font-size:13px;border-radius:12px;max-width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 8px 28px #00000014;}.toast [data-dismiss]{height:40px;width:36px;}
 .mobile-chat-history{display:inline-flex;}.agent-layout{min-height:0;height:100%;flex:1;}.chat-scroll{min-height:0;max-height:none;scroll-behavior:auto;overflow-anchor:none;}.agent-composer textarea{font-size:16px!important;line-height:1.6;min-height:66px;}.composer-footer>span{font-size:0;}.composer-footer>span::before{content:"换行直接回车";font-size:10px;}.composer-caution{font-size:10px;}.keyboard-open .mobile-dock{display:none;}.keyboard-open .workspace{padding-bottom:0;}.keyboard-open .content{padding-bottom:8px;}.keyboard-open #toasts{bottom:12px;}.keyboard-open .agent-workspace>.page-heading{display:none;}
}
@media(max-width:760px){
 .panel,.panel.panel-wide,.panel.panel-compact,.panel.job-edit-dialog,.panel.template-edit-dialog,.panel.person-editor-dialog{position:fixed;inset:auto 0 0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:100vw;margin:0!important;padding:0;height:calc(var(--app-height) - max(12px,env(safe-area-inset-top)));max-height:calc(var(--app-height) - max(12px,env(safe-area-inset-top)));border-radius:22px 22px 0 0;box-shadow:0 -14px 60px #00000026;overflow:hidden;}.panel.panel-compact{height:auto;max-height:calc(var(--app-height) - 24px);}.panel.person-editor-dialog{height:calc(var(--app-height) - 18px);}.panel-wrap{height:100%;min-height:0;max-height:inherit;}
 .sheet-handle{display:flex;align-items:center;justify-content:center;width:100%;height:28px;min-height:28px;flex-shrink:0;touch-action:none;background:transparent;}.sheet-handle span{width:36px;height:4px;border-radius:4px;background:#dedede;}.panel-header,.panel-compact .panel-header{padding:0 18px 13px;min-height:53px;gap:12px;background:var(--paper);align-items:center;touch-action:none;}.panel-header h2,.panel-compact .panel-header h2{font-family:var(--sans);font-size:21px;letter-spacing:-.03em;line-height:1.4;}.panel-header .eyebrow{display:none;}.panel-header .icon-btn{height:44px;width:44px;min-width:44px;border-radius:50%;background:#f5f5f5;flex-shrink:0;touch-action:manipulation;}
 .panel-body,.panel-compact .panel-body{padding:16px 18px calc(18px + env(safe-area-inset-bottom));min-height:0;overflow:auto;scrollbar-gutter:auto;scroll-padding-block:16px 84px;}.panel-body input,.panel-body textarea{scroll-margin-block:20px 80px;}.panel .form-actions{background:var(--paper);border-top:1px solid var(--line);padding:12px 0;margin-top:10px;gap:10px;}.panel .form-actions .btn{min-height:46px;padding-inline:18px;}.panel .form-actions>.btn.primary{flex:1;}.panel .stack>.form-actions,.person-editor-form>.form-actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));padding-bottom:calc(12px + env(safe-area-inset-bottom));z-index:4;}
 .panel.job-edit-dialog .panel-body,.panel.template-edit-dialog .panel-body{padding:0 18px env(safe-area-inset-bottom);overflow:hidden;min-height:0;display:flex;flex-direction:column;}.job-form,.template-editor{min-height:0;}.job-editor-tabs{gap:0;justify-content:stretch;border-bottom:1px solid var(--line);margin:0 0 14px;}.job-editor-tabs .tab{flex:1;justify-content:center;min-height:46px;font-size:13px;gap:7px;}.job-editor-tabs .mono{font-size:10px;}.job-editor-body{min-height:0;overflow:auto;padding:0 0 8px;scroll-padding-block:10px 30px;}.job-form>.form-actions{position:static;flex-wrap:nowrap;margin:0;padding:12px 0;flex-shrink:0;border-top:1px solid var(--line);}.job-form>.form-actions>.form-hint{display:none;}.job-form>.form-actions>.btn.primary{flex:1;}
 .shoot-editor{background:transparent;border:0;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:18px;}.shoot-editor-head{min-height:42px;margin:0 0 13px;}.shoot-editor-head .shoot-index{font-size:12px;font-weight:700;}.time-presets{gap:5px;margin:10px 0;}.time-preset{border-radius:9px;min-height:47px;font-size:13px;padding:8px 3px;}.time-preset small{font-size:9px;margin-top:3px;}
 .crew-editor-row{background:#f5f5f5;padding:12px;border:0;border-radius:12px;gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px;margin-top:10px;}.crew-editor-row input,.crew-editor-row select{font-size:16px!important;min-height:42px;border-radius:8px;max-width:100%;padding:8px;}.crew-editor-row .crew-fee-field{grid-column:1/3;grid-row:2;}.crew-editor-row [data-remove-crew]{grid-column:3;grid-row:1;width:30px;min-width:30px;}.crew-detail-row{align-items:flex-start;gap:12px;flex-wrap:wrap;}.crew-detail-row>.row:last-child{flex-wrap:wrap;gap:8px;}.person-editor-form{gap:18px;}.person-editor-form>.notice{font-size:12px;line-height:1.6;}.role-chips{gap:8px;}.role-chip span{min-height:42px;display:flex;align-items:center;padding:9px 13px;border-radius:20px;font-size:13px;}
 .detail-meta{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-bottom:15px;}.detail-meta>.row{flex-wrap:wrap;gap:8px;}.detail-meta .btn{min-height:42px;font-size:12px;padding:8px 11px;}.detail-content{font-size:14px;line-height:1.65;}.shoot-sheet{padding:16px;}.shoot-sheet h3{font-size:16px;}.shoot-sheet-time{font-size:32px;}.shoot-meta p{align-items:flex-start;line-height:1.65;}.shoot-meta svg{flex-shrink:0;}.more-dialog .panel-header{border:0;}.more-dialog .panel-body{padding-top:4px;}.quote-dialog .panel-body{overflow-x:auto;background:var(--surface);}.quote-actions{flex-wrap:wrap;gap:10px;}.keyboard-open .panel{bottom:var(--visual-bottom,0px)!important;}
}
@media(max-width:600px){
 :root{--page-pad:18px;}.content{padding:7px 18px 10px;}.page-heading{min-height:42px;margin-bottom:12px;gap:12px;}.page-heading h1{font-size:30px;}.page-heading p{font-size:11px;}.page-heading .heading-aside .btn{min-height:38px;font-size:11px;padding:8px;}.page-heading>.heading-aside a[href*="export"]{font-size:0;gap:0;width:40px;min-width:40px;}.page-heading .eyebrow{font-size:8px;letter-spacing:.05em;}
 .content>.journal{overflow:hidden;height:100%;min-height:0;display:flex;flex-direction:column;}.journal-header{min-height:43px;margin:0 0 14px;}.journal-header h1{font-size:37px;letter-spacing:-.065em;}.journal-header .eyebrow{display:none;}
 .next-take{flex-shrink:0;min-height:0;max-height:none;display:block;padding:18px 18px 14px;border-radius:16px;background:#141414;color:#ffffff;overflow:hidden;}.next-take::before,.next-take::after{display:none;}.next-take h2{grid-column:1;grid-row:2;font-size:22px;line-height:1.35;letter-spacing:-.035em;color:#ffffff;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.next-take p{grid-column:1/-1;color:#858585;opacity:1;font-size:10px;line-height:1.5;gap:5px;}.next-take p svg{width:12px;height:12px;margin-top:1px;}
 .mobile-home-tabs{display:flex;gap:23px;align-items:center;flex-shrink:0;margin:13px 0 10px;border-bottom:1px solid var(--line);}.mobile-home-tabs button{min-height:43px;position:relative;padding:6px 0 11px;font-size:13px;color:#626262;font-weight:500;}.mobile-home-tabs button.active{color:var(--ink);font-weight:750;}.mobile-home-tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink);}.mobile-home-tabs small{font:11px var(--mono);margin-left:4px;color:inherit;}
 .journal[data-home-tab=money] .delivery-notes{display:none;}.delivery-notes>.section-heading{display:none;}
 .agenda-row,.calendar-agenda .agenda-row{grid-template-columns:49px minmax(0,1fr);gap:5px 11px;align-items:start;padding:14px 0;min-height:92px;}.agenda-time{grid-row:1/3;padding-top:3px;}.agenda-time strong{font:500 17px/1.2 var(--mono);letter-spacing:-.06em;}.agenda-time small{font-size:10px;margin-top:5px;}.agenda-main{grid-column:2;min-width:0;}.agenda-kicker{font-size:9px;line-height:1.4;margin-bottom:3px;}.agenda-title{display:block;max-width:100%;font-size:15px;line-height:1.4;text-align:left;font-weight:680;padding:0;white-space:normal;overflow-wrap:anywhere;min-height:24px;}.agenda-meta{font-size:10px;margin-top:5px;gap:4px;line-height:1.5;}.agenda-side{grid-column:2;grid-row:2;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:6px;margin-top:2px;}.agenda-side .avatar{width:21px;height:21px;font-size:9px;}.agenda-side .badge{font-size:9px;padding:3px 5px;background:none;}.crew-reply{display:flex;gap:6px;}.crew-reply .btn{min-height:40px;padding:8px 13px;font-size:12px;}
 .calendar-page>.page-heading{min-height:42px;margin-bottom:8px;}.calendar-masthead h1{font-size:29px;}.calendar-masthead .eyebrow{display:none;}.calendar-masthead [data-unavailable]{font-size:11px;padding:8px;min-height:38px;gap:5px;}.calendar-person-strip{min-height:22px;padding:0 0 8px;margin:0;border:0;font-size:11px;flex-shrink:0;}.calendar-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px;min-height:0;}.calendar-controls>.spacer{display:none;}.calendar-controls .calendar-heading{min-width:0;gap:6px;grid-column:1;grid-row:1;flex:1;}.calendar-heading h2{font-size:24px;white-space:nowrap;line-height:1.1;}.calendar-heading h2 small{display:none;}.calendar-heading h2 span{font-size:11px;margin-left:3px;}.calendar-arrows{gap:1px;}.calendar-arrows .icon-btn{width:29px;min-width:29px;height:40px;}.calendar-arrows .btn{min-height:40px;padding:7px 8px;font-size:10px;}.calendar-controls .segmented{grid-column:2;grid-row:1;padding:3px;gap:0;margin:0;width:auto;justify-content:initial;}.calendar-controls .segmented button{padding:5px 8px;min-height:34px;font-size:11px;flex:none;}.calendar-controls .filter-select{grid-row:2;grid-column:1/-1;max-width:100%;width:100%;font-size:12px;min-height:38px;height:38px;}.calendar-legend{display:none;}.calendar-page [data-calendar]{flex:1;min-height:0;display:flex;overflow:hidden;}
 .mobile-calendar{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;}.mobile-date-picker{flex-shrink:0;touch-action:pan-y;user-select:none;border-bottom:1px solid var(--line);padding:0 0 9px;}.mobile-week-labels{display:grid;grid-template-columns:repeat(7,1fr);height:22px;align-items:center;text-align:center;color:#626262;font-size:10px;}.mobile-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0 4px;}.mobile-date{height:42px;min-height:42px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:11px;color:var(--ink);padding:4px 2px;font:500 14px/1 var(--mono);}.mobile-date small{height:9px;font-size:8px;line-height:9px;display:flex;align-items:center;gap:3px;}.mobile-date i{width:3px;height:3px;display:inline-block;background:#626262;border-radius:50%;}.mobile-date.outside{opacity:.32;}.mobile-date.today>span{color:var(--ink);}.mobile-date.selected{background:var(--ink);color:var(--acid);opacity:1;}.mobile-date.selected>span{color:var(--acid);}.mobile-date.selected i{background:var(--acid);}.week-picker .mobile-date{height:55px;}
 .mobile-selected-day{display:flex;flex-direction:column;flex:1;min-height:0;}.mobile-day-heading{display:flex;justify-content:space-between;align-items:center;min-height:51px;gap:10px;flex-shrink:0;}.mobile-day-heading>div{display:flex;gap:9px;align-items:center;min-width:0;}.mobile-day-heading strong{font-size:14px;}.mobile-day-heading span{font-size:10px;color:var(--muted);}.mobile-day-heading .btn{padding:8px 2px;font-size:11px;min-height:40px;}.mobile-day-events{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:2px;scrollbar-width:thin;}.mobile-day-events .agenda-row:first-child{padding-top:4px;}.mobile-day-events .empty-state{padding:14px 10px;}.mobile-day-events .empty-viewfinder{display:none;}.mobile-day-events .empty-state h3{font-size:14px;margin-top:4px;}.mobile-day-events .empty-state p{font-size:11px;}.calendar-agenda{flex:1;min-height:0;padding:0;}.calendar-agenda .agenda-day-label{font-size:12px;padding:12px 0;}
 .projects-page .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:12px;}.projects-page .toolbar .search-field{grid-column:1/-1;max-width:none;width:100%;height:44px;border-radius:10px;background:#f5f5f5;}.projects-page .toolbar .search-field input{font-size:16px;padding:8px;min-width:0;}.projects-page .toolbar .filter-select{max-width:none;width:100%;font-size:12px;}.projects-page .toolbar .spacer{display:none;}.projects-page .toolbar .segmented button{min-height:34px;}.projects-page .heading-aside{margin-left:auto;}
 .project-mobile-list{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:8px;}.mobile-project{background:var(--surface);border:1px solid #e5e5e5;border-radius:14px;flex-shrink:0;overflow:hidden;}.mobile-project-open{display:flex;flex-direction:column;gap:8px;width:100%;padding:16px;text-align:left;min-width:0;}.mobile-project-open>strong{font-size:18px;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere;}.mobile-project-overline{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);width:100%;gap:8px;}.mobile-project-overline .badge{font-size:10px;white-space:nowrap;}.mobile-project-schedule,.mobile-project-location{display:flex;align-items:center;gap:6px;font-size:12px;color:#626262;line-height:1.5;}.mobile-project-schedule small{font-size:10px;}.mobile-project-location{font-size:11px;color:var(--muted);}.mobile-project-schedule svg,.mobile-project-location svg{flex-shrink:0;}.mobile-project-bottom{display:flex;align-items:center;width:100%;gap:8px;font-size:10px;color:var(--muted);margin-top:3px;}.mobile-project-bottom>svg{margin-left:auto;}.mobile-project-bottom .avatar{width:24px;height:24px;font-size:10px;}.mobile-project-actions{display:flex;align-items:center;gap:4px;padding:3px 12px 4px 16px;border-top:1px solid #e5e5e5;background:#ffffff;}.mobile-project-actions>span{display:flex;flex:1;gap:8px;align-items:center;font:500 13px var(--mono);}.mobile-project-actions small{font:10px var(--sans);color:var(--muted);}.mobile-project-actions .btn{font-size:11px;gap:4px;min-height:40px;padding:7px;}.pagination{min-height:42px;padding-top:6px;font-size:11px;}.pagination .icon-btn{height:38px;min-width:38px;width:38px;}
 .project-board{display:flex;gap:12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;}.project-board .board-column{min-width:85%;max-width:85%;scroll-snap-align:start;}.project-card{border-radius:12px;padding:17px;}.project-card h3{font-size:17px;}.project-card p{font-size:12px;}
 .settings-page>.page-heading{margin-bottom:10px;}.settings-aside{display:none;}.settings-mobile-picker{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;flex-shrink:0;margin:0 0 16px;padding:4px 12px;background:var(--surface);border-radius:10px;font-size:11px;color:var(--muted);}.settings-mobile-picker select{font-size:14px;font-weight:650;min-height:38px;padding:5px 23px 5px 9px;max-width:78%;background:transparent;border:0;color:var(--ink);}.settings-layout{min-height:0;overflow:hidden;}.settings-main{overflow:auto;min-height:0;scroll-padding-bottom:85px;padding:0 1px;}.settings-form{gap:16px;}.settings-form h2{font-size:19px;}.settings-form .form-actions{position:sticky;bottom:0;background:var(--paper);padding:12px 0;border-top:1px solid var(--line);z-index:3;}.settings-form .form-actions .btn{width:100%;min-height:44px;}.settings-main .field-row{grid-template-columns:minmax(0,1fr);}.company-layout{grid-template-columns:minmax(0,1fr);}.brand-assets{border-left:0;padding-left:0;}
 .connection-grid{display:flex;flex-direction:column;gap:18px;}.connection-source{padding:0 0 18px;border-right:0;border-bottom:1px solid var(--line);}.connection-actions{padding-top:12px;background:var(--paper);gap:8px;}.connection-actions .btn{min-height:44px;}.connection-actions .connection-test-note{max-width:none;flex:1;font-size:10px;}.reasoning-dial{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}.reasoning-dial button{min-height:48px;font-size:12px;}.connection-scroll{padding-right:2px;}.model-results{height:160px;}.model-results button{min-height:44px;}.workflow-editor .tabs,.template-editor>.tabs{gap:20px;}.day-part-row{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:9px;}.dictionary-row{gap:6px;}.dictionary-row input{font-size:14px;padding:8px;}.dictionary-row .icon-btn{min-width:29px;width:29px;}.settings-savebar{padding-top:12px;min-height:58px;}.settings-savebar .btn{min-height:44px;}.template-meta{gap:8px;}.template-meta>.check-line{font-size:12px;}.layout-options{grid-template-columns:1fr;gap:18px;}.layout-checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.layout-checks .check-line{font-size:12px;min-height:44px;}
 .roster{grid-template-columns:1fr;gap:12px;}.person-card{padding:18px;border-radius:14px;grid-template-columns:52px minmax(0,1fr);}.person-portrait{border-radius:12px;}.person-numbers strong{font-size:16px;}.person-numbers span{font-size:10px;}.resource-row{flex-wrap:wrap;}
 .finance-page .tabs{overflow-x:auto;justify-content:flex-start;gap:20px;flex-wrap:nowrap;}.finance-page .tab{font-size:12px;flex-shrink:0;min-height:44px;}.finance-content{padding-right:1px;}.finance-overview{height:auto;min-height:0;display:flex;flex-direction:column;gap:20px;}.revenue-hero{padding:14px 0;flex-shrink:0;}.revenue-number{font-size:43px;margin:17px 0;}.revenue-aside{margin-top:15px;gap:10px;}.revenue-aside strong{font-size:14px;}.revenue-aside span{font-size:10px;}.finance-statline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:18px 0;}.finance-statline strong{font-size:22px;}.finance-statline span{font-size:10px;}.finance-chart-section{border:0;padding:0;min-height:190px;flex-shrink:0;}.finance-bottom-grid{display:flex;flex-direction:column;gap:20px;}.finance-bottom-grid>section+section{padding-left:0;border-left:0;}.finance-bottom-grid .simple-row{min-height:52px;}.finance-bottom-grid .simple-row strong{font-size:13px;}
 .agent-workspace .page-heading h1{font-size:28px;}.agent-workspace .page-heading .eyebrow{display:none;}.agent-workspace .page-heading .btn{font-size:11px;padding:8px;gap:4px;}.agent-workspace .page-heading .row{gap:6px;}.agent-status{font-size:10px;gap:6px;padding:9px 0;}.agent-model-label{min-width:0;overflow:hidden;text-overflow:ellipsis;}.agent-status [data-config]{font-size:0;min-width:34px;padding:6px;gap:0;}.agent-status [data-config] svg{width:17px;height:17px;}.agent-main{width:100%;min-width:0;flex:1;min-height:0;}.agent-welcome{padding:12px 0;gap:10px;}.agent-welcome h2{font-size:25px;line-height:1.35;}.agent-welcome p{font-size:12px;}.agent-welcome .eyebrow{display:none;}.agent-examples{display:flex;flex-direction:column;gap:6px;}.agent-examples button{padding:12px;min-height:43px;font-size:12px;border-radius:10px;}.message-body{font-size:14px;line-height:1.7;}.agent-composer{border-radius:14px;padding:12px;}.agent-composer textarea{min-height:60px;max-height:135px;font-size:16px;}.agent-composer .btn{min-height:40px;font-size:12px;}.composer-caution{font-size:9px;line-height:1.55;margin:6px 0 0;}
 .auth-main{padding:28px 22px;}.auth-main input{font-size:16px;min-height:48px;}.auth-form .btn{min-height:48px;font-size:14px;}
}
@media(max-width:370px){
 .content{padding-inline:14px;}.topbar{padding-inline:12px;}.topbar .studio-top-name{max-width:112px;font-size:13px;}.topbar .breadcrumb::before{width:21px;height:21px;margin-right:2px;}.topbar .icon-btn,.topbar .search-trigger{width:36px;min-width:36px;}.topbar [data-new]{font-size:0;width:40px;padding:10px;gap:0;}.topbar [data-new] svg{width:18px;height:18px;}.topbar [data-new]::after{display:none;}.next-take{padding:14px;}.next-take h2{font-size:20px;}.journal-header{margin-bottom:10px;}.journal-header h1{font-size:33px;}.mobile-home-tabs{margin-top:8px;margin-bottom:6px;}.calendar-heading h2{font-size:20px;}.calendar-arrows .btn{padding-inline:5px;}.calendar-arrows .icon-btn{width:25px;min-width:25px;}.calendar-controls .segmented button{padding-inline:6px;}.mobile-date{height:36px;min-height:36px;}.mobile-week-labels{height:18px;}.mobile-date-picker{padding-bottom:6px;}.mobile-day-heading{min-height:43px;}.more-grid{gap:6px;}.more-grid button{gap:7px;padding:12px 10px;font-size:13px;}
}
@media(max-width:900px) and (max-height:520px){
 /* Landscape and large zoom get real scrolling instead of shrunken controls. */
 .content{overflow:auto;}.content>.journal,.content>.page-section,.content>.agent-workspace{height:auto;min-height:100%;flex-shrink:0;overflow:visible;}.calendar-page [data-calendar]{min-height:500px;}.projects-page [data-projects]{min-height:320px;}.settings-layout{min-height:400px;}.agent-layout{min-height:340px;}.keyboard-open .content{overflow:hidden;}.keyboard-open .content>.agent-workspace{height:100%;min-height:0;flex-shrink:1;overflow:hidden;}.keyboard-open .agent-layout{min-height:0;}
}
@media print{.mobile-dock,.sheet-handle,.mobile-home-tabs,.mobile-chat-history,.settings-mobile-picker{display:none!important;}}

/* Data tables become labeled rows without omitting any value or action. */
@media(max-width:600px){
 .topbar .studio-top-name{display:block;max-width:138px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:750;letter-spacing:-.025em;}
 .shoot-editor{margin-inline:0!important;width:100%;min-width:0;}.shoot-editor-head .shoot-index{letter-spacing:0;font:600 11px var(--sans);white-space:nowrap;flex-shrink:0;}.crew-editor>.between>.eyebrow{font:500 11px var(--sans);letter-spacing:0;margin-bottom:0;}.crew-editor>.between{min-height:44px;gap:10px;}
 .projects-page .toolbar .search-field input{border:0;background:transparent;box-shadow:none;}
 .agent-welcome h2{max-width:none;width:100%;font-size:24px;text-wrap:balance;}
 .finance-page .finance-overview>.revenue-hero,.finance-page .finance-overview>.finance-statline{padding-inline:0;margin-inline:0;}.finance-page .revenue-hero{display:flex;flex-direction:column;gap:0;padding-top:0;}.finance-page .finance-overview{gap:16px;padding:0;}.finance-page .finance-statline{padding-block:16px;}.finance-page .revenue-number{font-size:42px;margin-block:12px;}.finance-page .revenue-aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 14px;}.finance-page .finance-chart-section{min-height:186px;}
 .table-wrap:has(.mobile-labeled){overflow:visible;max-width:100%;min-width:0;}
 .data-table.mobile-labeled{display:block;width:100%;min-width:0!important;border:0;}
 .data-table.mobile-labeled thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
 .data-table.mobile-labeled tbody{display:flex;flex-direction:column;gap:12px;}
 .data-table.mobile-labeled tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;min-width:0;}
 .data-table.mobile-labeled tbody td{display:block;border:0;padding:0;min-width:0;text-align:left;overflow-wrap:anywhere;white-space:normal;font-size:14px;}
 .data-table.mobile-labeled tbody td::before{content:attr(data-label);display:block;font:500 10px/1.4 var(--sans);color:var(--muted);margin-bottom:5px;}
 .data-table.mobile-labeled tbody td:first-child{grid-column:1/-1;font-size:16px;}.data-table.mobile-labeled tbody td:first-child::before{display:none;}
 .data-table.mobile-labeled tbody td small{font:11px/1.5 var(--sans);margin-top:4px;}.data-table.mobile-labeled tbody td.table-actions{grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px;display:flex;justify-content:flex-end;gap:6px;}.data-table.mobile-labeled tbody td.table-actions::before{display:none;}.data-table.mobile-labeled .table-actions .btn{min-height:42px;}
 
}
@media(max-width:600px) and (max-height:699px) and (min-height:521px){
 .journal-header{margin-bottom:8px;}.journal-header h1{font-size:30px;}.next-take h2{font-size:20px;}.mobile-home-tabs{margin-top:8px;margin-bottom:4px;}
 .calendar-page[data-calendar-view=month] [data-calendar]{overflow:auto;}.calendar-page[data-calendar-view=month] .mobile-calendar{min-height:390px;}.calendar-page[data-calendar-view=month] .mobile-date{height:32px;min-height:32px;}.calendar-page[data-calendar-view=month] .mobile-selected-day{min-height:130px;}
}
@media(max-width:900px){.panel input:not([type=checkbox]):not([type=radio]),.panel textarea,.panel select{font-size:16px!important;}}
@media(max-width:600px){
 .finance-page .finance-overview{align-items:stretch;}
 .finance-page .finance-overview>.revenue-hero,.finance-page .finance-overview>.finance-statline,.finance-page .finance-overview>.finance-bottom-grid{width:100%;min-width:0;align-self:stretch;}
 .finance-page>.toolbar{margin-bottom:14px;}
}

/* 1.5 — Working space first. Month selection is a sheet; conversation is its own viewport. */
.chat-v150 .agent-layout{min-height:0;}
.chat-v150 .agent-main{min-height:0;position:relative;}
.chat-viewport{position:relative;display:flex;flex:1;min-height:0;overflow:hidden;}
.chat-v150 .chat-scroll{width:100%;height:100%;max-height:none;min-height:0;padding:18px 14px 20px 0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;}
.chat-v150 .chat-message{max-width:900px;margin:0 auto 26px;align-items:flex-start;}
.chat-v150 .chat-message.user{max-width:85%;margin:10px 0 24px auto;flex-direction:row-reverse;}
.chat-v150 .chat-message.user .message-body{background:#f5f5f5;padding:12px 17px;border-radius:16px 4px 16px 16px;min-width:70px;}

.chat-v150 .message-body{flex:1;min-width:0;font-size:15px;line-height:1.85;overflow-wrap:anywhere;}
.message-text:empty{display:none;}.message-rich p{margin:0 0 12px;}.message-rich p:last-child{margin-bottom:0;}.message-rich h3{font-size:1.1em;margin:16px 0 8px;line-height:1.5;}.message-rich h3:first-child{margin-top:0;}
.message-rich ul,.message-rich ol{margin:8px 0 14px;padding-left:1.6em;}.message-rich li{padding-left:3px;margin:3px 0;}.message-rich code{font:12px/1.6 var(--mono);padding:2px 5px;background:#f5f5f5;border-radius:4px;}.message-rich pre{margin:12px 0;padding:14px;background:#f5f5f5;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;}.message-rich pre code{padding:0;}
.chat-phase{display:flex;align-items:center;gap:7px;min-height:26px;margin-top:5px;font:11px/1.4 var(--sans);color:var(--muted);}
.chat-phase[hidden]{display:none;}.chat-phase::before,.pi-running-dot{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ink);flex-shrink:0;animation:pi-breathe 1.3s ease-in-out infinite;}
@keyframes pi-breathe{50%{opacity:.35;}}
.tool-details{border:1px solid #e5e5e5;border-radius:10px;margin-top:10px;font-size:11px;background:#ffffff;}.tool-details summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:10px 12px;min-height:40px;color:#626262;gap:10px;}.tool-details summary::-webkit-details-marker{display:none;}.tool-details[open] summary>svg{transform:rotate(180deg);}
.tool-details [data-tools]{padding:0 10px 8px;}.tool-details .tool-receipt{margin:0;border:0;border-radius:0;background:none;padding:8px 0;font-size:11px;flex-wrap:wrap;}.tool-details .tool-receipt+.tool-receipt{border-top:1px solid var(--line);}.tool-receipt>small{width:100%;line-height:1.5;overflow-wrap:anywhere;}
.message-actions{display:flex;margin-top:4px;}.message-actions .btn{color:var(--muted);font-size:10px;min-height:30px;padding:4px 0;}.chat-message.user .message-actions{justify-content:flex-end;}
.chat-latest{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);border:0;border-radius:24px;box-shadow:0 3px 16px #00000018;min-height:40px;padding:9px 16px;white-space:nowrap;z-index:2;font-size:12px;}
.chat-earlier{display:flex;margin:0 auto 20px;min-height:40px;}
.chat-v150 .agent-composer{border:1px solid #cccccc;background:var(--surface);border-radius:16px;padding:12px 14px;margin-top:6px;box-shadow:0 3px 14px #00000006;transition:border-color var(--motion-fast) ease;}
.chat-v150 .agent-composer:focus-within{border-color:var(--ink);box-shadow:0 0 0 2px #00000016;}
.chat-v150 .agent-composer textarea{display:block;width:100%;min-height:28px;max-height:144px;height:28px;resize:none;margin:0;line-height:1.6;font-size:15px;padding:0!important;box-shadow:none!important;outline:0;border:0;background:transparent;border-radius:0;}
.chat-v150 .composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;}.chat-v150 .composer-footer>span{min-width:0;font-size:10px!important;line-height:1.4;color:var(--muted);}.chat-v150 .composer-footer>span::before{display:none;}.chat-v150 .composer-footer .row{flex-shrink:0;gap:6px;}.chat-v150 .composer-footer .btn{min-height:36px;border-radius:10px;padding:8px 11px;font-size:12px;}
.chat-v150 .composer-caution{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:3px 0 0;min-height:25px;font-size:10px;line-height:1.4;}.composer-caution button{min-height:28px;padding:2px 5px;text-decoration:underline;text-underline-offset:3px;flex-shrink:0;color:var(--muted);}
.pending-tray{display:flex;flex:0 0 auto;align-items:center;gap:9px;min-height:42px;padding:8px 12px;border-radius:10px;background:#f5f5f5;border:1px solid #e5e5e5;font-size:12px;text-align:left;}.pending-tray>span{margin-left:auto;font-size:10px;color:#626262;}.pending-tray strong{font-weight:600;}
.chat-other-run{flex-shrink:0;padding:9px;font-size:11px;line-height:1.5;color:var(--ink);background:var(--soft);border-radius:8px;}
.proposal-review .proposal-card{padding:16px;margin-bottom:16px;}.proposal-review .proposal-card h3{font-size:18px;line-height:1.5;}.proposal-review .code-block{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;}
.chat-v150 .agent-status .agent-effort-tag:empty{display:none;}
.pi-running-button{display:flex;align-items:center;gap:6px;min-height:38px;padding:6px 10px;background:var(--acid);border-radius:10px;font-size:11px;white-space:nowrap;color:var(--ink);}
.finance-overview-switch,.mobile-project-filter{display:none;}
@media(max-width:900px){
 #app[data-view=agent] .shell,#app[data-view=agent] .workspace{height:var(--app-height);min-height:0;overflow:hidden;}
 #app[data-view=agent] .workspace{grid-template-rows:54px minmax(0,1fr);}
 #app[data-view=agent] .content{height:100%;min-height:0;overflow:hidden;}
 #app[data-view=agent] .content>.agent-workspace{height:100%;min-height:0;overflow:hidden;flex:1;}
 .chat-v150 .agent-layout{display:flex;min-height:0;height:100%;gap:0;}
 .chat-v150>.page-heading{min-height:38px;flex-shrink:0;margin:0 0 5px;flex-wrap:nowrap;}.chat-v150>.page-heading>.row{width:auto;margin:0;gap:6px;}
 .chat-v150 .agent-status{margin:0;padding:0 0 4px;min-height:29px;font-size:10px;}.chat-v150 .agent-status .btn{font-size:10px;gap:4px;min-height:28px;}
 .chat-v150 .chat-scroll{padding:16px 2px 14px 0;}.chat-v150 .chat-message{gap:8px;margin-bottom:24px;}
 .chat-v150 .chat-message.user{max-width:94%;margin-bottom:24px;}.chat-v150 .chat-message.user .message-body{padding:10px 13px;font-size:14px;}
 .chat-v150 .message-body{font-size:15px;line-height:1.8;}.chat-v150 .message-actions .btn{min-height:36px;}.chat-v150 .agent-composer textarea{font-size:16px!important;min-height:28px;}.chat-v150 .agent-composer{padding:11px 12px;border-radius:15px;}
 .chat-v150 .agent-welcome{justify-content:center;padding:18px 0;gap:6px;}.chat-v150 .agent-welcome h2{font-size:26px;margin:0;line-height:1.4;}.chat-v150 .agent-welcome p{font-size:12px;margin:0 0 10px;}
 .chat-v150 .agent-examples{display:flex;flex-direction:row;gap:6px;}.chat-v150 .agent-examples button{font-size:11px;min-height:44px;padding:9px;flex:1;gap:3px;white-space:nowrap;}.chat-v150 .agent-examples button svg{display:none;}
 /* The topbar is display:none: leaving a zero first grid row collapses the chat into it. */
 .keyboard-open #app[data-view=agent] .workspace{grid-template-rows:minmax(0,1fr);padding-top:0;}.keyboard-open #app[data-view=agent] .topbar{display:none;}
 .keyboard-open .chat-v150 .agent-status{min-height:26px;}.keyboard-open .chat-v150 .composer-caution{display:none;}.keyboard-open .chat-v150 .agent-composer{margin-top:3px;}
 .keyboard-open #app[data-view=agent] .workspace{transform:none;}
 .pi-running-button{font-size:10px;min-height:36px;padding-inline:7px;background:var(--acid);color:var(--ink);}.topbar:has(.pi-running-button:not(.hidden)) .search-trigger{display:none;}
 .job-detail-dialog .panel-body{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding-bottom:0;}.job-detail-dialog .detail-meta,.job-detail-dialog .tabs{flex-shrink:0;}.job-detail-dialog .detail-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:calc(20px + env(safe-area-inset-bottom));}
 .job-detail-dialog .detail-meta{gap:7px;margin:0 0 7px;padding-bottom:6px;}.job-detail-dialog .detail-meta>.row{gap:6px;}.job-detail-dialog .detail-meta>.row:first-child{font-size:10px;}.job-detail-dialog .detail-meta .btn{font-size:11px;min-height:40px;padding:8px 10px;}
 .job-detail-dialog .panel-header h2{font-size:20px;line-height:1.4;max-height:56px;overflow:auto;}.job-detail-dialog .panel-header .eyebrow{display:none;}
}
@media(max-width:600px){
 .content>.page-section>.page-heading .eyebrow,.content>.page-section>.page-heading p{display:none;}
 .page-heading{margin-bottom:8px;flex-shrink:0;min-height:42px;}.page-heading h1{font-size:28px;}.page-heading>.row{width:auto!important;}.page-heading .btn{min-height:40px!important;}.page-heading>.btn{margin-top:0;}
 .calendar-page>.calendar-person-strip{display:none;}.calendar-page [data-calendar]{min-height:0!important;overflow:hidden!important;}
 .calendar-focus-toolbar{display:flex;align-items:center;gap:4px;padding:0 0 7px;min-height:48px;flex-shrink:0;}
 .calendar-range-nav{display:flex;align-items:center;gap:0;min-width:0;margin-right:auto;}.calendar-range-nav .icon-btn{min-width:27px;width:27px;height:42px;}
 .calendar-month-trigger{display:flex;align-items:center;gap:4px;min-height:44px;min-width:0;font-size:16px;font-weight:700;padding:5px 6px;white-space:nowrap;}.calendar-month-trigger small{font:10px var(--mono);color:var(--muted);}
 .calendar-focus-toolbar>.btn{font-size:11px;min-height:40px;padding:7px;gap:4px;}.calendar-focus-toolbar>.btn.icon-only{width:36px;min-width:36px;}.calendar-focus-toolbar .active{background:var(--ink);color:var(--acid);}
 .calendar-page .mobile-calendar{min-height:0!important;height:100%;flex:1;overflow:hidden;}
 .calendar-focus .mobile-date-picker{padding-bottom:10px;border-color:#e5e5e5;}
 .calendar-focus .mobile-date-grid{gap:4px;}.calendar-focus .mobile-date{height:68px!important;min-height:60px!important;gap:6px;border-radius:13px;background:var(--surface);color:var(--muted);font-size:20px;}
 .calendar-focus .mobile-date em{font:500 10px var(--sans);opacity:.85;}.calendar-focus .mobile-date small{font-size:9px;height:10px;line-height:10px;min-height:10px;}
 .calendar-focus .mobile-date.selected{background:var(--ink);color:var(--acid);}.calendar-focus .mobile-date.selected em{color:var(--paper);}
 .calendar-focus .mobile-selected-day{flex:1;min-height:0!important;overflow:hidden;}.calendar-focus .mobile-day-heading{min-height:58px;}.calendar-focus .mobile-day-heading strong{font-size:19px;font-weight:700;letter-spacing:-.035em;}.calendar-focus .mobile-day-heading span{font-size:11px;}.calendar-focus .mobile-day-heading .btn{font-size:12px;min-height:44px;padding-inline:7px;}
 .calendar-focus .mobile-day-events{flex:1;min-height:0;overflow:auto;scroll-padding-bottom:12px;}.calendar-focus .agenda-row{min-height:114px;padding:17px 0;gap:6px 12px;}.calendar-focus .agenda-time{padding-top:4px;}.calendar-focus .agenda-time strong{font-size:18px;}.calendar-focus .agenda-title{font-size:17px;min-height:28px;line-height:1.45;}.calendar-focus .agenda-meta{font-size:12px;}.calendar-focus .agenda-kicker{font-size:10px;}.calendar-focus .agenda-side .badge{font-size:10px;}
 .calendar-date-dialog{height:auto!important;max-height:calc(var(--app-height) - 20px)!important;}.calendar-date-dialog .panel-body{overflow:auto;padding-top:0;}.calendar-date-dialog .mobile-date{height:51px;min-height:48px;font-size:18px;gap:7px;}.calendar-date-dialog .mobile-week-labels{height:35px;font-size:11px;}.calendar-date-dialog .mobile-date-grid{gap:3px;}.calendar-date-dialog [data-picker-grid]{min-height:200px;}.calendar-date-dialog .form-hint{margin:0;text-align:center;}
 .date-picker-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:8px;}.date-picker-toolbar .field{min-width:0;flex:1;}.date-picker-toolbar input{width:100%;text-align:center;font-size:16px;}.calendar-date-dialog [data-picker-today]{display:flex;margin:10px auto 0;min-height:44px;}
 .journal-header{margin-bottom:10px;}.next-take{padding:14px 16px 14px;}
 
 .journal[data-hero-collapsed=true] .next-take{padding:14px 16px;min-height:103px;}
 
 .journal[data-hero-collapsed=true] .next-take p{display:none;}
 .journal[data-hero-collapsed=true] .next-take h2{font-size:17px;line-height:1.5;grid-row:2;margin:0;align-self:center;-webkit-line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
 .journal:not([data-home-tab=agenda]) .next-take{display:none;}.journal:not([data-home-tab=agenda]) .mobile-home-tabs{margin-top:0;}.mobile-home-tabs{margin-block:8px;}
 .projects-page .toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:9px;}.projects-page .toolbar>.search-field{grid-column:1;}.projects-page .toolbar>.filter-select,.projects-page .toolbar>.segmented{display:none;}.projects-page .mobile-project-filter{display:flex;grid-column:2;min-height:44px;}.mobile-project-filter.active{background:var(--ink);color:var(--acid);}.projects-page [data-projects]{overflow:auto;overscroll-behavior:contain;}.project-mobile-list{overflow:visible;flex:none;min-height:auto;}.mobile-project{border-radius:12px;}.mobile-project-open{padding:13px 14px;gap:6px;}.mobile-project-open>strong{font-size:17px;}.mobile-project-actions{padding-left:14px;}
 .settings-mobile-picker{margin-bottom:8px;min-height:44px;background:var(--surface);}.settings-main:has(.pi-settings){display:flex;flex-direction:column;overflow:hidden;min-height:0;}.settings-main .pi-settings{flex:1;min-height:0;height:100%;}
 .team-page>.toolbar,.resource-page>.toolbar{flex-wrap:wrap;gap:6px;min-height:44px;margin-bottom:10px;}.team-page .search-field,.resource-page .search-field{flex:1;min-width:140px;max-width:none;}.team-page>.toolbar>.muted,.resource-page>.toolbar>.muted{font-size:10px;}.team-page>.toolbar [data-members]{font-size:11px;padding:5px 0;}.team-page>.quiet-footer{font-size:10px;line-height:1.6;padding-top:7px;min-height:0;}
 .team-page [data-roster],.resource-page [data-list],.availability-page .availability-list{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;}.team-page .roster{overflow:visible;}.team-page .person-card{padding:15px;}.resource-page .resource-row{padding:15px 0;}
 .finance-page>.toolbar{margin-bottom:8px;gap:4px;}.finance-page .period-select select{font-size:12px;min-height:36px;}.finance-page .tabs button{min-height:42px;}.finance-content{scroll-padding-bottom:15px;}
 .finance-page .finance-overview{gap:14px;min-height:0;height:auto;}.finance-overview-switch{display:flex;gap:4px;min-height:40px;flex-shrink:0;padding:3px;border-radius:10px;background:#f5f5f5;align-self:flex-start;margin-bottom:0;position:sticky;top:0;z-index:1;}
 .finance-overview-switch button{font-size:12px;min-height:34px;padding:6px 22px;border-radius:8px;}.finance-overview-switch button.active{background:var(--ink);color:var(--paper);}
 .finance-page .revenue-hero{padding-block:0!important;}.finance-page .revenue-number{font-size:38px;margin:8px 0;}.finance-page .revenue-hero .eyebrow{display:none;}.finance-page .revenue-hero h2{font-size:13px;}.finance-page .revenue-aside{padding-bottom:10px;gap:12px;margin-top:10px;}.finance-page .revenue-aside strong{font-size:15px;}.finance-page .finance-statline{gap:14px;padding-block:12px;}.finance-page .finance-statline strong{font-size:21px;}
 .finance-overview[data-overview-panel=summary] .finance-chart-section,.finance-overview[data-overview-panel=summary] .finance-bottom-grid>section+section{display:none;}
 .finance-overview[data-overview-panel=trend] .revenue-hero,.finance-overview[data-overview-panel=trend] .finance-bottom-grid{display:none;}
 .finance-overview[data-overview-panel=clients] .revenue-hero,.finance-overview[data-overview-panel=clients] .finance-chart-section,.finance-overview[data-overview-panel=clients] .finance-statline,.finance-overview[data-overview-panel=clients] .finance-bottom-grid>section:first-child{display:none;}
 .finance-page .finance-bottom-grid{gap:0;}.finance-page .finance-bottom-grid .section-heading{margin-bottom:3px;}.finance-page .finance-bottom-grid p{font-size:10px;}.finance-page .finance-chart-section{min-height:235px;}
 
 .job-detail-dialog .detail-meta{flex-direction:column;align-items:stretch;}.job-detail-dialog .detail-meta>.row:last-child{flex-wrap:nowrap;gap:5px;overflow-x:auto;}.job-detail-dialog .detail-meta .btn{flex-shrink:0;}.job-detail-dialog .detail-content{padding-top:14px;}
 .chat-v150 .page-heading h1{font-size:26px;}.chat-v150 .composer-footer>span{max-width:175px;}.chat-v150 .agent-composer textarea{font-size:16px!important;}.chat-v150 .composer-caution{font-size:9px;}
}
@media(max-width:370px){
 .calendar-month-trigger small{display:none;}.calendar-range-nav .icon-btn{min-width:25px;width:25px;}.calendar-focus-toolbar{gap:1px;}.calendar-month-trigger{padding-inline:4px;font-size:16px;}.calendar-focus-toolbar>.btn{padding-inline:6px;}.calendar-focus .mobile-date-grid{gap:3px;}.calendar-focus .mobile-date{font-size:18px;background:var(--surface);color:var(--muted);}.calendar-focus .mobile-day-heading strong{font-size:17px;}.calendar-focus .agenda-title{font-size:16px;}
 .chat-v150 .agent-examples button{font-size:10px;padding:7px;}.chat-v150 .composer-footer>span{max-width:130px;}.chat-v150 .composer-caution>span{font-size:9px;}.pi-running-button{font-size:0;gap:0;min-width:24px;background:var(--acid);color:var(--ink);}.topbar:has(.pi-running-button:not(.hidden)) .studio-top-name{max-width:95px;}
}
@media(max-width:600px) and (max-height:700px){
 .calendar-focus .mobile-date{height:59px!important;min-height:55px!important;background:var(--surface);color:var(--muted);}.calendar-focus .mobile-day-heading{min-height:50px;}.calendar-focus .agenda-row{min-height:105px;padding-block:13px;}.calendar-page>.page-heading{margin-bottom:4px;}.calendar-focus-toolbar{padding-bottom:4px;min-height:44px;}
 .chat-v150 .agent-welcome{padding:10px 0;}.chat-v150 .agent-welcome h2{font-size:23px;}
}
@media(max-width:600px) and (max-height:520px){
 #app[data-view=calendar] .workspace{height:var(--app-height);min-height:0;overflow:hidden;grid-template-rows:44px minmax(0,1fr);--dock-height:58px;}
 #app[data-view=calendar] .topbar{height:44px;min-height:44px;}#app[data-view=calendar] .content{height:100%;min-height:0;overflow:hidden;}#app[data-view=calendar] .calendar-page{height:100%;min-height:0;overflow:hidden;}
 .calendar-page>.page-heading{display:none;}.calendar-focus .mobile-date{height:49px!important;min-height:49px!important;gap:3px;background:var(--surface);color:var(--muted);}.calendar-focus .mobile-day-heading{min-height:44px;}
}

.calendar-range-nav .prev>svg,.date-picker-toolbar .prev>svg{transform:rotate(180deg);}



@media(max-width:600px) and (max-height:700px){.calendar-page>.page-heading{display:none;}}
@media(max-width:600px){
 .finance-page>.page-heading .heading-aside{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:6px;max-width:none;}
 .finance-page>.page-heading .heading-aside a{font-size:0;min-width:40px;width:40px;padding:0;justify-content:center;}
 .finance-page>.page-heading .heading-aside .btn{min-height:40px;margin:0;}
}
/* Older conversation styles included separator padding. Do not stack it with message spacing. */
.chat-v150 .chat-message{padding:0;border:0;}
.chat-v150 .message-actions{margin-top:5px;}

/* Shared feedback never replaces transforms used for positioning. */
html :is(button,a,summary,[role=button],.project-card,.role-chip span){
 --press-scale:.98;
 transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,border-color var(--motion-fast) ease,opacity var(--motion-fast) ease,scale var(--motion-fast) var(--ease-out);
}

html[data-input=pointer]:not([data-motion=reduce]) :is(button,a,summary,[role=button],.project-card):active:not(:disabled):not([aria-disabled=true]){
 scale:var(--press-scale,.98);
 transition-duration:80ms;
}
html :is(button,a,summary,[role=button],.project-card):focus-visible{outline:2px solid var(--ink);outline-offset:3px;}

html :is(.project-entry,.directory-person,.asset-entry,.data-table tbody tr){transition:background-color var(--motion-fast) ease,border-color var(--motion-fast) ease;}
@media(hover:hover) and (pointer:fine){

 html .project-card:hover{border-color:#b8b8b8;}
 html .toast [data-dismiss]:hover{background-color:var(--soft);opacity:1;}
}

/* Keep the original label and box while the request is pending. */
html .is-busy{position:relative;color:transparent!important;opacity:1!important;cursor:progress;text-shadow:none!important;}
html .is-busy>*{opacity:0!important;}
html .is-busy::after{
 content:"";
 position:absolute;
 top:50%;left:50%;
 width:14px;height:14px;margin:-7px 0 0 -7px;
 color:var(--ink);
 border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;
 opacity:1;
 pointer-events:none;
 animation:ui-spin .7s linear infinite;
}
@keyframes ui-spin{to{transform:rotate(360deg);}}

html :is(.composer-toggle>svg:last-child,.tool-details summary>svg,.client-collection>summary>svg,.person-kit-fold summary>svg:last-child,.person-month-group>summary>svg,.next-take-toggle>svg){
 transform-origin:center;
 transition:transform var(--motion-fast) var(--ease-out);
}
.mobile-dock .dock-indicator[data-instant]{transition:none;}
html[data-input=keyboard] *,html[data-input=keyboard] *::before,html[data-input=keyboard] *::after{transition-property:background-color,color,border-color,opacity!important;}
html[data-input=keyboard] :is(button,a,summary,[role=button],.project-card){scale:1!important;}

/* Device preference wins; reduced motion keeps color and opacity feedback.
   Keep the duration at low specificity so components can choose no transition.
   Stronger property and animation rules still suppress spatial motion. */
@media(prefers-reduced-motion:reduce){
 html:not([data-motion=full]),html:not([data-motion=full]) *,html:not([data-motion=full]) *::before,html:not([data-motion=full]) *::after{
  animation:none!important;
  transition-property:background-color,color,border-color,opacity!important;
  transition-delay:0ms!important;
  scroll-behavior:auto!important;
 }
 :where(html:not([data-motion=full]),html:not([data-motion=full]) *),:where(html:not([data-motion=full]) *)::before,:where(html:not([data-motion=full]) *)::after{
  transition-duration:var(--motion-feedback)!important;
 }
 html:not([data-motion=full]) :is(button,a,summary,[role=button],.project-card){scale:1!important;}
 html:not([data-motion=full]) .route-loading .topbar::after{width:100%;transform:none;opacity:.4;}
}
html[data-motion=reduce],html[data-motion=reduce] *,html[data-motion=reduce] *::before,html[data-motion=reduce] *::after{
 animation:none!important;
 transition-property:background-color,color,border-color,opacity!important;
 transition-delay:0ms!important;
 scroll-behavior:auto!important;
}
:where(html[data-motion=reduce],html[data-motion=reduce] *),:where(html[data-motion=reduce] *)::before,:where(html[data-motion=reduce] *)::after{
 transition-duration:var(--motion-feedback)!important;
}
html[data-motion=reduce] :is(button,a,summary,[role=button],.project-card){scale:1!important;}
html[data-motion=reduce] .route-loading .topbar::after{width:100%;transform:none;opacity:.4;}
@media print{
 *,*::before,*::after{animation:none!important;transition:none!important;scale:1!important;}
}
