:root{--bg:#f5f5f0;--side:#e9eae3;--paper:#fff;--ink:#233229;--muted:#858c83;--line:#e4e8e1;--accent:#ea6849;--accent-light:#fff0eb;--green:#315848;--green-light:#e8f1e9;--gold:#b58c4d;--shadow:0 7px 25px rgba(38,49,40,.04);--radius:17px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ea684955;outline-offset:2px}.muted{color:var(--muted)}.small{font-size:12px}.subtle{font-size:12px;color:#98a198}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:2px;color:var(--accent)}.heading-serif{font-family:'DM Serif Display',Georgia,serif;font-weight:400;letter-spacing:-.8px}.brand-mark{display:inline-block;font-family:'DM Serif Display',Georgia,serif;font-size:36px;letter-spacing:-2px;color:#254333;line-height:1}.brand-mark span:first-child{color:var(--accent)}.brand-dot{color:var(--accent)}.boot-screen{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px;color:var(--muted)}
/* Auth */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(300px,49%) 1fr}.auth-visual{background:#274638;position:relative;overflow:hidden;color:#fff;padding:54px 62px;display:flex;flex-direction:column;justify-content:space-between}.auth-visual .brand-mark{color:#fff}.auth-visual .brand-mark span:first-child{color:#f59979}.auth-visual .brand-dot{color:#f59979}.auth-art{position:absolute;left:8%;right:-24%;top:24%;bottom:-22%;opacity:.95;pointer-events:none}.art-ring{border:1px solid #72907880;border-radius:50%;position:absolute;aspect-ratio:1;transform:rotate(-27deg)}.ring-a{width:95%;left:5%;top:0}.ring-b{width:70%;left:18%;top:11%;border-color:#8ba68a75}.ring-c{width:45%;left:31%;top:24%;border-color:#a5b69c6d}.art-circle{width:240px;height:240px;background:#eb7555;border-radius:50%;position:absolute;top:35%;left:35%;box-shadow:0 0 0 60px #d96c5120,0 0 0 138px #d96c5114}.art-stem{height:180px;width:6px;background:#d4c7a0;position:absolute;top:16%;left:55%;transform:rotate(23deg);border-radius:8px}.auth-copy{max-width:440px;position:relative;z-index:1}.auth-copy h1{font:normal clamp(39px,5vw,68px)/1.07 'DM Serif Display',Georgia,serif;letter-spacing:-1.6px;margin:0 0 21px}.auth-copy h1 em{color:#f5a183}.auth-copy p{color:#cbd9cb;font-size:15px;line-height:1.8}.auth-visual-footer{position:relative;z-index:1;color:#b5c8b9;font-size:12px}.auth-content{padding:42px 35px;display:flex;align-items:center;justify-content:center}.auth-box{width:min(460px,100%)}.auth-topline{display:flex;align-items:center;gap:8px;margin-bottom:50px;color:#9da49c;font-size:12px}.auth-topline .status-pin{background:#71ab8b;width:8px;height:8px;border-radius:50%}.auth-box h2{font:normal 40px 'DM Serif Display',Georgia,serif;margin:0 0 11px;letter-spacing:-1px}.auth-box>p{color:var(--muted);line-height:1.7;margin:0 0 34px}.auth-form{display:grid;gap:17px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:11px;letter-spacing:.5px;color:#526153;font-weight:700}.field input,.field select,.field textarea{border:1px solid #dfe5dd;background:#fff;width:100%;border-radius:10px;padding:12px 13px;color:var(--ink);outline:0;min-width:0}.field textarea{min-height:94px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #386a4b1c}.primary-btn{border:0;background:var(--green);color:#fff;padding:13px 18px;border-radius:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:9px}.primary-btn:hover{background:#244435}.primary-btn.accent{background:var(--accent)}.primary-btn.accent:hover{background:#d8583c}.secondary-btn{border:1px solid #dfe5dd;background:#fff;color:#455648;padding:11px 15px;border-radius:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary-btn:hover{background:#f5f7f2}.ghost-btn{border:0;background:transparent;color:var(--green);font-weight:700;padding:9px 5px}.auth-actions{padding-top:20px;margin-top:19px;border-top:1px solid var(--line);display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:space-between}.auth-footnote{line-height:1.6;color:#929c92;font-size:11px;margin-top:22px}.auth-notice{background:#ebf3eb;border:1px solid #d9e8d8;padding:20px;border-radius:13px;line-height:1.7;color:#355640;margin-bottom:24px}.setup-screen{max-width:680px;padding:44px;margin:10vh auto;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.setup-screen h1{font:normal 35px 'DM Serif Display',serif}.setup-screen code{background:#f1f4ee;padding:2px 6px;border-radius:4px}
/* Shell */
.shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}.sidebar{background:var(--side);border-right:1px solid #dfe5dd;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:32px 19px 22px}.sidebar-top{padding:0 13px}.sidebar-subtitle{font-size:10px;text-transform:uppercase;letter-spacing:2.2px;color:#819085;margin-top:11px}.sidebar-nav{margin-top:54px;flex:1;display:flex;flex-direction:column;gap:6px}.nav-label{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#929e92;padding:14px 14px 11px;font-weight:800}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:12px 13px;border-radius:11px;text-align:left;color:#637469;font-weight:650}.nav-item svg{width:17px;height:17px;stroke-width:1.9}.nav-item.active{background:#fff;color:#254432;box-shadow:0 2px 8px #27463808}.nav-item.active svg{color:var(--accent)}.nav-item:hover:not(.active){background:#ffffff70;color:var(--ink)}.sidebar-footer{border-top:1px solid #d4dbd2;padding-top:18px}.avatar{width:34px;height:34px;min-width:34px;border-radius:50%;background:#ced9c9;display:grid;place-items:center;color:#2b4936;font-weight:700;font-size:12px}.avatar.orange{background:#ffe4d8;color:#ca6343}.sidebar-user{display:flex;align-items:center;gap:11px;padding:5px 7px}.sidebar-user .name{font-size:12px;font-weight:800;max-width:131px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout{background:transparent;border:0;color:#819185;padding:8px 7px;width:100%;text-align:left;font-size:12px;margin-top:12px}.logout:hover{color:var(--accent)}.main{min-width:0;padding:0 40px 65px;max-width:1700px;width:100%;margin:0 auto}.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7eae4;margin-bottom:36px;gap:14px}.topbar h2{font:normal 17px 'DM Serif Display',serif;margin:0}.topbar-right{display:flex;align-items:center;gap:15px}.top-date{font-size:12px;color:#899489}.topbar .avatar{width:32px;height:32px;min-width:32px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:22px;margin-bottom:29px}.page-head h1{font:normal clamp(31px,3vw,43px) 'DM Serif Display',serif;letter-spacing:-1.1px;margin:7px 0 7px}.page-head p{color:var(--muted);margin:0;font-size:13px;line-height:1.6}.head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.page-section{margin-top:33px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.section-head h3{margin:0;font:normal 23px 'DM Serif Display',serif;letter-spacing:-.4px}.section-head small{color:#8e9b8f}.text-link{color:#3a6954;font-size:12px;font-weight:700;text-decoration:none;border:0;background:none;padding:8px;cursor:pointer}.text-link:hover{color:var(--accent)}
/* Panels and cards */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{background:var(--paper);border-radius:15px;padding:22px 23px;border:1px solid #ecede8;box-shadow:var(--shadow);position:relative;overflow:hidden;min-height:147px}.metric-label{font-size:11px;color:#838f83;font-weight:700;letter-spacing:.15px}.metric-number{font:normal 41px 'DM Serif Display',serif;letter-spacing:-.7px;margin:12px 0 5px;line-height:1}.metric-bottom{font-size:11px;color:#87968a}.metric-top{display:flex;justify-content:space-between;gap:10px}.metric-icon{width:32px;height:32px;background:#f4f6ef;border-radius:10px;display:grid;place-items:center;color:#66806a}.metric-icon svg{width:16px;height:16px}.metric.alert .metric-number{color:var(--accent)}.overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:19px}.panel{background:#fff;border:1px solid #e9ece6;border-radius:16px;box-shadow:var(--shadow);padding:23px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.panel-head h3{font:normal 22px 'DM Serif Display',serif;margin:0}.panel-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.list-row{padding:15px 0;border-bottom:1px solid #edf0eb;display:flex;gap:12px;justify-content:space-between;align-items:center}.list-row:last-child{border-bottom:0;padding-bottom:0}.item-title{font-size:12px;font-weight:800;line-height:1.45}.item-desc{font-size:11px;color:#98a29a;margin-top:5px;line-height:1.55}.row-left{display:flex;align-items:center;gap:12px;min-width:0}.mini-check{width:16px;height:16px;border:1.4px solid #bbc8bc;border-radius:5px;flex-shrink:0}.date-badge{font-size:10px;color:#777;white-space:nowrap}.tag{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;white-space:nowrap;background:#f1f4ef;color:#617265}.tag.todo{background:#f0f2ed;color:#738174}.tag.in_progress,.tag.contacted{background:#eaf0f8;color:#6080aa}.tag.in_review,.tag.proposal{background:#fff2dc;color:#a17e42}.tag.done,.tag.won,.tag.approved{background:#e6f2e8;color:#4b805c}.tag.overdue,.tag.high,.tag.lost,.tag.rejected{background:#fff0e9;color:#cf6d4c}.tag.pending,.tag.medium,.tag.in_discussion{background:#fff4e2;color:#b08a4c}.tag.low,.tag.new{background:#eff4ed;color:#6a8d6c}.empty{color:#9aa59a;text-align:center;padding:40px 10px;font-size:13px;line-height:1.8}.empty svg{display:block;margin:0 auto 10px;color:#b8c2b8}
/* Workflow */
.toolbar{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:22px}.toolbar-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pill-filter{border:1px solid #e0e6dd;background:#fff;color:#718074;border-radius:9px;padding:9px 14px;font-weight:700;font-size:11px}.pill-filter.active{background:var(--green);color:#fff;border-color:var(--green)}.search-field{border:1px solid #dfe5de;background:#fff;border-radius:10px;padding:10px 13px;min-width:220px;outline:0}.kanban{display:grid;grid-template-columns:repeat(4,minmax(200px,1fr));gap:14px;align-items:start}.kanban-col{background:#ebeee8;border-radius:13px;padding:15px;min-height:350px}.kanban-col-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.kanban-col-head h3{font-size:12px;margin:0;font-weight:800;display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:#a4b1a5}.status-dot.in_progress{background:#789ec4}.status-dot.in_review{background:#d5ad61}.status-dot.done{background:#6ba379}.count{background:#fff;border-radius:7px;font-size:10px;padding:4px 7px;color:#8a968a}.task-card{background:#fff;border:1px solid #e5eae4;border-radius:12px;padding:15px;margin-bottom:11px;box-shadow:0 2px 9px #273e2b07}.task-card:hover{border-color:#cbd8ca}.task-card-head{display:flex;justify-content:space-between;align-items:start;gap:5px}.task-card h4{margin:0;font-size:13px;line-height:1.45}.task-card .description{font-size:11px;line-height:1.6;color:#91a093;margin:9px 0 13px}.task-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eff1ed;padding-top:12px;margin-top:12px}.task-card .status-select,.opportunity-card .status-select{max-width:100%;font-size:10px;padding:5px;border:1px solid #e3e8e1;border-radius:7px;background:#f8faf7;color:#586b5d}.micro-actions{display:flex;gap:2px}.icon-btn{border:0;background:transparent;padding:6px;color:#8b9a8d;display:inline-grid;place-items:center;border-radius:7px}.icon-btn:hover{background:#f0f5ee;color:var(--ink)}.icon-btn svg{width:15px;height:15px}.assignee-line{display:flex;align-items:center;gap:7px;font-size:10px;color:#849187}.mini-avatar{border-radius:50%;width:23px;height:23px;display:inline-grid;place-items:center;font-size:9px;font-weight:800;background:#e7efe6;color:#63826c}
/* Deadline */
.deadline-table{width:100%;border-collapse:collapse;background:#fff;border-radius:13px;overflow:hidden;font-size:12px}.deadline-table th{text-transform:uppercase;font-size:10px;letter-spacing:1px;text-align:left;color:#97a096;padding:18px 21px;background:#f9faf6;border-bottom:1px solid #edf0e9}.deadline-table td{padding:18px 21px;border-bottom:1px solid #edf0e9}.deadline-table tr:last-child td{border-bottom:0}.deadline-table td strong{font-weight:800}.date-overdue{color:#ce6246;font-weight:800}.date-soon{color:#ab854e;font-weight:800}
/* Calendar */
.calendar-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.square-btn{border:1px solid #dfe5dd;background:#fff;border-radius:9px;width:34px;height:34px;display:grid;place-items:center;font-size:18px;color:var(--green)}.calendar-title{font:normal 23px 'DM Serif Display',serif;min-width:205px;text-align:center}.calendar-wrap{background:#fff;border:1px solid #e5eae3;border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}.calendar-week-header{display:grid;grid-template-columns:repeat(7,1fr);background:#fafbf8}.calendar-week-header>div{padding:14px 10px;font-size:10px;font-weight:800;color:#9aa59a;letter-spacing:.8px;text-transform:uppercase;border-right:1px solid #ebeee8;text-align:center}.month-grid,.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-cell{min-height:115px;padding:11px 8px;border-right:1px solid #edf0eb;border-top:1px solid #edf0eb;cursor:pointer;overflow:hidden}.calendar-cell:hover{background:#fafbf7}.calendar-cell.other{background:#fafbf9;color:#b9c1b8}.calendar-cell.today .day-num{background:var(--accent);color:#fff}.calendar-cell.selected{box-shadow:inset 0 0 0 2px #d98a6f}.day-num{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:800;margin-bottom:6px}.event-chip{display:block;border-radius:5px;padding:4px 6px;background:#ecf3ec;color:#4f8060;font-size:9px;font-weight:700;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-chip.deadline{background:#fff0e9;color:#d27858}.event-chip.opportunity{background:#fff5e3;color:#a48143}.more-chip{font-size:9px;color:#8d988b;padding-left:6px}.day-agenda{margin-top:23px}.agenda-group{padding:15px 0;border-bottom:1px solid #ecf0e9;display:flex;gap:16px;align-items:start}.agenda-time{width:72px;flex-shrink:0;color:#9da79b;font-size:11px}.agenda-body{flex:1}.agenda-body strong{font-size:12px}.agenda-body p{font-size:11px;color:#94a096;margin:6px 0}.daymode{padding:25px;min-height:260px}
/* Opportunities and team */
.opportunity-grid,.team-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:15px}.opportunity-card{background:#fff;border:1px solid #e5eae4;border-radius:15px;padding:22px;box-shadow:var(--shadow)}.opportunity-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.opportunity-card h3{font:normal 24px 'DM Serif Display',serif;margin:15px 0 5px;line-height:1.1}.opportunity-card .company{color:#93a092;font-size:11px;margin-bottom:20px}.opp-value{font:normal 28px 'DM Serif Display',serif;margin:9px 0 2px}.opp-footer{border-top:1px solid #edf0e9;margin-top:18px;padding-top:15px;display:flex;justify-content:space-between;gap:10px;align-items:center}.opp-next{font-size:10px;color:#93a093}.team-card{background:#fff;border:1px solid #e7ebe4;border-radius:15px;padding:24px;box-shadow:var(--shadow)}.team-avatar{width:52px;height:52px;border-radius:50%;background:#e5eee4;color:#4c795b;display:grid;place-items:center;font:normal 19px 'DM Serif Display',serif;margin-bottom:15px}.team-card h3{font-size:15px;margin:0 0 5px}.team-card .role{font-size:11px;color:#8f9b8f;min-height:18px}.team-card .team-name{font-size:10px;color:#b08152;background:#fff6e6;border-radius:50px;padding:5px 9px;display:inline-block;margin-top:14px}.team-card a{font-size:11px;color:#688474;text-decoration:none;display:block;margin-top:12px;overflow-wrap:anywhere}.admin-user{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid #eff1ec}.admin-user:last-child{border:0}.admin-user .identity{display:flex;align-items:center;gap:11px;min-width:0}.admin-user .identity strong{font-size:12px}.admin-user .identity .small{overflow-wrap:anywhere}.admin-user .actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:end}.danger-text{color:#c9674a}
/* Modals */
.modal-backdrop{position:fixed;inset:0;background:#1f352bb3;z-index:20;display:grid;place-items:center;padding:18px}.modal{width:min(560px,100%);max-height:min(90vh,850px);overflow:auto;background:var(--bg);border-radius:19px;padding:27px 30px 30px;box-shadow:0 25px 90px #132b2090}.modal-head{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:23px}.modal h3{font:normal 30px 'DM Serif Display',serif;margin:0}.modal .form-row{margin-bottom:15px}.modal .field{margin-bottom:15px}.modal-foot{border-top:1px solid #e2e8df;margin-top:24px;padding-top:19px;display:flex;gap:8px;justify-content:flex-end}.modal .check-line{display:flex;align-items:center;gap:7px;font-size:11px;color:#89988c}#toast{position:fixed;bottom:26px;right:25px;background:#284737;color:#fff;padding:13px 18px;border-radius:10px;box-shadow:0 12px 30px #12291e32;opacity:0;transform:translateY(14px);transition:.2s;z-index:99;pointer-events:none;max-width:380px;font-size:12px;line-height:1.5}#toast.show{opacity:1;transform:none}#toast.error{background:#b6503d}.mobile-nav{display:none}
@media(max-width:1150px){.main{padding:0 25px 45px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kanban{grid-template-columns:repeat(2,minmax(0,1fr))}.opportunity-grid,.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-visual{padding:45px}.auth-art{right:-50%}}
@media(max-width:760px){.auth-shell{display:block}.auth-visual{min-height:250px;padding:28px;justify-content:space-between}.auth-copy h1{font-size:32px;margin:0}.auth-copy p{display:none}.auth-art{left:35%;top:-80%;right:-50%;bottom:-110%;opacity:.35}.auth-visual-footer{display:none}.auth-content{padding:32px 22px 54px}.auth-topline{margin-bottom:30px}.auth-box h2{font-size:34px}.shell{display:block}.sidebar{position:relative;height:auto;display:block;padding:15px 20px;border-bottom:1px solid #d9e0d5}.sidebar-top{padding:0}.sidebar .brand-mark{font-size:28px}.sidebar-subtitle{margin-top:4px;font-size:9px}.sidebar-nav,.sidebar-footer{display:none}.main{padding:0 18px 35px}.topbar{height:67px;margin-bottom:26px}.topbar-right .top-date{display:none}.page-head{align-items:start;flex-direction:column}.page-head h1{font-size:35px}.head-actions{width:100%}.metric-grid{grid-template-columns:repeat(2,1fr);gap:9px}.metric{padding:18px 15px;min-height:136px}.metric-number{font-size:33px}.overview-grid{grid-template-columns:1fr}.kanban{display:flex;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x mandatory}.kanban-col{min-width:270px;scroll-snap-align:start}.opportunity-grid,.team-grid{grid-template-columns:1fr}.deadline-table{font-size:11px}.deadline-table th,.deadline-table td{padding:12px 9px}.deadline-table th:nth-child(3),.deadline-table td:nth-child(3){display:none}.calendar-title{font-size:18px;min-width:auto}.calendar-week-header>div{padding:10px 1px;font-size:8px}.calendar-cell{min-height:77px;padding:5px 3px}.day-num{width:22px;height:22px;font-size:10px}.event-chip{font-size:8px;padding:3px 2px}.more-chip{font-size:8px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:68px;background:#fff;border-top:1px solid #e5eae4;z-index:15;justify-content:space-around;padding:7px 5px max(7px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #1c2c1c10}.mobile-nav button{border:0;background:transparent;display:grid;place-items:center;align-content:center;gap:3px;color:#7a8e7e;font-size:9px;padding:3px 4px;min-width:43px}.mobile-nav button.active{color:var(--accent)}.mobile-nav svg{width:19px;height:19px}.main{padding-bottom:96px}.modal{padding:23px 19px}.admin-user{align-items:start;flex-direction:column}.admin-user .actions{justify-content:start}.setup-screen{margin:20px}}
@media(max-width:380px){.form-row{grid-template-columns:1fr}.metric-label{font-size:10px}.metric-icon{display:none}.head-actions .primary-btn{flex:1}.calendar-controls{gap:5px}.square-btn{width:29px;height:29px}}
