*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --prussian: #003153;
  --prussian-dim: #004070;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text2: #6b6560;
  --text3: #a8a39c;
  --border: #e4e0da;
  --danger: #b04040;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --sidebar-w: 220px;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── SHELL ── */
.shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--prussian);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-mark {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: 1px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 4px;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.snav-item:hover,
.snav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-family: var(--sans);
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-lock:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }

/* ── MAIN ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 40px 48px;
  max-width: 1100px;
}

/* ── AUTH ── */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--prussian);
}

.auth-inner {
  text-align: center;
  width: 100%;
  max-width: 340px;
  padding: 0 24px;
}

.auth-logo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  color: white;
  margin-bottom: 8px;
}

.auth-tagline {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.auth-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pin-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 24px;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 8px;
  text-align: center;
  padding: 16px 20px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.pin-input::placeholder { letter-spacing: 2px; font-size: 13px; color: rgba(255,255,255,0.3); }
.pin-input:focus { border-color: rgba(255,255,255,0.5); }

.btn-auth {
  width: 100%;
  background: white;
  color: var(--prussian);
  border: none;
  padding: 14px;
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-auth:hover { opacity: 0.88; }

.auth-error {
  margin-top: 12px;
  font-size: 12px;
  color: #e08080;
  min-height: 18px;
}

/* ── VIEW COMMON ── */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

.view-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.5px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--prussian); color: white;
  border: 1px solid var(--prussian);
  padding: 10px 24px;
  font-size: 12px; font-family: var(--sans); font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--prussian-dim); border-color: var(--prussian-dim); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 12px; font-family: var(--sans); font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text2); }

.btn-ghost {
  background: none; border: none;
  font-size: 12px; font-family: var(--sans); font-weight: 400;
  color: var(--text2); letter-spacing: 1px;
  cursor: pointer; padding: 6px 0;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }

.btn-danger {
  background: none; border: none;
  font-size: 12px; font-family: var(--sans);
  color: var(--danger); letter-spacing: 0.5px;
  cursor: pointer; padding: 6px 0;
  transition: opacity 0.2s;
}
.btn-danger:hover { opacity: 0.7; }

.btn-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* ── SEARCH ── */
.search-wrap {
  position: relative;
  margin-bottom: 28px;
}

.search-input {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 11px 16px 11px 40px;
  font-size: 14px; font-family: var(--sans); font-weight: 300;
  color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--prussian); }
.search-input::placeholder { color: var(--text3); }

.search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); pointer-events: none;
}

/* ── CLIENT LIST ── */
.client-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.client-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.client-row:last-child { border-bottom: none; }
.client-row:hover { background: #faf9f7; }

.client-avatar {
  width: 40px; height: 40px;
  background: var(--prussian);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 400; letter-spacing: 1px;
  flex-shrink: 0;
}

.client-row-info { flex: 1; min-width: 0; }

.client-row-name {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.client-row-meta {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.client-tags {
  display: flex; gap: 6px; flex-shrink: 0;
}

.tag {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--text2);
}

.tag-vip { border-color: var(--prussian); color: var(--prussian); }
.tag-active { border-color: #5a8a5a; color: #5a8a5a; }
.tag-prospect { border-color: #a07040; color: #a07040; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text3);
  border: 1px solid var(--border);
  background: var(--surface);
}
.empty-state h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--text2);
}
.empty-state p { font-size: 14px; line-height: 1.7; margin-bottom: 28px; }

/* ── CLIENT DETAIL ── */
.detail-back {
  margin-bottom: 32px;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.detail-avatar-lg {
  width: 72px; height: 72px;
  background: var(--prussian);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 300; letter-spacing: 2px;
  flex-shrink: 0;
}

.detail-hero-info { flex: 1; }

.detail-name {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 13px;
  color: var(--text2);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 14px;
}

.detail-meta-dot { color: var(--text3); }

.detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}

.detail-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.detail-section h3 {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}

.detail-dl dt {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
  margin-top: 16px;
}
.detail-dl dt:first-child { margin-top: 0; }

.detail-dl dd {
  font-size: 15px;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
}

.detail-notes {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}
.detail-notes h3 {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}
.detail-notes p {
  font-size: 15px; line-height: 1.8; color: var(--text2);
  white-space: pre-wrap;
}

/* ── FORM ── */
.form-wrap {
  max-width: 640px;
}

.form-section-title {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--prussian); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text3); }

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.65; }

