:root{--navy:#17365D;--ink:#111827;--muted:#4B5563;--line:#DDE2EA;--ground:#F4F6FA;--tile:#E9EDF4;--card:#fff}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--ground);font-size:14px;line-height:1.45}
a{color:var(--navy)}a:hover{color:#0E2440}
h1{margin:0;font-size:26px;color:var(--navy)}h2{margin:0;font-size:17px;color:var(--navy)}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{background:var(--navy);color:#fff;flex:0 0 220px;padding:24px 16px;display:flex;flex-direction:column;gap:4px}
.brand{font-size:13px;font-weight:700;letter-spacing:.12em;padding:0 12px}
.brand-sub{font-size:12px;color:#C9D4E5;padding:0 12px 20px}
.side a{color:#fff;text-decoration:none;padding:12px;border-radius:8px}
.side a:hover{background:#21477A;color:#fff}
.side a[aria-current=page]{background:#fff;color:var(--navy);font-weight:600}
.side-foot{margin-top:auto;padding:16px 12px 0;font-size:12px;color:#C9D4E5;display:flex;flex-direction:column;gap:8px;word-break:break-all}
.main{flex:1 1 640px;min-width:0;padding:28px 32px;display:flex;flex-direction:column;gap:22px}
.head{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between}
.sub{color:var(--muted);margin-top:4px}
.tools{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.btn{font:inherit;font-weight:600;min-height:44px;padding:0 18px;border:0;border-radius:8px;background:var(--navy);color:#fff;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.btn:hover{background:#0E2440;color:#fff}
.btn.ghost{background:#fff;color:var(--navy);border:1px solid var(--navy)}
.btn.link{background:none;color:#C9D4E5;padding:0;min-height:44px;font-weight:400;text-decoration:underline}
label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
input,select,textarea{font:inherit;font-size:14px;padding:10px 12px;min-height:44px;border:1px solid #C5CCD8;border-radius:8px;background:#fff;color:var(--ink);width:100%}
textarea{min-height:96px}
input[type=checkbox]{width:20px;min-height:20px;height:20px;padding:0}
.check{flex-direction:row;align-items:center;gap:10px;font-size:14px;color:var(--ink);min-height:44px}
.search input{width:240px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:26px;font-weight:700;color:var(--navy)}
.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;align-items:start}
.col{background:var(--tile);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:12px;min-height:120px}
.col.over{outline:2px dashed var(--navy)}
.col-head{display:flex;justify-content:space-between;font-size:13px;font-weight:600;color:var(--navy)}
.deal-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;text-decoration:none;color:var(--ink);cursor:grab}
.deal-card:hover{border-color:var(--navy);color:var(--ink)}
.deal-name{font-weight:600}.muted{color:var(--muted)}.small{font-size:13px}
.row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.strong{font-weight:600;color:var(--navy)}
.empty{font-size:13px;color:var(--muted);padding:14px;border:1px dashed #AEB7C6;border-radius:8px}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.steps button{font:inherit;font-size:13px;width:100%;min-height:44px;text-align:left;padding:10px 12px;border-radius:8px;border:1px solid #C5CCD8;background:#fff;color:var(--muted);cursor:pointer}
.steps button.on{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;align-items:start}
.stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);padding:12px;border-bottom:2px solid var(--navy)}
td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}
.num{text-align:right;white-space:nowrap}
table.quote th{background:var(--navy);color:#fff;border:0}
tr.sum td{background:#EEF1F6;font-weight:700}
.pill{font-size:12px;border-radius:6px;padding:4px 8px;white-space:nowrap;display:inline-block}
.pill.ok{color:#0F4A2A;background:#DDF3E4}.pill.wait{color:#7A4A00;background:#FFF1D6}.pill.info{color:#0B3A75;background:#DCEAFB}.pill.off{color:#4B5563;background:#E5E7EB}
.note{font-size:13px;color:#7A4A00;background:#FFF1D6;border-radius:6px;padding:8px 10px}
.error{font-size:14px;color:#8A1C1C;background:#FDE2E2;border-radius:8px;padding:10px 12px}
.form{max-width:640px;display:flex;flex-direction:column;gap:16px}
.acts{display:flex;flex-direction:column;gap:12px}
.act{display:flex;flex-wrap:wrap;gap:4px 12px}.act time{color:var(--muted);min-width:150px}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login .card{max-width:420px;width:100%;gap:16px;padding:32px;border-top:5px solid var(--navy)}
.crumb{font-size:13px;color:var(--muted)}
@media (max-width:760px){.side{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:center}.side-foot{margin:0;padding:0 12px}.brand-sub{padding-bottom:0}.main{padding:20px 16px}.search input{width:100%}}
