:root{--font-sans:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;--ink:#16181d;--ink-muted:#5b6472;--ink-faint:#8a93a2;--surface:#fff;--surface-sunken:#f5f6f8;--surface-raised:#fff;--line:#e2e5ea;--line-strong:#c8cdd6;--accent:#1f4fd8;--accent-ink:#fff;--accent-wash:#eef2fe;--positive:#1a7f52;--positive-wash:#e7f5ee;--negative:#b4232b;--negative-wash:#fdecec;--warning-wash:#fdf3e3;--radius:8px;--radius-sm:5px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--shadow-card:0 1px 2px #10182814;--shadow-raised:0 6px 16px #10182824;--header-height:56px;--focus:2px solid var(--accent)}*{box-sizing:border-box}html,body,#root{height:100%}body{font-family:var(--font-sans);color:var(--ink);background:var(--surface-sunken);-webkit-font-smoothing:antialiased;margin:0;font-size:14px;line-height:1.5}h1,h2,h3{margin:0;font-weight:600;line-height:1.25}h1{font-size:20px}h2{font-size:16px}h3{font-size:14px}p{margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:var(--focus);outline-offset:2px}.app{flex-direction:column;min-height:100%;display:flex}.app-header{align-items:center;gap:var(--space-4);height:var(--header-height);padding:0 var(--space-4);background:var(--surface);border-bottom:1px solid var(--line);z-index:20;display:flex;position:sticky;top:0}.app-brand{letter-spacing:-.01em;color:var(--ink);font-size:15px;font-weight:650}.app-nav{gap:var(--space-1);scrollbar-width:none;min-width:0;margin-right:auto;display:flex;overflow-x:auto}.app-nav::-webkit-scrollbar{display:none}.app-nav a{padding:6px var(--space-3);border-radius:var(--radius-sm);color:var(--ink-muted);white-space:nowrap;font-weight:500}.app-nav a:hover{background:var(--surface-sunken);text-decoration:none}.app-nav a[aria-current=page]{background:var(--accent-wash);color:var(--accent)}.app-main{padding:var(--space-5) var(--space-4);flex:1;width:100%;max-width:1200px;margin:0 auto}.app-main--wide{max-width:none}.page-head{align-items:baseline;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.page-head p{color:var(--ink-muted)}.tenant-switcher{align-items:center;gap:var(--space-2);color:var(--ink-muted);font-size:13px;display:flex}.tenant-switcher select{max-width:200px}@media (width<=640px){.app-header{height:auto;min-height:var(--header-height);padding-block:var(--space-2);row-gap:var(--space-2);flex-wrap:wrap}.app-nav{flex-basis:100%;order:3;margin-right:0}.tenant-switcher{margin-left:auto}.tenant-switcher select{max-width:180px}.card>header{flex-wrap:wrap}}.field{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}.field>span{color:var(--ink-muted);font-size:12px;font-weight:550}input,select,textarea,button{font:inherit;color:inherit}input,select,textarea{padding:7px var(--space-3);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);min-width:0}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:var(--focus);outline-offset:-1px;border-color:var(--accent)}.button{justify-content:center;align-items:center;gap:var(--space-2);padding:7px var(--space-4);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;white-space:nowrap;font-weight:550;display:inline-flex}.button:hover:not(:disabled){background:var(--surface-sunken)}.button:disabled{opacity:.55;cursor:not-allowed}.button--primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.button--primary:hover:not(:disabled){background:#1a44bb}.button--quiet{color:var(--ink-muted);padding:4px var(--space-2);background:0 0;border-color:#0000}.button--quiet:hover:not(:disabled){background:var(--surface-sunken);color:var(--ink)}.card{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-card)}.card>header{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--line);display:flex}.card>.card-body{padding:var(--space-4)}.stack{gap:var(--space-4);flex-direction:column;display:flex}.row{gap:var(--space-3);flex-wrap:wrap;align-items:flex-end;display:flex}.columns{gap:var(--space-4);grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;display:grid}@media (width<=860px){.columns{grid-template-columns:minmax(0,1fr)}}.badge{padding:1px var(--space-2);background:var(--surface-sunken);color:var(--ink-muted);white-space:nowrap;border-radius:999px;align-items:center;font-size:12px;font-weight:550;display:inline-flex}.badge--open{background:var(--accent-wash);color:var(--accent)}.badge--won{background:var(--positive-wash);color:var(--positive)}.badge--lost{background:var(--negative-wash);color:var(--negative)}.badge--primary{background:var(--warning-wash);color:#8a5a12}.muted{color:var(--ink-muted)}.faint{color:var(--ink-faint);font-size:12px}.mono{font-family:var(--font-mono);font-size:12px}.notice{padding:var(--space-3) var(--space-4);border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface)}.notice--error{background:var(--negative-wash);color:var(--negative);border-color:#f0c3c3}.field-error{color:var(--negative);font-size:12px}.placeholder{justify-content:center;align-items:center;gap:var(--space-2);text-align:center;min-height:calc(var(--rows,3) * 48px);padding:var(--space-5);color:var(--ink-muted);flex-direction:column;display:flex}.placeholder strong{color:var(--ink);font-weight:600}.skeleton-rows{background:var(--line);min-height:calc(var(--rows,3) * 48px);flex-direction:column;gap:1px;display:flex}.skeleton-row{background:var(--surface);height:48px;position:relative;overflow:hidden}.skeleton-row:after{content:"";inset:14px var(--space-4) 14px var(--space-4);border-radius:var(--radius-sm);background:var(--surface-sunken);position:absolute}@media (prefers-reduced-motion:no-preference){.skeleton-row:after{animation:1.4s ease-in-out infinite pulse}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.55}}.list{margin:0;padding:0;list-style:none}.list>li+li{border-top:1px solid var(--line)}.list-item{align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);min-height:48px;display:flex}.list-item__main{flex:1;min-width:0}.list-item__title{white-space:nowrap;text-overflow:ellipsis;font-weight:550;overflow:hidden}.stats{gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));display:grid}.stat{padding:var(--space-4);min-height:96px}.stat__label{color:var(--ink-muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:550}.stat__value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin-top:var(--space-1);font-size:28px;font-weight:650}.board{gap:var(--space-3);padding-bottom:var(--space-4);scroll-snap-type:x proximity;align-items:flex-start;display:flex;overflow-x:auto}.board-column{max-height:calc(100vh - var(--header-height) - 180px);background:var(--surface-sunken);border:1px solid var(--line);border-radius:var(--radius);scroll-snap-align:start;flex-direction:column;flex:0 0 272px;display:flex}.board-column--over{border-color:var(--accent);background:var(--accent-wash)}.board-column__head{align-items:center;gap:var(--space-2);padding:var(--space-3);border-bottom:1px solid var(--line);display:flex;position:sticky;top:0}.board-column__count{font-variant-numeric:tabular-nums;margin-left:auto}.board-column__cards{padding:var(--space-2);gap:var(--space-2);flex-direction:column;min-height:88px;margin:0;list-style:none;display:flex;overflow-y:auto}.deal-card{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);padding:var(--space-3);gap:var(--space-1);cursor:grab;touch-action:manipulation;flex-direction:column;display:flex}.deal-card:focus-visible{outline:var(--focus);outline-offset:1px}.deal-card--dragging{opacity:.4}.deal-card--overlay{cursor:grabbing;box-shadow:var(--shadow-raised);transform:rotate(1.5deg)}.deal-card__title{font-weight:550}.deal-card__meta{justify-content:space-between;align-items:center;gap:var(--space-2);color:var(--ink-muted);font-size:12px;display:flex}.deal-card__value{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:550}.timeline{margin:0;padding:0;list-style:none}.timeline>li{gap:var(--space-3);padding-bottom:var(--space-4);grid-template-columns:10px minmax(0,1fr);display:grid;position:relative}.timeline>li:before{content:"";background:var(--line-strong);border-radius:50%;width:9px;height:9px;margin-top:6px}.timeline>li:not(:last-child):after{content:"";background:var(--line);width:1px;position:absolute;top:19px;bottom:0;left:4px}.timeline__summary{font-weight:500}.timeline__meta{color:var(--ink-faint);gap:var(--space-2);flex-wrap:wrap;font-size:12px;display:flex}.details{gap:var(--space-2) var(--space-4);grid-template-columns:minmax(120px,auto) minmax(0,1fr);margin:0;display:grid}.details dt{color:var(--ink-muted);font-size:13px}.details dd{overflow-wrap:anywhere;min-width:0;margin:0}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-user{white-space:nowrap;align-items:center;gap:.5rem;margin-left:auto;display:flex}.badge--splibit{background:var(--accent-wash,#e8f0fc);color:var(--accent,#0b70ea)}.owner-chip{white-space:nowrap;align-items:center;gap:6px;font-size:13px;display:inline-flex}.owner-chip__avatar,.owner-chip--none{background:var(--accent-soft,#dbeafe);width:22px;height:22px;color:var(--accent-ink,#1e3a8a);letter-spacing:.02em;border-radius:50%;justify-content:center;align-items:center;font-size:10.5px;font-weight:700;display:inline-flex}.owner-chip--none{background:var(--line,#e5e7eb);color:var(--muted,#6b7280)}.deal-card__meta .owner-chip{margin-left:auto}.app-search input{width:180px;max-width:40vw}.filter-bar{margin-bottom:12px}.filter-row select,.filter-row input{flex:140px;min-width:0}.icon-button{cursor:pointer;color:var(--muted,#6b7280);background:0 0;border:0;padding:4px 8px;font-size:14px}.icon-button:hover{color:var(--ink,#111827)}.table{border-collapse:collapse;width:100%;font-size:14px}.table th,.table td{text-align:left;border-bottom:1px solid var(--line,#e5e7eb);vertical-align:top;padding:8px 10px}.table th{color:var(--muted,#6b7280);text-transform:uppercase;letter-spacing:.04em;font-size:12.5px;font-weight:600}.stage-bar__label{justify-content:space-between;margin-bottom:4px;font-size:14px;display:flex}.stage-bar__track{background:var(--line,#e5e7eb);border-radius:5px;height:10px;overflow:hidden}.stage-bar__fill{background:var(--accent,#0f766e);border-radius:5px;height:100%}.tag-chips{flex-wrap:wrap;align-items:center;gap:4px;display:inline-flex}.tag-chips--editable{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:4px 6px;display:flex}.tag-chips--editable input{background:0 0;border:0;flex:1;min-width:8ch;padding:2px 4px}.tag-chips--editable input:focus{outline:none}.badge--tag{background:var(--accent-wash);color:var(--accent);gap:4px}.tag-remove{color:inherit;cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:13px;line-height:1}.link-button{color:var(--accent);cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.template-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}@media (width<=960px){.template-layout{grid-template-columns:minmax(0,1fr)}}.block{border:1px solid var(--line);border-radius:6px;gap:6px;padding:8px 10px;display:grid}.block__head{align-items:center;gap:6px;display:flex}.block__head .badge{margin-right:auto}.preview-frame{border:1px solid var(--line);background:#f4f5f7;border-radius:6px;width:100%;min-height:560px}.preview-text{white-space:pre-wrap;background:var(--surface-sunken);border:1px solid var(--line);border-radius:6px;max-height:320px;padding:10px;font-size:13px;overflow:auto}.swatch{border:1px solid var(--line);background:0 0;border-radius:4px;width:28px;height:28px;padding:0}