.form-select { appearance: none; cursor: pointer; }

.form-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}

.tag-toggle {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: none;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--sans);
}
.tag-toggle.on { background: var(--prussian); border-color: var(--prussian); color: white; }

.form-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── PROPOSAL BUILDER ── */
.proposal-builder {
  max-width: 780px;
}

.pb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px; gap: 16px;
}

.pb-client-card {
  background: var(--prussian);
  color: white;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.pb-client-card .brand-mark { background: rgba(255,255,255,0.12); }
.pb-client-name { font-family: var(--serif); font-size: 22px; font-weight: 300; }
.pb-client-sub { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }

.pb-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
}

.pb-section-title {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 16px;
}

.artwork-item {
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  background: var(--bg);
}

.artwork-num {
  font-size: 11px; letter-spacing: 2px; color: var(--prussian);
  margin-bottom: 16px; display: block;
}

.artwork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.artwork-remove {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text3); font-size: 18px; cursor: pointer;
  transition: color 0.2s; line-height: 1;
}
.artwork-remove:hover { color: var(--danger); }

.btn-add-artwork {
  background: none;
  border: 1px dashed var(--border);
  width: 100%;
  padding: 14px;
  font-size: 12px; font-family: var(--sans);
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); cursor: pointer;
  transition: all 0.2s;
}
.btn-add-artwork:hover { border-color: var(--prussian); color: var(--prussian); }

/* ── PROPOSAL PRINT ── */
.proposal-print {
  display: none;
}

@media print {
  .shell { display: none !important; }
  .proposal-print {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 11pt;
    line-height: 1.7;
    color: #0a0a0a;
    padding: 0;
  }

  .pp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20pt;
    margin-bottom: 24pt;
    border-bottom: 0.5pt solid #ccc;
  }
  .pp-logo {
    font-family: 'Inter', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 4pt;
    color: #003153;
  }
  .pp-date {
    font-family: 'Inter', sans-serif;
    font-size: 9pt;
    color: #888;
    text-align: right;
    letter-spacing: 0.5pt;
  }

  .pp-title {
    font-size: 28pt;
    font-weight: 300;
    letter-spacing: -0.5pt;
    margin-bottom: 4pt;
    line-height: 1.1;
  }
  .pp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 8pt;
    letter-spacing: 2pt;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 24pt;
  }

  .pp-note {
    font-size: 12pt;
    line-height: 1.85;
    color: #333;
    margin-bottom: 32pt;
    max-width: 540pt;
  }

  .pp-divider {
    border: none;
    border-top: 0.5pt solid #ccc;
    margin: 24pt 0;
  }

  .pp-works-label {
    font-family: 'Inter', sans-serif;
    font-size: 8pt;
    letter-spacing: 3pt;
    text-transform: uppercase;
    color: #003153;
    margin-bottom: 24pt;
  }

  .pp-work {
    margin-bottom: 28pt;
    padding-bottom: 28pt;
    border-bottom: 0.5pt solid #eee;
    break-inside: avoid;
  }
  .pp-work:last-child { border-bottom: none; }

  .pp-work-num {
    font-family: 'Inter', sans-serif;
    font-size: 8pt;
    letter-spacing: 2pt;
    color: #bbb;
    margin-bottom: 8pt;
  }
  .pp-work-artist {
    font-size: 20pt;
    font-weight: 400;
    margin-bottom: 4pt;
    line-height: 1.1;
  }
  .pp-work-title {
    font-size: 16pt;
    font-style: italic;
    font-weight: 300;
    color: #003153;
    margin-bottom: 8pt;
  }
  .pp-work-meta {
    font-family: 'Inter', sans-serif;
    font-size: 8.5pt;
    color: #888;
    letter-spacing: 0.3pt;
    margin-bottom: 12pt;
  }
  .pp-work-price {
    font-family: 'Inter', sans-serif;
    font-size: 10pt;
    font-weight: 500;
    color: #003153;
    margin-bottom: 10pt;
  }
  .pp-work-desc {
    font-size: 11pt;
    line-height: 1.8;
    color: #444;
  }

  .pp-footer {
    margin-top: 40pt;
    padding-top: 16pt;
    border-top: 0.5pt solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .pp-footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 4pt;
    color: #003153;
  }
  .pp-footer-info {
    font-family: 'Inter', sans-serif;
    font-size: 8pt;
    color: #aaa;
    text-align: right;
    line-height: 1.7;
  }
  .pp-confidential {
    margin-top: 10pt;
    font-family: 'Inter', sans-serif;
    font-size: 7.5pt;
    color: #ccc;
    letter-spacing: 0.3pt;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .sidebar { width: 200px; transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 24px 20px; }
  .detail-sections { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: 1fr; }
  .view-title { font-size: 32px; }
  .detail-name { font-size: 32px; }
}

