:root{--bg:#f5f6f3;--ink:#25342d;--muted:#788279;--green:#315942;--line:#e0e5df;--paper:#fff;--soft:#edf2eb}*{box-sizing:border-box}body{margin:0;font:14px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:9px;padding:9px 14px;transition:background .15s,transform .15s}button:hover{background:#edf2eb}button:disabled{opacity:.45;cursor:wait}input:not([type=checkbox]),select,textarea{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 12px;min-width:0;max-width:100%}input[type=checkbox]{accent-color:var(--green);margin-right:7px}textarea{resize:vertical;width:100%}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #a6bca3;outline-offset:2px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:20px;margin:3px 0 0}h2{font-size:28px;line-height:1.45;letter-spacing:-.8px;margin:10px 0}h3{font-size:15px;margin:0 0 12px}a{color:var(--green)}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.7}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.8px;color:#7d8a7c}.sidebar{width:214px;position:fixed;inset:0 auto 0 0;background:#203a30;color:#c4d0c7;padding:28px 17px;display:flex;flex-direction:column}.brand{color:#f3f5ef;display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:650;font-size:14px;line-height:1.4}.brand-icon{display:grid;place-items:center;background:#d7e8b6;color:#254536;width:34px;height:36px;border-radius:11px;font-size:23px}.brand small{display:block;color:#99afa1;font-size:10px;font-weight:400;margin-top:3px}.sidebar button{color:inherit;background:transparent;border:none;text-align:left}.sidebar .new-chat{background:#385246;color:white;text-align:center;margin:28px 0 26px;border:1px solid #53665a}.nav-label{color:#7e9887;font-size:9px;letter-spacing:1.8px;padding:0 12px;margin-bottom:8px}.sidebar nav{display:flex;flex-direction:column;gap:4px;margin-bottom:26px}.sidebar nav button{padding:10px 12px;border-radius:8px}.sidebar nav span{font-size:18px;display:inline-block;width:30px;vertical-align:middle}.sidebar nav button.active{background:#e6eddf;color:#203c2c;font-weight:600}.sidebar nav button:hover{background:#395448;color:white}.sidebar-bottom{margin-top:auto;padding-top:20px}.sidebar-bottom button{padding-left:12px}.sidebar-bottom p{font-size:11px;color:#90aa98;margin:15px 12px 0}.dot{display:inline-block;width:6px;height:6px;background:#8ba979;border-radius:50%;margin-right:7px}.sessions{overflow:auto;max-height:24vh}.sessions button{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;padding:6px 12px}.shell{margin-left:214px}.topbar{height:102px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:20px 34px;background:#fafbf8}.model-wrap{display:flex;gap:8px;align-items:center}.model-wrap select{font-size:12px;max-width:190px;background:#f0f3ee}.connection{font-size:11px;color:#7b877b}.icon-button{padding:7px 10px;background:transparent}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;min-height:calc(100vh - 102px)}main{min-width:0;padding:30px 34px 0}.view{min-height:400px;padding-bottom:24px}.inspector{border-left:1px solid var(--line);background:#fafbf8;padding:26px 20px}.inspector-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.inspector-head h3{margin:0;font-size:13px}.inspector-head>span{font-size:10px;color:var(--muted)}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #c2cfc0;border-radius:12px;background:#f0f4ed;min-height:119px;cursor:pointer;transition:background .2s}.dropzone:hover,.dropzone.drag{background:#e2eadb}.dropzone strong{font-size:13px;color:#456343}.dropzone span{font-size:11px;color:#7c8979;margin-top:6px}.dropzone small{font-size:10px;color:#95a08d;margin-top:5px}.empty-small{color:#a0a89d;font-size:11px;text-align:center;padding:25px 0}.activity-title{border-top:1px solid var(--line);padding-top:23px;margin-top:28px}#activity{list-style:none;padding:0;max-height:330px;overflow:auto;font-size:11px;color:#748270}#activity li{position:relative;padding:0 0 18px 17px;border-left:1px solid #d7e0d1;margin-left:3px}#activity li:before{content:'';position:absolute;top:6px;left:-3px;width:5px;height:5px;border-radius:50%;background:#a5b597}#activity li:last-child{color:#345b35}#activity small{display:block;color:#9aa592;font-size:9px}.local-note{margin-top:30px;display:flex;font-size:11px;color:#7a8974}.local-note .dot{margin-top:6px;flex:none}.local-note small{font-size:10px;color:#a0aa99}.hero{position:relative;background:#e8eee0;border:1px solid #e0e7d9;padding:32px;border-radius:16px;overflow:hidden;min-height:290px}.hero h2{font-size:31px;line-height:1.5;max-width:380px}.hero p{font-size:12px;color:#7d8976;position:relative;z-index:1}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#254a34;color:white}.hero button{font-size:12px;position:relative;z-index:1;margin-top:6px}.hero-art{position:absolute;right:15px;top:65px;width:160px;height:180px}.art-sheet{position:absolute;transform:rotate(9deg);background:#f9fbf4;border:1px solid #d2dcc4;border-radius:10px;width:128px;height:152px;left:12px;padding:18px;box-shadow:0 10px 26px #78886317;z-index:1}.art-sheet span{font-size:6px;letter-spacing:1px;color:#a2ad98}.art-sheet div{height:5px;border-radius:5px;background:#dce4d2;margin:12px 0}.art-sheet .short{width:60%}.art-sheet b{font-size:8px;font-weight:500;color:#526e41}.art-ring{position:absolute;top:49px;left:30px;border:18px solid #d4dfc5;width:147px;height:147px;border-radius:50%;opacity:.65}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding:23px 0;margin-bottom:25px}.stats>div{padding:0 22px;border-right:1px solid var(--line)}.stats>div:first-child{padding-left:0}.stats>div:last-child{border:0}.stats span{display:block;color:#8a9584;font-size:11px}.stats strong{font-size:27px;font-weight:550;line-height:1.8}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 14px}.section-head h3{margin:0}.section-head>span{font-size:10px;color:#929c8c}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick{text-align:left;padding:20px;border-radius:12px;min-width:0}.quick-icon{display:block;font-size:24px;color:#637b50;margin-bottom:10px}.quick strong{font-size:13px}.quick p{font-size:11px;color:#8d9687;margin:6px 0 15px}.quick em{font-size:10px;font-style:normal;color:#6d825b}.notice{padding:17px 0;color:#8b9586;font-size:11px}.panel{background:white;padding:23px;border:1px solid var(--line);border-radius:13px;margin:20px 0}.panel>label{display:block;margin:14px 0}.panel>label>textarea,.panel>label>input{margin-top:7px}.panel input:not([type=checkbox]),.panel select{width:100%}.panel button.primary{margin-top:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 20px}.form-grid label{font-size:12px;color:#65755f}.form-grid select,.form-grid input{display:block;margin-top:6px}.row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.gap{gap:10px;justify-content:flex-start}.search-row{display:flex;gap:8px;margin:18px 0}.search-row input,.search-row select{flex:1;min-width:0}.text-button{border:0;background:transparent;color:#698058;font-size:12px;padding:0}.composer-wrap{position:sticky;bottom:0;background:linear-gradient(#f5f6f3ee,var(--bg) 20%);padding:16px 0 12px;z-index:3}.composer-options{display:flex;gap:16px;align-items:center;margin-bottom:9px;font-size:11px;color:#7b8873}.composer-options>span{margin-left:auto;font-size:10px}.composer{display:flex;gap:12px;border:1px solid #d4ddd0;border-radius:13px;background:white;padding:12px;align-items:flex-end;box-shadow:0 3px 10px #2c462609}.composer textarea{border:0;resize:none;background:transparent;flex:1;padding:5px;min-width:0;max-height:200px}.composer button{white-space:nowrap;font-size:12px}.composer-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#9ba391;margin-top:7px}#status{max-width:70%;text-align:right;color:#72856a}#web-settings input{width:100%}#web-settings p{margin:4px 0 8px}.empty{padding:60px 0;text-align:center;color:#8b9881}.large-mark{font-size:60px;color:#8ca276}.empty h2{font-size:24px}.message{padding:20px 0;border-bottom:1px solid var(--line)}.message.user{background:#eaf0e3;border:0;padding:14px 18px;margin:15px 0 10px 10%;border-radius:13px}.message-label{font-size:10px;font-weight:700;color:#749164;letter-spacing:.4px;margin-bottom:8px}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:14px}.message-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.message-actions button{font-size:10px;padding:4px 8px;color:#7a8970;background:transparent}.sources{font-size:11px;margin:14px 0}.sources a{display:block;overflow-wrap:anywhere;margin:4px 0}.source-ref{padding:8px 10px;background:#eef2e9;border-radius:7px;margin:5px 0;font-size:11px}.file-card{background:white;border:1px solid var(--line);border-radius:9px;padding:12px;margin:9px 0}.file-card strong{display:block;font-size:11px;overflow-wrap:anywhere}.file-card small{font-size:10px;color:#99a08f}.file-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.file-actions button{padding:3px 6px;font-size:9px;color:#7c8b6f}.file-warning{font-size:10px;color:#9d956e;margin-top:8px}.library-card,.task-card,.result-card{background:white;border:1px solid var(--line);border-radius:11px;padding:16px;margin:10px 0}.library-card strong{display:block;font-size:13px}.library-card small{color:#919b87;font-size:11px}.result-card p{font-size:12px;white-space:pre-wrap}.task-card{display:flex;align-items:center;gap:13px}.task-card>div{flex:1}.task-card strong{display:block;font-size:13px}.task-card small{font-size:11px;color:#8d9981}.task-card.overdue{border-left:3px solid #bc8363}.task-card select{font-size:11px;padding:6px}.badge{display:inline-block;font-size:10px;color:#6a8258;background:#eef3e7;padding:2px 7px;border-radius:8px}.transcript{max-height:330px;overflow:auto;border-top:1px solid var(--line);padding-top:15px;color:#6f7d66;font-size:12px;white-space:pre-wrap;margin-top:15px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}td,th{border-bottom:1px solid var(--line);padding:8px;text-align:left;white-space:nowrap}th{color:#6e8064;background:#f2f5ee}.chart{display:flex;align-items:flex-end;gap:4px;height:150px;border-bottom:1px solid var(--line);padding:10px 0;margin-top:15px}.bar{background:#8ca873;min-width:3px;flex:1;border-radius:3px 3px 0 0}.bar.negative{background:#b59f7e}dialog{border:1px solid var(--line);border-radius:14px;width:min(820px,90vw);max-height:85vh;padding:25px}dialog::backdrop{background:#152b2666}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 inherit;max-height:60vh;overflow:auto}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#273f31;color:white;padding:12px 20px;border-radius:10px;z-index:20;max-width:85vw;box-shadow:0 5px 25px #0002;font-size:12px}#live-badge.active{color:#4f7435;background:#e4edd8;padding:2px 7px;border-radius:10px}.error{color:#a46648!important}#record-status{font-size:12px}.data-result>p{font-size:12px}
@media(min-width:1450px){main{padding:38px 55px 0}.hero-art{right:40px;width:200px}.hero{padding:38px}.hero h2{font-size:36px}}@media(max-width:1180px){.sidebar{width:185px;padding:24px 12px}.shell{margin-left:185px}.workspace{grid-template-columns:minmax(0,1fr) 248px}main{padding:25px 24px 0}.inspector{padding:23px 15px}.hero-art{display:none}.hero h2{font-size:29px}.connection{display:none}.topbar{padding:20px 24px}.section-head>span{display:none}}@media(max-width:930px){.workspace{grid-template-columns:1fr}.inspector{border-left:0;border-top:1px solid var(--line);padding:25px;display:block}.hero-art{display:block}.inspector .dropzone{min-height:85px}#documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.activity-title{margin-top:15px}.inspector{order:0}main{order:1}.inspector #activity,.local-note{display:none}.inspector .activity-title{margin:10px 0 0;padding:10px 0 0}.inspector #empty-documents{display:none}.inspector .hint{margin-bottom:0}.inspector .dropzone span,.inspector .dropzone small{display:none}.inspector .dropzone{min-height:46px}.inspector-head{margin-bottom:10px}}@media(max-width:620px){.sidebar{position:static;width:100%;padding:14px 15px}.brand small,.sidebar .nav-label,.sessions,.sidebar-bottom,.new-chat{display:none}.sidebar nav{flex-direction:row;overflow:auto;margin:14px 0 0;gap:2px}.sidebar nav button{flex:none;font-size:11px;padding:7px 10px}.sidebar nav span{display:none}.brand{font-size:13px}.brand-icon{width:28px;height:29px;font-size:19px}.shell{margin:0}.topbar{height:79px;padding:14px 18px}.topbar .eyebrow{font-size:8px}h1{font-size:17px}.model-wrap select{max-width:143px;padding:7px;font-size:10px}.icon-button{display:none}.workspace{min-height:0}main{padding:22px 18px 0}.hero{padding:24px}.hero-art{display:none}.hero h2{font-size:29px}.hero p br{display:none}.hero p{max-width:290px}.stats span{font-size:10px}.stats>div{padding:0 15px}.stats strong{font-size:24px}.quick{padding:15px}.quick p{line-height:1.8}.quick strong{font-size:12px}.quick-grid{gap:9px}.composer{gap:7px;padding:8px}.composer button{padding:9px;font-size:11px}.composer textarea{font-size:13px}.composer-footer{font-size:9px}.form-grid{grid-template-columns:1fr}.search-row{flex-wrap:wrap}.search-row button{flex:none}.panel{padding:18px}.task-card{flex-wrap:wrap}.inspector{padding:14px 18px}#documents{grid-template-columns:1fr}.file-card{margin:0}.inspector .hint{font-size:10px}.view{min-height:250px}.composer-options{gap:10px;font-size:10px}.composer-options>span{display:none}}

button.dropzone{width:100%;padding:15px}
@media(max-width:930px){.inspector #activity{display:block;max-height:100px;margin-bottom:0}.inspector #activity li{padding-bottom:8px}}
.message-body.formatted{white-space:normal}.message-body.formatted p{margin:10px 0}.message-body.formatted h3{font-size:16px;margin:18px 0 8px}.message-body.formatted h4{font-size:14px;margin:15px 0 7px}.message-body.formatted pre{overflow:auto;background:#edf1e8;padding:14px;border-radius:8px;font-size:12px;white-space:pre}.message-body.formatted code{font-family:ui-monospace,monospace;background:#edf1e8;padding:1px 4px;border-radius:4px}.message-body.formatted pre code{padding:0}.message-body.formatted ul,.message-body.formatted ol{padding-left:23px}

.export-controls{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}.export-controls select{font:inherit;border:1px solid var(--line,#ccd8cf);border-radius:6px;padding:5px;background:white;color:#254d3c;max-width:170px}



.artifact-download{display:inline-block;margin:16px 0;padding:12px 18px;background:#254d3c;color:white;border-radius:9px;text-decoration:none}.composer-options{flex-wrap:wrap}

.composer-options .knowledge-auto{margin-left:0;color:#426640;background:#e8efdf;padding:3px 7px;border-radius:6px;display:inline-block}
/* dklaps AI Workspace official CI: green accent, deep charcoal, white space. */
:root{--green:#165DDE;--bg:#f4f6f8;--line:#dce3e8;--muted:#687584;color:#202f3b}
body{background:#f4f6f8;color:#202f3b}.sidebar{background:#182e32;border-right:0}.brand{display:flex;flex-direction:column;align-items:flex-start;color:white;gap:8px}.shinhands-logo{width:100px;height:50px;object-fit:contain}.brand small{color:#9bb6b6}.sidebar .nav-label{color:#85a8a6}.sidebar nav button,.sidebar-bottom button,.sessions button{color:#c4d5d4}.sidebar nav button.active{background:#165DDE;color:white}.sidebar nav button:hover,.sessions button:hover{background:#244344;color:white}.sidebar .new-chat{background:white;color:#007d50;border:none}.sidebar-bottom p{color:#9db8b6}.topbar{background:white;border-bottom:3px solid #165DDE}.eyebrow{color:#008b5b;letter-spacing:2px}.hero{background:linear-gradient(120deg,#103936,#176353);border:0;border-radius:8px;min-height:310px}.hero h2{color:white;font-size:32px;max-width:540px;letter-spacing:-1.5px}.hero p,.hero .eyebrow{color:#d4e9e1}.hero button{background:white;color:#1246A1;border:0}.hero-art{opacity:.5;right:8px;top:120px}.primary{background:#165DDE;border-color:#165DDE}.primary:hover{background:#1246A1}.panel,.quick{border-radius:8px;box-shadow:0 3px 15px #18383605}.quick-icon{color:#165DDE}.message.user{background:#e6f4ee}.message-label{color:#008755}.inspector{background:#fff}.dropzone{background:#f0f8f5;border-color:#99cdb8}.dropzone strong{color:#008751}.knowledge-auto{color:#008754!important}.artifact-download{background:#165DDE}.local-note .dot,.sidebar-bottom .dot{background:#00b978}
.calendar-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 16px}.calendar-toolbar input{max-width:210px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #dce3e8;background:white}.calendar-weekday{text-align:center;background:#163e38;color:white;font-size:12px;padding:10px}.calendar-day{min-height:100px;border-right:1px solid #e1e7ea;border-bottom:1px solid #e1e7ea;padding:6px;min-width:0}.calendar-day.outside{background:#f2f5f6}.calendar-day.today{background:#e8f6ef;box-shadow:inset 0 0 0 2px #165DDE}.day-number{border:0;background:none;font-size:12px;padding:2px 4px}.calendar-event{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;text-align:left;padding:4px;margin-top:4px;border:0;background:#e3f2ea;color:#006e45}.calendar-event.review{background:#fff1cf;color:#855800}.calendar-detail{background:white;border:1px solid #dce3e8;padding:16px;margin:10px 0;border-radius:8px}.calendar-detail p{font-size:12px}.calendar-detail small{display:block;color:#6c7a86}.calendar-detail button{margin-top:10px}.calendar-day:has(.calendar-event){min-height:125px}#event-evidence{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:620px){.brand{flex-direction:row;align-items:center}.shinhands-logo{width:75px;height:38px}.hero h2{font-size:27px}.calendar-day{padding:3px;min-height:75px}.calendar-event{font-size:9px}.calendar-toolbar input{max-width:160px}.calendar-weekday{padding:8px 2px}}
.shinhands-logo{background:white;padding:8px;width:120px;height:66px;border-radius:6px}.sidebar{overflow-y:auto}@media(max-width:620px){.shinhands-logo{width:90px;height:50px;padding:5px}.sidebar{overflow:visible}}
#signed-in-user{color:#d7eee7;font-weight:600;font-size:12px}#logout-user{color:#e0eee9}.sidebar [hidden]{display:none!important}#users-list .calendar-detail{border-left:4px solid #165DDE}#user-form input[type=password],#password-form input{width:100%}#event-progress-panel select{margin:8px 0}.login-card main{padding:0}@media(max-width:620px){.sidebar-bottom{display:flex!important;align-items:center;gap:12px;padding-top:12px}.sidebar-bottom>p:last-child{display:none}}

.calendar-detail-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}.calendar-dialog-actions{position:sticky;bottom:0;background:white;padding:18px 0 8px;flex-wrap:wrap}#calendar-detail-dialog{max-height:85vh;overflow:auto}#calendar-detail-dialog h4{margin-top:24px}

.project-context{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:#edf5f1;border:1px solid #cee1d7;border-radius:12px;padding:12px 16px;margin-bottom:24px}.project-context label{margin:0;display:flex;align-items:center;gap:10px}.project-context select{max-width:270px}.project-context span{font-size:12px;color:#466354}.project-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:22px 0}.project-card{padding:18px;text-align:left;background:white;border:1px solid #dce3e0;border-radius:12px}.project-card.active{border:2px solid #165DDE;background:#f0faf5}.project-card strong,.project-card small{display:block;margin:4px 0}.project-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}.project-stat{background:#f2f7f5;border-radius:10px;padding:16px}.project-stat strong{display:block;font-size:25px;color:#076740}.project-stat span{font-size:11px}.project-board{display:grid;grid-template-columns:repeat(5,minmax(175px,1fr));gap:12px;overflow:auto;margin:24px 0}.project-column{background:#f2f5f4;border-radius:12px;padding:10px;min-height:160px}.project-column h4{font-size:12px;margin:6px 0 12px}.project-task-card{display:block;width:100%;text-align:left;background:white;border:1px solid #dce4df;border-radius:9px;padding:12px;margin:8px 0}.project-task-card strong,.project-task-card small{display:block;margin:5px 0;white-space:normal}.project-task-card.overdue{border-left:3px solid #d16142}.project-task-card small{font-size:11px;color:#647467}.project-timeline-row{padding:12px 0;border-bottom:1px solid #e4eae6;font-size:12px}.project-log{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;border-bottom:1px solid #e5ebe6;padding:10px 0}.project-resource{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e5ebe6}.project-resource>strong{flex:1}#project-task-dialog{overflow:auto}#pt-dependencies,#project-members{width:100%}#project-workload{font-size:12px;margin-top:18px;color:#53665b}@media(max-width:700px){.project-stats{grid-template-columns:repeat(2,1fr)}.project-context select{max-width:190px}.project-board{grid-template-columns:repeat(5,190px)}}

body.project-view .workspace{grid-template-columns:minmax(0,1fr)}body.project-view .inspector{display:none}
#project-task-form>label,#pt-comment-form>label{display:block;margin:14px 0}#project-task-form input:not([type=checkbox]),#project-task-form select{width:100%}#project-task-form .form-grid label{display:flex;flex-direction:column;gap:7px}#project-task-form .form-grid input[type=checkbox]{width:auto;align-self:flex-start}

/* Responsive workspace: same data and URL on every screen. */
.mobile-only{display:none}#chat-options>summary{display:none}#chat-options{margin:0}#mobile-menu-dialog:not([open]),#mobile-materials-dialog:not([open]){display:none}.mobile-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;position:sticky;top:0;z-index:2;background:white}.mobile-panel-header button{min-width:44px;min-height:44px}.mobile-bottom-nav button span{display:block}.sidebar{overscroll-behavior:contain}.message-body img{max-width:100%}.project-resource>strong{min-width:0;overflow-wrap:anywhere}.calendar-detail strong{overflow-wrap:anywhere}#chat-options[open]>.composer-options{display:flex}
@media(max-width:820px),(max-width:1024px) and (pointer:coarse){
 html{scroll-padding-top:130px;scroll-padding-bottom:180px}body{overflow-x:clip}.mobile-only{display:block}button,input:not([type=checkbox]),select,textarea{font-size:16px}button{min-height:44px;touch-action:manipulation}input[type=checkbox]{min-width:20px;min-height:20px}.shell{margin:0;min-width:0}.workspace,body.project-view .workspace{display:block;min-height:0}.workspace>main{padding:16px 16px calc(80px + env(safe-area-inset-bottom));min-width:0}.view{min-height:240px;padding-bottom:16px}h2{font-size:24px}.topbar{position:sticky;top:0;z-index:10;height:auto;min-height:108px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px 12px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:white}.page-heading{grid-column:2;grid-row:1;min-width:0}.topbar .eyebrow{display:none}.topbar h1{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#mobile-menu-open{grid-column:1;grid-row:1;padding:4px;font-size:24px}#mobile-materials-open{grid-column:3;grid-row:1;font-size:13px;padding:6px 12px}.model-wrap{grid-row:2;grid-column:1/-1;min-width:0;gap:8px}.model-wrap select{font-size:16px;flex:1;max-width:none;width:100%;min-height:44px;padding:8px 12px}.model-wrap .icon-button{display:block;min-width:44px;min-height:44px}.connection{display:none}.project-context{padding:10px 12px;margin-bottom:16px;gap:4px}.project-context label{width:100%;font-size:12px;white-space:nowrap}.project-context select{flex:1;max-width:none;width:0;font-size:16px;min-height:44px}.project-context>span{display:none}
 .mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));bottom:0;left:0;right:0;z-index:15;height:calc(64px + env(safe-area-inset-bottom));padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 18px #183b3210}.mobile-bottom-nav button{border:0;border-radius:10px;padding:3px;font-size:20px;line-height:1.2;background:transparent;color:#65756e;min-width:0}.mobile-bottom-nav button span{font-size:11px;line-height:1.6}.mobile-bottom-nav button.active{color:#1246A1;background:#e9f6ef;font-weight:650}
 .mobile-drawer{width:min(340px,90vw);max-width:90vw;height:100dvh;max-height:100dvh;margin:0 auto 0 0;padding:0;border:0;border-radius:0 18px 18px 0;background:#182e32;color:white;overflow-y:auto;overscroll-behavior:contain}.mobile-drawer .mobile-panel-header{background:#182e32;color:white;padding-top:calc(12px + env(safe-area-inset-top))}.mobile-drawer .sidebar{position:static;inset:auto;width:100%;height:auto;display:flex;flex-direction:column;padding:12px 18px calc(24px + env(safe-area-inset-bottom));overflow:visible}.mobile-drawer .brand{display:flex;flex-direction:row;align-items:center}.mobile-drawer .brand small{display:block}.mobile-drawer .sidebar .nav-label{display:block}.mobile-drawer .sidebar .new-chat{display:block;margin:20px 0;min-height:48px}.mobile-drawer .sidebar nav{display:flex;flex-direction:column;overflow:visible;margin:0 0 24px;gap:4px}.mobile-drawer .sidebar nav span{display:inline-block;font-size:20px}.mobile-drawer .sidebar nav button{font-size:15px;padding:10px 12px}.mobile-drawer .sessions{display:block;max-height:220px}.mobile-drawer .sessions button{font-size:13px;min-height:44px}.mobile-drawer .sidebar-bottom{display:block!important;margin-top:24px}.mobile-drawer .sidebar-bottom button{display:block;width:100%;font-size:14px}.mobile-drawer .sidebar-bottom>p:last-child{display:block}.mobile-drawer .shinhands-logo{width:86px;height:48px}
 .mobile-sheet{width:100%;max-width:100%;max-height:85dvh;margin:auto 0 0;border:0;border-radius:18px 18px 0 0;padding:0 0 env(safe-area-inset-bottom);overflow-y:auto;overscroll-behavior:contain}.mobile-sheet .inspector,body.project-view .mobile-sheet .inspector{display:block;position:static;border:0;padding:8px 16px 24px;order:initial;background:white}.mobile-sheet .inspector .dropzone{min-height:76px}.mobile-sheet .inspector .dropzone span,.mobile-sheet .inspector .dropzone small,.mobile-sheet .inspector #empty-documents{display:block}.mobile-sheet #documents{display:block}.mobile-sheet .file-card{margin:12px 0}.mobile-sheet .file-card strong{font-size:14px}.mobile-sheet .file-actions button{font-size:13px;padding:8px 10px}.mobile-sheet .inspector #activity{display:block;max-height:220px;font-size:13px}.mobile-sheet .inspector #activity small{font-size:11px}.mobile-sheet .local-note{display:none}.mobile-sheet .inspector-head h3{font-size:15px}
 .hero{padding:24px;min-height:260px}.hero h2{font-size:27px}.hero-art{display:none}.hero p{font-size:14px;max-width:none}.hero p br{display:none}.hero button{font-size:14px}.stats>div{padding:0 10px}.stats span{font-size:11px}.quick-grid{gap:10px}.quick{padding:15px;min-width:0}.quick strong{font-size:14px}.quick p{font-size:12px}.quick em{font-size:11px}.panel{padding:16px}.form-grid{grid-template-columns:1fr;gap:12px}.form-grid label{font-size:14px}.panel>label{font-size:14px}.row,.search-row{flex-wrap:wrap;gap:8px}.search-row input{min-width:140px}.section-head{flex-wrap:wrap;gap:8px}.section-head>span{display:none}.task-card{flex-wrap:wrap}.task-card>div{min-width:0}.task-card small{font-size:12px}.table-scroll,pre{max-width:100%;overscroll-behavior-x:contain}.artifact-download{max-width:100%;overflow-wrap:anywhere;font-size:14px;min-height:44px}
 .composer-wrap{bottom:calc(64px + env(safe-area-inset-bottom));padding:8px 0;z-index:11;background:#f4f6f8f5}.composer{padding:8px;gap:8px}.composer textarea{font-size:16px;min-height:48px;max-height:140px;padding:6px}.composer button{min-height:48px;min-width:52px;font-size:13px;padding:8px}.composer-footer{font-size:11px;align-items:flex-start;gap:8px}.composer-footer>span:first-child{max-width:40%;font-size:10px}#status{max-width:65%;overflow-wrap:anywhere;white-space:normal}#chat-options{border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:7px;max-height:38dvh;overflow:auto}#chat-options>summary{display:list-item;cursor:pointer;min-height:44px;padding:10px 12px;font-size:13px}#mobile-reference-state{float:right;font-size:12px;color:#1246A1}#chat-options>.composer-options{padding:0 12px;margin:8px 0;display:flex;gap:10px;align-items:stretch}#chat-options .composer-options label{display:flex;align-items:center;gap:8px;flex:1 1 100%;font-size:13px}#chat-options .composer-options select{max-width:none;width:100%;font-size:16px;min-height:44px;padding:6px}#chat-options .composer-options .text-button{font-size:13px;min-height:44px}#chat-options>.hint,#chat-options>#web-settings{padding:0 12px}#reference-hint{font-size:12px}#web-settings input{font-size:16px}.message.user{margin-left:6%;padding:14px}.message-body{font-size:15px;line-height:1.8}.message-label{font-size:11px}.message-actions{gap:7px}.message-actions button{font-size:12px;padding:8px 10px;min-height:44px}.export-controls select{font-size:16px;min-height:44px;max-width:185px}.empty{padding:35px 0}.empty h2{font-size:22px}
 .calendar-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}.calendar-toolbar input{max-width:none;width:100%}.calendar-toolbar #calendar-query{grid-column:1/3}.calendar-toolbar #calendar-rescan{grid-column:1/-1}.calendar-toolbar button{padding:6px;font-size:13px}.calendar-day,.calendar-day:has(.calendar-event){padding:2px;min-height:76px}.calendar-weekday{font-size:11px;padding:8px 1px}.day-number{min-height:36px;width:100%;padding:2px;font-size:13px}.calendar-event{font-size:10px;min-height:32px;padding:4px 2px;line-height:1.35}.calendar-detail{padding:14px}.calendar-detail strong{font-size:15px}.calendar-detail p{font-size:13px;line-height:1.8}.calendar-detail button{min-height:44px;font-size:14px}
 .project-cards{grid-template-columns:1fr;gap:10px}.project-card{padding:15px}.project-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.project-stat{padding:13px}.project-stat strong{font-size:25px}.project-mobile-filter{margin-top:20px;font-size:14px}.project-mobile-filter select{display:block;width:100%;margin-top:6px}.project-board{grid-template-columns:minmax(0,1fr);gap:12px;overflow:visible;margin:14px 0}.project-column{min-height:0;padding:12px}.project-column h4{font-size:14px}.project-task-card{padding:14px}.project-task-card strong{font-size:15px}.project-task-card small{font-size:12px}.project-timeline-row,.project-log{font-size:13px}.project-resource{align-items:flex-start}.project-resource>strong{flex-basis:100%;font-size:14px}#project-workspace>.row>button{flex:1 1 44%;font-size:13px}#project-workload{font-size:13px;overflow-wrap:anywhere}
 dialog:not(.mobile-drawer):not(.mobile-sheet){width:calc(100% - 16px);max-width:600px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;border-radius:16px;overflow:auto;overscroll-behavior:contain}dialog>.section-head{position:sticky;top:-16px;z-index:2;background:white;margin:0 -4px 16px;padding:12px 4px}dialog h3{font-size:16px}dialog h4{font-size:15px}.calendar-detail-text{font-size:15px}.calendar-dialog-actions{gap:8px;padding-bottom:env(safe-area-inset-bottom)}.calendar-dialog-actions button{flex:1;font-size:14px}dialog pre{font-size:14px;line-height:1.7;max-height:none}#project-task-form .form-grid{grid-template-columns:1fr}#project-task-form>label,#pt-comment-form>label{font-size:14px}.toast{bottom:calc(78px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px);width:max-content;font-size:13px;z-index:30}body.keyboard-open .mobile-bottom-nav{display:none}body.keyboard-open .composer-wrap{bottom:var(--keyboard-inset,0px)}body.keyboard-open .toast{bottom:calc(12px + var(--keyboard-inset,0px))}
}
@media(max-width:360px){.workspace>main{padding-left:12px;padding-right:12px}.topbar{padding-left:12px;padding-right:12px;gap:6px}.quick-grid{grid-template-columns:1fr}.hero{padding:20px}.hero h2{font-size:25px}.composer button{min-width:46px;padding:6px}.calendar-event{font-size:9px}.project-context label{gap:6px}}
@media(pointer:coarse){button{touch-action:manipulation}input:not([type=checkbox]),select,textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:820px),(max-width:1024px) and (pointer:coarse){body:has(dialog[open]){overflow:hidden}#input-key-hint{display:none}#mobile-follow-output{font-size:12px;min-height:44px;padding:4px 8px;white-space:nowrap}.composer-footer{align-items:center}.composer-footer #status{max-width:70%;font-size:12px}.keyboard-open #mobile-follow-output{min-height:32px}.keyboard-open .composer-footer #status{font-size:11px}}

.library-scope{display:grid;gap:8px;margin:16px 0;font-size:13px;white-space:normal}.library-scope select{width:100%;min-width:0}.library-scope small{display:block;line-height:1.5;color:var(--muted,#64748b)}#daily-work:empty{display:none}#daily-work button{display:block;width:100%;text-align:left;margin-top:8px;white-space:normal}

.agile-panel details{margin:16px 0;padding:12px;border:1px solid #dce3e8;border-radius:12px}.agile-panel label,.agile-task-fields label{display:block;margin:12px 0}.agile-panel textarea,.agile-task-fields textarea{width:100%;box-sizing:border-box}.agile-panel .project-resource{display:block;white-space:pre-wrap;padding:12px}.agile-panel .project-resource button{margin:8px 8px 0 0}.agile-panel input:not([type=checkbox]),.agile-panel select{max-width:100%}

/* Calendar creation dialog */
#calendar-edit-dialog{width:min(640px,calc(100vw - 32px));max-height:88dvh;overflow:auto;border-radius:18px}#calendar-edit-dialog>.panel{margin:0;border:0;padding:0;box-shadow:none}#calendar-edit-dialog .section-head{align-items:center}#calendar-edit-dialog .row{flex-wrap:wrap}#calendar-edit-dialog #event-progress-panel{margin-top:20px;padding-top:16px;border-top:1px solid #e1e5e9}.calendar-day:not(.outside){cursor:pointer}.calendar-day:not(.outside):hover{background:#f3f7f9}@media(max-width:820px){#calendar-add{grid-column:1/-1;min-height:42px}#calendar-edit-dialog .form-grid{grid-template-columns:1fr}}

.calendar-tracking-filters{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:14px 0}.calendar-tracking-filters label{display:flex;align-items:center;gap:8px}#calendar-tracking{border-top:1px solid #e0e5ea;margin-top:24px;padding-top:16px}#calendar-tracking form{padding:14px;background:#f5f7f9;border-radius:12px;margin:12px 0}#calendar-tracking input,#calendar-tracking textarea,#calendar-tracking select{width:100%}#calendar-tracking button{margin:6px 4px 6px 0;white-space:normal}.tracking-entry{border-left:3px solid #c8d7d3;padding:4px 12px;margin:12px 0}.tracking-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.tracking-entry small{color:#63736c}

.audio-monitor{border:1px solid #c8dcd6;background:#f5faf8;margin:18px 0}.audio-monitor strong{overflow-wrap:anywhere}.audio-monitor progress{width:100%;height:12px;accent-color:var(--primary,#00865a)}.audio-monitor p{line-height:1.65}.audio-monitor small{color:#65766e}.audio-monitor details{margin-top:12px;max-height:180px;overflow:auto}

.upload-job{padding:12px 16px;border:1px solid #dbe6e0;border-radius:10px;margin:8px 0;background:#f8fbf9}.upload-job strong{overflow-wrap:anywhere}.upload-job p{font-size:12px;color:#52685d;line-height:1.7}

/* Clear, compact connection status and consistent dialog dismissal. */
.engine-indicator{display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;margin-top:12px;padding:8px 10px;border:1px solid #dce7e1;border-radius:10px;background:#f4f8f6;color:#4b6358;font-size:11px;line-height:1.4;letter-spacing:0}
.engine-status-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#a08743;box-shadow:0 0 0 3px #a0874315}
.engine-indicator[data-state="ready"]{color:#1c6148;border-color:#c7e1d3;background:#eef8f2}.engine-indicator[data-state="ready"] .engine-status-dot{background:#208659;box-shadow:0 0 0 3px #20865918}
.engine-indicator[data-state="offline"]{color:#8c4b28;background:#fff6ee;border-color:#ead5c3}.engine-indicator[data-state="offline"] .engine-status-dot{background:#b96832;box-shadow:0 0 0 3px #b9683218}
dialog button.clear-dialog-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;width:auto!important;min-width:78px!important;min-height:44px!important;padding:9px 13px!important;border:1px solid #b5c7bf!important;border-radius:10px!important;background:#f4f8f6!important;color:#203e32!important;font-size:13px!important;font-weight:700!important;line-height:1!important;opacity:1!important;white-space:nowrap!important;box-shadow:0 1px 2px #132b1710}
dialog button.clear-dialog-close::before{content:'×';font-size:25px;line-height:18px;font-weight:500;color:inherit}
dialog button.clear-dialog-close:hover{background:#e2eee7!important;border-color:#789b88!important}dialog button.clear-dialog-close:focus-visible{outline:3px solid #2c8c63!important;outline-offset:3px}
dialog>.section-head,dialog>.mobile-panel-header{position:sticky;top:0;z-index:3;background:#fff;gap:12px}
/* Readable AI answers; source text stays unchanged for copy and exports. */
.message-body.formatted{line-height:1.85;overflow-wrap:anywhere;color:#273c35}.message-body.formatted h3{font-size:20px;line-height:1.5;color:#174e3b;margin:24px 0 14px}.message-body.formatted h4{font-size:17px;line-height:1.55;margin:22px 0 12px;color:#176b4e;padding-bottom:8px;border-bottom:1px solid #dce8e1}.message-body.formatted>:first-child{margin-top:0}.message-body.formatted p{margin:10px 0 14px}.message-body.formatted li{margin:7px 0}.message-body.formatted strong{font-weight:650;color:#193f31}.message-body.formatted blockquote{margin:18px 0;background:#eff7f3;border-left:4px solid #339b71;border-radius:0 12px 12px 0;padding:12px 18px;color:#38564a}.message-body.formatted blockquote p{margin:5px 0}.message-body.formatted hr{border:0;border-top:1px solid #dce8e1;margin:24px 0}.answer-table-wrap{max-width:100%;overflow-x:auto;margin:16px 0 22px;border:1px solid #d6e4dc;border-radius:12px;overscroll-behavior-x:contain}.answer-table-wrap:focus-visible{outline:2px solid #176b4e;outline-offset:3px}.answer-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.75;min-width:560px}.answer-table th,.answer-table td{white-space:normal;overflow-wrap:anywhere;padding:13px 14px;vertical-align:top;min-width:65px;border-bottom:1px solid #e1eae5}.answer-table th{background:#eaf4ee;color:#21553e;font-weight:650}.answer-table tbody tr:nth-child(even){background:#f8fbf9}.answer-table tbody tr:last-child td{border-bottom:0}.answer-table td:last-child{min-width:200px}.answer-table code{white-space:pre-wrap}
@media(max-width:600px){.message-body.formatted h3{font-size:19px}.message-body.formatted h4{font-size:16px}.answer-table-wrap{border:0;overflow:visible;margin:14px 0}.answer-table{display:block;min-width:0;font-size:14px}.answer-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.answer-table tbody{display:block}.answer-table tbody tr{display:block;border:1px solid #d6e4dc;border-radius:12px;padding:10px 14px;margin:12px 0;background:#fff}.answer-table th,.answer-table td,.answer-table td:last-child{display:block;min-width:0;width:auto;padding:8px 0;border-bottom:1px solid #edf2ef}.answer-table td::before{content:attr(data-label);display:block;color:#687d71;font-size:11px;font-weight:600;margin-bottom:3px}.answer-table td:last-child{border-bottom:0}.message-body.formatted blockquote{padding:10px 13px}}
/* Compact account directory; the editing and permission workflow is unchanged. */
#users-list{margin:22px 0}.users-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.users-toolbar input{flex:1;min-width:160px}.users-count{color:var(--muted);font-size:12px;white-space:nowrap}.users-table-wrap{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.users-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.users-table th,.users-table td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:middle}.users-table th{background:#eef4f0;font-size:12px;color:#4c6357}.users-table th:first-child{width:23%}.users-table th:nth-child(2){width:29%}.users-table th:last-child{width:76px}.users-table tbody tr:last-child td{border-bottom:0}.users-table tbody tr:hover{background:#f7faf8}.users-table small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.user-status{display:inline-block;border-radius:20px;padding:3px 9px;font-size:11px;white-space:nowrap}.user-status.active{background:#e6f3eb;color:#256348}.user-status.inactive{background:#f1f1f1;color:#777}.users-action button{min-height:44px;padding:7px 10px}
@media(max-width:600px){.users-table th,.users-table td{padding:10px 7px;font-size:12px}.users-table .users-org{display:none}.users-table th:nth-child(2){display:none}.users-table th:first-child{width:32%}.users-table th:last-child{width:58px}.users-table .users-identity:after{content:attr(data-org);display:block;font-size:10px;color:var(--muted);margin-top:4px}.users-table .users-state small{font-size:10px}.users-count{width:100%}.users-toolbar{gap:8px}.users-table-wrap{border-radius:9px}}

.users-action .user-delete{color:#9a4545;margin-top:5px}.users-table .users-action button{display:block;width:100%}

/* Brand proposal A: full-width light header, original company identity below. */
.sidebar{--brand-x:17px;--brand-top:28px}
.sidebar .brand{display:flex;flex-direction:column;align-items:flex-start;flex-shrink:0;gap:12px;background:#fff;color:#26333e;margin:calc(-1 * var(--brand-top)) calc(-1 * var(--brand-x)) 0;padding:24px var(--brand-x) 20px;border-bottom:1px solid #e5e9ed;text-decoration:none;line-height:1.35}
.sidebar .brand>img{display:block;object-fit:contain;object-position:left center;flex-shrink:0;padding:0;border-radius:0;background:transparent;max-width:100%}
.sidebar .brand>.shinhands-logo{width:124px;height:48px}
.sidebar .brand>.shinhands-logo{width:160px;height:42px}
.sidebar .brand>span{display:block;font-size:19px;font-weight:650;letter-spacing:-.6px;white-space:nowrap}
.sidebar .brand small{display:block;color:#74818b;font-size:10px;font-weight:400;letter-spacing:0;margin-top:5px;white-space:normal;line-height:1.5}
.sidebar .brand:focus-visible{outline:3px solid #8bb3cc;outline-offset:-4px}
.sidebar .new-chat{margin-top:20px}
@media(max-width:1180px){.sidebar{--brand-x:12px;--brand-top:24px}.sidebar .brand>span{font-size:18px}}
@media(max-width:820px),(max-width:1024px) and (pointer:coarse){
 .mobile-drawer .sidebar{--brand-x:18px;--brand-top:12px}
 .mobile-drawer .sidebar .brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:22px var(--brand-x) 20px}
 .mobile-drawer .sidebar .brand>span{font-size:20px}
 .mobile-drawer .sidebar .brand>.shinhands-logo{width:124px;height:48px}
 .mobile-drawer .sidebar .brand>.shinhands-logo{width:160px;height:42px}
}

/* Compact, accessible evidence disclosures below the supported answer item. */
.answer-evidence{margin:9px 0 15px;border:1px solid #dfe7e2;border-radius:10px;background:#ffffff80;font-size:12px;overflow:hidden;max-width:100%}
.answer-evidence>summary{cursor:pointer;padding:9px 12px;color:var(--green);font-weight:600;min-height:38px}
.answer-evidence[open]>summary{border-bottom:1px solid #e2e8e4}
.evidence-rows{padding:0 12px}.evidence-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #e5ebe7}.evidence-row:last-child{border-bottom:0}.evidence-info{flex:1;min-width:0;overflow-wrap:anywhere}.evidence-info>strong{display:block;font-size:12px;font-weight:600}.evidence-info>small{display:block;color:#718078;margin-top:4px;font-size:11px}.evidence-row>button{flex-shrink:0;font-size:11px;padding:6px 10px;min-height:36px}.evidence-unverified{color:#78827c;font-size:10px;flex-shrink:0}.evidence-excerpt{margin-top:7px;color:#65776d}.evidence-excerpt>summary{cursor:pointer;font-size:11px}.evidence-excerpt p{white-space:pre-wrap;font-size:12px!important;line-height:1.7!important}
@media(max-width:620px){.evidence-row{flex-wrap:wrap;gap:6px}.evidence-info{flex-basis:100%}.evidence-row>button{min-height:44px}.answer-evidence>summary{min-height:44px;padding:11px 12px}dialog.evidence-preview{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:80dvh;border-radius:20px 20px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom))}dialog.evidence-preview pre{max-height:55dvh}}

.chat-processing{margin:2px 0 16px;padding:14px 16px;border:1px solid var(--line,#dce7e5);border-radius:14px;background:linear-gradient(115deg,#f4f8f8,#fafbfc);color:#37545a;max-width:100%;box-sizing:border-box}.chat-processing-heading{display:flex;gap:10px;align-items:center;font-size:14px;line-height:1.6}.chat-processing-heading strong{font-weight:600;overflow-wrap:anywhere}.chat-processing-pulse{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--primary,#00865a);animation:chat-processing-glow 1.5s ease-in-out infinite}.chat-processing-detail{margin:7px 0 0 18px!important;font-size:12px!important;line-height:1.7;color:#66767e}.chat-processing details{margin-top:9px;font-size:12px;color:#6b7880}.chat-processing summary{cursor:pointer;padding:4px 0;list-style-position:inside}.chat-processing ol{max-height:160px;overflow:auto;padding-left:20px;line-height:1.7;overflow-wrap:anywhere}.chat-processing.is-finished{background:transparent;border:0;padding:0;margin-bottom:10px}.chat-processing.is-finished details{margin:0}.chat-processing.is-warning{color:#915325}.chat-processing.is-warning .chat-processing-pulse{background:#af742a}@keyframes chat-processing-glow{50%{opacity:.35;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.chat-processing-pulse{animation:none}}@media(max-width:600px){.chat-processing{padding:12px}.chat-processing-heading{font-size:13px}.chat-processing summary{min-height:32px;display:flex;align-items:center}.chat-processing-detail{margin-left:18px!important}}

.chat-processing .chat-work-time{font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums;color:#6b7880;margin:0 0 8px}.chat-processing.is-finished .chat-work-time{font-size:12px;color:#50656d;margin-bottom:2px}

/* Shared rounded tree connectors: projects, organization management and signup. */
body :is(.org-tree-root,.org-tree,.signup-org){--tree-line:#bbcadd;--tree-indent:18px;--tree-anchor:26px}
body :is(.org-tree-root,.org-tree) ul,body .signup-org ul ul{border-left:0!important;margin:0 0 0 10px!important;padding:0 0 0 var(--tree-indent)!important}
body :is(.org-tree-root,.org-tree) ul>li,body .signup-org ul ul>li{position:relative;margin:0!important;padding:3px 0!important;min-width:0}
body :is(.org-tree-root,.org-tree) ul>li::before,body .signup-org ul ul>li::before{content:'';position:absolute;left:calc(-1 * var(--tree-indent))!important;top:0!important;bottom:0!important;width:0!important;height:auto!important;border:0!important;border-left:1.5px solid var(--tree-line)!important;background:transparent!important;pointer-events:none}
body :is(.org-tree-root,.org-tree) ul>li::after,body .signup-org ul ul>li::after{content:'';position:absolute;left:calc(-1 * var(--tree-indent))!important;top:0!important;bottom:auto!important;width:calc(var(--tree-indent) - 4px)!important;height:var(--tree-anchor)!important;box-sizing:border-box;border:0!important;border-left:1.5px solid var(--tree-line)!important;border-bottom:1.5px solid var(--tree-line)!important;border-radius:0 0 0 8px!important;background:transparent!important;pointer-events:none}
body :is(.org-tree-root,.org-tree) ul>li:last-child::before,body .signup-org ul ul>li:last-child::before{display:none!important}
body .org-tree-root .org-tree-branch{margin:0}
body .org-tree-root .tree-project{margin:0!important}
body .org-tree-root .org-tree-branch>summary{min-height:46px}
body :is(.org-tree-root,.org-tree) ul>li.org-tree-empty{padding:12px 4px!important}
body .org-tree-root .org-tree-pick:focus-visible,body .signup-org button:focus-visible{outline:2px solid var(--tree-line);outline-offset:2px}
@media(max-width:800px){body :is(.org-tree-root,.org-tree,.signup-org){--tree-indent:14px}body :is(.org-tree-root,.org-tree) ul,body .signup-org ul ul{margin-left:6px!important}}

/* Boxed expand/collapse controls for the shared project tree. */
body .org-tree-root details>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:46px}
body .org-tree-root details>summary::-webkit-details-marker{display:none}
body .org-tree-root details>summary::marker{content:''}
body .org-tree-root details>summary::before{content:'+';display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;box-sizing:border-box;border:1px solid var(--tree-line,#bbcadd);border-radius:5px;background:#fff;color:#45648a;font:500 17px/1 Arial,sans-serif;box-shadow:0 1px 2px #172b4008}
body .org-tree-root details[open]>summary::before{content:'−';background:#f0f4fa}
body .org-tree-root details>summary:hover::before,body .org-tree-root details>summary:focus-visible::before{border-color:#45648a;color:#45648a;background:#f0f4fa}
@media(max-width:800px){body .org-tree-root details>summary::before{flex-basis:24px;width:24px;height:24px;font-size:18px}}

/* Shared mobile typography anchored to the 12px AI task action. */
@media(max-width:820px),(max-width:1024px) and (pointer:coarse){
 body{--mobile-ui-font:12px;font-size:var(--mobile-ui-font);line-height:1.6}
 body button,body [role="button"],body label,body summary,body th,body td,body p,body li,body .hint,body .muted{font-size:var(--mobile-ui-font)!important;line-height:1.6!important}
 body button,body [role="button"]{min-height:44px!important;padding:8px 12px;border-radius:9px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body button :is(span,strong,small,em),body summary :is(strong,small){font-size:inherit!important;line-height:inherit}
 body :is(h1,h2){font-size:20px!important;line-height:1.4!important}
 body :is(h3,h4){font-size:15px!important;line-height:1.5!important}
 body :is(.hint,.muted,small,.chat-work-time,.ops-progress-note,.org-tree-kind){font-size:var(--mobile-ui-font)!important}
 /* Keep editable fields legible and avoid iOS focus zoom. */
 body input:not([type=checkbox]):not([type=radio]),body select,body textarea{font-size:16px!important;line-height:1.5;min-height:44px}
 body .stage-task-actions button{padding:8px;white-space:normal}
 body :is(.icon-button,#mobile-menu-open){min-width:44px}
 body .sidebar nav button>span:first-child{font-size:18px!important}
 body .calendar-grid button{padding:3px;min-width:0}
}

/* Consistent mobile select dimensions; multi-select lists retain their rows. */
@media(max-width:820px),(max-width:1024px) and (pointer:coarse){
 body select{box-sizing:border-box;min-width:0!important;max-width:100%!important;border-radius:9px!important;line-height:1.5!important}
 body select:not([multiple]):not([size]),body select[size="1"]:not([multiple]){height:44px!important;min-height:44px!important;max-height:44px!important;padding:8px 32px 8px 10px!important;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23657480' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:16px!important;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
 body select[multiple],body select[size]:not([size="1"]){height:auto;padding:8px 10px!important;background-image:none!important}
 body :is(.form-grid,.stage-filters,.calendar-tracking-filters)>label{min-width:0;max-width:100%}
 body .calendar-tracking-filters label{flex-wrap:wrap}
}

/* Mobile select text matches the shared 12px action typography. */
@media(max-width:820px),(max-width:1024px) and (pointer:coarse){
 body select,body select option,body select optgroup{font-size:12px!important}
}

/* Task form primary actions remain reachable at the bottom of the dialog. */
#project-task-dialog .stage-task-actions{position:sticky;bottom:-24px;display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;background:var(--paper,#fff);z-index:8}
#project-task-dialog .stage-task-actions #pt-save{font-weight:700;min-width:90px}
#project-task-dialog .stage-task-actions #pt-delete{margin-left:auto;color:#965252;background:#fff;border-color:#eadada}
@media(max-width:800px){#project-task-dialog .stage-task-actions{bottom:-16px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}#project-task-dialog .stage-task-actions button{flex:1 1 auto}#project-task-dialog .stage-task-actions #pt-save{flex:1 1 100%}}

.release-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom));z-index:20000;display:flex;align-items:center;gap:14px;width:max-content;max-width:calc(100vw - 24px);padding:12px 16px;border:1px solid #b6c9de;border-radius:12px;background:#f0f6ff;color:#274b72;box-shadow:0 6px 24px #17325026;font-size:13px}.release-banner button{white-space:nowrap;flex-shrink:0}@media(max-width:820px){.release-banner{bottom:calc(76px + env(safe-area-inset-bottom));font-size:12px;padding:10px;gap:8px}}

/* Keep the notice broadcast checkbox and its label aligned. */
body .notice-dialog form label.notice-notify-all{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;width:100%;margin:12px 0;line-height:1.5}
body .notice-dialog .notice-notify-all input[type="checkbox"]{display:block;flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:0}
body .notice-dialog .notice-notify-all span{display:block;flex:1;min-width:0;line-height:1.5;overflow-wrap:anywhere}

.draft-status{font-size:11px;padding:6px 9px;color:#526d85;background:#f4f7fa;max-width:220px;white-space:normal}.draft-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.draft-row strong{flex:1 1 160px}.draft-row small{color:var(--muted)}@media(max-width:820px){.draft-status{grid-column:1/-1;justify-self:end;min-height:32px!important;font-size:11px!important}.draft-row button{flex:1}}

/* Draft access belongs to the menu footer on desktop and mobile. */
body .sidebar-bottom .draft-status{display:block;width:100%;max-width:none;text-align:left;margin:0 0 10px;padding:10px 12px;min-height:44px;color:inherit;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);border-radius:9px;font-size:12px;line-height:1.5;white-space:normal}
body .sidebar-bottom .draft-status:hover{background:rgba(255,255,255,.14)}

/* Shared single-select height throughout desktop, mobile and dialogs. */
body select:not([multiple]):not([size]),body select[size="1"]:not([multiple]),body select[size="0"]:not([multiple]){appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23657480' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:16px!important;padding-right:32px!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding-top:8px!important;padding-bottom:8px!important;line-height:1.5!important;vertical-align:middle}

/* Compact conversation file composer */
#chat-form{border-radius:20px;align-items:center}#chat-form #chat-attach{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);box-shadow:none;line-height:1;transform:none}#chat-form #chat-attach svg{display:block;flex:none;pointer-events:none}#chat-form #chat-attach:hover:not(:disabled){background:rgba(100,116,139,.08);color:var(--ink)}#chat-form #chat-attach:focus-visible{outline:2px solid var(--muted);outline-offset:1px}#chat-form.file-drag{outline:2px solid #718096;outline-offset:3px}.chat-attachments{display:flex;gap:8px;overflow-x:auto;padding:6px 0;max-width:100%}.chat-attachments[hidden]{display:none}.chat-file-chip{display:flex;align-items:center;gap:8px;flex:0 0 auto;max-width:260px;border:1px solid #d5dae0;border-radius:12px;padding:7px 10px;background:var(--surface,#fff);font-size:13px}.chat-file-chip img{width:30px;height:30px;object-fit:cover;border-radius:5px}.chat-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-file-chip button{padding:2px 5px;background:transparent;color:inherit;border:0;font-size:18px}.message-attachments{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.message-attachments span{max-width:100%;padding:4px 8px;border:1px solid #d5dae0;border-radius:8px;font-size:12px}#chat-upload-status{margin:3px 0;font-size:12px;overflow-wrap:anywhere}@media(max-width:600px){.chat-file-chip{max-width:220px}#chat-form #input{min-width:0;flex:1}#chat-form #send{padding:8px;font-size:12px}}

.chat-image-result{margin:12px 0;max-width:640px}.chat-image-result>img{display:block;width:auto;max-width:100%;max-height:65vh;border-radius:12px;object-fit:contain}.chat-image-result .row{margin-top:8px;font-size:13px}

/* Compact settings entry; controls live in a native modal. */
#chat-settings-open{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:32px;padding:3px 6px;background:transparent;border:0;box-shadow:none;font-size:12px;color:var(--muted)}
#chat-settings-open:hover{color:var(--ink)}
#chat-settings-dialog{width:min(480px,calc(100vw - 32px));max-height:80dvh;margin:auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper,#fff);color:var(--ink);box-shadow:0 16px 60px #0002;overflow:auto}
#chat-settings-dialog::backdrop{background:#14221b55}
.chat-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.chat-settings-heading h3{margin:0;font-size:16px}
#chat-settings-close{width:36px;height:36px;padding:0;border:0;background:transparent;font-size:24px;line-height:1}
#chat-settings-dialog #chat-options{border:0;border-radius:0;background:transparent;box-shadow:none;margin:0;padding:0;max-height:none;overflow:visible}
#chat-settings-dialog #chat-options>summary{display:none!important}
#chat-settings-dialog .composer-options{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:0}
#chat-settings-dialog .composer-options label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:auto;font-size:13px}
#chat-settings-dialog .composer-options select{width:65%;font-size:14px;min-height:40px}
#chat-settings-dialog #reference-hint,#chat-settings-dialog #web-settings{padding:0;margin-top:14px}
#chat-settings-dialog #local-chat-reference{position:static;margin:14px 0 0;max-width:100%}
#chat-settings-dialog #follow-output{display:none}
#chat-settings-dialog .field-section{margin-top:14px}
@media(max-width:600px){#chat-settings-dialog{padding:16px}#chat-settings-dialog .composer-options select{font-size:16px}#chat-settings-open{min-height:36px}}

/* Calm, aligned chat settings. */
#chat-settings-dialog{width:min(440px,calc(100vw - 32px));padding:24px;background:#fff;color:#26352f;border-color:#e4e8e5;box-shadow:0 20px 70px #15261d24}
#chat-settings-dialog .chat-settings-heading{margin-bottom:20px}
#chat-settings-dialog .chat-settings-heading h3{font-size:17px;font-weight:650;letter-spacing:-.3px}
#chat-settings-dialog #chat-settings-close{display:inline-flex;align-items:center;justify-content:center;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#66736c}
#chat-settings-dialog .composer-options{gap:14px}
#chat-settings-dialog label:has(select){display:grid!important;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:14px!important;justify-content:normal!important;margin:0;font-size:13px;font-weight:500}
#chat-settings-dialog select{width:100%!important;max-width:none!important;min-width:0;border-color:#dfe5e0!important;background-color:#f8faf8!important;border-radius:9px;box-shadow:none!important;font-weight:400}
#chat-settings-dialog label:has(input[type=checkbox]){display:flex!important;justify-content:flex-start!important;align-items:center;gap:9px!important;font-size:13px;font-weight:400;min-height:32px}
#chat-settings-dialog input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;margin:0!important;flex:none}
#chat-settings-advanced{border-top:1px solid #edf0ed;margin-top:18px;padding-top:14px}
#chat-settings-advanced>summary{cursor:pointer;color:#637068;font-size:12px;font-weight:500;padding:5px 0;min-height:32px}
#chat-settings-advanced[open]>summary{margin-bottom:12px}
#chat-settings-dialog #reference-hint,#chat-settings-dialog .hint{font-size:12px;font-weight:400;color:#748078;line-height:1.6;text-shadow:none}
#chat-settings-dialog #reference-hint{margin:12px 0}
#chat-settings-dialog #local-chat-reference{display:block;width:100%;margin:14px 0 0;padding:9px 12px;border:1px solid #dfe5e0;background:#f8faf8;box-shadow:none;text-align:left;font-size:12px;font-weight:400}
#chat-settings-dialog #attachment-count:empty{display:none}
@media(max-width:600px){#chat-settings-dialog{padding:20px}#chat-settings-dialog label:has(select){grid-template-columns:82px minmax(0,1fr);gap:10px!important}}

#messages .answer-actions-open{display:inline-flex;align-items:center;min-height:32px;margin-top:10px;padding:4px 6px;border:0;background:transparent;box-shadow:none;color:var(--muted);font-size:12px;font-weight:400}
#messages .answer-actions-open:hover{color:var(--ink);background:#7480780a}
body dialog.answer-actions-dialog{width:min(380px,calc(100vw - 32px));max-height:80dvh;margin:auto;padding:22px;border:1px solid #e3e8e4;border-radius:16px;background:#fff;color:#26352f;box-shadow:0 20px 70px #15261d24}
.answer-actions-dialog::backdrop{background:#14221b55}
.answer-actions-dialog .answer-actions-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.answer-actions-dialog h3{margin:0;font-size:16px}
.answer-actions-dialog .answer-actions-heading button{padding:5px 7px;border:0;background:transparent;box-shadow:none;font-size:12px;color:#68756d}
.answer-actions-dialog .message-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0}
.answer-actions-dialog .message-actions>button{width:100%;min-height:42px;text-align:left;padding:9px 12px;font-size:13px;font-weight:400;background:#f8faf8;border:1px solid #e1e6e2;box-shadow:none}
.answer-actions-dialog .export-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-block:1px solid #edf0ed;padding:12px 0;margin:2px 0}
.answer-actions-dialog .export-controls select{width:100%!important;max-width:none!important;min-width:0;font-size:13px;background-color:#f8faf8;border-color:#e1e6e2}
.answer-actions-dialog .export-controls button{font-size:12px;padding:8px 10px;box-shadow:none;border-color:#e1e6e2}
@media(max-width:600px){.answer-actions-dialog .export-controls select{font-size:16px}}

body .answer-actions-dialog .message-actions button{color:#34473c}body .answer-actions-dialog .answer-actions-heading button{background:transparent!important;border:0!important;box-shadow:none!important;min-width:0!important}
