:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24352e;background:#f6f7f4;font-synthesis:none;--green:#20664c;--muted:#758178;--border:#e1e7df;--ink:#172e24}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.55;cursor:wait}button{border:0}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin-top:0}button.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--green);color:white;border:1px solid var(--green);border-radius:9px;padding:11px 17px;font-size:13px;font-weight:600}button.primary:hover{background:#164e39}.secondary{background:white;border:1px solid var(--border);padding:10px 15px;border-radius:8px;color:#45584d;font-size:13px}.danger{background:#b23b3b!important;border-color:#b23b3b!important;color:white!important}.text-button{background:transparent;color:var(--green);font-weight:600;padding:8px}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;color:var(--muted);text-transform:uppercase}.loading{padding:40px;text-align:center;color:var(--muted)}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:700;letter-spacing:-.8px}.brand-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--green);color:#fff;font-size:20px;letter-spacing:0}.brand small{display:block;letter-spacing:2px;font-size:9px;color:var(--muted);margin-top:4px}
.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--border);background:#fff;padding:32px 20px 22px;display:flex;flex-direction:column}.sidebar .brand{padding:0 12px}.nav-title{margin:47px 12px 15px}.nav{display:grid;gap:7px}.nav button,.logout{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;background:transparent;color:#6d7c72;border-radius:8px;font-size:13px;font-weight:550}.nav button:hover,.logout:hover{background:#f4f6f2}.nav button.selected{background:#eaf2eb;color:#20664c}.nav button.selected:after{content:"";width:6px;height:6px;background:#32815a;border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto}.environment{display:flex;gap:8px;align-items:center;border:1px solid var(--border);border-radius:8px;padding:11px;margin:24px 10px 17px;font-size:11px;color:#7b877d}.environment:before{content:"";width:6px;height:6px;border-radius:50%;background:#88a477}.logout{width:100%;color:#767f77}.workspace{min-width:0}.topbar{height:79px;background:rgba(255,255,255,.8);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 43px;font-size:12px;color:#849086}.crumb{display:flex;align-items:center;gap:12px}.crumb strong{color:#4e6055;font-weight:500}.account{display:flex;align-items:center;gap:11px;background:transparent;text-align:left;color:#344b3d}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e5eddf;color:#4b6c40;font-size:12px;font-weight:700}.account b{font-size:12px;font-weight:600;display:block}.account small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.content{max-width:1320px;margin:auto;padding:40px 43px 50px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}h1{font-size:29px;letter-spacing:-1px;font-weight:650;margin:9px 0}.page-head p{color:var(--muted);font-size:13px;margin:0;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:29px}.stat{background:white;border:1px solid var(--border);border-radius:11px;padding:20px 23px;display:flex;justify-content:space-between;align-items:center}.stat label{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:29px;font-weight:600;margin-top:9px;letter-spacing:-1px}.stat-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:#f1f5ed;color:#6e8a60}.panel{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px;border-bottom:1px solid var(--border)}.panel-toolbar h2{font-size:14px;font-weight:600;margin:0}.count{display:inline-block;background:#eef2eb;font-size:10px;color:#6d7e65;padding:3px 7px;border-radius:5px;margin-left:8px}.search{position:relative;max-width:270px;width:100%}.search svg{position:absolute;left:11px;top:10px;width:16px;color:#98a395}.search input{background:#fafbf9;border:1px solid var(--border);border-radius:7px;padding:9px 12px 9px 35px;width:100%;font-size:12px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;font-weight:600;letter-spacing:1px;color:#869180;background:#fcfdfb;padding:13px 24px;border-bottom:1px solid var(--border);text-transform:uppercase}td{font-size:12px;padding:20px 24px;border-bottom:1px solid #eff2ec;color:#71816f}tr:last-child td{border-bottom:0}.entity{display:flex;gap:12px;align-items:center}.entity-symbol{width:38px;height:38px;border-radius:10px;background:#eef3e8;color:#63834e;display:grid;place-items:center}.entity strong{font-size:13px;color:#334b3b;font-weight:600;display:block}.entity small{display:block;margin-top:5px;font-size:11px;color:#8c9787;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{display:inline-flex;align-items:center;gap:6px;background:#eaf4e9;color:#5f8751;padding:5px 9px;border-radius:6px;font-size:10px;font-weight:600;white-space:nowrap}.badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.badge.inactive{background:#f0f1ee;color:#8d9389}.role{background:#f2f4ef;padding:5px 8px;border-radius:5px;font-size:10px}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.icon-button{background:transparent;display:grid;place-items:center;width:31px;height:31px;border-radius:6px;color:#82917d}.icon-button:hover{background:#f0f4ec;color:#20664c}.icon-button.delete:hover{background:#fbeeee;color:#ac4545}.icon-button svg{width:16px;height:16px}.table-foot{border-top:1px solid var(--border);padding:15px 24px;font-size:11px;color:#99a291}.bottom-note{display:flex;gap:7px;align-items:center;margin-top:22px;color:#98a28e;font-size:11px}.bottom-note svg{width:14px;height:14px}.empty{text-align:center;padding:55px 20px;color:var(--muted);font-size:13px}.empty h3{font-size:16px;color:#40583f}.notice{background:#fbf7e9;color:#8a6b28;border:1px solid #ede3be;border-radius:8px;padding:14px 17px;line-height:1.6;font-size:12px;margin-bottom:24px}.error{background:#fff0ef;color:#a8443d;border:1px solid #f1d0cc;border-radius:7px;padding:11px 14px;font-size:12px;line-height:1.5;margin:0 0 18px}.error[hidden],.toast[hidden]{display:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:550;color:#50634f}.field input,.field select,.field textarea{width:100%;border:1px solid #dce4d7;border-radius:7px;padding:11px 12px;background:#fff;color:#314530;font-size:13px;line-height:1.5}.field textarea{resize:vertical;min-height:140px;font-family:ui-monospace,monospace;font-size:12px}.field small{font-size:10px;font-weight:400;color:#8a9784}.field input:focus,.field textarea:focus,.field select:focus{border-color:#6d9b70;outline:2px solid #eaf3e8}.field input:read-only{background:#f5f7f2;color:#8a9584}.checkbox{display:flex;gap:9px;align-items:center;font-size:12px;color:#6f8068}.checkbox input{accent-color:var(--green);width:16px;height:16px}.profile-panel{max-width:760px;padding:28px}.section-title{font-size:13px;font-weight:650;border-bottom:1px solid var(--border);padding-bottom:15px;margin-bottom:22px}.profile-divider{margin-top:32px}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:23px;margin-top:24px;border-top:1px solid var(--border)}.skill-box{border:1px solid var(--border);border-radius:9px;padding:17px;margin-bottom:13px;background:#fafbf8}.skill-header{display:flex;gap:10px;align-items:end;margin-bottom:13px}.skill-header .field{flex:1}.skills-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 15px;font-size:13px;font-weight:600}dialog{border:1px solid var(--border);border-radius:14px;padding:0;max-width:760px;width:calc(100% - 32px);max-height:90vh;color:var(--ink);box-shadow:0 25px 90px #1a382329}dialog::backdrop{background:#122a256b;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:22px 27px}.dialog-head h2{margin:0;font-size:18px;letter-spacing:-.4px}.dialog-body{padding:23px 27px 27px}.dialog-body .form-actions{margin-bottom:0}.toast{position:fixed;bottom:25px;right:25px;z-index:10;background:#173f2d;color:#fff;padding:14px 20px;border-radius:9px;box-shadow:0 5px 25px #15372320;font-size:13px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-story{background:#173e32;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:50px 60px;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:400px;height:400px;border:1px solid #b5d4a52b;border-radius:100%;bottom:-170px;right:-130px;box-shadow:0 0 0 70px #b5d4a509,0 0 0 140px #b5d4a507}.login-story .brand-symbol{background:#c2d7a7;color:#20472b}.login-story .brand small{color:#a9bcab}.login-story h1{font-size:48px;font-weight:500;max-width:380px;line-height:1.16;letter-spacing:-2px;margin-bottom:22px}.login-story p{font-size:14px;line-height:1.8;color:#aebfb0;max-width:330px}.login-story footer{font-size:11px;color:#96b09b}.login-area{display:grid;place-items:center;padding:40px}.login-form{width:100%;max-width:355px}.login-form h2{font-size:29px;font-weight:600;letter-spacing:-1px;margin:10px 0 12px}.login-form>p{font-size:13px;color:var(--muted);margin-bottom:32px;line-height:1.7}.login-form .field{margin-bottom:20px}.login-form .primary{width:100%;margin-top:9px;padding:13px}.login-footer{text-align:center;font-size:11px;color:#9ca695;margin-top:28px!important}.mobile-brand{display:none}.confirm-copy{font-size:13px;color:#74846c;line-height:1.7}.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}
@media(min-width:1500px){.content{padding-top:53px}.stats{margin-bottom:35px}}
@media(max-width:1000px){.layout{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 12px}.content{padding:30px 25px}.topbar{padding:0 25px}td,th{padding-left:18px;padding-right:18px}.stat{padding:17px}.login-story{padding:40px}.login-story h1{font-size:39px}}
@media(max-width:700px){.layout{display:block}.sidebar{position:static;width:100%;height:auto;padding:18px 16px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{font-size:18px}.sidebar .brand small{display:none}.nav-title,.environment{display:none}.nav{display:flex;margin-top:19px;gap:5px}.nav button{padding:9px 11px;font-size:12px}.nav button.selected:after{display:none}.sidebar-bottom{position:absolute;top:17px;right:14px}.logout{font-size:11px;padding:9px}.logout svg{width:16px}.topbar{height:65px;padding:0 19px}.content{padding:26px 17px}.crumb{font-size:11px}.account b{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-head{align-items:flex-start;gap:13px}h1{font-size:25px}.page-head p{font-size:12px;max-width:220px}.page-head .primary{padding:10px;font-size:11px;margin-top:19px;white-space:nowrap}.page-head .primary svg{width:15px}.stats{gap:8px;margin-bottom:20px}.stat{padding:14px 12px}.stat label{font-size:10px}.stat strong{font-size:24px}.stat-icon{display:none}.panel-toolbar{padding:16px;gap:12px}.panel-toolbar h2{white-space:nowrap;font-size:12px}.search{max-width:180px}.search input{font-size:11px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.profile-panel{padding:21px}.login-screen{display:block}.login-story{display:none}.login-area{min-height:100vh;padding:28px}.mobile-brand{display:flex;margin-bottom:48px}.dialog-head{padding:20px}.dialog-body{padding:20px}.entity small{max-width:210px}.toast{left:20px;right:20px;bottom:20px;text-align:center}}
.field[hidden]{display:none}.tg-tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:26px}.tg-tabs button{background:transparent;color:#7b8876;padding:10px 14px;border-radius:7px;font-size:12px}.tg-tabs button.selected{background:#e7efe4;color:var(--green);font-weight:650}.tg-bots{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.tg-bot{padding:21px}.tg-bot-heading{display:flex;gap:12px;align-items:center;margin-bottom:20px}.tg-bot-heading strong{font-size:14px;display:block}.tg-bot-heading small{font:9px ui-monospace,monospace;display:block;color:#8b9983;margin-top:6px;word-break:break-all}.tg-bot-actions{margin-top:22px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tg-bot-actions button{font-size:11px}.tg-settings,.tg-checks{display:grid;gap:16px}.tg-caption{font-size:12px;color:#7f8c78;line-height:1.7;margin:20px 0 0}.tg-checks .tg-caption{margin:0}.tg-message{border:1px solid var(--border);border-radius:9px;padding:17px;margin-top:17px}.tg-message>div{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px}.tg-message pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:13px;color:#5b7052;line-height:1.7;margin-bottom:0}code{font-family:ui-monospace,monospace;font-size:11px}.tg-message .error{margin:15px 0 0}@media(max-width:1000px){.tg-bots{grid-template-columns:1fr}.tg-bot{padding:20px}.tg-bot-actions{margin-top:15px}.tg-tabs{gap:3px}.tg-tabs button{font-size:11px;padding:9px 10px}}
.routine-filter{max-width:420px;margin-bottom:24px}.routine-days{display:flex;flex-wrap:wrap;margin:0 0 20px}.routine-small{display:block;color:var(--muted);margin-top:7px}.notice+#routine-content{margin-top:22px}@media(max-width:700px){.nav{flex-wrap:wrap}.routine-filter{max-width:none}}

#routine-content > .panel + .panel,#routine-triggers{margin-top:22px}#immediate-form .section-title{margin:16px 0}#immediate-form .form-actions{margin-top:20px}