/* ── STAGE BADGES ── */
.stage-badge {
  display: inline-block;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border: 1px solid;
}
.stage-prospect    { color: #003153; border-color: #003153; }
.stage-negotiating { color: #8a5a10; border-color: #c89030; background: #fdf8ee; }
.stage-closing     { color: #2a6a2a; border-color: #4a9a4a; background: #f0f8f0; }
.stage-complete    { color: white;   border-color: #0a0a0a; background: #0a0a0a; }
.stage-lost        { color: #b0a89f; border-color: #d8d0c8; }

/* ── DEALS IN DETAIL ── */
.detail-deals-section,
.detail-timeline-section {
  margin-top: 32px;
}

.ds-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ds-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text3);
}

.ds-empty {
  font-size: 13px; color: var(--text3); padding: 16px 0;
}

/* ── DEAL CARD ── */
.deal-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 18px 20px; margin-bottom: 10px;
}

.deal-card-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}

.deal-client {
  font-size: 12px; color: var(--text2); letter-spacing: 0.5px;
}

.deal-artist {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  line-height: 1.2; margin-bottom: 8px;
}
.deal-artist em { font-style: italic; color: var(--prussian); }

.deal-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--text3); letter-spacing: 0.5px; margin-bottom: 8px;
}

.deal-notes {
  font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 10px;
  padding-top: 8px; border-top: 1px solid var(--border);
}

.deal-actions {
  display: flex; gap: 12px; margin-top: 8px;
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.tl-dot {
  position: absolute;
  left: -28px; top: 6px;
  width: 10px; height: 10px;
  border: 2px solid var(--prussian);
  border-radius: 50%;
  background: var(--bg);
}

.tl-body { }

.tl-date {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 6px;
}

.tl-artist {
  font-family: var(--serif); font-size: 22px; font-weight: 300;
  line-height: 1.2; margin-bottom: 6px;
}
.tl-artist em { font-style: italic; color: var(--prussian); }

.tl-meta { font-size: 12px; color: var(--text3); margin-bottom: 8px; }

.tl-money {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 6px;
}
.tl-price { font-weight: 400; color: var(--prussian); }
.tl-source { color: var(--text2); }
.tl-comm { color: #2a6a2a; }

.tl-notes {
  font-size: 13px; color: var(--text2); line-height: 1.6;
  padding-top: 8px; border-top: 1px solid var(--border); margin-bottom: 8px;
}

/* ── PIPELINE VIEW ── */
.pipeline-stats {
  display: flex; gap: 0; margin-bottom: 40px;
  border: 1px solid var(--border); background: var(--surface);
}

.pstat {
  flex: 1; padding: 24px 32px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.pstat:last-child { border-right: none; }

.pstat-num {
  font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--prussian);
}
.pstat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); }

.pipeline-group { margin-bottom: 40px; }

.pg-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.pg-count { font-size: 12px; color: var(--text3); letter-spacing: 0.5px; }

.pg-list {
  background: var(--surface); border: 1px solid var(--border);
}

.pipeline-deal-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px 160px 120px auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.pipeline-deal-row:last-child { border-bottom: none; }

.pdr-client { font-weight: 400; color: var(--prussian); text-decoration: none; }
.pdr-client:hover { text-decoration: underline; }
.pdr-work { color: var(--text2); }
.pdr-work em { font-family: var(--serif); font-style: italic; }
.pdr-price { font-size: 13px; color: var(--text); text-align: right; }
.pdr-comm  { font-size: 12px; color: #2a6a2a; text-align: right; }
.pdr-close { font-size: 12px; color: var(--text3); }
.pdr-actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 900px) {
  .pipeline-deal-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .pdr-price, .pdr-comm, .pdr-close { display: none; }
}
