:root{color-scheme:light;--navy:#101b30;--navy2:#172943;--teal:#0b8b86;--teal2:#ddf6f2;--line:#e0e7ee;--muted:#617286;--text:#263549;--bg:#f4f7fa;--danger:#b63d42;--warn:#965b19;--white:#fff}
*{box-sizing:border-box}html{font-size:15px}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);margin:0;min-height:100vh}a{color:#176a77;text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button{cursor:pointer}.wide{width:min(1300px,calc(100% - 36px));margin-inline:auto}.topbar{background:var(--navy);color:#fff;border-bottom:4px solid #138c84;box-shadow:0 3px 24px #13243e19}.top-inner{display:flex;align-items:center;gap:24px;min-height:78px}.brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:850;font-size:1.28rem;line-height:1.06;white-space:nowrap}.brand:hover{text-decoration:none}.brand-icon{width:40px;height:40px;display:grid;place-items:center;background:linear-gradient(140deg,#1ca8a0,#116878);color:#fff;border-radius:13px;box-shadow:0 8px 15px #0002;font-weight:900}.brand small{display:block;color:#a9c2d2;letter-spacing:2px;font-size:.55rem;margin-top:5px}.nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:flex-end}.nav a{padding:10px 12px;border-radius:9px;color:#dceaf4;font-weight:650;font-size:.85rem;white-space:nowrap}.nav a:hover{background:#233850;text-decoration:none;color:#fff}.logout{margin:0}.logout button{border:1px solid #466077;background:transparent;color:#e7f3fa;padding:9px 13px;border-radius:10px;font-weight:650}.logout button:hover{background:#243c55}.main{padding:34px 0 62px;min-height:calc(100vh - 155px)}.heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:25px}.heading h1{font-size:clamp(1.6rem,2.4vw,2.2rem);letter-spacing:-.04em;margin:0 0 6px;font-weight:800;color:#18283c}.heading p{margin:0;color:var(--muted);line-height:1.5}.panel{background:var(--white);border:1px solid var(--line);border-radius:17px;box-shadow:0 8px 25px #23344908;padding:24px;margin-bottom:22px;min-width:0}.panel-head{margin-bottom:18px}.panel h2{font-size:1.12rem;margin:0 0 5px;color:#192e46}.panel-head p{font-size:.86rem;color:var(--muted);margin:0;line-height:1.5}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 24px}.stat{background:#fff;padding:18px;border:1px solid var(--line);border-radius:15px;color:#647589;font-size:.85rem;min-width:0}.stat strong{display:block;margin-top:10px;font-size:clamp(1.1rem,1.5vw,1.55rem);font-weight:800;color:#152942;letter-spacing:-.03em;overflow-wrap:anywhere}.stats-three{grid-template-columns:repeat(3,minmax(0,1fr))}.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.two-cols>.panel{min-width:0}.clients-layout{grid-template-columns:420px minmax(0,1fr)}.alert{padding:14px 18px;border-radius:12px;border:1px solid;margin-bottom:20px}.alert-error{background:#fff1f0;color:#91252d;border-color:#f5bebf}.alert-ok{background:#e5fbf4;color:#17684c;border-color:#b4e9d5}.btn{padding:10px 16px;border-radius:10px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;border:none;text-align:center;text-decoration:none}.btn:hover{text-decoration:none;filter:brightness(.96)}.btn-primary{background:var(--teal);color:white}.btn-muted{background:#edf2f6;color:#253a51}.field{display:block;margin-bottom:15px}.field>span{display:block;font-size:.86rem;font-weight:680;margin-bottom:7px;color:#304359}.field input,.field select,.field textarea{width:100%;background:#fff;border:1px solid #cdd9e2;border-radius:10px;padding:11px 12px;outline:none;min-height:44px}.field textarea{resize:vertical;min-height:92px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #10a69c20}.form{max-width:100%}.form>.btn{margin-top:5px}.check{display:block;margin:10px 0;font-size:.93rem}.check input{width:17px;height:17px;vertical-align:middle;accent-color:var(--teal);margin-right:7px}.alert-row{padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #edf0f3;color:var(--text)}.alert-row:last-child{border-bottom:0}.alert-row>span:first-child{min-width:0}.alert-row strong,.list-row strong,.project-row strong{display:block;font-weight:750}.alert-row small,.list-row small,.project-row small{display:block;color:#748397;font-size:.81rem;margin-top:4px}.alert-row b{color:#ac4a35;white-space:nowrap;font-size:.86rem}.empty{color:#718197;padding:14px;background:#f7f9fb;border-radius:10px}.badge{display:inline-flex;align-items:center;font-size:.71rem;font-weight:780;white-space:nowrap;line-height:1.4;padding:4px 9px;border-radius:999px;border:1px solid #d6e0e8;background:#f0f5f7;color:#4a6278}.badge-ok{color:#206e54;background:#e1f6ec;border-color:#b9e6d0}.badge-warn{color:#98601e;background:#fff5e5;border-color:#f4ddba}.project-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #e9eef2;padding:17px 0;color:var(--text)}.project-row:last-child{border-bottom:none}.project-row>span:first-child{flex:1;min-width:0}.project-money{color:#14253a;font-weight:850;white-space:nowrap;text-align:right}.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:13px 0}.list-row:last-child{border-bottom:0}.entity{border:1px solid #e3e9ee;padding:16px;margin-bottom:13px;border-radius:13px;background:#fbfcfd}.entity-head{display:flex;align-items:center;justify-content:space-between;gap:7px}.entity-head strong{font-size:1rem}.entity-sub{font-size:.82rem;color:var(--muted);line-height:1.7;margin:6px 0}.note{white-space:normal;color:#5f7185;font-size:.85rem;margin:8px 0}.small-link{font-size:.82rem;font-weight:700}.payment-line{margin-top:10px;padding:9px 0 3px;border-top:1px dashed #d9e1e8;font-size:.82rem;color:#415b71}.payment-line form{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:6px}.link-danger{border:0;background:transparent;color:#a13c41;font-size:.77rem;text-decoration:underline;padding:3px}.delete-check{font-size:.78rem}.delete-check input{vertical-align:middle}.inline-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:16px}.inline-fields .field{min-width:0}.inline-fields input{padding:9px}.inline-fields .field>span{font-size:.76rem}.editor{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}.editor summary{font-weight:780;color:#096e72;cursor:pointer;list-style-position:inside;margin-bottom:6px}.editor[open]>summary{margin-bottom:20px}.service-flags{display:flex;gap:10px;flex-wrap:wrap;font-size:.76rem;color:#587083;margin:8px 0}.task-line{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e9eef2}.task-line form{margin:0}.task-toggle{width:36px;height:36px;display:grid;place-items:center;border:1px solid #c5d8de;border-radius:10px;background:#ecf8f7;color:var(--teal);font-size:1.25rem}.task-line span{flex:1;min-width:0}.task-line small{display:block;margin-top:3px;color:var(--muted);font-size:.8rem}.task-line .done{text-decoration:line-through;color:#8d99a5}.detail-text{line-height:1.9}.note-block{background:#f5f8fa;border-left:3px solid var(--teal);padding:14px;border-radius:8px;margin:16px 0;color:#4c6273;line-height:1.6}.footer{text-align:center;color:#8190a1;font-size:.78rem;margin:18px 0 30px}.auth-container{width:min(450px,calc(100% - 30px));margin:8vh auto 45px}.auth-title{text-align:center;margin-bottom:22px}.auth-title .brand-icon{margin:0 auto 14px;width:50px;height:50px}.auth-title h1{margin:0;color:#152943}.auth-title p{color:var(--muted)}.auth-container .panel{padding:28px}.auth-container .btn{width:100%}.fine{color:#748397;font-size:.8rem;line-height:1.6}.secret{padding:18px 10px;background:#edf3f6;border-radius:12px;letter-spacing:2px;text-align:center;color:#1c4f5f;overflow-wrap:anywhere;font-weight:850;font-family:monospace;font-size:1.15rem}.steps{padding-left:22px;line-height:1.7}.codes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:20px 0}.codes code{padding:11px;background:#f2f5f7;font-family:monospace;font-size:.9rem;color:#14263e;text-align:center;border-radius:8px}.muted{font-size:.82rem;color:var(--muted)}
@media(max-width:1050px){.top-inner{flex-wrap:wrap;padding-top:13px;padding-bottom:13px;gap:9px}.nav{order:3;width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-top:4px}.logout{margin-left:auto}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.clients-layout{grid-template-columns:1fr 1.2fr}}
@media(max-width:700px){.wide{width:calc(100% - 22px)}.main{padding:18px 0 38px}.panel{padding:17px;border-radius:13px}.heading{align-items:stretch;flex-direction:column}.heading .btn{align-self:flex-start}.two-cols,.clients-layout{grid-template-columns:1fr;gap:0}.stats,.stats-three{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:13px}.stat strong{font-size:1.16rem}.top-inner{min-height:60px}.brand{font-size:1.02rem}.nav a{font-size:.82rem;padding:8px}.project-row{flex-wrap:wrap;gap:7px}.project-row>span:first-child{flex-basis:100%}.project-row .badge{margin-right:auto}.inline-fields{grid-template-columns:1fr 1fr}.inline-fields .field:first-child{grid-column:1/-1}.codes{grid-template-columns:1fr 1fr}.payment-line form{display:flex;margin-left:0}.alert-row{align-items:flex-start}.panel-head{margin-bottom:12px}}
