:root{--bg:#fbfaf7;--surface:#fff;--surface-2:#f3f1ea;--mint:#e4f5ee;--ink:#14332c;--green:#326d58;--green-dark:#1f4c3e;--orange:#d17046;--orange-dark:#b85c35;--text:#1b2a26;--muted:#6b7a75;--line:#e3e0d6;--danger:#dc2626;--radius:12px;--shadow:0 1px 2px #14332c0f, 0 4px 16px #14332c0f;--font:"Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;--font-head:"Poppins", var(--font)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:14px}h1,h2,h3,h4{font-family:var(--font-head);color:var(--ink);letter-spacing:-.01em;margin:0}h1{font-size:22px;font-weight:600}h2{font-size:17px;font-weight:600}h3{font-size:14px;font-weight:600}a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}::placeholder{color:#a0aaa6}.app{grid-template-columns:232px 1fr;min-height:100vh;display:grid}.sidebar{background:var(--ink);color:#dce9e3;flex-direction:column;height:100vh;padding:18px 14px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;padding:6px 8px 18px;display:flex}.brand-mark{background:var(--mint);width:34px;height:34px;color:var(--ink);font-family:var(--font-head);border-radius:9px;place-items:center;font-size:16px;font-weight:700;display:grid}.brand-name{font-family:var(--font-head);color:#fff;font-size:15px;font-weight:600;line-height:1.1}.brand-sub{color:#8fb3a5;font-size:11px}.nav{flex-direction:column;gap:2px;display:flex}.nav a{color:#c8dad3;border-radius:8px;align-items:center;gap:10px;padding:9px 10px;font-weight:500;display:flex}.nav a:hover{color:#fff;background:#ffffff0f}.nav a.active{background:var(--green);color:#fff}.nav a svg{width:17px;height:17px}.sidebar-foot{border-top:1px solid #ffffff1a;margin-top:auto;padding-top:12px;font-size:12px}.userchip{align-items:center;gap:9px;padding:6px 8px;display:flex}.avatar{color:#fff;background:var(--green);border-radius:50%;flex:none;place-items:center;width:28px;height:28px;font-size:12px;font-weight:600;display:grid}.mode-badge{color:#f5c9b4;background:#d1704640;border-radius:99px;margin-top:8px;padding:2px 7px;font-size:10px;display:inline-block}.main{min-width:0;padding:26px 32px 60px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-head p{color:var(--muted);margin:4px 0 0}.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.btn{border:1px solid var(--line);background:var(--surface);cursor:pointer;white-space:nowrap;border-radius:9px;align-items:center;gap:7px;padding:8px 14px;font-weight:500;transition:all .12s;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn svg{width:16px;height:16px}.btn-primary{background:var(--green);border-color:var(--green);color:#fff}.btn-primary:hover{background:var(--green-dark)}.btn-accent{background:var(--orange);border-color:var(--orange);color:#fff}.btn-accent:hover{background:var(--orange-dark)}.btn-ghost{color:var(--muted);background:0 0;border-color:#0000}.btn-ghost:hover{background:var(--surface-2);color:var(--text)}.btn-danger{color:var(--danger)}.btn-sm{border-radius:7px;padding:5px 10px;font-size:13px}.btn-icon{padding:6px}.btn:disabled{opacity:.5;cursor:not-allowed}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card-pad{padding:18px 20px}.card-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th{text-align:left;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface);cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px 14px;font-size:11.5px;font-weight:600}td{border-bottom:1px solid var(--line);vertical-align:middle;padding:11px 14px}tr:last-child td{border-bottom:0}tbody tr{transition:background .1s}tbody tr:hover{background:#faf9f4}tr.clickable{cursor:pointer}.muted{color:var(--muted)}.small{font-size:12px}.strong{color:var(--ink);font-weight:600}.num{text-align:right;font-variant-numeric:tabular-nums}.field{flex-direction:column;gap:5px;display:flex}.field label{color:var(--muted);font-size:12px;font-weight:600}.input,select.input,textarea.input{border:1px solid var(--line);background:var(--surface);border-radius:8px;outline:none;width:100%;padding:8px 11px;transition:all .12s}.input:focus{border-color:var(--green);box-shadow:0 0 0 3px #326d5826}textarea.input{resize:vertical;min-height:80px}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.grid-3{grid-template-columns:1fr 1fr 1fr;gap:12px;display:grid}.span-2{grid-column:span 2}.form-section{text-transform:uppercase;letter-spacing:.06em;color:var(--green);grid-column:1/-1;margin:14px 0 6px;font-size:11.5px;font-weight:700}.search{position:relative}.search svg{width:15px;height:15px;color:var(--muted);position:absolute;top:50%;left:10px;transform:translateY(-50%)}.search .input{padding-left:32px}.badge{background:var(--surface-2);color:var(--text);white-space:nowrap;border-radius:99px;align-items:center;gap:5px;padding:3px 9px;font-size:12px;font-weight:500;display:inline-flex}.badge .dot{background:currentColor;border-radius:50%;width:7px;height:7px}.tag{background:var(--mint);color:var(--green-dark);border-radius:6px;margin-right:4px;padding:2px 8px;font-size:11.5px;display:inline-block}.overlay{z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#14332c59;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border-radius:16px;width:100%;max-width:680px;max-height:92vh;overflow:auto;box-shadow:0 20px 60px #00000040}.modal-head{justify-content:space-between;align-items:center;padding:18px 22px 12px;display:flex}.modal-body{padding:6px 22px 18px}.modal-foot{border-top:1px solid var(--line);background:var(--surface);justify-content:flex-end;gap:8px;padding:14px 22px;display:flex;position:sticky;bottom:0}.modal.wide{max-width:980px}.stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:20px;display:grid}.stat{padding:16px 18px}.stat .label{color:var(--muted);font-size:12px;font-weight:500}.stat .value{font-family:var(--font-head);color:var(--ink);margin-top:4px;font-size:26px;font-weight:600}.stat .sub{color:var(--muted);margin-top:2px;font-size:12px}.kanban{grid-auto-columns:minmax(250px,1fr);grid-auto-flow:column;align-items:start;gap:12px;padding-bottom:12px;display:grid;overflow-x:auto}.kcol{background:var(--surface-2);border:2px solid #0000;border-radius:12px;flex-direction:column;gap:8px;min-height:320px;padding:10px;transition:all .12s;display:flex}.kcol.over{border-color:var(--green);background:var(--mint)}.kcol-head{justify-content:space-between;align-items:center;padding:4px 6px 8px;display:flex}.kcol-head h3{align-items:center;gap:8px;font-size:13.5px;display:flex}.kcol-head .dot{border-radius:50%;width:9px;height:9px}.kcol-meta{color:var(--muted);padding:0 6px 6px;font-size:11.5px}.kcard{background:var(--surface);border:1px solid var(--line);cursor:grab;border-radius:10px;padding:11px 12px;transition:box-shadow .12s,transform .12s;box-shadow:0 1px 2px #0000000a}.kcard:hover{box-shadow:var(--shadow)}.kcard.dragging{opacity:.4}.kcard .title{color:var(--ink);font-size:13.5px;font-weight:600}.kcard .meta{color:var(--muted);justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;display:flex}.kcard .stale{color:var(--orange)}.cal-grid{border-left:1px solid var(--line);border-top:1px solid var(--line);grid-template-columns:repeat(7,1fr);display:grid}.cal-dow{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-2);padding:8px;font-size:11.5px;font-weight:600}.cal-cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface);cursor:pointer;min-height:112px;padding:6px}.cal-cell.other{color:var(--muted);background:#faf9f4}.cal-cell.today .daynum{background:var(--orange);color:#fff}.daynum{border-radius:50%;place-items:center;width:24px;height:24px;margin-bottom:4px;font-size:12.5px;font-weight:600;display:inline-grid}.cal-ev{color:#fff;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;border-radius:5px;margin-bottom:3px;padding:3px 6px;font-size:11.5px;overflow:hidden}.cal-ev.done{opacity:.45;text-decoration:line-through}.week-grid{border-left:1px solid var(--line);border-top:1px solid var(--line);grid-template-columns:56px repeat(7,1fr);display:grid}.week-hour{color:var(--muted);border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:right;height:52px;padding:4px 6px;font-size:11px}.week-cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;height:52px;position:relative}.week-cell:hover{background:#faf9f4}.week-head{text-align:center;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-2);padding:8px;font-size:12px;font-weight:600}.week-head.today{color:var(--orange)}.week-ev{color:#fff;z-index:2;cursor:pointer;border-radius:6px;padding:3px 6px;font-size:11.5px;line-height:1.25;position:absolute;left:3px;right:3px;overflow:hidden}.week-ev.done{opacity:.45;text-decoration:line-through}.task-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:10px 14px;display:flex}.task-row:last-child{border-bottom:0}.task-row.done .task-title{color:var(--muted);text-decoration:line-through}.check{border:2px solid var(--line);cursor:pointer;background:#fff;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;display:grid}.check.on{background:var(--green);border-color:var(--green);color:#fff}.check svg{width:13px;height:13px}.timeline{flex-direction:column;gap:0;display:flex}.tl-item{border-bottom:1px solid var(--line);grid-template-columns:26px 1fr;gap:10px;padding:10px 0;display:grid}.tl-item:last-child{border-bottom:0}.tl-icon{background:var(--mint);width:26px;height:26px;color:var(--green-dark);border-radius:50%;place-items:center;display:grid}.tl-icon svg{width:14px;height:14px}.tl-body{white-space:pre-wrap;font-size:13.5px}.tl-meta{color:var(--muted);margin-top:2px;font-size:11.5px}.tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:16px;display:flex}.tabs button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:9px 14px;font-weight:500}.tabs button.active{color:var(--ink);border-bottom-color:var(--orange)}.toast{background:var(--ink);color:#fff;z-index:100;border-radius:10px;padding:11px 16px;font-weight:500;animation:.18s ease-out pop;position:fixed;bottom:22px;right:22px;box-shadow:0 10px 30px #00000040}.toast.error{background:var(--danger)}@keyframes pop{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.empty{text-align:center;color:var(--muted);padding:40px 20px}.empty h3{color:var(--ink);margin-bottom:6px}.two-col{grid-template-columns:1.4fr 1fr;align-items:start;gap:18px;display:grid}.kv{grid-template-columns:130px 1fr;gap:6px 12px;font-size:13.5px;display:grid}.kv dt{color:var(--muted)}.kv dd{margin:0}.funnel-row{grid-template-columns:150px 1fr 90px;align-items:center;gap:12px;padding:6px 0;font-size:13px;display:grid}.funnel-bar{background:var(--surface-2);border-radius:6px;height:22px;overflow:hidden}.funnel-bar>div{border-radius:6px;height:100%;transition:width .3s}.dropzone{border:2px dashed var(--line);text-align:center;color:var(--muted);background:var(--surface-2);cursor:pointer;border-radius:12px;padding:36px}.dropzone.over{border-color:var(--green);background:var(--mint)}.login{background:linear-gradient(160deg, var(--ink) 0%, var(--green) 100%);place-items:center;min-height:100vh;padding:20px;display:grid}.login .card{width:100%;max-width:400px}.progress{background:var(--surface-2);border-radius:99px;height:6px;overflow:hidden}.progress>div{background:var(--green);height:100%}.pill-row{flex-wrap:wrap;gap:6px;display:flex}.pill{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:99px;padding:5px 11px;font-size:12.5px}.pill.on{background:var(--ink);color:#fff;border-color:var(--ink)}.linkish{color:var(--green);cursor:pointer;font-weight:500}.linkish:hover{text-decoration:underline}.row{align-items:center;gap:8px;display:flex}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.mt{margin-top:14px}.mb{margin-bottom:14px}@media (width<=900px){.app{grid-template-columns:1fr}.sidebar{flex-flow:wrap;align-items:center;gap:6px;height:auto;position:static}.nav{flex-flow:wrap}.nav a span{display:none}.sidebar-foot{border:0;margin-top:0;margin-left:auto;padding:0}.main{padding:18px}.two-col,.grid-2,.grid-3{grid-template-columns:1fr}.span-2{grid-column:auto}}.grow-grid{grid-template-columns:1fr 1fr;display:grid}.grow-cell{border-bottom:1px solid var(--line);padding:14px 20px}.grow-cell:nth-child(odd){border-right:1px solid var(--line)}.grow-cell:nth-last-child(-n+2){border-bottom:0}.grow-head{text-transform:uppercase;letter-spacing:.05em;align-items:center;gap:6px;margin-bottom:6px;font-size:12px;font-weight:700;display:flex}.grow-letter{color:#fff;width:20px;height:20px;font-family:var(--font-head);border-radius:6px;place-items:center;font-size:12px;display:inline-grid}.grow-body{white-space:pre-wrap;font-size:13.5px;line-height:1.5}.stage-name{min-width:170px}@media (width<=900px){.grow-grid{grid-template-columns:1fr}.grow-cell{border-right:0!important}}.ob-timeline{padding:8px 20px 6px}.ob-step{grid-template-columns:24px 1fr;gap:12px;display:grid}.ob-rail{flex-direction:column;align-items:center;display:flex}.ob-line{background:var(--line);flex:1;width:2px;min-height:14px;margin:3px 0}.ob-step.done .ob-line{background:var(--green)}.ob-body{padding-bottom:12px}.ob-step.done .ob-title{color:var(--muted);text-decoration:line-through}.ob-step.next .ob-title{color:var(--ink)}.ob-step.next .check{border-color:var(--orange)}.ob-strip{flex-wrap:wrap;gap:6px;padding:10px 20px 16px;display:flex}.ob-chip{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:99px;align-items:center;gap:6px;padding:5px 10px 5px 6px;font-size:12.5px;display:inline-flex}.ob-chip.done{background:var(--mint);color:var(--green-dark);border-color:#0000}.ob-chip.next{border-color:var(--orange);font-weight:600}.ob-chip.late{border-color:var(--orange);background:#fbe5da}.ob-chip .check{border-radius:4px}
