:root{font-family:"Segoe UI",Inter,-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:#24372f;background:#f5f6f3;--green:#185f54;--green-dark:#104b42;--muted:#78817b;--line:#e5e9e3;--light:#edf4ef;--danger:#a33c32}
*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.46;cursor:default}button{transition:background .15s,border-color .15s,box-shadow .15s}button:focus-visible,a:focus-visible{outline:3px solid #86b6a6;outline-offset:3px}input:focus,select:focus{outline:none;border-color:#428675;box-shadow:0 0 0 3px #185f5414}input,select{width:100%;min-width:0;height:45px;border:1px solid #d8dfd8;border-radius:8px;background:white;color:#24372f;padding:9px 12px}input::placeholder{color:#99a29c}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);flex-shrink:0;margin:0}input[type=date]{font-variant-numeric:tabular-nums}label{display:block;font-size:13px;font-weight:600;color:#4b5b51}label input,label select{display:block;margin-top:7px;font-size:15px;font-weight:400}h1,h2,h3,p{margin:0}h1{font-size:40px;letter-spacing:-1.6px;line-height:1.15;font-weight:650}h2{font-size:22px;letter-spacing:-.5px;font-weight:650}h3{font-size:16px;font-weight:650}a{color:var(--green)}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{display:block;font-size:11px;text-transform:uppercase;letter-spacing:1.6px;color:#77867b;font-weight:700;margin-bottom:11px}.required{color:var(--green)}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;min-height:43px;padding:10px 17px;font-size:14px;font-weight:600;white-space:nowrap}.primary{background:var(--green);border:1px solid var(--green);color:#fff}.primary:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}.secondary{background:white;border:1px solid #dce3dc;color:#41564a}.secondary:hover:not(:disabled){background:#f0f5ef;border-color:#b6c8ba}.text-button{border:0;background:transparent;color:#66796c;font-size:13px;font-weight:600;padding:9px}.text-button:hover{color:var(--green);background:var(--light);border-radius:6px}.full{width:100%}.plus{font-size:24px;font-weight:300;line-height:1}.danger{color:var(--danger)!important}.loading{padding:60px;color:var(--muted);text-align:center}.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}
.topbar{height:87px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;padding:0 4.6%;gap:36px}.brand,.login-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#2a4035;font-size:12px;letter-spacing:1.1px;font-weight:750}.brand-mark{width:40px;height:44px;background:var(--green);color:white;border-radius:12px 12px 12px 3px;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;letter-spacing:-2px;padding-right:2px}.brand-sub{display:block;font-size:11px;color:#829084;letter-spacing:.2px;font-weight:400;margin-top:1px}.section-label{border-left:1px solid var(--line);padding-left:30px;font-size:13px;color:#687c6d}.top-right{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:12px;color:#748075}.top-right .text-button{margin-left:22px}.live-dot{width:6px;height:6px;background:#639578;border-radius:50%}.workspace{max-width:1510px;margin:auto;padding:40px 4.6% 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.page-heading .muted{font-size:14px;margin-top:10px}.heading-dot{color:#64987b}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{background:white;border:1px solid var(--line);border-radius:12px;min-height:146px;padding:21px 23px;display:flex;flex-direction:column;text-align:left}.stat-label{font-size:12px;color:#6b7b70;font-weight:500}.stat strong{font-size:34px;line-height:1.4;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin-top:8px}.stat-caption{font-size:11px;color:#8a968d}.birthday-stat{background:#e9f0e4;border-color:#e0e9da}.birthday-stat:hover{background:#e0ecd9}.birthday-stat .stat-label{display:flex;justify-content:space-between;gap:10px}.birthday-stat .stat-caption{color:#6e8364}.registry{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.registry-top{padding:24px 26px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.registry-top h2{font-size:20px;margin-bottom:3px}.registry-top .secondary{min-height:39px;font-size:13px}.search-row{display:flex;gap:12px;padding:0 26px 22px}.search-wrap{flex:1;display:flex;align-items:center;position:relative}.search-wrap>svg{position:absolute;left:14px;color:#88968c}.search-wrap input{background:#f9faf8;border-color:#e3e8e1;padding-left:43px;padding-right:42px}.search-wrap button{position:absolute;right:8px;background:none;border:0;font-size:23px;color:#869589}.badge{font-size:10px;padding:0 6px;border-radius:5px;background:#dbe8df;color:var(--green)}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;padding:20px 26px;background:#fafbf9;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.filter-bottom{grid-column:1/-1;display:flex;gap:12px;align-items:center}.filter-bottom p{margin-right:auto;max-width:570px}.filter-bottom .primary{min-height:36px;padding:7px 15px}.active-filters{padding:12px 26px;border-top:1px solid var(--line);font-size:12px;color:#3a7360;background:#f4f8f2}.table-wrap{overflow-x:auto}.client-table{width:100%;border-collapse:collapse;text-align:left}.client-table th{font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:600;color:#7b887f;background:#f7f9f5;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 16px;white-space:nowrap}.client-table th:first-child,.client-table td:first-child{padding-left:26px}.client-table th:last-child,.client-table td:last-child{padding-right:24px}.client-table td{padding:17px 16px;border-bottom:1px solid #eef0eb;font-size:13px;vertical-align:middle}.client-table tbody tr:last-child td{border-bottom:0}.client-table tbody tr:hover{background:#fbfcf9}.parent-cell{display:flex;align-items:center;gap:12px}.avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf1e9;color:#5e7857;font-size:12px;font-weight:650;flex-shrink:0}.parent-open{border:0;background:none;padding:0;text-align:left;font-size:13px;font-weight:600;color:#334a3a;overflow-wrap:anywhere}.parent-open:hover{color:var(--green);text-decoration:underline}.phone-text{font-size:12px;color:#829084;white-space:nowrap;margin-top:2px}.kid-name{font-weight:600}.subline{display:block;font-size:11px;color:#8b978e;margin-top:2px}.visit-number{display:inline-block;background:#edf4ef;color:#38684c;font-size:12px;border-radius:5px;padding:3px 9px;white-space:nowrap}.frequent{background:#fbf0d8;color:#8a6a26}.row-visit{padding:7px 11px;border:1px solid #dbe6dc;border-radius:7px;color:var(--green);background:white;font-size:12px;font-weight:600;white-space:nowrap}.row-visit:hover{background:#edf4ef}.table-footer{border-top:1px solid var(--line);padding:16px 26px;display:flex;justify-content:space-between;align-items:center;gap:15px}.pagination{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:12px;color:#7d8b80}.square{width:29px;min-height:28px;padding:2px;font-size:15px}.empty{padding:38px 24px 48px;text-align:center}.empty-symbol{margin:0 auto 15px;background:#edf3e9;color:#78966d;border-radius:18px;width:64px;height:64px;font-size:38px;line-height:64px}.empty h3{font-size:20px;font-weight:600;margin-bottom:9px;letter-spacing:-.4px}.empty p{color:#879186;font-size:13px;max-width:375px;margin:0 auto 22px}.empty .primary{font-size:13px}.page-footer{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#93a08f;padding-top:20px}
dialog{border:0;padding:0;color:inherit;background:white;box-shadow:0 20px 100px #1f3b2f30}dialog::backdrop{background:#16392d55;backdrop-filter:blur(3px)}.card-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 48px);border-radius:16px}.dialog-heading{padding:24px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:24px;overflow-wrap:anywhere}.dialog-heading .eyebrow{margin-bottom:5px;font-size:10px}.icon-button{width:33px;height:33px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:white;font-size:22px;line-height:1;color:#718578}.icon-button:hover{background:var(--light)}.tabs{display:flex;border-bottom:1px solid var(--line);padding:0 28px;gap:24px}.tab{background:none;border:0;padding:14px 2px 12px;border-bottom:2px solid transparent;color:#8a968d;font-size:13px;font-weight:600}.tab.active{border-color:var(--green);color:var(--green)}.tab span{font-size:11px;color:#8b9b90;margin-left:3px}.dialog-content{padding:23px 28px 0}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:17px}.section-title h3{font-size:15px}.step{font-size:10px;color:#859783;font-weight:700;border:1px solid #dce5d9;border-radius:5px;padding:1px 5px}.parent-fields{display:grid;grid-template-columns:1fr 1.2fr;gap:17px}.phone-status{font-size:12px;margin-top:8px;color:#54805c;min-height:18px}.phone-status button{font-size:12px;margin-left:8px}.children-title{margin-top:20px;margin-bottom:8px}.children-title .small{margin-left:auto}.children-hint{margin-bottom:15px;max-width:570px}.child-form{background:#f9faf7;border:1px solid #e5eadf;border-radius:10px;padding:16px;margin-bottom:11px}.child-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:11px;font-weight:650;color:#748b71}.child-head button{font-size:11px;padding:0;background:none;border:0;color:#a58074}.child-grid{display:grid;grid-template-columns:1.4fr .65fr;gap:12px}.birthday-fields{display:grid;grid-template-columns:.8fr 1.3fr 1fr;gap:10px;margin-top:13px}.birthday-label{font-size:11px;color:#81907d;margin-top:14px}.child-form label{font-size:12px}.child-form input,.child-form select{height:40px;font-size:13px;padding:8px 9px}.add-child{border:1px dashed #bbcfbb;color:#54805b;background:#fbfdf8;border-radius:8px;padding:10px;width:100%;font-size:13px;margin-bottom:21px}.add-child:hover{background:var(--light)}.initial-visit{border-top:1px solid var(--line);padding-top:18px;display:grid;grid-template-columns:1.3fr 1fr;gap:13px;align-items:center}.check-label{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:13px}.initial-visit>p{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:9px;margin-top:23px;padding:18px 0;border-top:1px solid var(--line)}.action-spacer{flex:1}.form-actions .primary,.form-actions .secondary{font-size:13px}.form-actions .text-button{font-size:12px;padding-left:0}.visit-form{background:#f4f8f0;border:1px solid #e0e9db;padding:20px;border-radius:11px}.visit-form h3{margin-bottom:4px}.visit-form>label{margin-top:17px;max-width:240px}.visit-children{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.visit-children label{background:white;border:1px solid #dce7d8;border-radius:7px;padding:9px 12px;display:flex;flex-direction:row;align-items:center;gap:9px;font-size:13px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 5px}.visit-history{padding-bottom:22px}.history-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.history-row strong{font-weight:500;min-width:82px;font-variant-numeric:tabular-nums}.history-row span{flex:1;overflow-wrap:anywhere}.history-row button{border:0;color:#af9a8d;background:none;font-size:11px}.history-empty{padding:25px 0;color:#8c978b;text-align:center;font-size:13px}#more-history{margin-bottom:25px}.confirm-dialog{width:min(420px,calc(100% - 32px));border-radius:14px;padding:26px}.confirm-dialog h2{font-size:20px}.confirm-dialog p{margin:12px 0 25px;font-size:14px;color:#788579;white-space:pre-line}.confirm-actions{display:flex;justify-content:flex-end;gap:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#234f3f;color:white;font-size:13px;padding:13px 22px;border-radius:9px;box-shadow:0 8px 35px #163b2a26;z-index:100}.error{color:var(--danger);font-size:13px}.banner{padding:12px 16px;background:#fff1ed;border:1px solid #f1d9d0;border-radius:7px;margin-bottom:16px}#list-error{margin:0 26px 18px}.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px;background:radial-gradient(ellipse at 15% 15%,#e7efdf 0,transparent 55%),#f5f6f2}.login-brand{margin-bottom:32px}.login-card{width:100%;max-width:430px;background:white;padding:35px;border:1px solid var(--line);border-radius:15px;box-shadow:0 20px 80px #2c573408}.login-card h1{font-size:29px;letter-spacing:-1px;margin-bottom:14px}.login-card>.muted{font-size:14px;margin-bottom:25px}.login-card label{margin-bottom:13px}.login-card .error{margin:8px 0}.login-card .primary{margin-top:10px;justify-content:space-between}.login-foot{font-size:11px;text-align:center;color:#91a08f;margin-top:24px}
@media(min-width:1600px){.workspace{padding-left:55px;padding-right:55px}.topbar{padding-left:max(55px,calc((100vw - 1400px)/2));padding-right:max(55px,calc((100vw - 1400px)/2))}}
@media(max-width:1100px){.workspace{padding:30px 28px 20px}.topbar{padding:0 28px}.stats{gap:12px}.stat{padding:17px}.stat-label{font-size:11px}.stat-caption{font-size:10px}.client-table td,.client-table th{padding-left:12px;padding-right:12px}.avatar{display:none}.client-table th{font-size:9px;letter-spacing:.3px}.row-visit{font-size:11px;padding:6px 8px}}
@media(max-width:760px){h1{font-size:33px}.topbar{height:72px;padding:0 20px}.section-label{display:none}.workspace{padding:25px 20px 16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.stat{min-height:123px;padding:14px 16px}.stat strong{font-size:29px;margin-top:4px}.stat-label{font-size:11px}.page-heading{align-items:flex-end}.page-heading .muted{font-size:12px;max-width:260px}.page-heading .primary{font-size:12px;padding:9px 12px}.page-heading .eyebrow{font-size:10px}.registry-top{padding:19px 18px 16px}.search-row{padding:0 18px 18px;gap:8px}.search-wrap input{font-size:12px}.search-row .secondary{font-size:12px;padding:9px 11px}.client-table thead{display:none}.client-table,.client-table tbody{display:block}.client-table tr{display:grid;grid-template-columns:1fr 1fr;padding:15px 18px;gap:11px;border-top:1px solid var(--line)}.client-table td,.client-table td:first-child,.client-table td:last-child{display:block;border:0;padding:0}.client-table td:first-child{grid-column:1/-1}.client-table td:nth-child(4){text-align:right}.client-table td:nth-child(3){text-align:right}.client-table td:nth-child(4)::before{content:"Последний визит";display:block;font-size:10px;color:#8b978e}.client-table td:last-child{text-align:right;grid-column:2;grid-row:4}.client-table td:nth-child(5){grid-column:1;grid-row:4}.avatar{display:flex;width:34px;height:34px}.client-table td:nth-child(2)::before{content:"Ребёнок";display:block;font-size:10px;color:#8b978e}.client-table td:nth-child(3)::before{content:"День рождения";display:block;font-size:10px;color:#8b978e}.table-footer{padding:14px 18px}.table-footer p{max-width:200px;font-size:10px}.filters{grid-template-columns:1fr 1fr;padding:18px;gap:13px}.filter-bottom{flex-wrap:wrap}.filter-bottom p{width:100%;max-width:none;margin-bottom:3px}.filter-bottom .text-button{margin-left:auto}.page-footer{font-size:10px}.card-dialog{max-height:calc(100dvh - 24px);width:calc(100% - 24px)}.dialog-heading{padding:20px}.dialog-content{padding:20px 20px 0}.tabs{padding:0 20px}.dialog-heading h2{font-size:22px}.child-grid{grid-template-columns:1fr 1fr}.child-grid label:first-child{grid-column:1/-1}.parent-fields{grid-template-columns:1fr}.initial-visit{grid-template-columns:1fr}.initial-visit>label:nth-child(2){max-width:250px}.form-actions{flex-wrap:wrap}.form-actions .danger{width:100%;text-align:left}.form-actions .action-spacer{display:none}.form-actions .primary{flex:1}.history-row{gap:10px}.history-heading{align-items:flex-start}.history-heading .small{max-width:130px;text-align:right}}
@media(max-width:400px){.topbar{padding:0 14px}.workspace{padding:23px 12px 14px}.local-label,.live-dot{display:none}.top-right .text-button{margin-left:0}.brand{font-size:11px}.page-heading{gap:9px}.page-heading .muted{max-width:190px}.page-heading .primary{padding:9px;font-size:11px}.stat{padding:12px}.stat-label{font-size:10px}.registry-top .secondary{padding:8px 10px;font-size:12px}.birthday-fields{gap:6px;grid-template-columns:.8fr 1.15fr 1fr}.child-form{padding:12px}.dialog-content{padding:16px 14px 0}.visit-form{padding:15px}.page-footer span:last-child{max-width:125px;text-align:right}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.check-label input,.visit-children input{margin-top:0}body:has(dialog[open]){overflow:hidden}
.settings-dialog{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);border-radius:14px}.settings-form{padding:24px;display:grid;gap:18px}.top-right .text-button{margin-left:0}@media(max-width:400px){.top-right{gap:1px}.top-right .text-button{padding:8px 6px;font-size:12px}.topbar{gap:12px}.brand{gap:8px}}
