:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18313b;background:#f5f8f7;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.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:76px;background:#fff;border-bottom:1px solid #e3ebe9;display:flex;align-items:center;gap:38px;padding:0 max(28px,calc((100vw - 1440px)/2));position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:750;letter-spacing:-.03em;white-space:nowrap}
.brand b{color:#657981;font-weight:550}
.brand-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#155c59;color:#fff;font-family:Georgia,serif;font-size:24px}
.topbar nav{align-self:stretch;display:flex;align-items:stretch}
.topbar nav a{display:flex;align-items:center;padding:0 8px;color:#536970;font-weight:650}
.topbar nav a[aria-current]{color:#155c59;border-bottom:2px solid #155c59}
.account{margin-left:auto;display:flex;gap:18px;align-items:center;color:#586e75;font-size:13px}
.account form{margin:0}
.link-button{border:0;background:none;color:#186b64;font-weight:700;padding:5px}
.link-button:hover{text-decoration:underline}
.shell{max-width:1440px;margin:0 auto;padding:38px 28px 80px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:#38847b}
.page-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.page-heading h1{font-size:38px;line-height:1.12;margin:8px 0 8px;letter-spacing:-.05em;font-weight:750}
.page-heading p,.editor-head p{color:#667d82;margin:0;font-size:15px}
.button{min-height:43px;border-radius:10px;padding:10px 17px;font-size:13px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;white-space:nowrap}
.button.primary{color:#fff;background:#176d65;box-shadow:0 3px 9px #176d651c}
.button.primary:hover{background:#115950}
.button.secondary{color:#176d65;background:#fff;border-color:#d2e1dd}
.button.secondary:hover{background:#f4faf8}
.button.full{width:100%}
.panel,.editor-panel{background:#fff;border:1px solid #e2ebe8;border-radius:16px;box-shadow:0 5px 24px #0e49400a}
.searchbar{padding:21px;display:flex;gap:11px;border-bottom:1px solid #e9efed}
.searchbar input{width:min(430px,100%)}
input,select{width:100%;border:1px solid #cfddda;border-radius:9px;background:#fff;color:#17353a;min-height:43px;padding:10px 12px;outline:none}
input:focus,select:focus{border-color:#398e82;box-shadow:0 0 0 3px #65b9aa2b}
input::placeholder{color:#a2b0b2}
.client-list{padding:0 20px}
.list-head,.client-row{display:grid;grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(120px,1fr) 24px;gap:15px;align-items:center}
.list-head{height:48px;color:#83969b;font-size:11px;font-weight:800;letter-spacing:.08em}
.client-row{min-height:81px;border-top:1px solid #edf2f0;font-size:13px;color:#61767b}
.client-row:hover{background:#f8fbfa}
.client-identity{display:flex;align-items:center;gap:12px}
.client-identity strong,.client-identity small{display:block}
.client-identity strong{color:#1b353b;font-size:14px}
.client-identity small{margin-top:3px;font-size:12px;color:#83969b}
.avatar{width:38px;height:38px;border-radius:11px;background:#e5f1ed;color:#176d65;display:grid;place-items:center;font-weight:800}
.row-arrow{font-size:19px;color:#7ba89e}
.empty-state{text-align:center;padding:62px 20px}
.empty-state h2{font-size:17px;margin:0 0 7px}
.empty-state p{color:#7f9295;margin:0}
.breadcrumb{display:flex;align-items:center;gap:10px;color:#819297;font-size:12px;margin-bottom:20px}
.breadcrumb a:hover{color:#176d65}
.profile-heading{margin-bottom:26px}
.profile-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:25px;align-items:start}
.section-nav{background:#fff;border:1px solid #e1ebe7;border-radius:13px;padding:18px 9px;position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto}
.section-nav-title{font-size:10px;letter-spacing:.13em;font-weight:800;color:#98a8aa;padding:0 12px 11px}
.section-nav nav{display:grid;gap:2px}
.section-nav a{font-size:12px;font-weight:650;color:#667b7e;padding:10px 12px;border-radius:8px;line-height:1.25}
.section-nav a:hover{background:#f3f8f6;color:#155e59}
.section-nav a[aria-current]{background:#e8f3ef;color:#12645c}
.editor-panel{min-width:0}
.editor-head{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:29px 30px 24px;border-bottom:1px solid #edf2f0}
.editor-head h2{font-size:24px;letter-spacing:-.04em;margin:6px 0 6px}
.editor-head p{font-size:13px}
.editor-form{padding:28px 30px 0}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}
.field label{display:block;font-weight:700;font-size:12px;margin-bottom:8px;color:#3c555b}
.required{color:#b86147}
.input-wrap{position:relative}
.calendar-button{position:absolute;right:7px;top:5px;width:33px;height:33px;border:0;background:#edf5f2;border-radius:7px;color:#347b72;font-size:19px}
.format-date{padding-right:46px}
.native-date{position:absolute;right:7px;top:5px;width:33px;height:33px;opacity:0;pointer-events:none}
.form-footer{margin-top:31px;border-top:1px solid #edf2f0;padding:19px 0;display:flex;align-items:center;justify-content:space-between;gap:14px}
.form-footer>span{font-size:12px;color:#8a9c9e}
.alert{border-radius:9px;padding:13px 16px;margin-bottom:19px;font-size:13px;font-weight:650}
.alert.error{background:#fff0ec;color:#9d442e;border:1px solid #efc8ba}
.alert.success{background:#e6f5ed;color:#236e52;border:1px solid #c5e5d2}
.record-list{padding:21px 30px 0;display:grid;gap:9px}
.record-card{border:1px solid #e2ece8;border-radius:10px;padding:13px 15px;display:flex;justify-content:space-between;gap:15px;align-items:center}
.record-card strong,.record-card small{display:block}
.record-card strong{font-size:13px}
.record-card small{font-size:11px;color:#85999a;margin-top:4px}
.record-actions{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:750;color:#176d65}
.danger{color:#b45340}
.delete-form{margin:0}
.mobile-section-picker{display:none}
.login-frame{max-width:1020px;margin:9vh auto 0;display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}
.login-intro h1{font-size:52px;line-height:1.06;letter-spacing:-.055em;margin:17px 0}
.login-intro p{color:#657d80;font-size:18px;line-height:1.5}
.login-card{background:#fff;border:1px solid #e2ebe8;border-radius:18px;padding:37px;box-shadow:0 18px 50px #0e494014}
.login-card h2{font-size:25px;margin:0 0 6px;letter-spacing:-.04em}
.login-card p{color:#7b9093;margin:0 0 26px}
.login-card .field{margin-bottom:19px}
.login-card .button{margin-top:5px}
@media(max-width:1000px){.profile-layout{grid-template-columns:205px minmax(0,1fr)}
.section-nav a{font-size:11px}
.shell{padding-left:22px;padding-right:22px}
}
@media(max-width:760px){.topbar{padding:0 18px;height:62px;gap:15px}
.brand{font-size:14px}
.brand b{display:none}
.account>span,.topbar nav{display:none}
.shell{padding:25px 16px 65px}
.page-heading{align-items:start}
.page-heading h1{font-size:30px}
.profile-layout{display:block}
.section-nav{display:none}
.mobile-section-picker{display:block;margin-bottom:15px}
.mobile-section-picker label{display:block;font-size:11px;font-weight:800;color:#647a7d;margin-bottom:7px}
.editor-head{padding:22px}
.editor-form{padding:21px 22px 0}
.record-list{padding:18px 22px 0}
.login-frame{margin:4vh auto;display:block}
.login-intro{margin-bottom:28px}
.login-intro h1{font-size:36px}
.login-intro p{font-size:15px}
.login-card{padding:26px}
}
@media(max-width:560px){.page-heading{display:block}
.page-heading .button{margin-top:19px;width:100%}
.field-grid{grid-template-columns:1fr;gap:18px}
.list-head{display:none}
.client-row{grid-template-columns:1fr 20px;gap:6px;padding:13px 2px}
.client-row>span:nth-child(2),.client-row>span:nth-child(3){display:none}
.searchbar{padding:15px}
.searchbar .button{width:auto}
.client-list{padding:0 15px}
.editor-head{display:block}
.editor-head .button{margin-top:15px}
.form-footer{display:block}
.form-footer .button{width:100%;margin-top:13px}
.record-card{align-items:start}
.record-actions{flex-direction:column;align-items:end}
.login-intro h1{font-size:31px}
}

