:root{color-scheme:light;--ink:#302d32;--muted:#746b70;--accent:#741f39;--paper:#f5f2ee;--line:#e3d8d0;--soft:#f9f6f3}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--accent);text-underline-offset:3px}header{min-height:82px;display:flex;align-items:center;gap:25px;padding:15px 32px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}header .brand{font-size:24px;font-weight:800;text-decoration:none;white-space:nowrap}.brand span{font-weight:450;color:var(--muted)}header small,small{display:block;color:var(--muted)}header select{width:auto;max-width:250px}#business-switch{margin-left:auto}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);max-width:1700px;margin:auto}nav{padding:26px 16px;display:flex;flex-direction:column;gap:5px;border-right:1px solid var(--line)}nav button,nav a{display:block;width:100%;text-align:left;border:0;border-radius:8px;background:none;color:var(--ink);padding:12px;text-decoration:none;font-weight:550}nav button.active{background:var(--accent);color:#fff}main{min-width:0;padding:30px;min-height:calc(100vh - 82px)}h1{font-size:30px;line-height:1.3;margin:0 0 14px}h2{font-size:21px;line-height:1.4;margin:0 0 16px}h3{font-size:17px;margin:0 0 10px}p{margin:10px 0 20px}button,.button{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:8px;padding:10px 17px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}.secondary{background:#fff;color:var(--accent);border-color:#cdb5aa}.quiet{background:var(--soft);color:var(--ink);border-color:var(--line)}.danger{background:#8e2a27;color:#fff}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px}.heading h1{margin:0}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:22px;box-shadow:0 3px 15px #39272a03}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0}.stat{padding:23px;background:#fff;border:1px solid var(--line);border-radius:12px}.stat strong{display:block;font-size:30px;color:var(--accent)}.stat span{color:var(--muted)}label{display:block;font-size:14px;font-weight:600;margin-bottom:14px}input,select,textarea{display:block;width:100%;padding:10px 12px;margin-top:5px;background:#fcfbf9;color:var(--ink);border:1px solid #cfc3bc;border-radius:7px;font:inherit;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #bf8b5859;outline-offset:2px}input[type=checkbox]{width:auto;display:inline;accent-color:var(--accent)}textarea{min-height:95px;resize:vertical}.wide{grid-column:1/-1}.table-wrap{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;color:var(--muted);background:var(--soft);white-space:nowrap}td small{font-size:12px}td button{padding:6px 11px;font-size:13px}.empty{padding:24px;color:var(--muted);background:var(--soft);border-radius:10px}.pill{display:inline-block;font-size:12px;padding:3px 10px;border-radius:20px;background:#f0e2d8;color:#6e4132;margin:2px}.pill.won{background:#e4eafa;color:#293e65}.pill.lost{background:#f8dfdf;color:#822c31}.pill.open{background:#f3e8d6;color:#785629}.muted{color:var(--muted)}.notice{padding:16px;border-left:3px solid #af7955;background:#f7eee3;margin:15px 0;border-radius:5px}.error{color:#962c32}.kanban{display:flex;gap:16px;overflow-x:auto;padding-bottom:20px}.lane{flex:0 0 245px;min-width:0;background:#ede7e2;border-radius:12px;padding:15px}.lane h3{display:flex;justify-content:space-between}.opportunity{background:#fff;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px;padding:15px;margin:12px 0;cursor:grab}.opportunity strong{display:block}.opportunity .amount{font-weight:700;color:var(--accent)}.opportunity select{font-size:12px}.lane.drag-over{outline:2px dashed var(--accent)}.timeline{list-style:none;padding:0;margin:0}.timeline li{border-left:2px solid #dbc2ae;padding:0 0 22px 20px;margin-left:7px;white-space:pre-wrap}.timeline time{font-size:12px;color:var(--muted)}.timeline p{margin:5px 0}.bar{display:grid;grid-template-columns:130px minmax(30px,1fr) 45px;align-items:center;gap:12px;margin:12px 0}.bar i{display:block;height:12px;border-radius:4px;background:var(--accent);min-width:2px}.bar span{overflow:hidden;text-overflow:ellipsis}dialog{max-width:850px;width:calc(100% - 30px);max-height:90vh;border:1px solid var(--line);border-radius:15px;padding:25px;color:var(--ink);background:#fff}dialog::backdrop{background:#20191dcc;backdrop-filter:blur(2px)}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modal-top strong{font-size:22px}#toast{position:fixed;bottom:25px;right:25px;max-width:90vw;background:#382a32;color:#fff;border-radius:8px;padding:15px 24px;z-index:100}.welcome{max-width:850px;margin:60px auto}.welcome h1{font-size:45px;margin-top:30px}pre{white-space:pre-wrap;word-break:break-word;background:var(--soft);padding:15px}#import-result{max-height:400px;overflow:auto}[hidden]{display:none!important}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}header{padding:15px;gap:12px}header>div{min-width:0}}@media(max-width:720px){header{position:static;flex-wrap:wrap}.brand{font-size:20px!important}header select{max-width:100%;flex:1}header>div{flex:1}header small{font-size:11px}.layout{display:block}nav{border-right:0;border-bottom:1px solid var(--line);display:flex;flex-direction:row;overflow-x:auto;padding:10px;gap:6px}nav button,nav a{width:auto;white-space:nowrap;font-size:13px;padding:10px}main{padding:20px 13px}.heading{align-items:flex-start;flex-wrap:wrap}.heading h1,h1{font-size:26px}.card{padding:18px}.grid{grid-template-columns:1fr;gap:4px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.lane{flex-basis:260px}dialog{padding:18px}.actions{gap:8px}.wide{grid-column:auto}.bar{grid-template-columns:90px 1fr 35px}.welcome h1{font-size:32px}}
@media(max-width:720px){header{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}.brand{grid-column:1}.brand+div{grid-column:2}header select{width:100%;max-width:100%;margin:0!important}#business-switch{grid-column:1}#preview-user{grid-column:2}header>div strong{font-size:14px}header small{line-height:1.4}header .brand{font-size:20px!important;white-space:normal}}
