/* MaksonCRM F9 palette and spacing, with local system fonts. */
:root{font:13px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#243640;background:#f3f6f7;--paper:#fff;--canvas:#f3f6f7;--line:#dfe7ea;--ink:#243640;--muted:#667986;--accent:#126c70;--nav:#173c4a;--nav-top:#10343f;--soft:#e7f2ef;--warn:#923c39}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.52;cursor:default}
a,button,input,select{outline-offset:3px} :focus-visible{outline:2px solid #228d90}
h1,h2,h3,p{margin:0}h1{font-size:21px;font-weight:650;letter-spacing:-.3px}h2{font-size:15px}h3{font-size:13px}
small,.muted{color:var(--muted)}small{display:block}.error{color:var(--warn)}
.top{height:56px;background:var(--nav-top);display:flex;align-items:center;justify-content:space-between;padding:0 20px;color:white;gap:12px}
.brand,.actions{display:flex;align-items:center;gap:9px}.brand strong{font-size:19px;letter-spacing:-.75px}.brand>span:last-child{color:#c6dde1;padding-left:9px;border-left:1px solid #56727a}
.mark{display:grid;grid-template-columns:repeat(3,4px);gap:2px;align-items:end;justify-content:center;padding:6px;width:28px;height:28px;background:var(--accent);border-radius:6px}
.mark i{background:white;height:8px;border-radius:1px;transform:skewY(-16deg)}.mark i:nth-child(2){height:12px}.mark i:last-child{height:16px}
.workspace{display:grid;grid-template-columns:178px minmax(0,1fr);min-height:calc(100vh - 56px)}
nav{background:var(--nav);display:grid;align-content:start;padding:17px 9px;gap:4px}nav button{border:0;border-radius:5px;text-align:left;background:none;color:#dae9ec;padding:10px 11px;font-weight:560}
nav button:hover,nav button[aria-current]{background:#295765;color:white}
main{padding:21px 24px;min-width:0} .heading{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:16px}.heading p{color:var(--muted);max-width:70ch;margin-top:3px}
.stack{display:grid;gap:14px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(151px,1fr));gap:11px}.card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:14px}
.metric{font-size:23px;font-weight:700;letter-spacing:-.4px;margin:2px 0}.card p{color:var(--muted)}
.button{border:1px solid #cbd9dc;border-radius:5px;background:white;color:var(--ink);padding:6px 11px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;position:relative;font-weight:620;white-space:nowrap;cursor:pointer}
.button:hover{background:#edf5f4}.button.primary{background:var(--accent);color:white;border-color:var(--accent)}.button.primary:hover{background:#0b5558}
.button.secondary{color:white;background:#295765;border-color:#58747a}.button:focus-within{outline:2px solid #65c7c7}.button:has(input:disabled){opacity:.55;cursor:default}
.button input[type=file]{position:absolute;width:100%;height:100%;opacity:0;inset:0;cursor:inherit}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:0 0 12px}.toolbar label,.fields-grid label{display:grid;gap:4px;font-weight:600;min-width:145px}
input:not([type=checkbox],[type=file]),select{min-height:32px;padding:5px 8px;border:1px solid #ccd9dd;background:white;border-radius:4px;color:inherit;max-width:100%;width:100%} input[type=checkbox]{accent-color:var(--accent)}
.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:6px}table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:9px 10px;border-bottom:1px solid #e8edef;vertical-align:middle}th{white-space:nowrap;font-size:12px;background:#edf2f3}td{min-width:55px;max-width:420px;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}
.tag{display:inline-block;background:var(--soft);color:#0b5558;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:600}.tag.warning{background:#f9ecea;color:var(--warn)}
.board{display:flex;gap:10px;overflow-x:auto;padding:2px 0 14px;min-height:310px;align-items:flex-start}.lane{flex:0 0 220px;max-height:68vh;overflow:auto;background:#edf2f3;border:1px solid var(--line);border-radius:6px;padding:8px}
.lane h2{position:sticky;top:-8px;background:#edf2f3;display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:35px;font-size:12px;padding:2px 2px 9px}.deal{background:white;border:1px solid var(--line);border-radius:5px;padding:9px;margin-bottom:7px;min-height:58px}.deal button{display:block;text-align:left;background:none;border:0;padding:0;color:#155d66;font-weight:650;overflow-wrap:anywhere}.deal small{margin-top:4px}
.empty{padding:38px;display:grid;gap:10px;justify-items:start;background:white;border:1px dashed #bfcdd0;border-radius:6px}.empty p{color:var(--muted);max-width:68ch}.notice{margin-top:12px;color:#0b5558}.notice:empty{display:none}
.fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.panel header{display:flex;justify-content:space-between;gap:12px}
dialog{max-width:min(700px,94vw);width:100%;border:1px solid var(--line);border-radius:7px;box-shadow:0 12px 40px #193b4826;padding:20px}dialog::backdrop{background:#16374377}dialog h2,dialog p,dialog section{margin-bottom:10px}.skip{position:absolute;top:-50px;left:8px}.skip:focus{top:8px;background:white;padding:8px;z-index:5}
@media(max-width:820px){.workspace{grid-template-columns:minmax(0,1fr)}nav{display:flex;overflow:auto;padding:6px;white-space:nowrap}main{padding:13px}.top{padding:0 8px}.brand>span:last-child{display:none}.heading{flex-wrap:wrap}}
.login-panel{max-width:28rem;margin:10vh auto;padding:2rem}.login-panel form{margin-top:1rem}
progress{width:100%;accent-color:var(--accent)}
.top .muted{color:#c6dde1}
