@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#202a25;background:#f5f6f2;font-synthesis:none;font-weight:400}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:#77817a;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:#718078}.brand-mark{height:48px;width:48px;border-radius:15px;display:grid;place-items:center;background:#173d31;color:#fff;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.05em}.brand-mark.small{height:35px;width:35px;border-radius:11px;font-size:12px}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 10%,#e1e9df 0,transparent 50%),#f5f6f2}.login-card{width:min(100%,410px);background:#fff;border:1px solid #e8ece7;border-radius:24px;padding:40px;box-shadow:0 24px 70px #26392c12}.login-card .brand-mark{margin-bottom:26px}.login-card h1,.page h1{font-family:Manrope,sans-serif;font-size:32px;line-height:1.15;letter-spacing:-.045em;margin:6px 0 10px}.login-card form,.form-card{display:grid;gap:16px;margin-top:24px}.login-card label,.form-card>label,.two-fields label{display:grid;gap:7px;color:#46514b;font-size:12px;font-weight:600}.login-card input,.form-card input:not([type=file]),.form-card textarea,.detail-page textarea{width:100%;border:1px solid #dfe5df;border-radius:10px;padding:12px;background:#fcfdfb;outline:none;color:#303c34}.login-card input,.form-card input:not([type=file]){height:45px}.form-card textarea,.detail-page textarea{resize:vertical;line-height:1.5}.login-card input:focus,.form-card input:focus,.form-card textarea:focus,.detail-page textarea:focus,.composer textarea:focus{border-color:#668a73;box-shadow:0 0 0 3px #3c795b16}.primary{border:0;border-radius:10px;padding:13px 18px;background:#173d31;color:white;font-weight:600}.primary:hover{background:#21533f}.form-error{font-size:12px;color:#b14636;margin:0;min-height:16px}.form-error.success{color:#26754a}.app-shell{min-height:100dvh;display:flex;flex-direction:column}.topbar{height:64px;flex:0 0 64px;border-bottom:1px solid #e9ece7;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1050px)/2));background:#fafbf9}.brand-button,.top-actions{display:flex;align-items:center;gap:10px}.brand-button{border:0;background:none;color:#24382e;padding:0}.brand-button strong{font-family:Manrope,sans-serif;font-size:13px}.quiet-button,.small-button{border:1px solid #e1e7df;background:#fff;border-radius:9px;padding:9px 12px;color:#526057;font-size:11px}.page{width:min(100% - 40px,920px);margin:0 auto;padding:55px 0 70px}.home-page{max-width:760px;padding-top:clamp(48px,10vh,110px)}.home-page h1{font-size:38px}.home-page>.muted{max-width:530px;font-size:14px}.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:32px 0}.choice-card,.headwork-card{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:1px solid #e1e8df;background:#fff;border-radius:15px;padding:17px;color:#26372e;box-shadow:0 7px 25px #293d2807}.choice-card{min-height:92px}.choice-card:hover,.headwork-card:hover{border-color:#aac0ac;transform:translateY(-1px)}.choice-icon,.headwork-thumb{height:40px;width:40px;border-radius:12px;display:grid;place-items:center;background:#eaf0e8;color:#31563b;font-size:22px;flex:0 0 40px}.choice-card>span:nth-child(2),.headwork-card-text{display:grid;gap:6px;flex:1;min-width:0}.choice-card strong,.headwork-card strong{font-size:12px}.choice-card small,.headwork-card small{font-size:10px;color:#818b83;line-height:1.4}.choice-card>b,.headwork-card>b{color:#77857a}.headwork-list-section{margin-top:38px}.headwork-list-section h2,.record-section h2{font-family:Manrope,sans-serif;font-size:16px;letter-spacing:-.02em}.headwork-card{margin:9px 0;padding:12px 14px}.headwork-thumb{height:38px;width:38px}.local-note{font-size:10px;color:#9aa29b;margin-top:40px}.form-page{max-width:700px}.back-link{border:0;background:none;color:#627166;font-size:11px;padding:4px 0;margin:0 0 24px}.back-link:hover{color:#173d31}.form-page>.muted,.manuals-page>.muted{max-width:560px;font-size:12px}.form-card{background:white;border:1px solid #e4e9e2;border-radius:16px;padding:22px}.optional{font-weight:400;color:#8a948c}.media-picker,.file-picker{display:flex!important;align-items:center;gap:12px;padding:15px;border:1px dashed #cbd7cb;border-radius:12px;background:#f8faf7;cursor:pointer}.media-picker:hover,.file-picker:hover{border-color:#709178}.media-picker span:nth-child(2){display:grid;gap:4px}.media-picker strong{font-size:12px;color:#385443}.media-picker small{font-weight:400;font-size:10px;color:#818c84;line-height:1.4}.upload-icon{height:35px;width:35px;border-radius:10px;background:#e8efe7;display:grid;place-items:center;font-size:21px;color:#315b42}.media-picker input,.file-picker input{position:absolute;width:1px;height:1px;opacity:0}.media-preview{display:flex;flex-wrap:wrap;gap:7px}.media-preview span{font-size:10px;background:#eff3ee;border-radius:6px;padding:6px 8px;color:#5b6b5f}.privacy-note{font-size:10px;color:#818b83;line-height:1.55;margin:0}.detail-page{max-width:900px}.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:30px}.detail-heading h1{margin:4px 0}.detail-heading .muted{margin:0;font-size:12px}.voice-start{white-space:nowrap;min-height:46px}.record-section{border-top:1px solid #e3e8e1;padding:20px 0 24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.record-section h2{margin:0}.provisional-tag{font-size:10px;color:#8a6330;background:#f6f0e4;padding:7px 9px;border-radius:20px}.media-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:11px}.media-gallery figure{margin:0;min-width:0}.media-gallery img,.media-gallery video{width:100%;height:170px;object-fit:cover;background:#e8ebe7;border-radius:10px}.media-gallery figcaption{font-size:10px;color:#78827a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.add-media{position:relative;color:#45674d;font-size:10px;cursor:pointer;white-space:nowrap}.add-media input{position:absolute;width:1px;height:1px;opacity:0}.analysis-text{font-size:12px;line-height:1.75;color:#46534a;background:#f1f4ef;border-radius:11px;padding:14px 16px}.analysis-text p{margin:0}.record-section textarea{font:inherit;font-size:12px}.inline-status{font-size:10px;color:#54765e;margin:6px 0 0;min-height:13px}.consultation-item{display:flex;justify-content:space-between;width:100%;padding:12px 2px;border:0;border-bottom:1px solid #edf0eb;background:transparent;text-align:left;font-size:11px;color:#47554b}.consultation-item span{color:#829087}.empty-state{font-size:11px;color:#8a938c}.chat-page{height:calc(100dvh - 64px);max-width:900px;display:flex;flex-direction:column;padding-top:20px;padding-bottom:12px}.chat-header{display:flex;align-items:center;gap:20px;border-bottom:1px solid #e7ebe5;padding-bottom:14px}.chat-header .back-link{margin:0 8px 0 0;white-space:nowrap}.chat-header .eyebrow{margin:0 0 4px}.chat-header h1{font-size:18px;margin:0}.chat-header select{margin-left:auto;padding:8px;border:1px solid #dfe5de;border-radius:8px;background:white;color:#536157;font-size:11px}.voice-notice{font-size:10px;color:#785d2c;background:#f6f1e5;border-radius:8px;margin-top:10px;padding:9px 11px}.messages{flex:1;overflow:auto;padding:20px 3px}.message{display:flex;gap:11px;margin-bottom:20px}.avatar{height:29px;width:29px;border-radius:9px;background:#e4ebe2;color:#254935;display:grid;place-items:center;font-size:8px;font-weight:700;flex:0 0 29px}.user-message .avatar{background:#e9ebe7;color:#69716b}.message-body{min-width:0;flex:1}.message-role{font-size:10px;font-weight:700;margin:2px 0 6px;color:#38443d}.message-text{font-size:12px;line-height:1.7;color:#404b44}.sources{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.sources span{background:#eef2ec;border:1px solid #e2e9df;border-radius:7px;padding:6px 8px;font-size:9px;color:#57715f}.composer-wrap{padding:10px 0 max(8px,env(safe-area-inset-bottom));border-top:1px solid #e7ebe5}.voice-controls{display:flex;align-items:center;gap:11px;min-height:53px;padding:0 2px 9px}.mic-button{height:46px;width:46px;border:0;border-radius:50%;background:#173d31;color:#fff;font-size:18px;box-shadow:0 4px 12px #173d3127}.mic-button:hover,.mic-button.listening{background:#a53b30}.mic-button.listening{animation:pulse 1.2s infinite}.voice-controls>span{font-size:10px;color:#65736a;flex:1}.composer{border:1px solid #dfe5de;background:#fff;border-radius:12px;display:flex;align-items:end;padding:8px 9px 8px 13px;gap:9px}.composer textarea{border:0;outline:0;resize:none;flex:1;max-height:100px;padding:7px 0;color:#303c34;font-size:12px;line-height:1.5}.composer button{height:32px;width:32px;border:0;border-radius:9px;background:#e8eee6;color:#284b36;font-size:18px}.composer-wrap>p{color:#909991;font-size:9px;margin:7px 2px 0}.manuals-page{max-width:700px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.file-picker{font-size:11px;color:#52655a}.manual-list{margin-top:22px}.manual-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e8ece6;padding:12px 4px}.manual-file{width:36px;height:40px;border-radius:8px;background:#f7eae6;color:#ae5142;display:grid;place-items:center;font-size:9px;font-weight:700}.manual-info{flex:1;min-width:0}.manual-info strong,.manual-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-info strong{font-size:11px}.manual-info span{font-size:9px;color:#818a83;margin-top:4px}.delete-manual{border:0;background:none;color:#969e98;font-size:20px}.manual-list .empty-state{padding:12px 0}@keyframes pulse{50%{box-shadow:0 0 0 9px #a53b3023}}@media(max-width:700px){.topbar{height:56px;flex-basis:56px;padding:0 15px}.page{width:min(100% - 32px,640px);padding:32px 0 max(40px,env(safe-area-inset-bottom))}.home-page{padding-top:clamp(42px,8vh,76px)}.home-page h1{font-size:31px}.home-page>.muted{font-size:12px}.home-actions{grid-template-columns:1fr;gap:9px;margin-top:24px}.choice-card{min-height:78px}.detail-heading{align-items:flex-start;flex-direction:column}.detail-heading h1{font-size:26px}.voice-start{width:100%}.media-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.media-gallery img,.media-gallery video{height:150px}.chat-page{height:calc(100dvh - 56px);padding-top:13px;padding-bottom:max(7px,env(safe-area-inset-bottom))}.chat-header{gap:10px}.chat-header .back-link{font-size:10px;margin-right:0}.chat-header h1{font-size:14px}.chat-header select{padding:7px 4px;max-width:95px}.form-card{padding:16px}.record-section{padding:16px 0 20px}.record-section h2{font-size:14px}.section-title{align-items:flex-start}.two-fields{grid-template-columns:1fr}.voice-controls{min-height:50px}.messages{padding-top:14px}}
/* Headwork deletion control */
.detail-actions{display:flex;align-items:center;gap:10px}.delete-headwork{border:1px solid #e6c8c3;border-radius:9px;background:#fff;color:#a14438;padding:10px 12px;font-size:11px}.delete-headwork:hover{background:#fbefed;border-color:#d9a7a0}
@media(max-width:700px){.detail-actions{width:100%;flex-direction:column;align-items:stretch}.delete-headwork{width:100%}}
.regia-dialog{width:min(520px,calc(100% - 32px));padding:0;border:1px solid #dfe6dd;border-radius:18px;color:#26372e;box-shadow:0 24px 80px #13271d40}.regia-dialog::backdrop{background:#17221dcc;backdrop-filter:blur(2px)}.regia-dialog-card{padding:24px}.regia-dialog-card .eyebrow{margin:0 0 7px}.regia-dialog-card h2{font-family:Manrope,sans-serif;font-size:22px;margin:0 0 10px}.regia-dialog-card>p:not(.eyebrow){font-size:13px;line-height:1.6;color:#59665d;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.danger-button{border:0;border-radius:9px;background:#a63f35;color:#fff;padding:10px 14px;font-size:11px;font-weight:600}.danger-button:hover{background:#89352d}
 .team-user-list{display:grid;gap:8px}.team-user-item,.team-activity-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8ece6;padding:12px 4px}.team-user-item>div{display:grid;gap:4px}.team-user-item strong,.team-activity-item strong{font-size:11px}.team-user-item small,.team-activity-item small{font-size:9px;color:#818a83}.team-activity-item{align-items:flex-start;font-size:10px;color:#526057}.team-activity-item span{line-height:1.5}.team-activity-item small{white-space:nowrap}
 .team-user-actions{display:flex;align-items:center;gap:8px}.team-user-actions select{border:1px solid #e1e7df;background:#fff;border-radius:8px;padding:7px;color:#526057;font-size:10px}
 .company-label{font-size:10px;color:#68776d;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:500px){.company-label{max-width:90px;font-size:9px}.top-actions{gap:6px}.top-actions .quiet-button{padding:8px 9px}}
@media(max-width:390px){.company-label{display:none}}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.profile-heading h1{margin:6px 0 10px}.profile-heading .muted{margin:0;font-size:12px}.profile-card{max-width:620px;gap:14px;padding:20px}.profile-card>label{display:grid;gap:7px;padding-bottom:13px;border-bottom:1px solid #edf0eb}.profile-card>label input{width:100%;height:43px;border:1px solid #dfe5df;border-radius:10px;padding:10px 12px;background:#fcfdfb;outline:none;color:#303c34}.profile-card>label input:focus{border-color:#668a73;box-shadow:0 0 0 3px #3c795b16}.profile-card>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #edf0eb}.profile-card>div span{font-size:11px;color:#78847b}.profile-card>div strong{font-size:12px;font-weight:600;text-align:right}.profile-logout{white-space:nowrap}
@media(max-width:500px){.profile-heading{align-items:flex-start}.profile-heading .profile-logout{padding:8px 9px;font-size:10px}}
.regia-map-marker{background:transparent;border:0}.regia-map-marker span{position:relative;display:block;width:22px;height:22px;margin:0 0 0 2px;border:2px solid white;border-radius:50% 50% 50% 0;background:#408c60;box-shadow:0 1px 7px #102a1e99;transform:rotate(-45deg)}.regia-map-marker span::after{content:"";position:absolute;width:6px;height:6px;left:6px;top:6px;border-radius:50%;background:white}.regia-map-marker.active span{width:27px;height:27px;margin:-3px 0 0 0;background:#e0523f;box-shadow:0 0 0 5px #e0523f44,0 1px 8px #102a1e99}.regia-map-marker.active span::after{width:8px;height:8px;left:7px;top:7px}
.location-picker{display:grid;gap:9px}.location-picker>div:first-child{display:grid;gap:4px}.location-picker>div:first-child strong{font-size:12px;color:#385443}.location-picker>div:first-child small,.map-caption{font-size:10px;color:#818b83;line-height:1.5;margin:0}.headwork-map{height:350px;width:100%;border:1px solid #dfe5df;border-radius:12px;overflow:hidden;background:#e7e9e3;z-index:0}.picker-map{height:300px}.map-attribution{font-size:9px;color:#8a938c;margin:7px 0 0}.map-attribution a{color:#607467}.regia-map-marker{background:transparent;border:0}.regia-map-marker span{display:block;width:16px;height:16px;border:3px solid white;border-radius:50%;background:#408c60;box-shadow:0 1px 7px #102a1e99}.regia-map-marker.active span{width:22px;height:22px;margin:-3px;background:#e0523f;box-shadow:0 0 0 5px #e0523f44,0 1px 8px #102a1e99}.leaflet-popup-content{font:12px 'DM Sans',sans-serif;line-height:1.5}.leaflet-control-attribution{font-size:8px!important}@media(max-width:700px){.headwork-map{height:300px}.picker-map{height:260px}}
.login-logo{display:block;width:100%;height:110px;object-fit:cover;object-position:center 43%;margin:0 auto 18px}.login-logo.compact{width:min(100%,240px);height:78px;margin:0 0 22px}.topbar-logo{display:block;width:46px;height:46px;object-fit:contain;flex:0 0 46px;border-radius:10px}.brand-button{overflow:visible;align-items:center;gap:11px}.brand-name{font:700 25px/1 Manrope,sans-serif;letter-spacing:-.04em;color:#173d31}@media(max-width:700px){.topbar-logo{width:40px;height:40px;flex-basis:40px}.brand-name{font-size:22px}}
.brand-mark{font-size:19px;letter-spacing:-.09em}.brand-mark.small{font-size:12px}
.incident-toolbar{display:grid;gap:8px;padding:11px 0;border-bottom:1px solid #e7ebe5}.incident-status-line{font-size:10px;color:#65736a}.incident-status-line strong{color:#516f58}.incident-status-line strong.resolved-text{color:#26754a}.incident-toolbar>input{width:100%;height:38px;border:1px solid #dfe5de;border-radius:9px;padding:8px 11px;background:#fff;color:#303c34;font-size:11px}.incident-privacy{font-size:9px;line-height:1.5;color:#77817a;margin:0}.incident-actions{display:flex;gap:7px;flex-wrap:wrap}.incident-actions button{font-size:10px;padding:8px 10px}.incident-actions .primary{background:#173d31;color:#fff;border:0}
.voice-settings{display:flex;align-items:end;gap:9px;padding:8px 0;border-bottom:1px solid #e7ebe5;flex-wrap:wrap}.voice-settings label{display:grid;gap:4px;font-size:9px;color:#68766c}.voice-settings select{max-width:220px;min-width:120px;padding:7px 9px;border:1px solid #dfe5de;border-radius:8px;background:#fff;color:#455349;font-size:10px}.voice-settings .voice-rate-label{display:flex;align-items:center;gap:6px}.voice-rate-label input{width:90px;accent-color:#286545}.voice-rate-label span{min-width:30px;font-variant-numeric:tabular-nums}.voice-settings button{padding:7px 9px;font-size:10px}.voice-feedback{font-size:9px;color:#77817a;flex:1 1 100%}
