:root{--bg:#f7f8f5;--paper:#fff;--ink:#27322f;--muted:#737d75;--orange:#ea651c;--soft:#fff0e5;--line:#e7ebe5;--green:#24704a;--palegreen:#eaf4eb;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;font-size:14px;line-height:1.55}
button,input,textarea,select{font:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default;opacity:.55}
svg{width:20px;height:20px;flex-shrink:0}
button:focus-visible{outline:3px solid #f7af7e;outline-offset:3px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:none;border-color:#267b9d;box-shadow:inset 0 0 0 1px #267b9d}
input,textarea,select{color:var(--ink);caret-color:#243532;background:white;border:1px solid #dce2db;border-radius:10px;padding:12px 13px;width:100%;min-height:44px}
textarea{resize:vertical}
label{display:block;font-weight:600;font-size:13px;margin:18px 0 7px}
h1,h2,h3,p{margin-top:0}
h1{font-size:32px;font-weight:750;line-height:1.22;letter-spacing:-1.1px;margin-bottom:12px}
h2{font-size:21px;line-height:1.3;letter-spacing:-.35px}
h3{font-size:16px;line-height:1.3}
p{margin-bottom:12px}
small,.small{font-size:12px}
.muted,.help{color:var(--muted)}
.help{font-size:12px;line-height:1.6;margin:10px 0}
.draft-status{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0}
.draft-status:empty,.local-drafts:empty{display:none}
.local-drafts{max-width:720px;margin:24px auto;padding:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.local-drafts h2{margin-bottom:8px}
.local-draft-row{display:flex;align-items:center;gap:10px;margin-top:12px}
.local-draft-row>.secondary{flex:1;justify-content:flex-start;text-align:left;min-width:0}
.task-completion-copy{padding:16px;background:var(--palegreen);border-radius:12px}
.observation-period,.applied-filters{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 16px;margin:0 0 16px;border-radius:12px;background:#eaf3f8;color:#285e75}
.observation-period .text-button,.applied-filters .text-button{color:#285e75;flex-shrink:0}
.applied-filters{font-size:13px}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;border:0;border-radius:11px;padding:12px 18px;font-weight:650;min-height:46px}
.primary{background:var(--orange);color:#fff}
.primary:hover{background:#d85613}
.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}
.secondary:hover{background:#f5f6f2}
.full{width:100%}
.compact{align-self:center;min-height:40px;padding:10px 16px}
.text-button{border:0;background:none;padding:9px 0;color:#9e461c;font-size:12px;font-weight:650;text-align:left;min-height:36px}
.text-button:hover{text-decoration:underline}
.icon-button{background:none;border:0;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:var(--muted)}
.icon-button:hover{background:var(--bg)}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:5px 9px;font-size:11px;font-weight:650;line-height:1.4}
.neutral{background:#f0f3ef;color:#6a756b}
.green{background:var(--palegreen);color:var(--green)}
.amber{background:var(--soft);color:#a94f1c}
.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:#8a9a88;margin-bottom:12px}
.brand{font-size:18px;font-weight:850;letter-spacing:.5px;display:flex;align-items:center;gap:10px;line-height:1.15}
.brand span{display:block;font-size:9px;font-weight:500;letter-spacing:.1px;margin-top:6px}
.brand-logo{width:42px;height:42px;object-fit:contain;filter:grayscale(1);opacity:.8}
.layout{display:flex;min-height:100vh}
.sidebar{width:244px;flex-shrink:0;border-right:1px solid var(--line);padding:32px 21px 20px;background:#fff;display:flex;flex-direction:column;position:fixed;top:var(--app-safe-top);bottom:var(--app-safe-bottom);overflow-y:auto}
.sidebar .brand{font-size:16px}
.shift-switch{margin:36px 0 25px;background:#f8f9f6;border:1px solid var(--line);border-radius:12px;padding:16px}
.shift-switch small{font-size:9px;color:var(--orange);letter-spacing:1px;font-weight:750;display:block}
.shift-switch strong{display:block;font-size:14px;margin:5px 0}
.shift-switch span{font-size:10px;color:var(--muted)}
.nav-item{display:flex;gap:12px;align-items:center;background:none;border:0;border-radius:10px;width:100%;text-align:left;padding:13px 12px;margin:3px 0;color:#606e61;font-size:12px;font-weight:600}
.nav-item.active{background:var(--soft);color:#b8521b}
.nav-item:hover{background:var(--bg)}
.nav-heading{margin:33px 12px 8px;color:#a5ada2;font-size:8px;letter-spacing:1.5px;font-weight:700}
.nav-disabled{display:flex;align-items:center;gap:12px;padding:12px;color:#a5ada2;font-size:12px}
.sidebar-bottom{margin-top:auto;padding:32px 9px 0}
.sidebar-bottom p{font-size:10px;color:#97a18f;line-height:1.8;margin:12px 0 0}
.workspace{margin-left:244px;min-width:0;flex:1}
.topbar{height:81px;padding:0 34px;background:rgba(255,255,255,.8);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}
.location{font-size:11px;color:#6e796e}
.location span{color:#b0b8aa;padding:0 10px}
.top-right{display:flex;align-items:center;gap:10px}
.test-tag{border:1px solid #e4d8c8;color:#a47d45;border-radius:5px;font-size:8px;padding:4px 7px;letter-spacing:1px;white-space:nowrap}
.user-info strong,.user-info span{display:block;font-size:11px}
.user-info span{color:var(--muted);font-size:9px}
.avatar{display:inline-grid;place-items:center;flex-shrink:0;background:#f0f2e8;color:#727e55;border-radius:12px;width:42px;height:42px;font-size:14px;font-weight:700}
.avatar.mini{width:34px;height:34px;border-radius:50%;font-size:11px}
.avatar.large{width:56px;height:56px;border-radius:16px;font-size:20px}
.avatar.child{width:43px;height:47px;background:#f4ede4;color:#987253}
.avatar.child-avatar{background:#a1aab4;color:#fff;overflow:hidden}.avatar.child-avatar.boy{background:#53a9de}.avatar.child-avatar.girl{background:#e58fb2}.avatar.child-avatar svg{display:block;width:76%;height:76%;fill:currentColor;stroke:none}
.main{max-width:1500px;padding:36px 34px 30px;margin:0 auto}
.intro{display:flex;justify-content:space-between;gap:20px;margin:4px 0 26px}
.intro p{color:var(--muted);font-size:13px;line-height:1.75;margin-bottom:0}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}
.stat{display:flex;gap:16px;align-items:center;padding:20px 23px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.stat strong{font-size:28px;line-height:1;font-weight:750;display:block;letter-spacing:-1px}
.stat strong small{font-size:15px;font-weight:500;letter-spacing:0;color:#9ca691}
.stat span{font-size:10px;color:var(--muted);margin-top:7px;display:block}
.stat-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--soft);color:#c97b4d}
.stat-icon svg{width:22px;height:22px}
.stat-icon.soft-green{background:var(--palegreen);color:#588665}
.content-grid{display:grid;grid-template-columns:minmax(295px,.94fr) minmax(340px,1.12fr);gap:22px;align-items:start}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.panel-heading{padding:23px 22px 16px;display:flex;align-items:center;gap:10px}
.panel-heading h2{font-size:17px;margin:0}
.counter{background:#f0f3ed;border-radius:7px;font-size:10px;color:#7f8a74;min-width:22px;padding:2px 6px;text-align:center}
.search-row{display:flex;gap:8px;margin:0 19px 12px}
.search-field{margin:0;position:relative;flex:1;min-width:0}
.search-field svg{position:absolute;left:12px;top:13px;width:15px;height:15px;color:#99a38f}
.search-field input{padding-left:36px;font-size:11px;min-height:40px;background:#fafbf8}
.search-row select{font-size:10px;width:106px;min-height:40px;padding:8px;background:#fafbf8}
.child-row{display:flex;width:100%;align-items:center;gap:12px;padding:17px 21px;text-align:left;border:0;border-top:1px solid #f0f2ed;background:white;color:var(--ink);min-height:96px}
.child-row:hover{background:#fafbf8}
.child-row.selected{background:#fff6ed;box-shadow:inset 3px 0 var(--orange)}
.child-summary{display:flex;flex-direction:column;flex:1;min-width:0}
.child-summary strong{font-size:16px;font-weight:650}
.child-summary span{font-size:13px;color:#8a9485;margin:3px 0}
.child-summary small{font-size:12px}
.has-records{color:#6b876a}
.no-records{color:#af9b77}
.row-arrow{color:#bdc5b9}
.row-arrow svg{width:15px;height:15px}
.panel-foot{border-top:1px solid var(--line);font-size:9px;color:#8b9587;padding:16px 19px;display:flex;gap:9px;align-items:center;background:#fdfefb}
.panel-foot svg{width:16px;height:16px}
.empty-detail{padding:83px 20px 95px;text-align:center;display:flex;align-items:center;flex-direction:column}
.empty-detail h2{font-size:22px;line-height:1.4;letter-spacing:-.4px;margin:23px 0 13px}
.empty-detail p{color:#8b9486;font-size:12px;line-height:1.9;margin-bottom:25px}
.empty-icon{display:grid;place-items:center;width:72px;height:72px;border:1px dashed #d9e1d2;border-radius:23px;background:#f8faf5;color:#90a284}
.empty-icon svg{width:30px;height:30px}
.detail-heading{padding:23px 24px 15px;border-bottom:1px solid var(--line)}
.detail-title{display:flex;gap:14px;align-items:center}
.detail-title h2{font-size:19px;margin-bottom:0;overflow-wrap:anywhere}
.detail-title .eyebrow{display:block;font-size:9px;letter-spacing:1px;margin-bottom:7px}
.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:21px 0 12px}
.observations-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;margin-left:auto;padding:10px 16px;border:1px solid #dceff4;border-radius:11px;background:#fff;color:#126382;font-weight:650;white-space:nowrap}
.observations-download svg{width:20px;height:20px;flex:none}.observations-download:hover:not(:disabled){background:#eaf7fc}.observations-download:focus-visible{outline:3px solid #fff;outline-offset:3px}
.child-capture-button{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 52px;padding:0;border-radius:50%;border:1px solid #cce1e9;background:#fff;color:#147caa;box-shadow:0 3px 12px #146b8c10}
.child-capture-button.voice{background:#148bb7;color:#fff;border-color:#148bb7}.child-capture-button svg{width:23px;height:23px}
.detail-actions .primary{font-size:12px;min-height:41px;padding:10px 13px}
.detail-actions .primary svg{width:16px;height:16px}
.detail-heading .small{font-size:10px;margin-bottom:0}
.timeline-heading{display:flex;align-items:center;gap:10px;padding:21px 24px 6px}
.timeline-heading h3{font-size:13px;margin:0}
.timeline{padding:0 23px 15px}
.observation{padding:16px 0;border-bottom:1px solid var(--line)}
.observation:last-child{border-bottom:0}
.observation.excluded{opacity:.65}
.observation-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.observation-top strong{font-size:12px}
.version{font-size:9px;font-weight:650;color:#9ba594}
.metadata{font-size:10px;color:#879181;line-height:1.6;margin:4px 0 11px}
.observation-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#505c50;line-height:1.85;margin-bottom:12px}
.observation-time{font-size:9px;color:#909b88;display:flex;flex-direction:column;gap:3px}
.observation-links{display:flex;gap:18px;margin-top:7px}
.observation-links button{font-size:10px}
.shared-label{font-size:10px;color:#ac8355;background:#fff8eb;padding:8px;border-radius:8px}
.scope-note{margin-top:22px;padding:19px 22px;background:#eef2e9;border:1px solid #e4eadc;border-radius:12px;display:flex;flex-wrap:wrap;column-gap:18px;row-gap:5px;color:#728066}
.scope-note strong{font-size:11px;color:#536848}
.scope-note span{font-size:11px}
.scope-note p{font-size:10px;margin:0;flex-basis:100%}
footer{padding:0 35px 25px;font-size:9px;color:#a0a999}
.back-button{display:none}
.mobile-brand{display:none}
.staff-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:10px 22px 24px}
.staff-card{border:1px solid var(--line);border-radius:14px;padding:18px}
.staff-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}
.staff-card h3{font-size:14px;margin-bottom:5px}
.staff-card>p{font-size:11px;color:var(--muted)}
.staff-scope{font-size:10px;min-height:36px;color:var(--muted);margin:14px 0}
.staff-actions{border-top:1px solid var(--line);display:flex;gap:10px;flex-wrap:wrap;padding-top:6px}
.staff-actions button{font-size:10px}
.audit-list{padding:0 24px 20px}
.audit-row{display:flex;gap:15px;padding:20px 0;border-top:1px solid var(--line)}
.audit-icon{width:36px;height:36px;border-radius:11px;background:#f1f4ed;display:grid;place-items:center;color:#98a18c}
.audit-row strong{font-size:13px}
.audit-row p{font-size:11px;color:var(--muted);margin:3px 0}
.audit-row small{font-size:9px;color:#a2ab97;word-break:break-all}
.no-results{text-align:center;padding:40px 15px;color:#8d9686;font-size:12px;line-height:1.9}
dialog{inset:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left);border:1px solid var(--line);border-radius:22px;padding:33px;width:620px;max-width:calc(100vw - 28px);max-height:calc(var(--app-viewport-height) - 28px);overflow:auto;overscroll-behavior:contain;box-shadow:0 25px 100px #19231622;color:var(--ink);background:white}
dialog::backdrop{background:#1d281f55;backdrop-filter:blur(3px);touch-action:none}
body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}
.modal-close{position:sticky;float:right;right:0;top:0;z-index:5;margin:0 0 -44px auto;width:44px;height:44px;background:var(--paper);border:1px solid var(--line);border-radius:12px}
dialog h2{font-size:24px;margin-right:52px}
dialog>p{font-size:13px}
dialog .subjects{display:flex;gap:8px;flex-wrap:wrap}
.check-chip{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;gap:9px;padding:9px 11px;margin:0;font-size:11px;cursor:pointer}
.check-chip:has(:checked){border-color:#e9ae83;background:#fff7ef}
.check-chip input{accent-color:var(--orange);width:16px;height:16px;min-height:16px;margin:0}
.check-chip small{display:block;font-size:9px;color:var(--muted);font-weight:400}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;position:sticky;bottom:-33px;background:white;padding:10px 0 4px}
.error-text{font-size:12px;color:#ad392d;line-height:1.5}
.revision{padding:20px 0;border-bottom:1px solid var(--line)}
.revision .observation-text{margin-top:13px}
.loading{padding:50px;text-align:center;color:var(--muted)}
#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(80px);max-width:min(550px,calc(100vw - 30px));background:#284933;color:white;border-radius:13px;padding:14px 22px;font-size:13px;opacity:0;pointer-events:none;z-index:99;transition:.2s}
#toast.visible{transform:translateX(-50%);opacity:1}
#toast.error{background:#994234}
.login-page{min-height:100dvh;display:grid;grid-template-columns:minmax(420px,1.04fr) minmax(440px,.96fr);gap:clamp(22px,4vw,68px);padding:clamp(18px,2.5vw,36px);background:linear-gradient(135deg,#f5f8f6 0%,#eef5f4 100%)}
.login-story{min-height:calc(100dvh - clamp(36px,5vw,72px));border-radius:30px;background:linear-gradient(145deg,#067b9e 0%,#08a5c8 48%,#087f91 100%);color:#fff;padding:clamp(34px,5vw,72px);display:flex;flex-direction:column;position:relative;overflow:hidden;box-shadow:0 22px 58px rgba(10,82,97,.16)}
.login-story:before,.login-story:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.login-story:before{width:540px;height:540px;border:70px solid rgba(255,255,255,.11);right:-250px;top:-230px}
.login-story:after{width:310px;height:310px;border:2px solid rgba(255,255,255,.24);right:-48px;bottom:-105px}
.login-brand{display:flex;align-items:center;gap:24px;position:relative;z-index:1;min-height:116px}
.login-product-name{display:block;font-size:52px;line-height:1.05;font-weight:750;letter-spacing:-1.5px;color:#fff}.login-product-name small{display:block;margin-top:10px;font-size:14px;font-weight:500;letter-spacing:.3px;color:#d4f3fa}
.login-brand-logo{display:block;width:120px;height:116px;object-fit:contain;filter:brightness(0) invert(1);opacity:.98}
.login-story-copy{max-width:650px;margin:auto 0;position:relative;z-index:1;padding:56px 0 36px}
.login-overline{display:block;margin-bottom:20px;color:#bceefa;font-size:11px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase}
.login-story h1{max-width:680px;margin:0;font-size:clamp(40px,4vw,62px);line-height:1.07;letter-spacing:-2.4px;font-weight:780;text-wrap:balance}
.login-story-copy p{max-width:570px;margin:25px 0 0;color:rgba(255,255,255,.79);font-size:16px;line-height:1.75}
.login-story-features{display:flex;gap:12px;flex-wrap:wrap;position:relative;z-index:1}
.login-story-features span{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.1);font-size:11px;font-weight:650;backdrop-filter:blur(8px)}
.login-story-features svg{width:16px;height:16px}
.story-foot{display:flex;justify-content:space-between;gap:20px;position:relative;z-index:1;margin-top:22px;color:rgba(255,255,255,.6);font-size:10px}
.login-panel-wrap{align-self:center;width:100%;max-width:560px;margin:0 auto}
.login-panel{width:100%;padding:clamp(30px,4.2vw,48px);border:1px solid rgba(219,228,222,.9);border-radius:28px;background:rgba(255,255,255,.96);box-shadow:0 24px 68px rgba(38,63,53,.1)}
.auth-heading{margin-bottom:28px}
.auth-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;color:#147a91;font-size:11px;font-weight:750;letter-spacing:.2px}
.auth-kicker svg{width:18px;height:18px}
.login-panel h2{margin:0 0 12px;font-size:34px;line-height:1.13;letter-spacing:-1.2px;text-wrap:balance}
.auth-heading p{max-width:440px;margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.auth-form label{margin-top:18px;color:#34433e;font-size:12px}
.auth-form input,.auth-form select{min-height:52px;border-radius:13px;padding:14px 15px;background:#fbfcfa;font-size:14px}
.auth-form input::placeholder{color:#99a29b}
.auth-input-wrap{position:relative}
.auth-input-wrap input{padding-right:52px}
.auth-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:39px;height:39px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#78847e}
.auth-password-toggle:hover{background:#eef3f0;color:#267b9d}
.auth-password-toggle:focus-visible{outline:2px solid #267b9d;outline-offset:0}
.auth-password-toggle svg{width:19px;height:19px}
.auth-submit{min-height:52px;margin-top:22px;border-radius:13px;font-size:14px;box-shadow:0 10px 22px rgba(222,91,20,.16)}
.telegram-button.auth-submit{box-shadow:0 10px 24px rgba(25,124,174,.18);text-decoration:none}
.auth-security-note{display:flex;align-items:flex-start;gap:11px;margin-top:24px;padding:14px 15px;border-radius:13px;background:#f1f7f4;color:#65756d;font-size:11px;line-height:1.6}
.auth-security-note svg{width:19px;height:19px;margin-top:1px;color:#3d8a68}
.login-panel .error-text{margin:14px 0 0;padding:11px 13px;border-radius:10px;background:#fff1ef}
.login-panel .error-text:empty{display:none}
.login-divider{display:flex;align-items:center;gap:12px;margin:20px 0 4px;color:#929d96;font-size:10px}
.login-divider:before,.login-divider:after{content:"";height:1px;background:var(--line);flex:1}
.login-success{position:fixed;inset:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left);z-index:1000;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#067b9e 0%,#08a5c8 52%,#087f91 100%);color:#fff;opacity:0;transition:opacity .28s ease;overflow:hidden}
.login-success:before,.login-success:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.18)}
.login-success:before{width:min(72vw,820px);height:min(72vw,820px);right:-24vw;top:-38vw}
.login-success:after{width:min(46vw,520px);height:min(46vw,520px);left:-18vw;bottom:-28vw}
.login-success.active{opacity:1}
.login-success.leaving{opacity:0}
.login-success-content{position:relative;z-index:1;text-align:center;transform:translateY(12px);opacity:0;transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .38s ease}
.login-success.active .login-success-content{transform:none;opacity:1}
.login-success-mark{position:relative;width:156px;height:156px;display:grid;place-items:center;margin:0 auto 26px}
.login-success-mark:before,.login-success-mark:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.42);border-radius:50%;transform:scale(.5);opacity:0}
.login-success.active .login-success-mark:before{animation:login-ripple 1.05s .08s cubic-bezier(.2,.7,.2,1) both}
.login-success.active .login-success-mark:after{animation:login-ripple 1.05s .3s cubic-bezier(.2,.7,.2,1) both}
.login-success-mark img{width:108px;height:105px;object-fit:contain;filter:brightness(0) invert(1);transform:scale(.72);opacity:0;transition:transform .62s .12s cubic-bezier(.22,1,.36,1),opacity .35s .08s ease}
.login-success.active .login-success-mark img{transform:scale(1);opacity:1}
.login-success-mark span{position:absolute;right:10px;bottom:9px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#f59a49;color:#fff;box-shadow:0 8px 20px rgba(44,75,67,.22);transform:scale(0);transition:transform .38s .5s cubic-bezier(.34,1.56,.64,1)}
.login-success.active .login-success-mark span{transform:scale(1)}
.login-success-mark span svg{width:20px;height:20px;stroke-width:2.5}
.login-success-content p{margin:0 0 9px;color:#bdeef6;font-size:11px;font-weight:750;letter-spacing:1.5px;text-transform:uppercase}
.login-success-content h2{margin:0;font-size:clamp(28px,4vw,44px);letter-spacing:-1.2px}
.login-success-content small{display:block;margin-top:11px;color:rgba(255,255,255,.72);font-size:12px}
@keyframes login-ripple{0%{transform:scale(.48);opacity:0}28%{opacity:.7}100%{transform:scale(1.3);opacity:0}}
@media(min-width:1600px){.main{padding-top:48px}
}
@media(max-width:1150px){.sidebar{width:209px;padding-left:14px;padding-right:14px}
.sidebar .brand{font-size:14px;gap:7px}
.brand-logo{width:34px;height:34px}
.workspace{margin-left:209px}
.topbar{padding:0 23px}
.location{display:none}
.top-right{width:100%;justify-content:flex-end}
.main{padding:25px 23px}
.intro h1{font-size:27px}
.content-grid{gap:15px;grid-template-columns:minmax(270px,1fr) minmax(300px,1.03fr)}
.stat{padding:17px 16px;gap:12px}
.stat span{font-size:9px}
.staff-grid{grid-template-columns:repeat(2,1fr)}
.login-page{grid-template-columns:minmax(360px,.92fr) minmax(420px,1.08fr);gap:24px}
.login-story{padding:38px}
.login-story h1{font-size:44px}
}
@media(max-width:820px){.sidebar{display:none}
.layout:not(.admin-shell) .staff-profile .profile-close{display:none}
.workspace{margin-left:0}
.topbar{height:65px;padding:0 18px}
.main{padding:21px 18px}
.mobile-brand{display:flex;padding:22px 18px 0;justify-content:space-between;font-weight:800;font-size:16px;letter-spacing:.4px}
.mobile-brand span{font-size:9px;font-weight:500;color:#9aa58c}
.content-grid{grid-template-columns:1fr}
.detail-panel{display:none}
.child-open .children-panel{display:none}
.child-open .detail-panel{display:block}
.back-button{display:inline-flex;align-items:center;min-height:44px;border:1px solid #d6e8ef;border-radius:12px;background:#fff;color:#147caa;padding:10px 16px;margin-bottom:20px;font-size:14px;font-weight:650;box-shadow:0 3px 10px #17516b0a}
.test-tag{margin-right:auto}
.intro{margin:4px 0 20px;gap:8px}
.intro h1{font-size:29px;letter-spacing:-1px}
.intro p{font-size:12px;line-height:1.8}
.intro .compact{font-size:10px;padding:8px;align-self:flex-start;margin-top:24px}
.stats{gap:8px;margin-bottom:20px}
.stat{padding:15px 11px;gap:10px}
.stat-icon{display:none}
.stat strong{font-size:26px}
.stat span{font-size:9px;line-height:1.5}
.child-row{min-height:97px;padding:16px 20px}
.child-summary strong{font-size:16px}
.child-summary span{font-size:13px}
.child-summary small{font-size:12px}
.scope-note{margin-top:18px;padding:16px}
.scope-note strong{font-size:11px}
.scope-note span{font-size:10px}
.top-right .user-info{max-width:180px}
.top-right .user-info strong{font-size:11px}
.top-right .user-info span{font-size:9px}
.detail-title h2{font-size:21px}
.observation-text{font-size:14px}
.observation-top strong{font-size:13px}
.metadata{font-size:11px}
.observation-time{font-size:10px}
.observation-links button{font-size:11px}
footer{padding:0 18px 25px}
.desktop-only{display:none}
.login-page{height:var(--app-viewport-height);min-height:var(--app-viewport-height);display:grid;grid-template-columns:1fr;grid-template-rows:minmax(76px,1fr) auto minmax(14px,.7fr);gap:0;overflow:auto;padding:0;background:linear-gradient(160deg,#087f9f 0%,#0aa9c9 57%,#078a9b 100%)}
.login-story{min-height:0;align-items:center;justify-content:center;padding:0 20px;border-radius:0;background:transparent;box-shadow:none}
.login-story:before{width:300px;height:300px;border-width:40px;right:-170px;top:-190px}
.login-story:after{width:170px;height:170px;left:-85px;right:auto;bottom:-115px}
.login-brand{min-height:54px;justify-content:center;gap:14px}.login-product-name{font-size:30px;letter-spacing:-.8px}.login-product-name small{font-size:11px;margin-top:5px}
.login-brand-logo{width:54px;height:52px}
.login-story-copy,.login-story-features,.story-foot{display:none}
.login-panel-wrap{position:relative;z-index:2;min-height:0;width:100%;max-width:560px;display:flex;align-items:center;margin:0 auto;padding:0 14px}
.login-panel{width:100%;padding:24px 22px;border:0;border-radius:22px;box-shadow:0 18px 48px rgba(18,73,78,.2)}
.login-panel h2{font-size:28px;letter-spacing:-.8px}
.auth-heading{margin-bottom:20px}
.auth-heading p{font-size:13px;line-height:1.62}
.auth-kicker{margin-bottom:13px}
.auth-form input,.auth-form select{font-size:16px}
.auth-submit{margin-top:18px}
.staff-grid{gap:10px;padding:10px 14px 20px}
.staff-card{padding:14px}
.staff-card h3{font-size:12px}
.staff-card .avatar{width:34px;height:34px;font-size:11px}
.staff-card .pill{font-size:9px}
dialog{padding:25px 20px;border-radius:18px;max-height:calc(var(--app-viewport-height) - 24px)}
dialog h2{font-size:23px}
.modal-actions{bottom:-25px}
.form-grid{grid-template-columns:1fr}
dialog .subjects{max-height:150px;overflow:auto}
.modal-actions .primary{font-size:12px}
.subjects .check-chip{font-size:11px}
.user-info{display:block}
}
@media(max-width:820px) and (max-height:650px){.login-page{grid-template-rows:minmax(64px,1fr) auto minmax(8px,.7fr)}
.login-brand{min-height:48px}
.login-brand-logo{width:48px;height:46px}
.login-panel{padding:18px 20px;border-radius:19px}
.auth-heading{margin-bottom:12px}
.auth-kicker{margin-bottom:7px;font-size:10px}
.login-panel h2{margin-bottom:6px;font-size:24px}
.auth-heading p{font-size:11px;line-height:1.4}
.auth-form label{margin-top:9px;margin-bottom:4px}
.auth-form input,.auth-form select{min-height:44px;padding:10px 12px}
.auth-form .help{margin:5px 0;font-size:10px;line-height:1.35}
.auth-submit{min-height:44px;margin-top:12px}
.auth-security-note{display:none}
.login-divider{margin:10px 0 2px}
}
@media(prefers-reduced-motion:reduce){.login-success,.login-success-content,.login-success-mark img,.login-success-mark span{transition-duration:.01ms}.login-success.active .login-success-mark:before,.login-success.active .login-success-mark:after{animation:none}}
@media(max-width:370px){.top-right{gap:6px}
.test-tag{font-size:7px;padding:4px}
.intro h1{font-size:25px}
.stat strong{font-size:23px}
.main{padding:18px 13px}
.child-summary strong{font-size:16px}
.child-row{padding:15px}
.staff-grid{grid-template-columns:1fr}
}
/* Mobile fixes verified during the iPhone Telegram Mini App walkthrough. */
.modal-close svg{width:24px;height:24px}
.modal-feedback{position:sticky;top:-25px;z-index:2;margin:-13px 34px 18px 0;padding:12px 14px;border-radius:10px;background:var(--palegreen);color:var(--green);font-size:12px;font-weight:650;line-height:1.45}
.modal-feedback.error{background:#f7e7e3;color:#8c3028}
@media(max-width:820px){
.modal-feedback{margin:-9px 35px 16px 0}
}
.telegram-button{display:inline-flex;justify-content:center;align-items:center;gap:9px;border:0;border-radius:11px;padding:12px 18px;min-height:46px;background:#2188bd;color:#fff;font-weight:700;text-decoration:none}
.telegram-button:hover{background:#1875a5}
.telegram-button svg{width:17px;height:17px}
.detail-actions .telegram-button{font-size:12px;min-height:41px;padding:10px 13px}
.nav-enabled{display:flex;align-items:center;gap:12px;padding:12px;color:#63806b;font-size:11px}
.voice-card{padding:22px;border:1px solid var(--line);border-radius:16px;background:#f8faf7;text-align:center}
.record-orb{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#fff0e5;color:var(--orange);box-shadow:0 0 0 8px #fff7f0}
.record-orb svg{width:29px;height:29px}
.voice-card>strong,.voice-card>span{display:block}
.voice-card>span{font-variant-numeric:tabular-nums;color:var(--muted);margin:5px 0 14px}
.voice-actions{display:flex;justify-content:center;gap:8px;margin-bottom:14px}
.voice-card audio{width:100%;margin:8px 0 13px}
.mock-banner{display:flex;flex-direction:column;gap:4px;padding:13px 15px;margin:18px 0;border-radius:11px;background:#fff5df;border:1px solid #f2d7a3;color:#80531b}
.mock-banner strong{font-size:11px;letter-spacing:.5px}
.mock-banner span{font-size:10px;line-height:1.55}
.report-grid{display:grid;gap:20px}
.report-card{padding:28px;max-width:980px}
.report-head{display:flex;align-items:start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}
.report-head h2{font-size:27px;margin-bottom:0}
.report-statuses{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.report-statuses span{padding:8px 10px;border-radius:8px;background:#f3f6f2;color:var(--muted);font-size:10px}
.report-card>h3{color:#276b78;margin:23px 0 7px}
.report-card>p{font-size:14px;line-height:1.75;max-width:780px}
.report-card details{margin-top:25px;border-top:1px solid var(--line);padding-top:18px}
.report-card summary{cursor:pointer;font-weight:750;color:#7b5837}
.evidence-list{display:grid;gap:10px;margin-top:13px}
.evidence-list article{padding:14px;border-radius:11px;background:#fbf8f0;border-left:3px solid #e8aa4d}
.evidence-list strong{font-size:10px}
.evidence-list p{font-size:12px;line-height:1.65;margin:7px 0}
.report-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:22px;padding-top:20px}
:root{--app-safe-top:env(safe-area-inset-top,0px);--app-safe-bottom:env(safe-area-inset-bottom,0px);--app-safe-left:env(safe-area-inset-left,0px);--app-safe-right:env(safe-area-inset-right,0px);--app-viewport-height:calc(100dvh - var(--app-safe-top) - var(--app-safe-bottom))}
.telegram-mini-app{--app-safe-top:calc(max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px)) + max(var(--app-native-controls,0px),var(--tg-content-safe-area-inset-top,0px)));--app-safe-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px));--app-safe-left:max(env(safe-area-inset-left,0px),var(--tg-safe-area-inset-left,0px),var(--tg-content-safe-area-inset-left,0px));--app-safe-right:max(env(safe-area-inset-right,0px),var(--tg-safe-area-inset-right,0px),var(--tg-content-safe-area-inset-right,0px))}
.telegram-fullscreen{--app-native-controls:56px}
.telegram-mini-app body{padding:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left)}
.login-panel #telegram-login{margin-top:12px}
.voice-card.complete .voice-actions{display:none}
.voice-card.complete #voice-upload{background:var(--green);opacity:1}
@media(max-width:820px){.detail-actions{align-items:center;flex-direction:row;gap:12px}
.detail-actions .text-button{align-self:flex-start}
.voice-actions{flex-direction:column}
.report-card{padding:19px}
.report-head h2{font-size:23px}
.report-statuses{flex-direction:column}
.report-actions{align-items:stretch;flex-direction:column}
.report-actions>*{width:100%;justify-content:center}
.nav-enabled{display:none}
}
/* Голосовая кнопка v0.2: одно нажатие запускает запись, повторное останавливает. */
.viewport-safe-probe{position:fixed;visibility:hidden;pointer-events:none;width:0;height:0;padding:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left)}
.modal-neutral:focus{outline:none}
.modal-neutral>p{font-size:13px}
.modal-close:focus:not(:focus-visible){outline:none}
.modal-close:focus-visible,.voice-record-button:focus-visible{outline:3px solid #72b9dc;outline-offset:4px}
.voice-record-button{position:relative;isolation:isolate;width:108px;height:108px;margin:5px auto 18px;border:0;border-radius:50%;display:grid;place-items:center;background:#238ec4;color:#fff;box-shadow:0 12px 28px #207aa733,0 0 0 9px #eaf6fb;transition:transform .18s ease,background .18s ease,box-shadow .18s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.voice-record-button:hover{background:#1a7eaf;transform:translateY(-1px)}
.voice-record-button:active{transform:scale(.96)}
.voice-record-button:disabled{cursor:wait;opacity:.72}
.voice-record-button svg{width:43px;height:43px;position:relative;z-index:1}
.voice-card.recording .voice-record-button{background:#ed6418;box-shadow:0 12px 30px #d6532244,0 0 0 9px #fff0e6}
.voice-card.recording .voice-record-button:before,.voice-card.recording .voice-record-button:after{content:"";position:absolute;inset:-9px;border:2px solid #ed641866;border-radius:50%;z-index:-1;animation:voice-pulse 1.6s ease-out infinite}
.voice-card.recording .voice-record-button:after{animation-delay:.8s}
.voice-card.recording .voice-record-button svg{width:36px;height:36px}
.voice-card.recorded .voice-record-button{background:#508361;box-shadow:0 12px 28px #426f5038,0 0 0 9px #edf5ee}
.voice-card.uploading .voice-record-button,.voice-card.complete .voice-record-button{background:#879589;box-shadow:0 0 0 9px #f0f3f0}
.voice-card.complete .voice-record-button{display:none}
.voice-sound-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:0 0 12px;color:var(--muted);font-size:10px;font-weight:550;cursor:pointer}
.voice-sound-toggle input{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#238ec4}
.voice-delete{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;margin:1px auto 8px!important}
.voice-delete[hidden]{display:none!important}
.voice-delete svg{width:15px;height:15px}
.voice-card.recording .voice-sound-toggle,.voice-card.uploading .voice-sound-toggle{pointer-events:none;opacity:.55}
.voice-card.recording #voice-time{color:#c64f16;font-weight:750}
.voice-card #voice-status{min-height:21px}
.voice-card audio{display:block}
.voice-card audio[hidden]{display:none}
@keyframes voice-pulse{0%{opacity:.8;transform:scale(.88)}
70%,100%{opacity:0;transform:scale(1.22)}
}
@media(max-width:820px){.voice-record-button{width:116px;height:116px;margin-top:10px}
.voice-record-button svg{width:46px;height:46px}
.voice-card{padding:24px 17px}
}
@media(prefers-reduced-motion:reduce){.voice-record-button{transition:none}
.voice-card.recording .voice-record-button:before,.voice-card.recording .voice-record-button:after{animation:none;opacity:.5}
}
:root .brand-logo{filter:none;opacity:1;object-fit:contain}
/* Главный экран: голос сразу, выбор ребёнка — по желанию. */
[hidden]{display:none!important}
.capture-home{max-width:660px;margin:0 auto}
.capture-home .voice-card{border:0;background:transparent;padding:12px 0 20px}
.voice-stage{position:relative;display:grid;place-items:center;width:214px;height:214px;margin:0 auto 8px}
.voice-stage .voice-record-button{width:136px;height:136px;margin:0;border:1px solid #ffffff55;background:linear-gradient(145deg,#40b3df,#187eb5);box-shadow:0 13px 32px #167ead38,0 0 0 12px #e9f4f8}
.voice-stage .voice-record-button svg{width:48px;height:48px}
.voice-waves{position:absolute;inset:0;border-radius:50%;opacity:.45;pointer-events:none}
.voice-waves i{position:absolute;left:calc(50% - 1.5px);top:calc(50% - 2px);width:3px;height:calc(var(--bar,4)*1px);border-radius:8px;background:#83b9c4;transform:rotate(var(--angle)) translateY(-96px);transform-origin:1.5px 2px}
.voice-card.recording .voice-waves{opacity:1}
.voice-card.recording .voice-waves i{background:#ed8a45}
.voice-card.recording .voice-record-button{background:linear-gradient(145deg,#ff985a,#e56122);box-shadow:0 12px 32px #e5612233,0 0 0 calc(8px + var(--level,0)*12px) #fce8d9}
.voice-card.recording .voice-record-button:before,.voice-card.recording .voice-record-button:after{display:none}
.voice-card.recorded .voice-stage,.voice-card.uploading .voice-stage,.voice-card.complete .voice-stage{display:none}
.voice-card.recorded,.voice-card.uploading{padding-top:32px}
.voice-card #voice-status{font-size:var(--voice-status-size,18px);font-weight:var(--voice-status-weight,650)}
.voice-card #voice-time{font-size:var(--voice-time-size,13px);font-weight:var(--voice-time-weight,400);margin:9px 0 22px;min-height:20px}
.voice-card.recorded{--voice-status-size:13px;--voice-status-weight:400;--voice-time-size:18px;--voice-time-weight:650}
.recording-actions{display:flex;justify-content:center;gap:24px;margin:26px auto}
.recording-actions>div{display:flex;align-items:center;flex-direction:column;gap:10px;flex:0 1 84px}
.recording-actions span{font-size:12px;color:#63736c;line-height:1.35;text-align:center;max-width:112px}
.round-action{width:66px;height:66px;border:0;border-radius:50%;display:grid;place-items:center;box-shadow:0 6px 15px #1e403010;transition:transform .15s}
.round-action:active{transform:scale(.94)}
.round-action svg{width:26px;height:26px}
.round-action.listen{background:#e1f1fc;color:#237daf}
.round-action.save{background:#2b8663;color:white;box-shadow:0 7px 20px #2b86632b}
.round-action.delete{background:#fce8e4;color:#bc5b4b}
.capture-secondary{display:grid;gap:12px;max-width:360px;margin:0 auto 16px}
.capture-text,.capture-child{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:12px 16px;border-radius:16px;font-weight:600;font-size:14px}
.capture-text{background:white;border:1px solid #dfe8e0;color:#40584b}
.capture-child{border:0;background:#edf2ec;color:#67816c}
.capture-child>svg:last-child{width:14px}
.voice-sound-toggle{font-size:11px;opacity:.85}
.attention-panel{padding:22px 24px;background:#fff;border:1px solid #e2e9df;border-radius:22px}
.attention-panel h2{font-size:20px;margin:0 0 8px}
.attention-item{border-top:1px solid #edf0e9;padding:20px 0 15px}
.attention-item:first-child{border-top:0}
.attention-person{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.attention-person strong{font-size:14px}
.attention-person small{display:block;color:#8b9588;font-size:11px;margin-top:3px}
.attention-item h3{font-size:13px;color:#5c7e60;margin-bottom:5px}
.attention-item p{font-size:14px;line-height:1.6;margin-bottom:6px}
.attention-item>.muted{display:block;font-size:11px}
.attention-item .text-button{display:flex;align-items:center;gap:7px;margin-top:8px;color:#287e71}
.attention-panel>.help{font-size:11px;margin-bottom:0}
.saved-recordings{margin-top:22px}
.saved-recordings:empty{display:none}
.saved-recordings h2{font-size:18px}
.saved-recordings button{margin:8px 0;justify-content:flex-start;text-align:left;font-size:12px}
.section-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.section-bar h1{font-size:23px;margin:0}
.observation-page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.observation-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.observation-add{display:none}
@media(min-width:821px){
 .section-bar:has(.observation-page-actions){flex-wrap:wrap}
 .observation-add{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--grass-button-strong-border);border-radius:11px;background:var(--grass-button-strong-fill);color:#fff;font-weight:650;white-space:nowrap;box-shadow:0 3px 9px #507f2520}
 .observation-add:hover{background:var(--grass-button-strong-hover)}
}
#capture-choices{max-height:48dvh;overflow:auto;margin-top:14px}
#capture-choices .child-row{min-height:66px;gap:12px}
#capture-choices small{display:block;font-size:11px;color:var(--muted)}
#transcript-form>.primary{margin-top:20px}
.modal-neutral>audio{width:100%}
.voice-card .error-text:empty{display:none}
@media(max-width:820px){.capture-home .voice-card{padding-top:0}
.main{padding-top:12px}
.mobile-brand{display:none}
.topbar{height:48px}
.attention-panel{padding:18px}
.recording-actions{gap:18px}
.topbar .avatar{display:none}
.topbar .user-info{max-width:none}
.voice-stage{height:204px}
.capture-secondary{max-width:340px}
.capture-home{padding-bottom:15px}
}
@media(prefers-reduced-motion:reduce){.voice-waves{display:none}
.voice-card.recording .voice-record-button{box-shadow:0 12px 32px #e5612233,0 0 0 8px #fce8d9}
.round-action{transition:none}
}
/* Notifications use a stable width; mobile edges match the report action. */
#toast{width:min(550px,calc(100vw - 48px));overflow-wrap:anywhere;bottom:calc(16px + max(var(--overlay-bottom-gap,0px),var(--app-safe-bottom)));}
@media(max-width:820px){#toast{width:calc(100% - 76px);max-width:none;}
}
@media(max-width:420px){#toast{width:calc(100% - 78px);}
}
@media(max-width:370px){#toast{width:calc(100% - 68px);}
}
.report-card>p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:820px){:root .layout{display:block}
}
/* Общие колонки сохраняют оси иконок и подписей во всех строках меню. */
@media(max-width:820px){
 .layout>.sidebar,.workspace>.topbar{display:none}
}
.staff-mobile-header{display:none}
.shift-day{margin:0 0 12px;color:#456760;font-size:13px;font-weight:600}
.shift-day:empty{display:none}
.group-number-badge{flex:0 0 30px;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-left:auto;border-radius:8px;background:#e1f1f4;color:#28697c;font-size:13px;font-weight:700}
.picker-child-name{flex:1;min-width:0;overflow-wrap:anywhere;text-align:left}
.picker-list .check-chip{display:flex;gap:12px;align-items:center}.picker-list .check-chip>span:not(.group-number-badge){flex:1;min-width:0}
.whole-group-controls{display:grid;gap:10px;margin:12px 0}.whole-group-check{display:flex;align-items:center;gap:10px}.whole-group-check input{width:20px;min-height:20px;height:20px}
.drawer-workspace{padding:16px 0;display:grid;gap:8px;border-bottom:1px solid var(--line)}
.guide-dialog{width:620px;padding:18px;overflow:auto}.guide-dialog .modal-neutral{outline:none}.guide-pages img{display:block;width:100%;height:auto;margin:12px 0;border-radius:12px}.guide-role-tabs{display:flex;gap:8px}.guide-role-tabs button{flex:1;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f5f9f8}.guide-role-tabs button[aria-pressed=true]{background:#dff1eb;color:#245e50}
.attention-check-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.attention-check-list .stats-task{display:flex;align-items:flex-start;gap:12px;padding:16px;line-height:1.55}.attention-check-list .stats-task input{flex:0 0 22px;width:22px;min-height:22px;height:22px;margin:3px 0 0;accent-color:#499e67}.attention-check-list small{display:block;color:var(--muted)}
.attention-progress{display:block;width:100%;height:10px;border-radius:99px;overflow:hidden;margin:16px 0}
.drawer-partners{margin:16px 0;padding:16px;border:1px solid #dce8e5;border-radius:16px;background:#f5f9f7}
.drawer-partners h3{margin:0 0 12px;font-size:14px;color:#345a50}
.drawer-partner{display:flex;gap:10px;align-items:center;margin-top:12px}.drawer-partner>div{min-width:0}.drawer-partner strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.drawer-partner small{display:block;font-size:11px;color:#657d75;margin-top:2px}
.partner-avatar,.observation-author-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;width:34px;height:34px;border-radius:50%;background:#e1efea;color:#397762;font-size:11px}.partner-avatar img,.observation-author-avatar img{width:100%;height:100%;object-fit:cover}.observation-author{display:flex;align-items:center;gap:8px;min-width:0}.observation-author-avatar{width:26px;height:26px;font-size:9px}.observation-author strong{overflow-wrap:anywhere}
.single-group-label{color:white;font-weight:600;font-size:14px;text-align:right;padding:0 8px}
.children-panel .search-row:has(.single-group-label){grid-template-columns:minmax(0,1fr) auto}
.keyboard-dismiss{display:none}
.guide-examples{background:#f5f3ed;border-radius:12px;padding:22px;line-height:1.6;color:#283c39}.guide-examples h3{font-size:26px;color:#00689f}.guide-examples article{background:white;border-radius:16px;padding:18px;margin:16px 0}.guide-examples h4{margin:0 0 10px;color:#00689f;font-size:19px}.guide-examples p{margin:8px 0}.guide-examples aside{padding:18px;background:#e5f2e9;border-radius:16px}
@media(pointer:coarse){.keyboard-dismiss{display:block;margin:4px 0 8px auto;min-height:36px;padding:6px 12px;background:#edf5f4;color:#28697c;border:1px solid #d7e7e4;border-radius:10px;font-size:13px}}
.staff-drawer{position:fixed;inset:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) auto;margin:0;width:min(340px,90vw);max-width:90vw;height:var(--app-viewport-height);max-height:var(--app-viewport-height);padding:0;border:0;border-radius:26px 0 0 26px;overflow:auto;background:#fff;box-shadow:-16px 0 60px #173a4930}
.staff-drawer[open]{animation:staff-drawer-enter .22s ease-out}
.staff-drawer::backdrop{background:#16384166;backdrop-filter:blur(4px)}
body:has(.staff-drawer[open]){overflow:hidden}
.staff-drawer-inner{min-height:100%;display:flex;flex-direction:column;padding:24px 20px 20px;outline:none}
.staff-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.staff-drawer-heading small{font-size:10px;letter-spacing:1.8px;color:#348496;font-weight:700}
.staff-drawer-heading h2{font-size:26px;margin:4px 0 0}
.staff-menu-open,.staff-menu-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:1px solid #dcebed;border-radius:14px;background:#f2f8f8;color:#276773}
.staff-menu-open svg,.staff-menu-close svg{width:23px;height:23px}
.staff-drawer-person{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;padding:18px;border-radius:18px;background:linear-gradient(125deg,#e6f6fb,#edf7e6);border:1px solid #dcecef;margin-bottom:22px;overflow-wrap:anywhere}
.staff-drawer-person .staff-drawer-avatar{display:grid;place-items:center;width:48px;height:48px;margin:0;border-radius:50%;overflow:hidden;background:#fff;color:#348496}
.staff-drawer-avatar img{width:100%;height:100%;object-fit:cover}.staff-drawer-avatar svg{width:28px;height:28px}
.staff-profile-edit{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #c8ddd5;border-radius:12px;background:#ffffffb8;color:#326751;font-size:13px;font-weight:600}.staff-profile-edit svg{width:18px;height:18px}
.staff-drawer-person strong,.staff-drawer-person span,.staff-drawer-person small{display:block}
.staff-drawer-person strong{font-size:17px;line-height:1.4}
.staff-drawer-person span{font-size:13px;color:#3c7272;margin-top:6px}
.staff-drawer-person small{font-size:12px;color:#627679;margin-top:10px;line-height:1.5}
.staff-drawer nav{display:grid;gap:8px;margin-bottom:24px}
.staff-drawer nav button,.staff-drawer-logout{display:flex;align-items:center;gap:14px;min-height:52px;width:100%;padding:13px 16px;border:1px solid transparent;border-radius:15px;background:transparent;color:#314d52;text-align:left;font-size:15px;font-weight:600;line-height:1.45}
.staff-drawer nav svg,.staff-drawer-logout svg{width:22px;height:22px;flex:0 0 22px}
.staff-drawer nav button:hover{background:#f2f8f6}
.staff-drawer nav button[aria-current="page"]{background:#e9f5ed;color:#277348;border-color:#d6e9db}
.staff-drawer-logout{margin-top:auto;color:#aa5149;border-top:1px solid #edf0ee;border-radius:0;padding-top:20px}
.staff-drawer-caption{font-size:11px;color:#83948f;margin:12px 16px 0;line-height:1.5}
.staff-profile{overflow:hidden;max-width:680px;margin:0 auto}
.staff-profile>header{display:flex;align-items:center;gap:12px;padding:24px;background:linear-gradient(115deg,#079ab8,#25b4d8);color:#fff}
.staff-profile>header svg{width:28px;height:28px}
.staff-profile h1{color:inherit;margin:0;font-size:24px}
.staff-profile .profile-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin-left:auto;padding:10px;border:1px solid #ffffff66;border-radius:12px;background:#ffffff1f;color:#fff}
.staff-profile .profile-close:hover{background:#ffffff38}.staff-profile .profile-close svg{width:24px;height:24px}
.staff-profile-body{padding:24px;overflow-wrap:anywhere}
.staff-profile-body h2{font-size:22px;margin:0 0 24px}
.staff-profile dl{margin:0}.staff-profile dl>div{padding:14px 0;border-bottom:1px solid #e7eeeb}
.staff-profile dt{font-size:12px;color:#738680;margin-bottom:5px}.staff-profile dd{margin:0;font-size:15px;line-height:1.5}
.staff-profile .help{margin:20px 0 0}
@media(max-width:820px){
 .staff-mobile-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:#fff;border-bottom:1px solid #e2ece9}
 .staff-mobile-brand{display:flex;align-items:center;gap:10px;min-width:0}
 .staff-mobile-brand img{object-fit:contain;flex:0 0 44px}
 .staff-mobile-brand strong{display:block;font-size:20px;color:#274e57;line-height:1.2}
 .staff-mobile-brand span{display:block;font-size:12px;color:#71837e;margin-top:4px;overflow-wrap:anywhere}
}
@keyframes staff-drawer-enter{from{transform:translateX(100%);opacity:.6}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.staff-drawer[open]{animation:none}}
.saved-audio-row{position:relative;overflow:hidden;border-radius:18px;margin:10px 0;background:#c64039}
.saved-audio-front{position:relative;display:flex;background:#fff;border:1px solid #e1e7df;border-radius:18px;transition:transform .2s;touch-action:pan-y}
.saved-audio-row.revealed .saved-audio-front{transform:translateX(-88px)}
.saved-recordings .saved-audio-resume{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:18px;background:transparent;border:0;margin:0}
.saved-audio-resume small{display:block;color:#788579;margin-top:5px}
.saved-recordings .saved-audio-toggle{flex:0 0 48px;display:grid;place-items:center;margin:0;border:0;background:transparent;color:#8a716b}
.saved-recordings .saved-audio-delete{position:absolute;right:0;top:0;bottom:0;width:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:0;border:0;background:#c64039;color:white}
.saved-audio-delete svg{width:24px;height:24px}
.saved-audio-delete span{font-size:11px}
.modal-actions .danger{background:#c64039;color:#fff;border:0;border-radius:14px;padding:14px 20px}
@media(prefers-reduced-motion:reduce){.saved-audio-front{transition:none}
}
.capture-child-field{display:flex;align-items:center;background:#edf2ec;border-radius:16px;min-width:0}
.capture-child-field .capture-child{flex:1;min-width:0;background:transparent}
.capture-child-field .capture-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.capture-clear{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin-right:4px;border:0;border-radius:13px;background:transparent;color:#687b6d}
.capture-clear:hover{background:#dfe7dc}
.capture-clear svg{width:18px;height:18px}
button>svg{flex-shrink:0;width:22px;height:22px}
.removal-dialog{width:min(440px,calc(100vw - 32px));border:1px solid #e2e8df;border-radius:24px;padding:28px;color:var(--ink);background:var(--paper);box-shadow:0 24px 80px #18291d30}
.removal-dialog::backdrop{background:#17271f66;backdrop-filter:blur(5px)}
.removal-dialog .modal-neutral{outline:none}
.removal-dialog h2{font-size:23px}
.removal-dialog .modal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.removal-dialog .modal-actions button{flex:1;min-height:48px}
.capture-home .voice-card,.voice-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:214px minmax(28px,auto) minmax(42px,auto) minmax(48px,auto) auto auto;align-items:start;row-gap:4px;padding-top:12px}
.voice-card .voice-stage{grid-area:1/1;height:214px;margin:0 auto}
.voice-card .recording-actions{grid-area:1/1;align-self:center;margin:0;gap:24px}
.voice-card #voice-status{grid-area:2/1;margin:0;text-align:center}
.voice-card #voice-time{grid-area:3/1;margin:0;text-align:center;line-height:1.5}
.voice-card .voice-playback{grid-area:4/1;width:min(100%,320px);margin:0 auto}
.voice-card .capture-secondary{grid-area:5/1;width:min(100%,360px);margin:20px auto 0}
.voice-card .draft-status{grid-area:6/1;margin:8px 0 0;text-align:center}
.voice-card #voice-error{grid-area:7/1}
.voice-card.recorded,.voice-card.uploading{padding-top:12px}
.voice-playback input{display:block;width:100%;height:44px;min-height:44px;padding:0;border:0;accent-color:#287fa6;cursor:pointer}
.playback-times{display:flex;justify-content:space-between;color:#758278;font-size:12px;font-variant-numeric:tabular-nums}
.name-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}
.name-suggestion{display:flex;gap:9px;align-items:center;text-align:left;border:1px solid #dce7df;background:#f5f8f4;color:#345e49;border-radius:14px;padding:10px 14px;min-height:48px}
.name-suggestion small{display:block;color:#758278;font-size:11px}
.name-suggestion[aria-pressed=true]{border-color:#2b8663;background:#eaf4eb}
.draft-next{display:flex;align-items:center;gap:4px;color:#287e71!important;font-weight:600}
.draft-next svg{width:12px;height:12px}
.saved-recordings{padding:20px;background:#f0f3ed;border-radius:22px}
.saved-recordings h2{margin:0 0 8px}
.saved-recordings .saved-audio-resume{padding:14px}
.saved-recordings .help{font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button:focus-visible{outline:2px solid #267b9d;outline-offset:3px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:none;border-color:#267b9d;box-shadow:inset 0 0 0 1px #267b9d}
@media(min-width:600px){.attention-check-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px}
.attention-check-list .attention-item:nth-child(2){border-top:0}
}
@media(max-width:380px){.voice-card .recording-actions{gap:16px}
.round-action{width:60px;height:60px}
.saved-recordings{padding:14px}
}
.children-panel .search-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;margin:0;padding:16px;border-bottom:1px solid var(--line);align-items:center}
.children-panel .search-field{margin:0;min-width:0}
.children-panel .search-field input,.children-panel .search-row select{width:100%;height:44px;min-height:44px;font-size:16px;border-radius:12px}
.children-panel .search-field input{padding-left:36px;font-weight:400}
.children-panel .search-field svg{top:14px;left:12px;width:16px;height:16px}
.children-panel .search-row select{padding:8px 10px}
.voice-card.ready,.voice-card.recording{grid-template-rows:214px minmax(28px,auto) minmax(30px,auto) 0 minmax(126px,auto) auto}
.voice-card.ready .capture-secondary{margin-top:4px}
.camp-brand{display:flex;align-items:center;gap:8px;margin-right:auto;min-width:0;color:#284d53}
.camp-brand img{width:40px;height:40px;object-fit:contain;flex-shrink:0}
.camp-brand>span{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;font-weight:300;letter-spacing:.25px;line-height:1.2}
.camp-brand small{display:block;font-size:11px;font-weight:300;letter-spacing:.35px;margin-top:3px}
.top-right:has(.camp-brand){flex:1}
.topbar:has(.camp-brand) .location{display:none}
.topbar:has(.camp-brand){min-height:62px;height:auto;padding-top:8px;padding-bottom:8px}
@media(max-width:420px){.topbar:has(.camp-brand){padding-left:12px;padding-right:12px}
.camp-brand{gap:6px}
.camp-brand img{width:34px;height:34px}
.camp-brand>span{font-size:12px}
.camp-brand small{font-size:10px}
.top-right:has(.camp-brand){gap:6px}
.top-right .user-info{min-width:0;max-width:140px}
.top-right .user-info strong,.top-right .user-info span{overflow-wrap:anywhere}
.children-panel .search-row{padding:14px;grid-template-columns:minmax(0,1fr) 108px;gap:8px}
.children-panel .search-field input,.children-panel .search-row select{font-size:16px}
}
@media(max-width:350px){.children-panel .search-row{grid-template-columns:1fr}
.camp-brand img{width:30px;height:30px}
.camp-brand>span{font-size:11px}
.top-right .user-info{max-width:110px}
}
/* Mobile text controls must not trigger focus zoom; retain user pinch zoom. */
/* Keep the confirmation action visible inside the scrollable audio form. */
.audio-confirmation[open]{display:flex;flex-direction:column;height:90dvh;overflow:hidden;padding:0}
.audio-confirmation>.modal-neutral{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;overflow:hidden}
.audio-form-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:32px 20px 16px;scroll-padding:16px}
.audio-save-bar{flex:none;position:relative;z-index:3;background:var(--paper);padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.audio-confirmation>.modal-close{position:absolute;right:8px;top:8px;z-index:4;background:var(--paper)}
@media (max-width:820px), (any-pointer:coarse){
  input,textarea,select{font-size:16px!important;}
.children-panel .search-row{grid-template-columns:minmax(0,1fr) 136px;}
}
@media (max-width:370px){.children-panel .search-row{grid-template-columns:1fr;}
}
/* Report creation is a separate form card, with explicit spacing between controls. */
.report-builder [hidden],.report-grid>[hidden]{display:none!important}
.report-workflow-status{font-size:13px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.report-workflow-actions{display:grid;gap:0;min-width:0}
.report-workflow-actions .report-actions{display:grid;margin:0;padding:0;border:0;gap:0}
.report-workflow-actions button{width:100%;min-height:48px;white-space:normal;line-height:1.4}
.approve-button,.approve-button:hover{background:var(--green);color:white}
.report-comparison{margin:24px 0;padding-top:20px;border-top:1px solid var(--line);min-width:0}
.report-comparison p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65;margin-bottom:16px}
.report-builder>.check-chip{margin:0;align-items:flex-start}
.report-builder{margin-bottom:20px;display:grid;gap:14px}
.report-builder>label{margin:0;font-size:14px}
.report-builder>select{min-width:0;min-height:46px}
.report-builder>p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.report-builder>#generate-report{width:100%;min-height:48px;white-space:normal;line-height:1.4;padding:13px 16px;text-align:center}
.report-builder>#report-error{color:#ad382f}
.report-builder>#report-error:empty{display:none}
.report-head>div{min-width:0}
.report-head h2{overflow-wrap:anywhere}
.report-head>.pill{flex-shrink:0}
.report-statuses span{overflow-wrap:anywhere}
@media(max-width:420px){.report-builder{padding:20px;gap:16px}
.report-builder>#generate-report{font-size:14px}
.report-head{flex-wrap:wrap;gap:12px}
.report-head h2{font-size:22px;line-height:1.25}
}
.report-workbench{display:grid;gap:20px;align-items:start}
.report-workbench [hidden]{display:none!important}
.report-workbench-center,.report-evidence,.report-roster{min-width:0}
.report-roster{display:none}
.report-evidence{padding:24px;overflow-wrap:anywhere}
.report-evidence h2{font-size:19px;margin:0 0 12px}
.report-evidence details{margin:20px 0}
.report-evidence summary{cursor:pointer;font-size:14px;line-height:1.5}
.report-evidence .evidence-list article{padding:16px 0}
.report-evidence .evidence-list p{font-size:14px;line-height:1.65;white-space:pre-line}
.report-evidence>button{width:100%;white-space:normal}
.report-empty{padding:28px;color:var(--muted);line-height:1.6}
.reports-main>.section-bar{flex-wrap:wrap;gap:12px}
.report-person{display:grid;gap:8px;width:100%;text-align:left;border:1px solid var(--line);border-radius:14px;padding:14px;background:white;color:var(--ink);cursor:pointer;min-width:0}
.report-person strong{overflow-wrap:anywhere;font-size:14px}
.report-person small{color:var(--muted)}
.report-person .pill{justify-self:start;font-size:11px}
.report-person.selected{border-color:var(--green);background:#edf3ed;box-shadow:inset 3px 0 var(--green)}
.report-queue{display:grid;gap:10px}
.report-roster label{font-size:12px;margin:0}
.report-roster input,.report-roster select{width:100%;min-width:0;font-size:16px}
.report-roster h2{font-size:18px;margin:0}
.report-queue-count{margin:0}
.report-workbench-center .report-grid{display:block}
.report-workbench-center .report-card p{overflow-wrap:anywhere}
@media(min-width:1000px){.reports-main{max-width:none;padding:28px}
.report-workbench{grid-template-columns:220px minmax(0,1fr)}
.report-roster{display:grid;gap:12px;padding:18px;grid-row:1 / 3}
.report-evidence{grid-column:2}
.report-builder>label[for="report-child"],.report-builder>#report-child{display:none}
.report-builder{padding:24px}
.report-workbench-center .report-card{padding:28px}
.reports-main>.section-bar h1{margin-right:auto}
.report-roster{position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow-y:auto}
}
@media(min-width:1500px){.report-workbench{grid-template-columns:230px minmax(360px,1fr) 300px}
.report-evidence{grid-column:3;grid-row:1;position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow-y:auto}
.report-roster{grid-row:1}
}
.draft-discard{margin:8px 0 16px;min-height:44px;white-space:normal}
/* Observation forms: a fixed close area, one scrolling body and visible save actions. */
.observation-editor>.modal-neutral{padding-top:52px}
.observation-editor .audio-form-scroll{padding-top:8px}
.observation-editor .audio-save-bar .modal-actions{position:static;margin:0;padding:0;gap:12px}
.observation-editor .audio-save-bar .modal-actions button{min-height:46px;white-space:normal}
.observation-editor .audio-save-bar .primary{flex:1}
.observation-editor .manual-subjects[hidden]{display:none!important}
.manual-child-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:18px 0}
.manual-child-field>span{font-size:14px;font-weight:600}
.manual-child-field>.help{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
.manual-child-field button{min-height:44px}
.subject-picker[open]{display:flex;flex-direction:column;padding:0;overflow:hidden;width:520px;max-height:85dvh}
.picker-head{padding:22px 22px 16px;flex-shrink:0}
.picker-head h2{margin:0 0 8px;padding-right:32px}
.picker-head p{margin-bottom:12px}
.picker-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 22px 16px;display:grid;gap:8px}
.picker-list .check-chip{font-size:15px;min-height:56px}
.picker-list .check-chip small{font-size:12px}
.picker-list .check-chip input{width:22px;height:22px;flex-shrink:0}
.picker-actions{display:flex;gap:12px;padding:16px 22px;border-top:1px solid var(--line);flex-shrink:0}
.picker-actions button{flex:1;min-height:46px}
.picker-head:focus{outline:none}
.observation-editor .modal-actions{position:static;margin:24px 0 0;padding:16px 0 0;gap:12px;box-shadow:none}
.observation-editor .modal-actions button{min-height:46px;white-space:normal}
.observation-editor .modal-actions .primary{flex:1}
.observation-editor .form-grid{grid-template-columns:1fr}
.observation-editor #transcript-form>button[type=submit]{margin-top:24px}
.evidence-author{font-size:13px;color:var(--muted);margin:8px 0}
.staff-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:20px}
.staff-column{display:grid;gap:24px;min-width:0}
.staff-counselor-column,.staff-workshop-column{grid-column:2/4}
.staff-counselor-column .staff-compact-grid,.staff-workshop-column .staff-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.staff-card-frame{min-width:0;container-type:inline-size}
.staff-card-frame:has(>.staff-card[hidden]){display:none}
.staff-group-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.counselor-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-left:auto;width:min(100%,420px)}
.counselor-filters select,.counselor-filters .select-trigger{min-width:0;min-height:44px;font-size:13px}
.staff-compact-grid>.staff-empty{grid-column:1/-1}
.staff-group-heading h2{font-size:18px;margin:0}
.staff-compact-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.staff-directory .staff-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto 32px;align-items:center;column-gap:10px;row-gap:4px;padding:12px;border:1px solid var(--line);border-radius:16px;background:white;min-width:0}
.staff-directory .staff-avatar{width:36px;height:36px;border-radius:12px;background:var(--staff-tint);color:var(--staff-ink);font-size:14px}
.staff-role-admin{--staff-tint:#eee9fa;--staff-ink:#65519a}
.staff-role-senior{--staff-tint:#e1f0fb;--staff-ink:#26668d}
.staff-role-counselor{--staff-tint:#e6f2e8;--staff-ink:#347348}
.staff-role-workshop{--staff-tint:#fff0db;--staff-ink:#946225}
.staff-role-other{--staff-tint:#eef0f3;--staff-ink:#536273}
.staff-directory .staff-identity{min-width:0}
.staff-directory .staff-identity h3{font-size:14px;line-height:1.4;margin:0 0 5px;overflow-wrap:anywhere}
.staff-self{margin-left:6px;font-size:11px;color:var(--muted);font-weight:400}
.staff-directory .staff-actions{display:flex;gap:6px;margin:0;padding:0;border:0}
.staff-directory .staff-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:36px;min-width:32px;min-height:36px;padding:6px;border:1px solid #dee6e6;border-radius:10px;background:#f6f9fa;color:#536c75}
.staff-directory .staff-icon-button svg{width:19px;height:19px}
.staff-directory .staff-icon-button:hover{background:#e8f1f5;border-color:#b3ccd6}
.staff-directory .staff-revoke{color:#ad4343;background:#fff6f5;border-color:#f1d9d6}
.staff-directory .staff-revoke:hover{background:#fbe4e1;border-color:#e1adaa}
.staff-directory .staff-restore{color:#24704a;background:#edf7ef}
.staff-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;padding:5px 8px;border-radius:8px;white-space:nowrap}
.staff-status i{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}
.staff-status.is-active{color:#24704a;background:#edf6ef}
.staff-status.is-disabled{color:#b23939;background:#fceeee}
.staff-directory .staff-scope{grid-column:2/-1;min-height:0;margin:0;display:flex;gap:6px;flex-wrap:wrap;font-size:12px;line-height:1.4;color:var(--muted)}
.staff-directory .staff-scope>span{background:#f3f6f5;border-radius:6px;padding:3px 7px}
.staff-directory .staff-scope>small{flex-basis:100%;font-size:11px}
.staff-empty{margin:0;color:var(--muted);font-size:13px}
@media(max-width:1150px){.staff-directory{grid-template-columns:1fr}.staff-column{gap:20px;grid-column:1}}
@media(max-width:700px){.staff-counselor-column .staff-compact-grid,.staff-workshop-column .staff-compact-grid{grid-template-columns:minmax(0,1fr)}.counselor-filters{width:100%;margin-left:0}.counselor-filters select,.counselor-filters .select-trigger{font-size:16px}}

@media(max-width:800px){.staff-directory .staff-card{grid-template-columns:36px minmax(0,1fr) auto 40px}
.staff-directory{gap:20px}
.staff-directory .staff-icon-button{width:40px;height:40px;min-width:40px;min-height:40px}
}
@media(max-width:380px){.staff-directory .staff-card{padding:12px;column-gap:8px;grid-template-columns:32px minmax(0,1fr) auto 40px}
.staff-directory .staff-avatar{width:32px;height:32px}
.staff-directory .staff-actions{gap:4px}
}
.staff-search{max-width:480px;margin:0 0 22px}
.staff-search input{font-size:16px}
.staff-directory [hidden]{display:none!important}
.staff-directory .staff-avatar{grid-row:1/3;align-self:center}
.staff-directory .staff-identity{grid-column:2;grid-row:1;min-width:0}
.staff-directory .staff-identity h3{margin:0}
.staff-directory .staff-status{grid-column:3;grid-row:1/3;align-self:center;justify-self:start;word-break:normal;overflow-wrap:normal}
.staff-directory .staff-actions{grid-column:4;grid-row:1/3;align-self:center}
.staff-directory .staff-scope{grid-column:2;grid-row:2;align-self:center}
.staff-directory .staff-restore{background:#fff3cf;color:#896019;border-color:#ead49a}
.staff-directory .staff-restore:hover{background:#ffe8a5;border-color:#d6b86c}
/* Управление сменами: компактные карточки, общие интервалы и адаптивная сетка. */
.staff-avatar{position:relative;overflow:hidden}
.staff-status.is-pending{color:#936b19;background:#fff5df}
@container(max-width:480px){
.staff-directory .staff-card{grid-template-columns:36px minmax(0,1fr) 40px;row-gap:7px}
.staff-directory .staff-avatar{grid-row:1/3;align-self:start}
.staff-directory .staff-actions{grid-column:3;grid-row:1/3;align-self:start}
.staff-directory .staff-status{grid-column:2/-1;grid-row:3}
.staff-directory .staff-scope{grid-column:2;grid-row:2}
}
.staff-directory .staff-avatar{box-shadow:0 0 0 3px var(--staff-tint)}
.staff-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.shift-page-actions,.shift-invite-actions{display:flex;align-items:center;gap:12px}
.shift-management{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:24px}
.shift-management .panel{margin:0}
.shift-list{padding:20px;position:sticky;top:var(--pinned-panel-top,var(--app-safe-top));max-height:var(--pinned-panel-room,80dvh);overflow-y:auto}
.shift-list h2{margin:0 0 16px;font-size:20px}
.shift-list-item{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;width:100%;padding:14px;border:1px solid transparent;border-radius:12px;background:transparent;margin-top:6px;color:#283b3c}
.shift-list-item strong{overflow-wrap:anywhere}
.shift-list-item small{font-size:12px;color:#697a7b;font-weight:400}
.shift-list-item:hover{background:#f1f7f8}
.shift-list-item.selected{background:#e3f3f9;border-color:#b6dfe9}
.shift-detail{display:grid;gap:24px;min-width:0}
.shift-overview{padding:24px}
.shift-overview>h2{margin:0 0 8px}
.shift-overview>.help{margin:0 0 20px}
.shift-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px;margin-top:20px}
.shift-group-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;border:1px solid #dce7e9;border-radius:14px;padding:18px;background:linear-gradient(140deg,#f1f9fc,#fff)}
.shift-group-card h3{font-size:17px;margin:0;color:#176681}
.shift-group-card p{font-size:14px;line-height:1.6;margin:0 0 6px;flex:1;color:#637476;overflow-wrap:anywhere}
.shift-group-card button{font-size:14px;padding:10px}
.shift-overview .section-bar{margin:0 0 20px;gap:14px}
.shift-overview .section-bar h2{margin:0}
.shift-overview>.search-field{max-width:480px;margin-bottom:16px}
.shift-staff-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shift-staff-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e0e8e6;border-radius:12px;padding:14px 16px}
.shift-staff-list article>div{min-width:0}
.shift-staff-list strong{display:block;font-size:15px;overflow-wrap:anywhere}
.shift-staff-list small{display:block;color:#74817a;font-size:13px;margin-top:5px}
.shift-staff-list article[hidden]{display:none}
.shift-staff-list button,.square-action{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;border-radius:11px;flex-shrink:0}
.counselor-options{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.counselor-options .check-chip{width:100%;margin:0}
.counselor-options small{display:block;font-weight:400;font-size:12px;color:#74817a;margin-top:4px}
#create-shift-form>label,#create-staff-form>label{display:block;margin-bottom:18px}
#created-invite{margin-top:18px;overflow-wrap:anywhere}
@media(max-width:1050px){.shift-management{grid-template-columns:230px minmax(0,1fr)}
.shift-staff-list{grid-template-columns:1fr}
}
@media(max-width:760px){.shift-management{grid-template-columns:1fr;gap:16px}
.shift-list{position:static}
.shift-overview{padding:18px}
.shift-page-actions{flex-wrap:wrap}
.shift-group-grid{grid-template-columns:1fr}
.shift-overview .section-bar{flex-wrap:wrap}
}
.profile-photo-editor{display:grid;grid-template-columns:88px minmax(0,1fr);gap:20px;align-items:start;margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.profile-photo{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;overflow:hidden;background:#e3f3f7;color:#26758b}
.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-photo>svg{width:44px;height:44px}
.profile-photo-label{font-weight:600;display:block;margin-bottom:8px}.profile-photo-editor input{width:100%;min-width:0;font-size:14px}.profile-photo-editor small{display:block;color:var(--muted);margin:8px 0 12px;font-size:12px;line-height:1.5}.profile-photo-editor button{font-size:14px;min-height:44px}
.profile-photo-main-actions,.profile-photo-actions{display:flex;align-items:center;gap:8px}.profile-photo-actions{flex-wrap:wrap;margin-top:12px}.profile-photo-main-actions button,.profile-photo-actions button{display:inline-flex;gap:8px;align-items:center;justify-content:center}.profile-photo-main-actions #profile-photo-delete{flex:0 0 44px;width:44px;height:44px;padding:0}.profile-photo-main-actions #profile-photo-choose{min-width:0;padding:10px 12px}.profile-photo-actions button[hidden]{display:none}.profile-photo-main-actions svg,.profile-photo-actions svg{width:18px;height:18px}
.avatar-positive{background:linear-gradient(115deg,#489b42,#79b94e);color:#fff;border:1px solid #519b44;border-radius:12px;font-weight:650;min-height:44px;padding:12px 18px}.avatar-positive:hover{background:linear-gradient(115deg,#408b3b,#6eaa47)}.avatar-positive:disabled{opacity:.5}
html.avatar-cropping,html.avatar-cropping body{overflow:hidden;overscroll-behavior:none}
.avatar-crop-dialog{width:min(420px,calc(100vw - 24px));max-height:calc(var(--app-viewport-height) - 32px);padding:0;border:1px solid #dce8e5;border-radius:24px;background:#fff;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}.avatar-crop-dialog::backdrop{background:#193c4d88;backdrop-filter:blur(4px);touch-action:none}
.avatar-crop-inner{padding:24px;outline:none}.avatar-crop-inner h2{margin:0 0 8px;font-size:24px}.avatar-crop-inner>p{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 18px}
.avatar-crop-preview{position:relative;max-width:300px;margin:auto;border-radius:16px;overflow:hidden;background:#eff3f2}.avatar-crop-preview canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}.avatar-crop-preview canvas:active{cursor:grabbing}.avatar-crop-preview:after{content:"";position:absolute;inset:2px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 80px #142d4666;pointer-events:none}
.avatar-crop-preview:focus-within{outline:2px solid #2582a3;outline-offset:2px}
.avatar-crop-actions{display:flex;gap:12px;margin-top:18px}.avatar-crop-actions button{flex:1;min-height:46px;font-size:15px}
.staff-footer{display:flex;flex-direction:column;align-items:center;gap:12px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.staff-footer-guide{display:flex;align-items:center;justify-content:center;gap:10px;width:min(100%,420px);min-height:48px;padding:12px 20px;border:1px solid #cce2dc;border-radius:16px;background:linear-gradient(120deg,#eaf6ef,#edf7fb);color:#2d705f;font-size:15px;font-weight:650;text-decoration:none}.staff-footer-guide svg{width:22px;height:22px}
@media(max-height:700px){.avatar-crop-preview{max-width:220px}.avatar-crop-inner{padding:18px}}
@media(max-width:480px){.profile-photo-editor{grid-template-columns:64px minmax(0,1fr);gap:12px}.profile-photo{width:64px;height:64px}}
