@font-face{font-family:Manrope;src:url('/manrope.woff2') format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:Instrument;src:url('/instrument.woff2') format('woff2');font-weight:400;font-display:swap}
:root{--bg:#f5f6f1;--surface:#fff;--ink:#172a22;--muted:#647069;--line:#e4e9e2;--deep:#102c24;--accent:#206049;--gold:#d3bc86;--radius:15px;font:600 13px/1.5 Manrope,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.52;cursor:default}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #4a9274;outline-offset:3px}
svg{flex-shrink:0;vertical-align:middle}
h1,h2,h3,p{margin:0}
small{font-size:12px}
.app{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100dvh}
.sidebar{background:var(--deep);height:100dvh;position:sticky;top:0;color:#d2dfd6;display:flex;flex-direction:column;padding:28px 16px 15px;z-index:4}
.brand{display:flex;align-items:center;gap:12px;margin:0 10px 43px;width:max-content}
.brand-mark{color:#e0c78d;background:#294237;border:1px solid #56604a;width:43px;height:43px;border-radius:11px;display:grid;place-items:center}
.brand strong{display:block;font-size:24px;font-weight:800;line-height:1.04;letter-spacing:.06em;color:#f3f4e9}
.brand small{display:block;font-size:9px;font-weight:800;letter-spacing:.15em;color:#a1b4a7;margin-top:4px}
.nav-label{font-size:10px;font-weight:800;letter-spacing:.14em;color:#91a89a;padding:0 12px;margin-bottom:10px}
.sidebar nav{display:grid;gap:5px}
.nav-item{position:relative;display:flex;align-items:center;gap:12px;color:#c2d1c7;padding:11px 12px;border-radius:8px;min-height:43px;white-space:nowrap}
.nav-item:hover,.workspace-info:hover{background:#203d33;color:white}
.nav-item.selected{background:#2e4b3b;color:#f4f6ea;font-weight:800}
.nav-item.selected::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;background:var(--gold);border-radius:0 4px 4px 0}
.nav-item.selected svg{color:var(--gold)}
.sidebar-foot{margin-top:auto}
.workspace-info{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px 12px;color:#aebfb2;border:0;border-radius:8px;background:transparent}
.profile{display:flex;align-items:center;gap:10px;padding:16px 6px 5px;margin:12px 4px 0;border-top:1px solid #355147}
.profile strong,.profile small{display:block}
.profile strong{font-weight:800;color:#edf3e9;font-size:12px}
.profile small{color:#9eb2a4;font-size:11px;margin-top:2px}
.avatar{display:grid;place-items:center;background:#dec997;color:#263629;border-radius:50%;width:33px;height:33px;font-size:11px;font-weight:800}
.workspace{min-width:0}
.topbar{background:#fff;border-bottom:1px solid var(--line);height:69px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 31px}
.crumb,.top-actions{display:flex;align-items:center;gap:11px;white-space:nowrap}
.crumb-root,.crumb svg{color:var(--muted)}
.crumb strong{font-weight:800}
.search-trigger{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#f8f9f6;padding:8px 9px 8px 11px;border-radius:8px;color:#5b685f;min-width:214px;text-align:left}
.search-trigger:hover,.secondary-button:hover,.filter-select:hover{background:#eef2ec}
kbd{margin-left:auto;border:1px solid #e0e6de;background:#fff;border-radius:4px;font:700 10px Manrope,sans-serif;padding:2px 4px;white-space:nowrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;padding:9px 13px;min-height:39px;border-radius:8px;border:1px solid transparent;font-weight:800;font-size:12px}
.primary{background:#205943;color:white;border-color:#205943}
.primary:hover{background:#174935}
.quick-wrap{position:relative}
.quick-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:169px;padding:5px;border:1px solid var(--line);box-shadow:0 8px 24px #14291d20;background:white;border-radius:10px;z-index:6}
.quick-menu button{display:flex;align-items:center;gap:9px;width:100%;border:0;border-radius:5px;padding:9px;text-align:left;background:transparent}
.quick-menu button:hover{background:#edf3ec}
.mobile-toggle{display:none!important}
main{outline:none}
.dashboard,.record-page{padding:26px 31px 35px;max-width:1650px;margin:auto}
.hero{background-color:#18352a;background-image:linear-gradient(90deg,#18362b 0%,#18362b 25%,rgba(24,54,43,.91) 38%,rgba(24,54,43,.30) 65%,rgba(24,54,43,.08) 100%),url('/hero.jpg');background-position:center,center 54%;background-size:cover;color:#faf9f1;border-radius:var(--radius);padding:26px 31px 29px;min-height:233px;display:flex;align-items:center;overflow:hidden}
.hero-date{color:#e0ca95;font-weight:800;font-size:10px;letter-spacing:.12em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.hero h1,.page-title h1{font:400 clamp(48px,5vw,70px)/.99 Instrument,Georgia,serif;letter-spacing:-.025em;margin:13px 0 8px}
.hero p{color:#e0e8df;font-size:13px}
.hero-button{background:#f1e2b8;color:#1c3829;border-color:#f1e2b8;margin-top:21px}
.hero-button:hover{background:#fff1c8}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:17px 0}
.metric,.panel,.records{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px #172a2205}
.metric{text-align:left;padding:15px 16px 14px;min-width:0}
.metric:hover{border-color:#adc8b6;background:#fefffd}
.metric-top{display:flex;align-items:center;gap:10px;color:#4d5d53;font-size:12px;font-weight:800}
.metric-icon{width:35px;height:35px;display:inline-grid;place-items:center;border-radius:9px;flex-shrink:0}
.metric-icon.mint{background:#e7f2e9;color:#286249}
.metric-icon.sage{background:#ebefe5;color:#5b724b}
.metric-icon.sand{background:#f8efdc;color:#87622d}
.metric-icon.blue{background:#e8f0f1;color:#436771}
.metric strong{display:block;font-size:29px;font-weight:800;letter-spacing:-.045em;line-height:1.16;margin:9px 0 3px}
.metric small{display:block;color:#667269;font-size:11px}
.overdue-text{color:#a34535;font-weight:800}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.19fr) minmax(0,1fr);gap:16px}
.dashboard-grid.secondary{margin-top:16px}
.panel{min-width:0}
.panel-head{padding:17px 17px 12px;min-height:72px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.panel-head h2{font-size:16px;font-weight:800;letter-spacing:-.025em}
.panel-head p{margin-top:3px;font-size:11px;color:var(--muted)}
.text-button{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;color:#2b634d;padding:2px 0 3px 4px;white-space:nowrap;font-size:11px;font-weight:800}
.text-button:hover{text-decoration:underline}
.stage-list{padding:1px 17px 13px}
.stage-row{width:100%;display:grid;grid-template-columns:102px minmax(25px,1fr) 24px 57px;align-items:center;gap:10px;padding:8px 0;background:transparent;border:0;text-align:left;border-radius:6px;font-size:11px;min-height:35px}
.stage-row:hover{background:#f6f8f4}
.stage-label{display:flex;align-items:center;gap:7px;font-weight:800}
.stage-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}
.stage-track{background:#eef2ec;border-radius:6px;height:8px;overflow:hidden}
.stage-fill{display:block;height:100%;border-radius:6px}
.stage-0{background:#b7c8a9}
.stage-1{background:#8eae91}
.stage-2{background:#6b997b}
.stage-3{background:#4a8466}
.stage-4{background:#275b46}
.stage-count{text-align:right;color:var(--muted)}
.stage-row>strong{text-align:right;font-size:11px}
.followups,.mini-list{padding:0 17px 11px}
.followup{display:flex;align-items:center;gap:10px;padding:7px 0;min-height:48px;border-top:1px solid #edf0eb}
.task-check{display:grid;place-items:center;flex-shrink:0;width:18px;height:18px;padding:0;border:1px solid #bdc9be;background:transparent;color:transparent;border-radius:5px}
.task-check:hover,.task-check:focus-visible{color:#21593e;background:#e9f2ea;border-color:#83a590}
.followup-name{flex:1;min-width:0;background:none;border:0;text-align:left;padding:0}
.followup-name strong,.mini-row strong,.record-name strong,.search-result strong{display:block;font-size:12px;font-weight:800}
.followup-name:hover strong,.record-name:hover strong,.mini-row:hover strong{color:#328360}
.followup-name small,.mini-row small,.record-name small,.search-result small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.pill{display:inline-flex;align-items:center;flex-shrink:0;border-radius:20px;padding:3px 8px;background:#edf1ea;color:#536453;font-size:10px;font-weight:800;white-space:nowrap}
.pill.today,.pill.contract,.pill.onboarding,.pill.upcoming{background:#f7eed8;color:#795820}
.pill.overdue,.pill.lost{background:#fae9e5;color:#a34336}
.pill.active,.pill.settled,.pill.selling,.pill.done{background:#e4f1e7;color:#2d6c49}
.pill.qualified,.pill.settling{background:#e8eef4;color:#3b6078}
.pill.eoi,.pill.prospect{background:#efeaf7;color:#654d82}
.pill.unconditional{background:#dbebe0;color:#27583f}
.mini-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:transparent;border:0;border-top:1px solid #edf0eb;padding:8px 0;min-height:49px}
.mini-row>span:first-child:not(.metric-icon),.activity-row>span:nth-child(2){flex:1;min-width:0}
.mini-row>strong{min-width:68px;text-align:right}
.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:2px 0 23px}
.page-title h1{font-size:57px;margin:0 0 10px}
.page-title p{color:var(--muted)}
.page-actions{display:flex;gap:8px}
.secondary-button{background:#fff;border-color:#dde5dc;color:#345040}
.records{overflow:hidden}
.toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:14px;border-bottom:1px solid var(--line)}
.filter-search,.filter-select{display:flex;align-items:center;gap:8px;border:1px solid #dde5dc;background:#f9faf7;border-radius:8px;padding:0 10px;min-height:37px;color:#54665a}
.filter-search input,.filter-select select{border:0;background:transparent;min-width:0;outline:none}
.filter-search input{width:100%;padding:8px 0}
.filter-search:focus-within,.filter-select:focus-within{outline:2px solid #4a9274;outline-offset:2px}
.filter-search{width:min(100%,310px)}
.filter-select select{appearance:none;padding:8px 0;font-size:12px;font-weight:800}
.filter-group,.view-switch{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.view-switch{gap:3px;border:1px solid #dde5dc;padding:3px;border-radius:8px}
.view-switch button,.icon-button{display:inline-grid;place-items:center;border:0;background:transparent;border-radius:6px;padding:6px;color:#527060}
.view-switch button[aria-pressed=true],.icon-button:hover{background:#e8f1e8;color:#215c42}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th,td{padding:12px 14px;border-bottom:1px solid #edf0eb}
th{color:#5a685e;background:#f8faf7;font-size:11px;font-weight:800}
td{height:62px;font-size:12px}
tr:hover td{background:#fbfcfa}
tr td:last-child{width:43px;text-align:right}
.record-name{padding:0;border:0;background:transparent;text-align:left}
.record-name strong{display:inline}
.demo-tag{display:inline-flex;vertical-align:middle;margin-left:6px;border:1px solid #e1e6dc;border-radius:5px;font:800 9px/1.35 Manrope,sans-serif;color:#687267;background:#f3f5ef;padding:2px 4px}
.partner-cell{display:flex;align-items:center;gap:9px}
.record-avatar{background:#e8f0e8;color:#4a715b;display:grid;place-items:center;width:33px;height:33px;border-radius:9px;font-weight:800;font-size:10px}
.done-icon{color:#4a8260;width:18px;text-align:center}
.table-count{padding:11px 15px;color:var(--muted);font-size:11px}
.board{display:flex;gap:10px;padding:13px;overflow:auto;align-items:flex-start}
.board-column{background:#f4f7f2;border:1px solid #e3ebe2;border-radius:10px;padding:10px;flex:1 0 174px;min-width:174px}
.board-column header{display:flex;align-items:center;gap:7px;font-size:12px}
.board-column header>span{margin-left:auto;color:#5e6a60;background:#e8eee6;border-radius:4px;padding:0 5px;font-size:10px}
.board-column>p{color:var(--muted);font-size:11px;margin:3px 0 12px 15px}
.board-cards{display:grid;gap:7px}
.deal-card{border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left;padding:10px;white-space:normal}
.deal-card:hover{border-color:#7ea48a}
.deal-card small{display:block;margin:3px 0 8px;font-size:11px;color:var(--muted)}
.deal-card div{display:flex;align-items:center;justify-content:space-between;font-size:11px}
.column-add{padding:5px;background:none;border:0;color:#3e7457;font-size:11px;text-align:left}
.column-add:hover{text-decoration:underline}
.empty{padding:24px 15px;color:var(--muted);text-align:center}
dialog{border:1px solid #dce6db;border-radius:16px;padding:0;width:min(590px,calc(100% - 28px));max-height:calc(100dvh - 36px);color:var(--ink);box-shadow:0 18px 70px #0e2c2350;background:#fff;overflow:auto}
dialog::backdrop{background:#0e241cb0}
.dialog-head,.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;background:white;position:sticky;z-index:1}
.dialog-head{top:0;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:20px;font-weight:800;letter-spacing:-.035em}
.dialog-body{padding:18px 20px}
.dialog-footer{bottom:0;border-top:1px solid var(--line)}
.dialog-footer .cancel{margin-left:auto}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.form-field{display:grid;gap:5px;min-width:0}
.form-field span{font-weight:800;font-size:12px}
.form-field small{color:#69776b;font-weight:600;font-size:10px;margin-left:4px}
.form-field.wide{grid-column:1/-1}
.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #dde5dc;background:#f9faf7;border-radius:8px;padding:8px 9px;min-height:37px}
.form-field textarea{resize:vertical}
.form-error{color:#ae4537;margin:9px 0 0}
.delete-button{background:#fff;color:#9d4335;border-color:#edd9d3}
.delete-button:hover{background:#fbebe8}
.danger{color:white;background:#a94537}
.related{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}
.related h3{font-size:14px}
.related-group{display:grid;gap:3px;margin-top:9px}
.related-group>strong{color:#586b5d;font-size:11px}
.related-group>small{color:var(--muted)}
.related-group button,.search-result{display:flex;align-items:center;gap:8px;text-align:left;width:100%;background:none;border:0;border-radius:6px;padding:6px 5px}
.related-group button:hover,.search-result:hover{background:#eef4ed}
.related-group button svg:last-child{margin-left:auto}
.related-group .related-add{color:#427454;justify-content:flex-start}
.related-group .related-add svg:last-child{margin-left:0}
.global-search{width:100%;margin-bottom:9px}
.search-result{border-bottom:1px solid #edf0eb;padding:9px 6px}
.search-result>span{flex:1}
.about p+p{margin-top:12px}
.about a{display:inline-flex;align-items:center;gap:8px;margin-top:13px;color:var(--accent);text-decoration:underline}
#toast{display:none;position:fixed;z-index:9;right:22px;bottom:20px;align-items:center;gap:9px;background:#1c4d39;color:#fff;padding:11px 15px;border-radius:8px;max-width:calc(100% - 44px);box-shadow:0 8px 24px #172a2233}
#toast.visible{display:flex}
#toast.error{background:#8e392e}
.sr-only{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
@media(max-width:1120px){
  .app{grid-template-columns:198px minmax(0,1fr)}
  .dashboard,.record-page,.topbar{padding-left:22px;padding-right:22px}
  .hero h1{font-size:60px}
  .stage-row{grid-template-columns:92px minmax(16px,1fr) 18px 48px;gap:5px}
  .followup{gap:7px}
  .metric-top{gap:8px}
}
@media(max-width:900px){
  .app{grid-template-columns:175px minmax(0,1fr)}
  .sidebar{padding-left:10px;padding-right:10px}
  .dashboard,.record-page,.topbar{padding-left:16px;padding-right:16px}
  .dashboard-grid{grid-template-columns:1fr}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .page-title{align-items:flex-start;flex-direction:column}
}
@media(max-width:650px){
  .app{display:block}
  .sidebar{display:none;position:fixed;width:218px;height:calc(100dvh - 56px);top:56px;left:0;box-shadow:12px 0 26px #102c242e}
  .sidebar.showing{display:flex}
  .mobile-toggle{display:inline-grid!important}
  .topbar{height:56px;padding:0 12px;gap:6px}
  .crumb,.top-actions{gap:7px}
  .crumb-root,.crumb>svg,.search-trigger span,.search-trigger kbd{display:none}
  .search-trigger{min-width:0;padding:7px}
  .top-actions .primary{padding:7px 8px;min-height:34px}
  .dashboard,.record-page{padding:12px}
  .hero{padding:19px 16px;min-height:207px;background-image:linear-gradient(90deg,#18362b 0%,rgba(24,54,43,.94) 35%,rgba(24,54,43,.68) 73%,rgba(24,54,43,.45) 100%),url('/hero.jpg')}
  .hero h1,.page-title h1{font-size:46px}
  .hero p{max-width:290px}
  .metrics{margin:12px 0}
  .metric{padding:11px 9px}
  .metric-top{gap:6px;font-size:11px}
  .metric-icon{width:29px;height:29px}
  .metric strong{font-size:25px}
  .metric small{font-size:10px}
  .panel-head{padding:13px 12px 9px}
  .stage-list,.followups,.mini-list{padding-left:12px;padding-right:12px}
  .form-grid{grid-template-columns:1fr}
  .page-title{margin-top:6px}
}

[hidden]{display:none!important}
.profile-name{flex:1;min-width:0}
.profile-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile .avatar{flex-shrink:0}
.sign-out{color:#b4c6b9;flex-shrink:0}
.owner-filter select{max-width:170px;text-overflow:ellipsis}
.document-download{display:inline-flex;align-items:center;gap:8px}
.file-meta a{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.file-meta span{min-width:0}
.login-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(410px,1fr);background:#f6f7f2}
.login-visual{min-height:100dvh;display:flex;flex-direction:column;justify-content:space-between;padding:40px clamp(24px,4vw,66px) 54px;color:#fff;background:#153729 linear-gradient(180deg,#102c24ef 0%,#16332555 42%,#102c24eb 100%);background-image:linear-gradient(180deg,#102c24ef 0%,#16332555 42%,#102c24ed 100%),url('/hero.jpg');background-position:58% center;background-size:cover}
.login-visual .brand{margin:0}
.login-caption p{color:#eddaaa;font-size:11px;font-weight:800;letter-spacing:.15em}
.login-caption h2{font:400 clamp(45px,5vw,79px)/.98 Instrument,Georgia,serif;margin-top:12px;letter-spacing:-.02em}
.login-content{display:grid;place-items:center;padding:35px 28px}
.login-card{width:min(100%,428px);padding:33px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 28px #14281d0a}
.login-card h1{font:400 clamp(39px,4.5vw,58px)/1 Instrument,Georgia,serif;letter-spacing:-.02em;margin-bottom:10px}
.login-context{color:var(--muted)}
.auth-form{display:grid;gap:14px;margin-top:24px}
.auth-form .button{width:100%;margin-top:3px}
.auth-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;margin-top:18px}
.auth-links button{color:var(--accent);background:none;border:0;text-decoration:underline;text-underline-offset:3px;font-size:12px;font-weight:800;padding:0}
.login-loading{grid-column:1/-1;align-self:center;justify-self:center;color:var(--muted)}
@media(max-width:760px){
  .login-screen{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .login-visual{min-height:160px;padding:19px 23px 24px;background-position:center,center 57%;gap:20px}
  .login-caption p{display:none}
  .login-caption h2{font-size:37px;margin-top:0}
  .login-caption br{display:none}
  .login-content{padding:21px 16px}
  .login-card{padding:24px}
}

.brand{gap:9px}
.brand-mark{width:89px;height:49px;background:#243d32;border-color:#566b5b;overflow:hidden}
.brand-mark img{width:100%;height:100%;object-fit:contain;padding:3px}
.login-visual .brand-mark{width:122px;height:64px}
.brand small{font-size:9px;max-width:65px;line-height:1.35;margin-top:0}
.auth-links a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:12px;font-weight:800}
.auth-note{margin-top:14px;color:var(--muted);font-size:12px}
.approval-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.approval-row:first-of-type{border-top:1px solid var(--line)}
.approval-row small{display:block;color:var(--muted);overflow-wrap:anywhere}
.request-count{margin-left:auto;background:#d4c08e;color:#233327;border-radius:20px;padding:1px 7px;font-size:10px;font-weight:800}
