:root { --teal:#006f7b; --teal-dark:#005864; --line:#e2e8f0; --muted:#526175; --shade:#f8fafc; color:#0f172a; background:#f8fafc; font-size:14px; }
@font-face { font-family:Inter; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:Inter; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:Inter; font-style:normal; font-weight:600 800; font-display:swap; src:url('/fonts/inter-600.woff2') format('woff2'); }
.topbar { background:white; color:#0f172a; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.top-inner { max-width:none; min-height:62px; padding:0 28px; }
.product { color:var(--muted); border-color:var(--line); font-size:14px; }
.staff span { color:var(--muted); }
.quiet { color:#344256; border-color:var(--line); }
.quiet:hover { background:#f1f5f9; }
.workspace-nav { position:fixed; left:0; top:62px; bottom:0; width:220px; background:#f6f8fa; padding:26px 14px; border-right:1px solid var(--line); z-index:9; }
.nav-label { font-size:12px; font-weight:600; color:#64748b; margin:0 13px 13px; }
.workspace-nav nav { display:grid; gap:4px; }
.workspace-nav a { padding:10px 14px; border-radius:6px; text-decoration:none; color:#425168; font-weight:500; }
.workspace-nav a:hover { background:#eaf0f3; }
.workspace-nav a[aria-current="page"] { background:#e3f0f1; color:#005d69; font-weight:650; }
.nav-bottom { position:absolute; bottom:28px; left:26px; color:#64748b; font-size:12px; }
.nav-bottom .nav-label { margin:0 0 5px; }
.workspace { margin:0 0 0 220px; max-width:none; padding:30px 34px 50px; }
h1 { font-size:26px; letter-spacing:-.035em; }
h2 { font-size:17px; letter-spacing:-.02em; }
h3 { font-size:14px; }
.page-heading { margin-bottom:25px; }
.primary,.secondary { min-height:38px; font-size:14px; border-radius:6px; font-weight:550; }
input,select,textarea { min-height:39px; border-color:#cbd5e1; border-radius:6px; }
.metrics { gap:0; border:1px solid var(--line); border-radius:8px; background:white; overflow:hidden; }
.metric { min-height:83px; border:0; border-radius:0; border-right:1px solid var(--line); padding:16px 20px; }
.metric:last-child { border-right:0; }
.metric[aria-pressed="true"] { background:#f4fbfb; box-shadow:inset 0 -2px var(--teal); }
.metric span { font-size:13px; }
.metric strong { font-size:25px; }
.card { box-shadow:none; }
th { position:sticky; top:62px; z-index:1; font-size:12px; color:#64748b; background:#f8fafc; }
td,th { padding:12px 16px; }
td { font-size:14px; vertical-align:middle; }
tbody tr:hover { background:#f7fbfc; }
.table-footer { color:#64748b; font-size:12px; }
.action-text { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tag { font-size:12px; line-height:1.3; font-weight:500; padding:4px 7px; border-radius:4px; }
.tag.won,.tag.active,.tag.signed,.tag.completed { color:#236044; background:#e9f5ef; }
.tag.lost,.tag.expired,.tag.cancelled,.tag.suspended { color:#943d45; background:#fbebec; }
.tag.proposal,.tag.opportunity,.tag.grace { color:#825817; background:#fdf3dd; }
.tag.trial,.tag.qualified,.tag.demo { background:#e8f1f5; color:#315d73; }
.view-heading { display:flex; gap:18px; align-items:flex-start; justify-content:space-between; margin-bottom:25px; }
.view-heading p { color:var(--muted); margin-top:7px; font-size:14px; }
.heading-actions { display:flex; gap:8px; flex-wrap:wrap; }
.crm-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--line); }
.crm-toolbar input { width:260px; max-width:100%; }
.crm-toolbar select { width:auto; max-width:210px; }
.crm-toolbar .secondary { margin-left:auto; }
.crm-table { table-layout:auto; }
.crm-table th,.crm-table td { width:auto; }
.crm-table th button { border:0; padding:0; background:transparent; color:inherit; font-size:inherit; font-weight:600; text-align:left; }
.crm-table td a { color:#183848; text-decoration:none; font-weight:550; }
.crm-table td a:hover { color:var(--teal); text-decoration:underline; }
.record-name { background:transparent; border:0; padding:0; text-align:left; color:#183848; font-size:14px; font-weight:550; }
.record-name:hover { color:var(--teal); text-decoration:underline; }
.crm-table .secondary { min-height:30px; padding:4px 9px; font-size:12px; }
.empty-view { padding:42px 22px; text-align:center; color:var(--muted); }
.empty-view strong { display:block; color:#334155; margin-bottom:8px; font-weight:550; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:22px; margin-top:24px; }
.panel-head { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); gap:12px; }
.panel-head a { font-size:13px; text-decoration:none; }
.queue-item { padding:17px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #eef2f6; }
.queue-item:last-child { border-bottom:0; }
.queue-item p { margin-top:5px; color:var(--muted); font-size:12px; }
.queue-item a { color:#213d4c; font-weight:550; text-decoration:none; }
.queue-item a:hover { text-decoration:underline; }
.mini-bars { list-style:none; padding:20px; margin:0; display:grid; gap:20px; }
.mini-bars li { display:grid; grid-template-columns:100px 1fr 30px; gap:12px; align-items:center; font-size:13px; }
.mini-track { height:7px; background:#f0f4f7; border-radius:2px; overflow:hidden; }
.mini-fill { background:#007884; height:100%; border-radius:2px; }
.company-meta { display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:13px; margin-top:12px; }
.company-tabs { display:flex; flex-wrap:wrap; gap:5px; border-bottom:1px solid var(--line); margin:0 0 22px; }
.company-tabs a { padding:11px 14px; text-decoration:none; font-size:13px; color:var(--muted); border-bottom:2px solid transparent; }
.company-tabs a[aria-current="page"] { color:var(--teal); border-bottom-color:var(--teal); font-weight:600; }
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.profile-section { padding:22px; }
.profile-section h2 { margin-bottom:18px; }
.entity-dialog { position:fixed; inset:0 0 0 auto; margin:0; max-height:100dvh; height:100dvh; width:min(510px,100vw); max-width:100vw; border:0; border-left:1px solid var(--line); border-radius:0; padding:0; background:white; box-shadow:-12px 0 30px #0f172a12; }
.entity-dialog[open] { display:flex; flex-direction:column; }
.entity-dialog .dialog-head { padding:21px 24px; min-height:72px; }
.entity-dialog .dialog-body { padding:24px; overflow:auto; flex:1; }
.entity-dialog .dialog-foot { padding:16px 24px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:8px; }
.entity-dialog form { display:grid; gap:19px; }
.entity-dialog label { display:grid; gap:7px; font-size:13px; color:#475569; }
.entity-dialog input,.entity-dialog select,.entity-dialog textarea { color:#0f172a; font-size:14px; }
.entity-dialog dl { margin:0; display:grid; grid-template-columns:140px 1fr; gap:16px 18px; font-size:14px; }
.entity-dialog dt { color:var(--muted); font-size:13px; font-weight:400; }
.entity-dialog dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.entity-dialog .note-box { background:#f8fafc; border:1px solid var(--line); padding:14px; margin-top:22px; font-size:13px; line-height:1.6; white-space:pre-wrap; }
.crm-error { margin-bottom:18px; padding:13px 16px; border:1px solid #edcdd0; border-radius:6px; color:#8d2833; background:#fff7f8; }
.timeline { margin:0; padding:0; list-style:none; }
.timeline li { margin-left:8px; border-left:1px solid var(--line); padding:0 0 23px 22px; position:relative; }
.timeline li::before { content:""; position:absolute; width:7px; height:7px; border-radius:50%; background:#bccdd3; left:-4px; top:5px; }
.timeline strong { font-size:14px; font-weight:550; }
.timeline p { color:var(--muted); font-size:12px; margin-top:6px; line-height:1.7; overflow-wrap:anywhere; }
.timeline .history-change { color:#334155; font-size:13px; }
.view-notice { color:#526175; font-size:13px; line-height:1.6; margin-bottom:18px; padding:12px 15px; background:#f1f5f9; border-radius:6px; }
.feedback { position:fixed; bottom:25px; right:28px; background:#153b43; color:white; padding:13px 20px; border-radius:7px; z-index:25; font-size:14px; box-shadow:0 4px 20px #0f172a22; }
.register-view-controls { display:flex; gap:8px; margin:0 0 16px; }
.register-view-controls button { border:1px solid var(--line); background:white; padding:7px 13px; border-radius:5px; color:#526175; }
.register-view-controls button[aria-pressed="true"] { background:#e8f3f4; color:#00606b; border-color:#b4d4da; }
@media (min-width:800px) { #record-dialog { inset:0 0 0 auto; margin:0; height:100dvh; max-height:100dvh; border-radius:0; max-width:510px; } }
@media (max-width:1050px) { .workspace-nav { width:190px; } .workspace { margin-left:190px; padding:26px 22px; } .overview-grid { grid-template-columns:1fr; } .crm-table th,.crm-table td { padding:11px 10px; } }
@media (max-width:760px) {
  .top-inner { padding:12px 15px; flex-wrap:wrap; gap:12px; }
  .staff { gap:8px; margin-left:auto; }.staff span { max-width:100px; }
  .product { display:none; }.workspace-nav { position:static; width:auto; padding:10px 12px; border-right:0; border-bottom:1px solid var(--line); }
  .workspace-nav .nav-label,.nav-bottom { display:none; }.workspace-nav nav { display:flex; overflow:auto; gap:3px; }
  .workspace-nav a { white-space:nowrap; padding:9px 12px; font-size:13px; }
  .workspace { margin:0; padding:23px 15px; }.view-heading { flex-wrap:wrap; }.view-heading h1 { font-size:24px; }
  .profile-grid { grid-template-columns:1fr; }.metrics { grid-template-columns:repeat(2,1fr); }.metric { min-height:80px; border-bottom:1px solid var(--line); }
  .crm-toolbar { gap:8px; }.crm-toolbar input { width:100%; }.crm-toolbar select { max-width:100%; flex:1; }.crm-toolbar .secondary { margin-left:0; }
  .crm-table thead { display:none; }.crm-table tbody,.crm-table tr,.crm-table td { display:block; width:100%; }
  .crm-table tr { padding:13px 16px; border-bottom:1px solid var(--line); }.crm-table td { border:0; padding:5px 0; display:grid; grid-template-columns:105px 1fr; gap:10px; overflow-wrap:anywhere; }
  .crm-table td::before { content:attr(data-label); font-size:12px; color:var(--muted); }.crm-table td:first-child { padding:4px 0 9px; font-size:15px; }
  .entity-dialog .dialog-body { padding:20px; }.entity-dialog dl { grid-template-columns:110px 1fr; gap:16px 12px; }
  .company-tabs { gap:0; }.company-tabs a { padding:10px; font-size:12px; }.feedback { right:15px; left:15px; bottom:15px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
