/* WDA Caddy — Apple/architecture-studio aesthetic.
   Pure white, generous whitespace, Inter (web) with SF Pro stack as native fallback. */

:root {
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-hover: #f5f5f7;
  --border: #e5e5e7;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  /* WDA brand */
  --wda-blue: #3459BC;
  --wda-blue-deep: #2A4795;
  --wda-navy: #16244F;
  --wda-yellow: #FFDB30;
  --accent: #3459BC;
  --accent-hover: #2A4795;

  /* Sidebar (WDA charcoal #303030) */
  --sb-bg: #303030;
  --sb-bg-2: #262626;
  --sb-text: #ffffff;
  --sb-text-dim: #a6a6a6;
  --sb-hover: rgba(255,255,255,0.09);
  --sb-active: rgba(255,255,255,0.15);
  --sb-border: rgba(255,255,255,0.13);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --sidebar-w: 248px;
  --content-max: 1880px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
button { font-family: inherit; cursor: pointer; }

/* ───────────── Login ───────────── */
.login-page {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  min-height: 100vh; background: var(--bg);
}
.login-card {
  width: 360px; padding: 48px 40px 40px;
  text-align: center;
}
.login-card .brand-logo { margin: 0 auto 36px; max-width: 280px; color: var(--text); }
.login-card .brand-logo img { width: 100%; height: auto; display: block; }
.login-card h1 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.subdued { color: var(--text-secondary); margin: 0 0 32px; font-size: 15px; }
#loginForm { display: flex; flex-direction: column; gap: 12px; }
#loginForm input {
  font: inherit; padding: 14px 16px; font-size: 15px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
#loginForm input:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
#loginForm button {
  padding: 14px; font-size: 15px; font-weight: 500;
  background: var(--accent); color: white; border: none;
  border-radius: var(--radius-md);
  transition: background 120ms ease, transform 60ms ease;
}
#loginForm button:hover { background: #000; }
#loginForm button:active { transform: scale(0.99); }
.error { color: #b00020; font-size: 13px; min-height: 18px; margin-top: 4px; }
.legal {
  position: fixed; bottom: 24px; left: 0; right: 0;
  text-align: center; color: var(--text-tertiary); font-size: 12px;
}

/* ───────────── App shell ───────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  /* 100vh on iOS Safari includes the URL-bar area, which pushes the composer
     off-screen at the bottom. 100dvh is the dynamic viewport height that
     excludes browser chrome. Fallback to 100vh for older browsers. */
  height: 100vh;
  height: 100dvh;
}

/* Sidebar (WDA blue) */
.sidebar {
  background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%);
  border-right: 1px solid var(--sb-border);
  color: var(--sb-text);
  display: flex; flex-direction: column;
  padding: 22px 14px 14px;
}
.brand { padding: 4px 10px 22px; display: flex; align-items: center; gap: 12px; }
.brand-logo { max-width: 150px; margin: 0; }
.brand-logo img { width: 100%; height: auto; display: block; }
.brand-sub {
  color: var(--wda-yellow); font-size: 11px;
  letter-spacing: 0.20em; text-transform: uppercase; font-weight: 700;
}
.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: none; background: transparent;
  color: var(--sb-text); font-size: 14px; font-weight: 500;
  text-align: left; transition: background 80ms ease;
}
.nav-item:hover { background: var(--sb-hover); }
.nav-item.active { background: var(--sb-active); font-weight: 600; }
.nav-item.active .nav-icon { color: var(--wda-yellow); }
.nav-icon { display: inline-flex; width: 18px; height: 18px; color: var(--sb-text-dim); flex: none; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-section {
  padding: 18px 12px 6px; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sb-text-dim); font-weight: 700;
}
.nav-empty { padding: 6px 12px; color: var(--sb-text-dim); font-size: 13px; }

/* Recent chats (collapsible) */
.nav-recent { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--sb-border); }
.nav-recent-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: transparent; border: none; cursor: pointer;
  color: var(--sb-text-dim); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: var(--radius-sm);
}
.nav-recent-head:hover { background: var(--sb-hover); color: var(--sb-text); }
.nav-recent-head .chev { width: 14px; height: 14px; transition: transform 140ms ease; }
.nav-recent-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-recent-list { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 4px; }
.nav-recent-list[hidden] { display: none; }
.recent-link {
  display: block; width: 100%; text-align: left; border: none; background: transparent;
  color: var(--sb-text); font-size: 13px; padding: 7px 12px; border-radius: var(--radius-sm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-link:hover { background: var(--sb-hover); }
.recent-empty { color: var(--sb-text-dim); font-size: 12.5px; padding: 6px 12px; }
.recent-row { display: flex; align-items: center; gap: 2px; }
.recent-row .recent-link { flex: 1; min-width: 0; }
.recent-del {
  flex: none; opacity: 0; background: transparent; border: none; cursor: pointer;
  color: var(--sb-text-dim); padding: 6px; border-radius: var(--radius-sm);
  display: inline-flex; transition: opacity 100ms ease, background 100ms ease, color 100ms ease;
}
.recent-del svg { width: 15px; height: 15px; }
.recent-row:hover .recent-del, .recent-del:focus-visible { opacity: 1; }
.recent-del:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Foot: user chip + actions */
.sidebar-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--sb-border); position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--radius-md); background: var(--sb-hover); cursor: pointer;
  transition: background 80ms ease;
}
.user-chip:hover { background: var(--sb-active); }
.user-chip .chev { width: 15px; height: 15px; color: var(--sb-text-dim); margin-left: auto; flex: none; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--wda-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-name { font-size: 13.5px; font-weight: 600; color: var(--sb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--sb-text-dim); }
.user-menu {
  position: absolute; bottom: 100%; left: 0; right: 0; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 40;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: transparent; border-radius: var(--radius-sm);
  color: var(--text); font-size: 13.5px;
}
.user-menu-item:hover { background: var(--bg-hover); }
.user-menu-item .user-avatar { width: 26px; height: 26px; font-size: 12px; }
.user-menu-item.is-admin .user-avatar { background: var(--wda-blue); color: #fff; }
.user-menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.foot-actions { display: flex; gap: 6px; }
.new-chat, .logout {
  flex: 1; padding: 9px 8px; background: var(--sb-hover); border: none;
  text-align: center; font-size: 12.5px; color: var(--sb-text);
  border-radius: var(--radius-sm); transition: background 80ms ease;
  white-space: nowrap;
}
.new-chat:hover, .logout:hover { background: var(--sb-active); }

/* Main column */
.main {
  position: relative;
  height: 100vh; overflow: hidden;
  background: var(--bg);
}
.tab { display: none; height: 100vh; }
.tab.active { display: flex; flex-direction: column; }
.tab-home.active { display: flex; }

/* ───────────── Tab panels (Renderings, Field Reports) ───────────── */
.tab-panel.active { overflow-y: auto; padding: 40px 48px 80px; }
.panel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  max-width: var(--content-max); margin: 0 0 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.panel-head h1 {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700; margin: 0;
  letter-spacing: -0.02em;
}
.panel-sub { color: var(--text-secondary); font-size: 14px; margin: 6px 0 0; max-width: 640px; }
.panel-body { max-width: var(--content-max); margin: 0; width: 100%; }
.panel-loading, .empty-state, .error-state {
  padding: 60px 20px; text-align: center; color: var(--text-secondary);
}
.empty-state h3 { color: var(--text); font-weight: 500; margin: 0 0 8px; }
.empty-state p { margin: 0; }
.error-state { color: #b00020; }
.ghost-btn {
  padding: 8px 16px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  transition: background 80ms ease;
}
.ghost-btn:hover { background: var(--bg-hover); }
.ghost-btn-sm {
  padding: 5px 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 6px;
  font-size: 12px; font-weight: 500; text-decoration: none;
  transition: background 80ms ease; display: inline-block;
}
.ghost-btn-sm:hover { background: var(--bg-hover); }
.primary-btn {
  padding: 8px 16px; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  transition: background 80ms ease;
}
.primary-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary-btn:hover { opacity: 0.85; }
.primary-btn:disabled, .ghost-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.scraper-actions { display: flex; gap: 8px; align-items: center; }

/* Top-of-tab IDML download bar (Print Pieces sub-tab) — surfaces the
   polished v8 template as a one-click editable InDesign starting point,
   regardless of whether Jennifer has rendered any cards yet. */
.idml-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.idml-bar-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.idml-bar-copy strong { font-size: 13px; color: var(--text); }
.idml-bar-copy span { font-size: 12px; color: var(--text-muted); }
.idml-download-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  color: #fff; background: #3459BC; border-radius: var(--radius-sm);
  text-decoration: none; transition: background 120ms ease;
}
.idml-download-btn:hover { background: #2a48a3; }

/* Per-piece IDML download button (Print Pieces sub-tab) — surfaces only on
   tiles whose PDF has a sibling .idml emitted by render_5x7_card. */
.asset-tile-btn.asset-tile-idml {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: #3459BC; padding: 0 8px; height: 28px;
  line-height: 28px; border-radius: var(--radius-sm); text-decoration: none;
}
.asset-tile-btn.asset-tile-idml:hover { background: #2a48a3; }

/* Marketing Assets gallery tiles (Graphics + Charts sub-tabs) */
.asset-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.asset-tile {
  position: relative; margin: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.asset-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.asset-tile-img {
  aspect-ratio: 4/3; background: var(--bg-hover); overflow: hidden;
}
.asset-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-tile figcaption { padding: 10px 14px 12px; }
.asset-tile-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.asset-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--bg-hover); color: var(--text-secondary);
  text-transform: capitalize;
}
.asset-tile-time {
  font-size: 11px; color: var(--text-tertiary); white-space: nowrap;
}
.asset-tile-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 4px;
  opacity: 0; transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.asset-tile:hover .asset-tile-actions { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .asset-tile-actions { opacity: 1; transform: none; }
}
.asset-tile-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text-secondary); text-decoration: none; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600;
  transition: background 80ms ease, color 80ms ease;
}
.asset-tile-btn:hover { background: #fff; color: var(--text); }
.asset-tile-delete:hover { background: #fdecec; color: #b00020; }

/* PDF thumbnail tiles for Print Pieces */
.piece-thumb {
  position: relative; aspect-ratio: 5/7;
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
}
.piece-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.piece-thumb-fallback {
  font-size: 14px; font-weight: 600; color: var(--text-tertiary);
  letter-spacing: 0.18em;
}

/* Document chip (Field Observation Report docx, etc.) */
.msg-docs { margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px; color: var(--text); text-decoration: none;
  transition: background 80ms ease;
}
.doc-chip:hover { background: var(--bg-hover); }
.link { color: var(--text); text-decoration: underline; }

/* Sub-tabs (used on Scraper tab) */
.subtabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.subtab {
  background: none; border: none;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--text); border-bottom-color: var(--text); }

/* Database-style table (Scraper municipalities, exports) */
.db-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
}
.db-table th, .db-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.db-table thead th {
  background: var(--bg-hover);
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.db-table tbody tr:last-child td { border-bottom: none; }
.db-table tbody tr:hover { background: var(--bg-hover); }
.db-cell-name { font-weight: 500; }
.db-cell-url a { color: var(--text-secondary); text-decoration: none; }
.db-cell-url a:hover { color: var(--text); text-decoration: underline; }
.db-col-status, .db-col-toggle, .db-col-actions { width: 1%; white-space: nowrap; }
.db-status {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.db-status-live { background: #e5f6ec; color: #0f7a3b; }
.db-status-pending { background: #fff3d6; color: #8a5a0c; }
.db-empty { text-align: center; color: var(--text-tertiary); font-style: italic; padding: 28px; }

/* Custom toggle switch */
.db-toggle { display: inline-flex; cursor: pointer; }
.db-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.db-toggle span {
  display: inline-block; width: 34px; height: 20px;
  background: #d2d2d7; border-radius: 999px; position: relative;
  transition: background 120ms ease;
}
.db-toggle span::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #fff;
  border-radius: 50%; transition: transform 140ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.db-toggle input:checked + span { background: #34c759; }
.db-toggle input:checked + span::after { transform: translateX(14px); }

.db-delete-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px; color: var(--text-secondary);
  transition: background 80ms ease, color 80ms ease;
}
.db-delete-btn:hover { background: #fdecec; color: #b00020; }
.db-delete-btn svg { display: block; }

.db-add-row {
  margin-top: 24px; padding: 20px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.db-add-title {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary); margin-bottom: 12px;
}
.db-add-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.db-add-fields input[type="text"], .db-add-fields input[type="url"] {
  flex: 1; min-width: 200px;
  padding: 9px 12px; font-size: 13px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-family: inherit;
}
.db-add-fields input:focus { outline: none; border-color: var(--text); }
.db-add-hint {
  font-size: 12px; color: var(--text-tertiary);
  margin: 10px 0 0;
}

/* Skills catalog */
.skill-list {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 880px) {
  .skill-list { grid-template-columns: repeat(2, 1fr); }
}
.skill-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  overflow: hidden;
}
.skill-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.skill-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px;
  background: none; border: none; width: 100%;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.skill-head:hover { background: var(--bg-hover); }
.skill-body {
  padding: 0 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.skill-card.collapsed .skill-body { display: none; }
.skill-meta-row { display: flex; align-items: center; gap: 12px; }
.skill-chevron {
  font-size: 12px; color: var(--text-tertiary);
  transition: transform 140ms ease;
  display: inline-block;
}
.skill-card.collapsed .skill-chevron { transform: rotate(-90deg); }
.skill-title { display: flex; align-items: center; gap: 10px; }
.skill-title h2 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; margin: 0;
  letter-spacing: -0.01em; color: var(--text);
}
.skill-icon { font-size: 18px; color: var(--text-tertiary); }
.skill-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.skill-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
}
.skill-badge.status-live { background: #e8f4ec; color: #146c2e; }
.skill-badge.status-beta { background: #fff4e0; color: #9a5b00; }
.skill-badge.status-soon { background: var(--bg-hover); color: var(--text-secondary); }
.skill-channel { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.skill-desc { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.skill-examples-label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary); font-weight: 600; margin-bottom: 8px;
}
.skill-examples-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-example {
  font: inherit; font-size: 13px;
  background: var(--bg-hover); color: var(--text);
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; text-align: left;
  transition: background 80ms ease, border-color 80ms ease;
}
.skill-example:hover { background: var(--bg); border-color: var(--border-strong); }
.skill-jump {
  align-self: flex-start;
  font: inherit; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 7px 14px; cursor: pointer;
  transition: background 80ms ease;
}
.skill-jump:hover { background: var(--bg-hover); }

/* Renderings grid */
.render-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.render-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0;
  text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 60ms ease;
  font: inherit; color: inherit;
}
.render-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.render-card:active { transform: scale(0.99); }
.render-card-wrap { position: relative; }
.render-card-delete {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-strong); border-radius: 999px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer;
  opacity: 0; transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, background 80ms ease, color 80ms ease;
  z-index: 2;
}
.render-card-wrap:hover .render-card-delete { opacity: 1; transform: translateY(0); }
.render-card-delete:hover { background: #fdecec; color: #b00020; }
@media (hover: none) { .render-card-delete { opacity: 1; transform: none; } }
.render-card-img { aspect-ratio: 16/9; background: var(--bg-hover); overflow: hidden; }
.render-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.render-card-meta { padding: 14px 16px 16px; }
.render-card-title { font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.render-card-sub { font-size: 12px; color: var(--text-tertiary); }

/* Conversations grid */
.conversation-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.conversation-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
  text-align: left; cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 60ms ease;
  font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
}
.conversation-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.conversation-card:active { transform: scale(0.99); }
.conversation-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conversation-card-title { font-weight: 500; font-size: 14px; color: var(--text); line-height: 1.3; }
.conversation-card-time { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.thumb-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.thumb { aspect-ratio: 1; background: var(--bg-hover); overflow: hidden; border-radius: 6px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.conversation-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-hover); color: var(--text-secondary);
}
.asset-chip-muted {
  font-size: 11px; padding: 3px 8px; color: var(--text-tertiary); font-style: italic;
}
.conversation-detail { margin-top: 40px; }
.conversation-detail:empty { display: none; }
.conversation-assets { margin: 24px 0; }
.asset-section-title {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-tertiary);
  margin-bottom: 12px;
}
.asset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.asset-grid .render-figure { margin: 0; max-width: 100%; }
.asset-grid .render-figure img, .asset-grid .render-figure video { max-width: 100%; }
.transcript { margin-top: 24px; max-width: 800px; }
.t-msg { padding: 12px 0; border-bottom: 1px solid var(--border); }
.t-msg:last-child { border-bottom: none; }
.t-role { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.t-body { font-size: 14px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.t-user .t-body { color: var(--text-secondary); }
.empty-state-inline { color: var(--text-tertiary); padding: 12px 0; font-style: italic; }
.detail-actions { display: flex; gap: 8px; }

/* Render project detail (version chain) */
.render-detail, .report-detail { margin-top: 40px; }
.render-detail:empty, .report-detail:empty { display: none; }
.detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.detail-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.015em; }
.version-chain { display: flex; flex-direction: column; gap: 24px; }
.version-row {
  display: grid; grid-template-columns: 360px 1fr; gap: 24px;
  align-items: start;
}
.version-img img {
  width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: block;
}
.version-tag {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--text-tertiary); margin-bottom: 6px;
}
.version-prompt { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
@media (max-width: 760px) {
  .version-row { grid-template-columns: 1fr; }
}

/* Field report list */
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  display: flex; flex-direction: column; gap: 8px;
}
.report-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.report-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-card-title { font-weight: 500; font-size: 15px; color: var(--text); }
.report-card-meta, .report-card-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-tertiary); }
.report-card-stats { color: var(--text-secondary); }
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
}
.badge-progress { background: #fff4e0; color: #9a5b00; }
.badge-done { background: #e8f4ec; color: #146c2e; }

/* Field report detail */
.report-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 32px; margin: 0 0 32px;
}
.report-meta > div { display: flex; flex-direction: column; gap: 2px; }
.report-meta dt { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; margin: 0; }
.report-meta dd { font-size: 14px; color: var(--text); margin: 0; }
.section-title { font-size: 16px; font-weight: 500; margin: 0 0 16px; }
.obs-list { display: flex; flex-direction: column; gap: 24px; }
.obs-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.obs-num { font-weight: 600; color: var(--text-tertiary); font-size: 13px; padding-top: 2px; }
.obs-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.obs-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.obs-photos a { display: block; }
.obs-photos img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border); display: block;
}

/* Idle home view: vertically center the greeting + composer as a pair. The
   tab-home flex container uses justify-content:center so everything sits
   roughly mid-screen rather than the greeting stretching to fill space and
   the composer pinning to the bottom edge. */
.tab-home.active {
  justify-content: center;
  gap: 40px;
}
.greeting {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 32px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  transition: opacity 300ms ease;
  text-align: center;
}
.greeting h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.025em;
}
.greeting p { color: var(--text-secondary); font-size: clamp(15px, 2vw, 18px); margin: 0; }
.greeting-mark { width: 58px; margin-bottom: 22px; }
.greeting-mark svg { width: 100%; height: auto; display: block; }
.greeting.hidden { display: none; }

.thread {
  flex: 1; overflow-y: auto;
  padding: 32px 0;
  display: none;
}
.thread.active { display: block; }
.thread-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.msg { margin-bottom: 28px; }
.msg-role { font-size: 12px; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.msg-body { font-size: 15px; line-height: 1.65; color: var(--text); white-space: pre-wrap; }
.msg-body p { margin: 0 0 12px; }
.msg-body p:last-child { margin: 0; }
.msg-body code { background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, "SF Mono", "Monaco", "Cascadia Mono", monospace; font-size: 13px; }
.msg-body pre { background: var(--bg-hover); padding: 12px 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.msg-body pre code { background: transparent; padding: 0; }
.msg-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.msg-attachment {
  font-size: 12px; padding: 4px 10px; border: 1px solid var(--border-strong);
  border-radius: 999px; color: var(--text-secondary); background: var(--bg);
}
.cursor { display: inline-block; width: 6px; height: 14px; background: var(--text); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
/* Pulsing WDA mark shown while Caddy is thinking / streaming */
.think-logo { display: inline-block; width: 18px; height: 18px; margin-left: 6px; vertical-align: -3px; transform-origin: center; animation: caddyPulse 1.15s ease-in-out infinite; }
.think-logo svg { width: 100%; height: 100%; display: block; }
@keyframes caddyPulse { 0%, 100% { opacity: 0.35; transform: scale(0.88); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .think-logo { animation: none; opacity: 0.85; } }

.tool-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  background: var(--bg-hover); padding: 6px 12px;
  border-radius: 999px; margin: 4px 0 12px;
}
.spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.render-figure {
  margin: 8px 0 16px;
  display: block;
  position: relative;
  max-width: 720px;
}
.render-figure img,
.render-figure video {
  width: 100%; max-width: 720px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: block;
  background: #000;
}
.render-figure figcaption {
  font-size: 12px; color: var(--text-tertiary);
  margin-top: 6px; letter-spacing: 0.04em;
}

/* Download button overlay for any image Caddy delivers */
.download-btn {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--text); text-decoration: none;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, background 80ms ease;
  pointer-events: none;
}
.render-figure:hover .download-btn,
.version-img:hover .download-btn,
.download-btn:focus-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.download-btn:hover { background: #fff; }
.download-btn svg { display: block; }
/* Touch devices: always show */
@media (hover: none) {
  .download-btn { opacity: 1; transform: none; pointer-events: auto; }
}
.version-img { position: relative; }

/* Opt-in Save button — Phase 2 opt-in save flow. Mirrors .download-btn pill
   styling but anchors top-left so it doesn't collide with Download. */
.save-btn {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, background 80ms ease;
}
.render-figure:hover .save-btn,
.save-btn:focus-visible {
  opacity: 1; transform: translateY(0);
}
.save-btn:hover { background: #fff; }
.save-btn svg { display: block; }
.save-btn:disabled { cursor: default; opacity: 1; transform: none; }
.save-btn-saved {
  background: #e8f5ee; border-color: #76c191; color: #1f6c41;
}
.save-btn-saved:hover { background: #e8f5ee; }
@media (hover: none) {
  .save-btn { opacity: 1; transform: none; }
}

/* Doc chips: Save button sits inline next to the chip, not overlayed. */
.doc-chip-row {
  display: inline-flex; align-items: center; gap: 8px;
}
.doc-chip-row .save-btn {
  position: static; opacity: 1; transform: none;
}

.animations-section { margin: 24px 0 32px; }
.animations-title {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-tertiary);
  margin-bottom: 12px;
}
.animation-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.animation-grid .render-figure { margin: 0; max-width: 100%; }
.animation-grid .render-figure video { max-width: 100%; }

/* Clickable images get the zoom cursor */
.render-figure img, .version-img img, .obs-photos img { cursor: zoom-in; }

/* ───────────── Lightbox ───────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 32px;
  animation: lightbox-fade 140ms ease;
}
.lightbox[hidden] { display: none !important; }
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none; color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 120ms ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-download {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  color: white; text-decoration: none;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: background 120ms ease;
}
.lightbox-download:hover { background: rgba(255, 255, 255, 0.22); }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }

/* Composer */
.composer-wrap {
  /* env(safe-area-inset-bottom) keeps the composer clear of the iOS home
     indicator / Safari bottom chrome on iPad + iPhone. Fallback to 24px on
     anything that doesn't define the env var. */
  padding: 16px 24px max(24px, env(safe-area-inset-bottom));
  max-width: 760px; margin: 0 auto; width: 100%;
}
.composer {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 12px 12px 8px;
  box-shadow: var(--shadow-md);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.composer:focus-within {
  border-color: var(--text);
  box-shadow: var(--shadow-lg);
}
.attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 8px; }
.attachments:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-hover); border-radius: 999px;
  color: var(--text-secondary);
}
.chip button {
  background: transparent; border: none; color: var(--text-tertiary);
  font-size: 14px; line-height: 1; padding: 0;
}
.composer textarea {
  width: 100%; border: none; outline: none; resize: none;
  font: inherit; font-size: 15px; line-height: 1.55;
  color: var(--text); background: transparent;
  padding: 6px 8px; min-height: 24px; max-height: 240px;
}
.composer textarea::placeholder { color: var(--text-tertiary); }
.composer-actions {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 0;
}
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-secondary);
  border-radius: var(--radius-sm); transition: background 80ms ease, color 80ms ease;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn.recording { color: #b00020; }
.send-btn {
  margin-left: auto;
  width: 32px; height: 32px;
  background: var(--accent); color: white; border: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms ease, opacity 120ms ease, transform 60ms ease;
}
.send-btn:hover { background: #000; }
.send-btn:active { transform: scale(0.95); }
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.composer-hint {
  text-align: center; color: var(--text-tertiary);
  font-size: 12px; margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────────────────
   Responsive — three breakpoints:
     ≥ 1024px   desktop / laptop (default — sidebar always visible)
     768–1023px tablet  (sidebar still visible, tighter padding)
     < 768px    phone   (sidebar collapses to a hamburger drawer)
   ───────────────────────────────────────────────────────────────────── */

/* Hamburger toggle + drawer backdrop — hidden on desktop, surfaced at <768px */
.sidebar-toggle {
  position: fixed; top: 12px; left: 12px; z-index: 60;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--text); cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease;
}
body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }

/* Tablet — covers every iPad in any orientation. iPad Pro 13" landscape reports
   1366 logical points; Safari's "Request Desktop Site" can push viewport up to
   ~1500. Cutoff at 1599 to be safe — still leaves any real laptop/desktop
   (≥1600) on the desktop layout. */
@media (max-width: 1599px) {
  :root { --sidebar-w: 180px; }
  /* Sidebar — significantly narrower, denser nav, smaller logo so the right
     column gets the room it needs on iPad. */
  .sidebar { padding: 16px 10px 14px; }
  .brand { padding: 4px 6px 20px; }
  .brand-logo { max-width: 130px; }
  .brand-sub { font-size: 10px; margin-top: 8px; }
  .nav { gap: 1px; }
  .nav-item { padding: 7px 9px; font-size: 13px; gap: 9px; }
  .nav-icon { font-size: 13px; }
  .nav-section { padding: 12px 9px 4px; font-size: 10px; }
  .new-chat, .logout { padding: 8px 10px; font-size: 12px; }
  /* Main column: panel sections use full width, smaller title, tighter padding. */
  .tab-panel.active { padding: 24px 24px 64px; }
  .panel-head { max-width: 100%; margin: 0 0 24px; padding-bottom: 16px; }
  .panel-head h1 { font-size: 24px; }
  .panel-sub { font-size: 13px; }
  .panel-body { max-width: 100%; }
  /* Home / greeting — the BIG visible change. 44 → 28 is undeniable. */
  .greeting { padding: 24px 20px 12px; }
  .greeting h1 { font-size: 28px; }
  .greeting p { font-size: 14px; }
  .composer-wrap {
    max-width: 640px;
    padding: 8px 16px max(16px, env(safe-area-inset-bottom));
  }
  .composer-hint { font-size: 11px; margin-top: 6px; }
  /* Grids tighter so multi-up cards fit. */
  .render-grid, .conversation-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .skill-list { grid-template-columns: repeat(2, 1fr); }
  .animation-grid, .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Phone — sidebar becomes an overlay drawer; main column takes full width */
@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; z-index: 50;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main { padding-top: 0; }
  .tab-panel.active { padding: 60px 18px 80px; }
  .tab-home.active { padding: 0; }
  .greeting { padding: 60px 20px 20px; }
  .greeting h1 { font-size: 28px; }
  .composer-wrap { padding: 12px 14px 18px; }
  .composer-hint { font-size: 11px; }
  .thread-inner { padding: 0 16px; }
  .render-grid, .conversation-grid {
    grid-template-columns: 1fr !important;
  }
  .animation-grid, .asset-grid {
    grid-template-columns: 1fr !important;
  }
  .skill-list { grid-template-columns: 1fr !important; }
  .panel-head {
    flex-direction: column; align-items: flex-start; gap: 14px;
  }
  .panel-head h1 { font-size: 26px; }
  .scraper-actions { flex-wrap: wrap; }
  /* DB-style tables: let them scroll horizontally on phone so the URL column
     doesn't force-wrap into something illegible. */
  .db-table {
    display: block; overflow-x: auto; white-space: nowrap;
  }
  .db-cell-url a { font-size: 12px; }
  .detail-head {
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
  .detail-actions { flex-wrap: wrap; }
  .subtabs { overflow-x: auto; white-space: nowrap; }
  .subtab { flex-shrink: 0; }
}

/* Anywhere we have no hover (touch devices), keep the toggle button reachable. */
@media (hover: none) and (max-width: 767px) {
  .sidebar-toggle { display: inline-flex; }
}

/* ═══════════ WDA merge: folders, library, RFQ portal ═══════════ */
.head-actions { display: flex; gap: 8px; align-items: center; }
.subtab.active { color: var(--wda-blue); border-bottom-color: var(--wda-blue); }

/* Section label inside a panel (My Work groups) */
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary); margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border); max-width: 100%;
}
.section-label:first-child { margin-top: 0; }

/* Folder grid (My Work + Firm Library) */
.folder-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; max-width: 100%;
}
.folder-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 120ms ease, box-shadow 120ms ease, transform 60ms ease;
  text-align: left;
}
.folder-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.folder-card:active { transform: scale(0.99); }
.folder-ic {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.folder-ic svg { width: 20px; height: 20px; }
.folder-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.folder-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.folder-count { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }
.folder-card.dashed {
  border-style: dashed; background: var(--bg-subtle); color: var(--text-secondary);
  justify-content: center; font-weight: 600;
}
.folder-card.dashed:hover { border-color: var(--wda-blue); color: var(--wda-blue); }
.folder-card-wrap { position: relative; display: flex; }
.folder-card-wrap .folder-card { width: 100%; }
.folder-del {
  position: absolute; top: 8px; right: 8px; opacity: 0;
  width: 26px; height: 26px; border-radius: 6px; border: none; cursor: pointer;
  background: #fff; color: var(--text-tertiary); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}
.folder-del svg { width: 14px; height: 14px; }
.folder-card-wrap:hover .folder-del, .folder-del:focus-visible { opacity: 1; }
.folder-del:hover { background: #fdecec; color: #b00020; }
.folder-ren {
  position: absolute; top: 8px; right: 40px; opacity: 0;
  width: 26px; height: 26px; border-radius: 6px; border: none; cursor: pointer;
  background: #fff; color: var(--text-tertiary); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}
.folder-ren svg { width: 14px; height: 14px; }
.folder-card-wrap:hover .folder-ren, .folder-ren:focus-visible { opacity: 1; }
.folder-ren:hover { background: #eaf0ff; color: var(--wda-blue); }
.folder-move {
  position: absolute; top: 8px; right: 72px; opacity: 0;
  width: 26px; height: 26px; border-radius: 6px; border: none; cursor: pointer;
  background: #fff; color: var(--text-tertiary); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}
.folder-move svg { width: 14px; height: 14px; }
.folder-card-wrap:hover .folder-move, .folder-move:focus-visible { opacity: 1; }
.folder-move:hover { background: #eaf0ff; color: var(--wda-blue); }
/* Move-folder destination picker */
.fmv-modal { width: min(460px, 94vw); }
.fmv-list { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.fmv-row {
  text-align: left; padding: 11px 13px; border: 1px solid var(--border, #e6e8ec);
  border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; color: #1c2330;
  transition: border-color 120ms ease, background 120ms ease;
}
.fmv-row:hover { border-color: var(--wda-blue); background: #f2f6ff; }
.ff-ren:hover { background: #eaf0ff; color: var(--wda-blue); }

/* RFQ portal list */
.rfq-list { display: flex; flex-direction: column; gap: 12px; max-width: 100%; }
.rfq-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 120ms ease, box-shadow 120ms ease;
}
.rfq-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.rfq-card-main { flex: 1; min-width: 0; }
.rfq-card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.rfq-card-sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 3px; }
.rfq-card .rfq-num { font-variant-numeric: tabular-nums; color: var(--text-secondary); }

/* Status chips */
.chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex: none;
}
.chip-new { background: #E6EDFB; color: var(--wda-blue-deep); }
.chip-review { background: #FBEFDD; color: #B06A12; }
.chip-go { background: #E2F3EA; color: #0E7A54; }
.chip-nogo { background: #FBE7E7; color: #B00020; }
.chip-won { background: var(--wda-yellow); color: var(--wda-navy); }

/* RFQ detail: the four skill buttons */
.rfq-detail { max-width: 100%; }
.rfq-filecard {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 22px;
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.rfq-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.skill-btn {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 120ms ease, box-shadow 120ms ease;
}
.skill-btn:hover { border-color: var(--wda-blue); box-shadow: var(--shadow-md); }
.skill-btn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skill-btn-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.skill-btn-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.skill-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.skill-dot.live { background: #0E7A54; } .skill-dot.built { background: var(--wda-blue); }
.skill-dot.todo { background: #B06A12; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; color: var(--text-secondary);
  max-width: 100%; background: var(--bg-subtle); cursor: pointer;
}
.dropzone:hover { border-color: var(--wda-blue); color: var(--wda-blue); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--wda-blue); font-size: 13px; background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 16px; }

/* ═══════════ RFQ summary render ═══════════ */
.rfq-summary { max-width: 920px; }
.sum-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sum-num { font-size: 12.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.sum-title { font-size: 24px; font-weight: 700; margin: 2px 0 4px; letter-spacing: -0.01em; line-height: 1.2; }
.sum-issuer { color: var(--text-secondary); font-size: 14px; }
.sum-lede { font-size: 15px; color: var(--text); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin: 0 0 16px; line-height: 1.5; }
.sum-kv { font-size: 13.5px; color: var(--text-secondary); margin: 5px 0; }
.sum-kv b { color: var(--text); font-weight: 600; margin-right: 8px; }
.sum-section { margin-top: 24px; }
.sum-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wda-blue); font-weight: 700; margin: 0 0 10px; }
.sum-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.sum-list li { font-size: 14px; line-height: 1.45; }
.sum-list.flags li { color: #8a4b00; }
.sum-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.sum-table td { border-top: 1px solid var(--border); padding: 8px 10px; vertical-align: top; }
.sum-table td.w { text-align: right; white-space: nowrap; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.sum-table tr:first-child td { border-top: none; }
.sum-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-tertiary); font-size: 12px; font-style: italic; }
.rfq-running { display: flex; align-items: center; gap: 16px; padding: 30px 28px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 640px; margin-top: 8px; }
.sum-sub { color: var(--text-secondary); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border-strong); border-top-color: var(--wda-blue); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.sum-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }

/* ═══════════ My Work saved items + drag-to-folder ═══════════ */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 14px; max-width: var(--content-max); }
.item-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: grab; transition: border-color 120ms ease, box-shadow 120ms ease; }
.item-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.item-card.dragging { opacity: 0.45; }
.item-thumb { aspect-ratio: 16 / 10; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-ic { font-weight: 700; color: var(--text-tertiary); font-size: 15px; letter-spacing: 0.04em; }
.item-ic.doc { color: #B00020; }
.item-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 12px; color: var(--text-tertiary); }
.item-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 120ms ease; }
.item-card:hover .item-actions { opacity: 1; }
.item-act { width: 26px; height: 26px; border: none; border-radius: 6px; background: #fff; color: var(--text-secondary); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; padding: 0; }
.item-act svg { width: 14px; height: 14px; }
.item-act:hover { background: var(--bg-hover); color: var(--text); }
.item-act.item-del:hover { background: #fdecec; color: #b00020; }
.share-menu { position: fixed; z-index: 210; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; }
.share-menu-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); font-weight: 700; padding: 6px 10px 4px; }
.share-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 13.5px; cursor: pointer; }
.share-menu-item:hover { background: var(--bg-hover); }
.folder-card-wrap.drop-hot .folder-card { border-color: var(--wda-blue); box-shadow: 0 0 0 3px rgba(52,89,188,0.18); background: #f2f6ff; }
.drag-hint { color: var(--text-tertiary); font-size: 12.5px; margin-top: 10px; font-style: italic; }
.render-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mw-save-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12.5px; font-weight: 500; color: var(--wda-blue); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; transition: background 100ms ease, border-color 100ms ease; }
.mw-save-btn svg { width: 14px; height: 14px; }
.mw-save-btn:hover { background: #f2f6ff; border-color: var(--wda-blue); }
.mw-save-btn.mw-saved { color: #0E7A54; border-color: #cfe8db; background: #eef8f2; cursor: default; }
.wda-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(18px); background: var(--wda-navy); color: #fff; padding: 10px 18px; border-radius: 24px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; z-index: 200; }
.wda-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════ Email Triage ═══════════ */
.mail-demo { background: #eef3ff; border: 1px solid #d3e0fb; color: var(--wda-blue-deep); border-radius: var(--radius-md); padding: 10px 14px; font-size: 12.5px; max-width: var(--content-max); margin-bottom: 16px; }
.mail-counts { display: flex; gap: 20px; margin-bottom: 14px; font-size: 13px; color: var(--text-secondary); }
.mail-counts .mc { display: inline-flex; align-items: center; gap: 7px; }
.prio-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.prio-high { background: var(--wda-blue); } .prio-med { background: var(--wda-yellow); border: 1px solid rgba(0,0,0,0.14); } .prio-low { background: #9aa0aa; }
.mail-list { display: flex; flex-direction: column; gap: 1px; max-width: var(--content-max); background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.mail-row { display: flex; gap: 12px; padding: 14px 16px; background: #fff; cursor: pointer; align-items: flex-start; transition: background 90ms ease; }
.mail-row:hover { background: var(--bg-subtle); }
.mail-row .prio-dot { margin-top: 6px; }
.mail-main { min-width: 0; flex: 1; }
.mail-top { display: flex; align-items: center; gap: 10px; }
.mail-from { font-weight: 600; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.mail-time { margin-left: auto; font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
.mail-subj { font-size: 14px; color: var(--text); margin: 3px 0 2px; font-weight: 500; }
.mail-sum { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }

/* category + priority chips */
.cat-opp { background: #E6EDFB; color: #2A4795; }
.cat-client { background: #E2F3EA; color: #0E7A54; }
.cat-sub { background: #EFEAF7; color: #5B3E9E; }
.cat-internal { background: #ECECEC; color: #303030; }
.cat-vendor { background: #FBEFDD; color: #B06A12; }
.cat-fyi { background: #EEF1F5; color: #5B6474; }
.prio-chip-high { background: #E6EDFB; color: #2A4795; }
.prio-chip-med { background: #FFF6CF; color: #7A5B00; }
.prio-chip-low { background: #EEF1F5; color: #5B6474; }

/* detail */
.mail-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; max-width: var(--content-max); align-items: start; }
.mail-d-subj { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.mail-d-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.mail-d-body { font-size: 14px; line-height: 1.6; color: var(--text); }
.caddy-read { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; position: sticky; top: 20px; }
.cr-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wda-blue); font-weight: 700; margin-bottom: 12px; }
.cr-chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.cr-row { font-size: 13px; color: var(--text); margin: 10px 0; line-height: 1.45; }
.cr-row b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); font-weight: 700; margin-bottom: 2px; }
.cr-reply { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cr-reply-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cr-reply-h b { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); font-weight: 700; }
.cr-reply-body { font-size: 13px; line-height: 1.55; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
@media (max-width: 820px) { .mail-detail { grid-template-columns: 1fr; } .caddy-read { position: static; } }

/* ═══════════ Firm Library file browser ═══════════ */
.firm-crumbs { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.crumb { background: none; border: none; color: var(--wda-blue); font-size: 13px; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.crumb:hover { background: var(--bg-hover); }
.crumb-sep { color: var(--text-tertiary); }
.firm-actions { margin-bottom: 18px; }
.firm-files { display: flex; flex-direction: column; gap: 1px; max-width: var(--content-max); background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.firm-file { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; }
.firm-file:hover { background: var(--bg-subtle); }
.ff-ext { flex: none; width: 42px; height: 30px; border-radius: 6px; background: var(--wda-blue); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center; }
.ff-main { flex: 1; min-width: 0; }
.ff-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 1px; }
.ff-act { flex: none; width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ff-act svg { width: 16px; height: 16px; }
.ff-act:hover { background: var(--bg-hover); color: var(--text); }
.ff-del:hover { background: #fdecec; color: #b00020; }

/* Firm Library: in-dashboard file viewer */
.ff-main { cursor: pointer; border-radius: 6px; }
.ff-main:hover .ff-name { color: var(--wda-blue); }
.fv-overlay { position: fixed; inset: 0; background: rgba(20,24,33,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.fv-modal { background: #fff; border-radius: 12px; width: min(860px, 94vw); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.fv-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #e6e8ec; }
.fv-title { font-weight: 700; font-size: 15px; color: #1c2330; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-btn { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; border: 1px solid #d7dbe2; background: #f6f7f9; color: #1c2330; cursor: pointer; text-decoration: none; }
.fv-btn:hover { background: #eef0f3; }
.fv-del { color: #b4232a; border-color: #e7c9cb; background: #fceded; }
.fv-del:hover { background: #f8dede; }
.fv-close { border: none; background: none; font-size: 18px; line-height: 1; color: #6b7280; cursor: pointer; padding: 4px 8px; }
.fv-close:hover { color: #1c2330; }
.fv-body { overflow: auto; padding: 22px 26px; }
.fv-body:has(.fv-frame) { padding: 0; }
.fv-frame { width: 100%; height: 74vh; border: none; display: block; }
.fv-imgwrap { text-align: center; }
.fv-imgwrap img { max-width: 100%; height: auto; border-radius: 6px; }
.fv-pre { white-space: pre-wrap; word-break: break-word; font: 13px/1.6 ui-monospace, Menlo, monospace; color: #263043; margin: 0; }
.fv-none { color: #6b7280; padding: 30px; text-align: center; }
.fv-doc { font-size: 14px; line-height: 1.65; color: #263043; max-width: 70ch; }
.fv-doc h3 { font-size: 20px; margin: 0 0 12px; color: #14213d; }
.fv-doc h4 { font-size: 16px; margin: 18px 0 6px; color: #14213d; }
.fv-doc h5, .fv-doc h6 { font-size: 14px; margin: 14px 0 4px; color: #14213d; }
.fv-doc p { margin: 0 0 10px; }
.fv-doc ul { margin: 0 0 12px; padding-left: 20px; }
.fv-doc li { margin: 3px 0; }
.fv-doc hr { border: none; border-top: 1px solid #e6e8ec; margin: 16px 0; }
.fv-doc code { background: #f0f2f5; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md-note { font-size: 12px; color: #8a94a3; font-style: italic; background: #f6f7f9; border-left: 3px solid #d7dbe2; padding: 5px 10px; margin: 6px 0; border-radius: 0 5px 5px 0; }
.md-confirm { display: inline-block; background: var(--wda-yellow); color: #1c2330; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; }

/* Fee Proposal Builder */
.fee-list { display: flex; flex-direction: column; gap: 8px; }
.fee-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 14px 18px; border: 1px solid #e6e8ec; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.fee-card:hover { border-color: var(--wda-blue); background: #f7f9ff; }
.fee-card-name { font-weight: 600; color: #14213d; }
.fee-card-sub { font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.fee-card-fee { font-weight: 700; color: var(--wda-blue); font-variant-numeric: tabular-nums; }
.fee-form { max-width: 760px; }
.fee-upload { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; padding: 16px; border: 1.5px dashed #c7cdd8; border-radius: 10px; background: #fafbfc; }
.fee-wsname { font-size: 13px; color: #6b7280; }
.fee-guide { background: #f7f9ff; border: 1px solid #dfe6fa; border-left: 3px solid var(--wda-blue); border-radius: 8px; padding: 14px 16px 12px; margin-bottom: 16px; }
.fee-guide-title { font-size: 12.5px; font-weight: 700; color: var(--wda-blue); margin-bottom: 8px; }
.fee-guide-list { margin: 0; padding-left: 22px; }
.fee-guide-list li { font-size: 13px; color: #34405a; margin: 5px 0; line-height: 1.4; }
.fee-guide-note { font-size: 12px; color: #7a8398; font-style: italic; margin-top: 10px; }
.fee-attach { border: 1px solid #e2e6ee; border-radius: 10px; padding: 14px 16px; margin: 16px 0; background: #fafbfc; }
.fee-attach-title { font-size: 12.5px; font-weight: 700; color: #4a5160; margin-bottom: 10px; }
.fee-attach-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fee-attach-mode { font: inherit; font-size: 12.5px; padding: 5px 8px; border: 1px solid #d7dbe2; border-radius: 7px; color: #34405a; background: #fff; margin-left: auto; }
.fee-attach-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.fee-attach-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; }
.fee-attach-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.fee-attach-badge.in { color: #1f7a4d; background: #e6f4ec; }
.fee-attach-badge.store { color: #7a8398; background: #eef0f4; }
.fee-grid2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 8px 0 16px; }
@media (max-width: 640px) { .fee-grid2 { grid-template-columns: 1fr; } }
.fee-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #4a5160; }
.fee-field input, .fee-field select { width: 100%; box-sizing: border-box; height: 40px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #d7dbe2; border-radius: 8px; color: #1c2330; background: #fff; }
.fee-addl { border: 1px solid #e2e6ee; border-radius: 10px; padding: 14px 16px; margin: 16px 0; background: #fafbfc; }
.fee-addl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 8px; }
@media (max-width: 640px) { .fee-addl-grid { grid-template-columns: 1fr; } }
.fee-addl-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #34405a; cursor: pointer; }
.fee-addl-item input { width: 16px; height: 16px; flex: 0 0 auto; }
.fee-split { border-collapse: collapse; width: 100%; max-width: 520px; margin-top: 8px; font-size: 13.5px; }
.fee-split td { padding: 6px 8px; border-bottom: 1px solid #eef0f4; }
.fee-split td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-split tr.tot td { font-weight: 700; border-top: 2px solid #d7dbe2; border-bottom: none; }
.fee-addl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fee-chip { font-size: 12.5px; background: #eaf0fb; color: #34405a; border: 1px solid #dfe6fa; border-radius: 20px; padding: 4px 12px; }
.fee-desc-label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: #4a5160; }
.fee-desc-wrap { position: relative; }
.fee-desc-wrap textarea { width: 100%; font: inherit; font-weight: 400; padding: 10px 46px 10px 12px; border: 1px solid #d7dbe2; border-radius: 8px; color: #1c2330; resize: vertical; }
.fee-desc-wrap textarea:focus { outline: none; border-color: var(--wda-blue); box-shadow: 0 0 0 3px rgba(52,89,188,0.14); }
.fee-mic { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d7dbe2; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 120ms ease, box-shadow 120ms ease; }
.fee-mic:hover { background: #eef1fa; }
.fee-mic.rec { background: #fdecec; border-color: #e7b3b3; animation: fee-pulse 1.1s ease-in-out infinite; }
@keyframes fee-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(200,40,40,0.35); } 50% { box-shadow: 0 0 0 6px rgba(200,40,40,0); } }
.fee-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 14px 0 18px; }
.fee-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #4a5160; }
.fee-fields label.fee-wide { grid-column: 1 / -1; }
.fee-fields label[hidden] { display: none; }
.fee-fields input, .fee-fields select, .fee-fields textarea { font: inherit; font-weight: 400; padding: 8px 10px;
  border: 1px solid #d7dbe2; border-radius: 7px; color: #1c2330; background: #fff; }
.fee-fields input:focus, .fee-fields select:focus, .fee-fields textarea:focus { outline: none; border-color: var(--wda-blue); box-shadow: 0 0 0 3px rgba(52,89,188,0.14); }
.fee-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.fee-hint { font-size: 12px; color: #8a94a3; margin-top: 12px; }
.fee-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.fee-title { font-size: 20px; font-weight: 700; color: #14213d; }
.fee-meta { font-size: 13px; color: #6b7280; margin-top: 3px; }
.fee-headline { text-align: right; font-size: 26px; font-weight: 800; color: var(--wda-blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fee-headline span { display: block; font-size: 11px; font-weight: 600; color: #8a94a3; text-transform: uppercase; letter-spacing: .04em; }
.fee-basis { font-size: 13px; color: #4a5160; background: #f4f6fa; border-left: 3px solid var(--wda-blue); padding: 8px 12px; border-radius: 0 6px 6px 0; margin: 12px 0; }
.fee-gridwrap { overflow-x: auto; border: 1px solid #e6e8ec; border-radius: 8px; margin-top: 6px; }
.fee-grid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.fee-grid th { background: var(--wda-blue); color: #fff; font-weight: 600; padding: 7px 10px; text-align: center; white-space: nowrap; }
.fee-grid th:first-child { text-align: left; }
.fee-grid td { padding: 5px 10px; border-bottom: 1px solid #eef0f3; color: #263043; }
.fee-grid td.fee-hr, .fee-grid td.fee-amt { text-align: center; font-variant-numeric: tabular-nums; }
.fee-grid td.fee-amt { text-align: right; white-space: nowrap; }
.fee-rate-row td { background: #fff6d5; font-style: italic; text-align: center; }
.fee-rate-row td:first-child { text-align: right; font-style: normal; color: #6b7280; }
.fee-group td { background: #eef1fa; font-weight: 700; color: var(--wda-blue); }
.fee-sub td { background: #f6f7f9; font-weight: 700; }
.fee-flagrow td { background: #fffaf0; }
.fee-grand td { background: var(--wda-blue); color: #fff; font-weight: 700; font-size: 13.5px; }
.fee-flag { display: inline-block; background: #fdecc8; color: #8a5a00; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.fee-confirm { margin-top: 18px; }
.fee-confirm ul { margin: 6px 0 0; padding-left: 20px; }
.fee-confirm li { margin: 4px 0; font-size: 13px; color: #4a5160; }
.fee-letter { max-width: 70ch; font-size: 13.5px; line-height: 1.6; color: #263043; background: #fff; border: 1px solid #e6e8ec; border-radius: 8px; padding: 22px 26px; }
.fee-letter p { margin: 0 0 10px; }
.fee-signer { margin-top: 16px; white-space: pre-line; }

/* Office file preview (Word / Excel rendered server-side to HTML) */
.fv-office { max-width: none; }
.fv-docx { max-width: 80ch; }
.fv-docx img { max-width: 100%; height: auto; }
.fv-docx table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.fv-docx td, .fv-docx th { border: 1px solid #d7dbe2; padding: 5px 9px; font-size: 13px; vertical-align: top; }
.fv-docx th { background: #f2f4f7; text-align: left; }
.fp-sheet { font-size: 14px; font-weight: 700; color: var(--wda-blue); margin: 20px 0 8px; }
.fp-sheet:first-child { margin-top: 0; }
.fp-xlwrap { overflow-x: auto; border: 1px solid #e6e8ec; border-radius: 6px; }
.fp-xl { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-xl td { border: 1px solid #e6e8ec; padding: 4px 9px; color: #263043; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.fp-xl tr:nth-child(even) td { background: #fafbfc; }
.fp-more { font-size: 12px; color: #8a94a3; margin: 6px 2px 0; }
.fp-empty { color: #8a94a3; font-style: italic; }

/* Firm Library: drag-and-drop move */
.firm-file[draggable="true"] { cursor: grab; }
.firm-file.dragging { opacity: .45; }
.ff-grip { color: #c2c8d2; font-size: 15px; line-height: 1; cursor: grab; user-select: none; }
.folder-card.drag-over, .crumb.drag-over { outline: 2px solid var(--wda-blue); outline-offset: 2px; background: #eef2fb; border-radius: 8px; }

/* ── Go / No-Go (verdict-led Fit Scorecard) ──────────────────────────── */
#gonogoBody { max-width: 860px; }
.gng-startcard { display: flex; align-items: center; gap: 15px; background: #f5f7fc; border: 1px solid #e5e8ee; border-radius: 13px; padding: 16px 20px; }
.gng-diamond { color: var(--wda-blue); font-size: 20px; flex: none; }
.gng-startmain { flex: 1; }
.gng-starttitle { font-weight: 700; font-size: 15px; }
.gng-startsub { color: #6b7280; font-size: 13px; margin-top: 2px; }
.gng-list { display: flex; flex-direction: column; gap: 9px; }
.gng-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #e5e8ee; border-radius: 11px; padding: 12px 15px; cursor: pointer; transition: border-color .15s; }
.gng-row:hover { border-color: var(--wda-blue); }
.gng-fit { flex: none; width: 44px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.gng-fit.go { background: #e6f4ec; color: #1b7a3d; } .gng-fit.cond { background: #fff4d6; color: #8a6100; } .gng-fit.no { background: #fbe7e6; color: #b3261e; }
.gng-row-main { flex: 1; } .gng-row-title { font-weight: 650; display: block; } .gng-row-sub { color: #6b7280; font-size: 12.5px; }
.gng-row-open { color: var(--wda-blue); font-weight: 600; font-size: 13px; }
.gng-analyzing { text-align: center; padding: 70px 20px; color: #6b7280; }
.gng-analyzing h3 { color: #20242b; margin: 16px 0 6px; }
.gng-spin { width: 34px; height: 34px; border: 3px solid #e5e8ee; border-top-color: var(--wda-blue); border-radius: 50%; margin: 0 auto; animation: gng-rot .8s linear infinite; }
@keyframes gng-rot { to { transform: rotate(360deg); } }
.gng-back { background: none; border: none; color: var(--wda-blue); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0 0 10px; }
.gng-finalbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e5e8ee; border-radius: 13px; padding: 13px 18px; box-shadow: 0 6px 20px rgba(20,24,33,.07); }
.gng-fscore { font-size: 28px; font-weight: 800; color: #20386e; line-height: 1; font-variant-numeric: tabular-nums; }
.gng-fscore small { font-size: 14px; color: #6b7280; }
.gng-fpill { font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-top: 5px; }
.gng-fpill.go { background: #e6f4ec; color: #1b7a3d; } .gng-fpill.cond { background: #fff4d6; color: #8a6100; } .gng-fpill.no { background: #fbe7e6; color: #b3261e; }
.gng-fmath { flex: 1; font-size: 12.5px; color: #6b7280; } .gng-fmath b { color: #20242b; }
.gng-pdf { flex: none; }
.gng-verdict { background: linear-gradient(180deg,#f5f7fc,#fff); border: 1px solid #e5e8ee; border-left: 5px solid #1b7a3d; border-radius: 14px; padding: 19px 22px; margin-top: 16px; }
.gng-vtag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #1b7a3d; }
.gng-vtop { display: flex; align-items: baseline; gap: 15px; margin: 9px 0 6px; }
.gng-vnum { font-size: 38px; font-weight: 800; color: #20386e; line-height: 1; font-variant-numeric: tabular-nums; } .gng-vnum small { font-size: 16px; color: #6b7280; }
.gng-vbadge { font-size: 15px; font-weight: 800; color: #1b7a3d; }
.gng-vhead { font-size: 16px; font-weight: 600; line-height: 1.45; }
.gng-vsec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--wda-blue); margin: 17px 0 8px; }
.gng-win { display: flex; gap: 11px; background: #fff; border: 1px solid #e5e8ee; border-radius: 9px; padding: 9px 12px; margin-bottom: 7px; }
.gng-win-nm { font-weight: 700; font-size: 13px; flex: none; width: 40%; }
.gng-win-wy { font-size: 12.5px; color: #6b7280; }
.gng-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; }
.gng-cols h4 { font-size: 12px; margin: 0 0 6px; }
.gng-cols ul { margin: 0; padding: 0; list-style: none; }
.gng-cols li { font-size: 12.5px; margin: 6px 0; padding-left: 20px; position: relative; }
.gng-aligns li:before { content: "\2713"; position: absolute; left: 0; color: #1b7a3d; font-weight: 800; }
.gng-risks li:before { content: "\26A0"; position: absolute; left: 0; color: #8a6100; font-size: 11px; }
.gng-reco { background: #fff; border: 1px solid #e5e8ee; border-radius: 10px; padding: 12px 14px; margin-top: 16px; font-size: 13.5px; }
.gng-reco b { color: #1b7a3d; }
.gng-ro { font-size: 11px; color: #6b7280; margin-top: 12px; font-style: italic; }
.gng-gates { display: flex; flex-wrap: wrap; gap: 7px; }
.gng-gchip { font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 20px; border: 1px solid #e5e8ee; }
.gng-gchip b { margin-left: 5px; } .gng-st-PASS { color: #1b7a3d; } .gng-st-CONFIRM { color: #8a6100; } .gng-st-NA { color: #6b7280; } .gng-st-FAIL { color: #b3261e; }
.gng-qcard { background: #fff; border: 1px solid #e5e8ee; border-radius: 13px; padding: 15px 17px; margin-bottom: 12px; }
.gng-qcard.answered { border-color: rgba(52,89,188,.5); }
.gng-qtop { display: flex; justify-content: space-between; align-items: center; }
.gng-qname { font-size: 12px; color: #6b7280; font-weight: 600; }
.gng-tick { color: #2f4a9e; font-size: 12px; font-weight: 700; opacity: 0; } .gng-qcard.answered .gng-tick { opacity: 1; }
.gng-qtext { font-size: 14.5px; margin: 8px 0 12px; font-weight: 600; }
.gng-asks { color: var(--wda-blue); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 3px; }
.gng-opts { display: flex; flex-direction: column; gap: 7px; }
.gng-opt { display: flex; gap: 11px; align-items: flex-start; text-align: left; background: #f5f7fc; border: 1.5px solid #e5e8ee; border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 13.5px; color: #20242b; transition: all .15s; }
.gng-opt:hover { border-color: var(--wda-blue); } .gng-opt.sel { border-color: var(--wda-blue); background: rgba(52,89,188,.09); }
.gng-band { flex: none; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 7px; margin-top: 1px; }
.gng-band.n { background: #fbe7e6; color: #b3261e; } .gng-band.m { background: #fff4d6; color: #8a6100; } .gng-band.p { background: #e6f4ec; color: #1b7a3d; }
@media (max-width: 640px) { .gng-cols { grid-template-columns: 1fr; } .gng-win-nm { width: 100%; } }

/* ── Caddy dock (context-aware assistant) ────────────────────────────── */
.caddy-fab { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 1px solid #e2e6ee; box-shadow: 0 6px 22px rgba(20,24,33,.18); cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 11px; transition: transform .15s, box-shadow .15s; }
.caddy-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,24,33,.24); }
.caddy-fab svg { width: 100%; height: 100%; display: block; }
.caddy-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.caddy-dock { position: fixed; right: 22px; bottom: 22px; width: 384px; max-width: calc(100vw - 44px);
  height: min(660px, 82vh); background: #fff; border: 1px solid #e2e6ee; border-radius: 16px;
  box-shadow: 0 14px 46px rgba(20,24,33,.26); z-index: 61; display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; }
.caddy-dock.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cd-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #eef0f4; }
.cd-mark { width: 30px; height: 30px; flex: none; background: #fff; border: 1px solid #eef0f4; border-radius: 7px; padding: 4px; }
.cd-mark svg { width: 100%; height: 100%; display: block; }
.cd-title { flex: 1; font-weight: 700; font-size: 14.5px; line-height: 1.1; }
.cd-title span { display: block; font-weight: 400; font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.cd-close { border: none; background: none; color: #9aa0aa; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.cd-close:hover { background: #f2f4f7; color: #20242b; }
.cd-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cd-empty { color: #6b7280; font-size: 13px; line-height: 1.5; background: #f5f7fc; border: 1px solid #eef0f4; border-radius: 11px; padding: 12px 14px; }
.cd-msg { max-width: 88%; font-size: 13.5px; line-height: 1.5; padding: 9px 12px; border-radius: 13px; white-space: pre-wrap; word-wrap: break-word; }
.cd-msg.user { align-self: flex-end; background: var(--wda-blue); color: #fff; border-bottom-right-radius: 5px; }
.cd-msg.caddy { align-self: flex-start; background: #f2f4f7; color: #20242b; border-bottom-left-radius: 5px; }
.cd-msg.caddy.think { color: #9aa0aa; font-style: italic; }
.cd-input { display: flex; align-items: flex-end; gap: 8px; padding: 11px 12px; border-top: 1px solid #eef0f4; }
.cd-input textarea { flex: 1; resize: none; border: 1px solid #e2e6ee; border-radius: 11px; padding: 9px 12px;
  font: inherit; font-size: 13.5px; line-height: 1.4; max-height: 120px; outline: none; color: #20242b; background: #fff; }
.cd-input textarea:focus { border-color: var(--wda-blue); }
.cd-send { flex: none; width: 36px; height: 36px; border-radius: 9px; border: none; background: var(--wda-blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cd-send:disabled { opacity: .45; cursor: not-allowed; }
.cd-send svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .caddy-dock { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: 76vh; } }

/* ── RFQ detail tabs (Summary / Fit Scorecard / Response Draft / Scorecard) ── */
.rfq-detail { max-width: 880px; }
.rfq-tabs { display: flex; gap: 9px; margin: 16px 0 22px; flex-wrap: wrap; }
.rfq-tab { background: #fff; border: 1px solid var(--wda-blue); color: var(--wda-blue); padding: 9px 17px; border-radius: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.rfq-tab:hover { background: #eef2fb; }
.rfq-tab.active { background: var(--wda-blue); color: #fff; }
.rfq-soon { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8a92a3; background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 8px; }
.rfq-tab.active .rfq-soon { color: #fff; background: rgba(255,255,255,.22); }
.sub-actions { margin-bottom: 16px; }

/* ── RFQ Response Draft view ─────────────────────────────────────────── */
.rd-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid #e5e8ee; border-radius: 12px; padding: 11px 16px; box-shadow: 0 6px 20px rgba(20,24,33,.06); }
.rd-stats { font-size: 13px; color: #6b7280; } .rd-stats b { color: #20242b; font-variant-numeric: tabular-nums; }
.rd-actions { display: flex; gap: 8px; flex: none; }
.rd-note { font-size: 12.5px; color: #6b7280; margin: 12px 0 4px; }
.rd-doc { background: #fff; border: 1px solid #e5e8ee; border-radius: 12px; padding: 8px 26px 22px; margin-top: 12px; max-width: 780px; }
.rd-sec { margin-top: 18px; }
.rd-sec h3 { font-size: 15px; color: #20386e; border-bottom: 1px solid #eef0f4; padding-bottom: 5px; margin: 0 0 8px; }
.rd-sec p { font-size: 13.5px; line-height: 1.6; margin: 0 0 9px; } .rd-sec ul { margin: 0 0 9px; padding-left: 20px; } .rd-sec li { font-size: 13.5px; margin: 3px 0; }
.rd-sec h4, .rd-sec h5 { color: #20386e; font-size: 13.5px; margin: 12px 0 4px; }
.ni { background: #ffdb30; color: #4a3b00; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.cf { background: #e9edfb; color: #2f4a9e; font-weight: 700; font-size: 10.5px; padding: 1px 5px; border-radius: 5px; }
.rd-needs { margin-top: 20px; max-width: 780px; background: #fff9e6; border: 1px solid #f0dfa0; border-radius: 12px; padding: 14px 18px; }
.rd-needs h3 { margin: 0 0 6px; font-size: 15px; color: #8a6100; }
.rd-needs ol { margin: 0; padding-left: 20px; } .rd-needs li { font-size: 13px; margin: 5px 0; }

/* ── RFQ Response Scorecard view ─────────────────────────────────────── */
.rs-hero { display: flex; align-items: baseline; gap: 12px; }
.rs-big { font-size: 24px; font-weight: 800; color: #20386e; line-height: 1; font-variant-numeric: tabular-nums; }
.rs-cap { font-size: 13px; color: #6b7280; } .rs-cap b { color: #20386e; }
.rs-track { height: 10px; background: #dbe3f5; border-radius: 7px; overflow: hidden; margin: 12px 0; max-width: 780px; }
.rs-track > span { display: block; height: 100%; background: var(--wda-blue); border-radius: 7px; }
.rs-summ { border-collapse: collapse; width: 100%; max-width: 780px; margin-top: 4px; border: 1px solid #e5e8ee; border-radius: 10px; overflow: hidden; }
.rs-summ th { background: var(--wda-blue); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; text-align: left; }
.rs-summ th:nth-child(3), .rs-summ th:nth-child(4) { text-align: right; }
.rs-summ td { border-bottom: 1px solid #eef0f4; padding: 8px 10px; font-size: 13px; }
.rs-summ td.lt { font-weight: 800; color: #20386e; width: 26px; } .rs-summ td.cn { font-weight: 600; }
.rs-summ td.n { text-align: right; width: 56px; font-variant-numeric: tabular-nums; } .rs-summ td.sc { font-weight: 800; color: var(--wda-blue); }
.rs-summ td.rt { font-weight: 700; width: 130px; }
.rs-summ td.green, .rs-pill.green { color: #1b7a3d; } .rs-summ td.blue { color: var(--wda-blue); } .rs-summ td.amber, .rs-pill.amber { color: #8a6100; } .rs-summ td.red, .rs-pill.red { color: #b3261e; } .rs-summ td.gray, .rs-pill.gray { color: #6b7280; }
.rs-sec { font-size: 15px; color: #20386e; font-weight: 700; margin: 22px 0 8px; }
.rs-assess { font-size: 13.5px; line-height: 1.6; background: #eef2fb; border-left: 4px solid var(--wda-blue); border-radius: 8px; padding: 12px 15px; max-width: 780px; }
.rs-tips { margin: 0; padding: 0; list-style: none; max-width: 780px; }
.rs-tips li { font-size: 13px; background: #fff9e6; border: 1px solid #f0dfa0; border-radius: 8px; padding: 10px 13px; margin-bottom: 8px; }
.rs-imp { color: #1b7a3d; font-weight: 700; margin-left: 6px; }
.rs-cd { margin-top: 16px; max-width: 820px; border: 1px solid #e5e8ee; border-radius: 10px; overflow: hidden; }
.rs-cdbar { display: flex; justify-content: space-between; background: #20386e; color: #fff; font-weight: 700; font-size: 11px; padding: 6px 12px; }
.rs-cdbar span:first-child { text-transform: uppercase; letter-spacing: .06em; color: var(--wda-yellow); }
.rs-cdtitle { background: #303030; color: #fff; font-weight: 700; font-size: 14px; padding: 8px 12px; }
.rs-cddesc { font-size: 12px; color: #6b7280; font-style: italic; padding: 9px 12px 2px; }
.rs-lft { border-collapse: collapse; width: 100%; }
.rs-lft th { background: #5a6b8c; color: #fff; font-size: 10.5px; text-transform: uppercase; padding: 5px 10px; text-align: left; }
.rs-lft td { border-bottom: 1px solid #eef0f4; padding: 7px 10px; font-size: 12px; vertical-align: top; } .rs-lft td.lf { font-weight: 700; width: 24%; } .rs-lft td.as { color: #444a55; }
.rs-pill { font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 11px; white-space: nowrap; }
.rs-pill.green { background: #e6f4ec; } .rs-pill.amber { background: #fff4d6; } .rs-pill.red { background: #fbe7e6; } .rs-pill.gray { background: #eef1f5; }
.rs-sg { font-size: 12.5px; padding: 7px 12px; } .rs-sg b { color: #1b7a3d; } .rs-sg.gap b { color: #b3261e; }
.rs-recs { font-size: 12.5px; padding: 2px 12px 11px; } .rs-recs b { color: var(--wda-blue); } .rs-recs ul { margin: 4px 0 0; padding-left: 18px; } .rs-recs li { margin: 3px 0; }

/* ── Code Check (ADA) ─────────────────────────────────────────────────────── */
.cc-intro { max-width: 68ch; margin-bottom: 22px; }
.cc-intro p { margin: 0 0 10px; }
.cc-note { color: var(--muted, #6b7280); font-size: 14px; }

.cc-form { max-width: 760px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.cc-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
            color: var(--muted, #6b7280); margin-top: 8px; }
.cc-input, .cc-text { width: 100%; padding: 10px 12px; border: 1px solid var(--line, #d7dce6);
            border-radius: 6px; background: var(--card, #fff); color: inherit;
            font: inherit; font-size: 15px; }
.cc-text { resize: vertical; line-height: 1.5; font-family: inherit; }
.cc-input:focus, .cc-text:focus { outline: 2px solid #3459BC; outline-offset: 1px; border-color: #3459BC; }
.cc-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cc-hint { color: var(--muted, #6b7280); font-size: 13px; }

.cc-h { font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
        color: var(--muted, #6b7280); margin: 26px 0 10px; }

.cc-list { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.cc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px;
          width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line, #d7dce6);
          border-radius: 6px; background: var(--card, #fff); color: inherit; cursor: pointer; }
.cc-row:hover { border-color: #3459BC; }
.cc-row-title { font-weight: 600; }
.cc-row-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cc-ts { color: var(--muted, #6b7280); font-size: 12px; font-variant-numeric: tabular-nums; }

.cc-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
           text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.cc-chip.cc-fail { color: #9c2f24; background: #fbe8e5; }
.cc-chip.cc-pass { color: #15603f; background: #e4f2ea; }
.cc-chip.cc-unk  { color: #45536a; background: #e8ecf3; }

.cc-resulthead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 8px; }
.cc-resulthead h2 { margin: 0; font-size: 20px; }
.cc-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-summary { max-width: 72ch; color: var(--muted, #6b7280); margin: 6px 0 20px; }

.cc-rows { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.cc-item { border: 1px solid var(--line, #d7dce6); border-left: 4px solid var(--line, #d7dce6);
           border-radius: 6px; padding: 14px 16px; background: var(--card, #fff); }
.cc-item.cc-fail { border-left-color: #b8372c; }
.cc-item.cc-pass { border-left-color: #1c7a52; }
.cc-item.cc-unk  { border-left-color: #8b97a8; }
.cc-item-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-sec { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 14px; }
.cc-title { font-weight: 600; }
.cc-page { margin-left: auto; color: var(--muted, #6b7280); font-size: 12px;
           font-variant-numeric: tabular-nums; }
.cc-finding { margin: 10px 0 4px; }
.cc-req { margin: 0; color: var(--muted, #6b7280); font-size: 14px; }
.cc-quote { margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid #FFDB30;
            background: rgba(255, 219, 48, .07); font-size: 14px; font-style: italic; }
.cc-marks { display: flex; gap: 6px; margin-top: 12px; }
.cc-mark { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 4px;
           border: 1px solid var(--line, #d7dce6); background: transparent; color: inherit; cursor: pointer; }
.cc-mark:hover { border-color: #3459BC; }
.cc-mark.on { background: #3459BC; border-color: #3459BC; color: #fff; }

.cc-block { max-width: 72ch; margin-top: 22px; }
.cc-block ul, .cc-details ul { margin: 0; padding-left: 20px; }
.cc-block li, .cc-details li { margin: 5px 0; }
.cc-details { max-width: 900px; margin-top: 18px; border: 1px solid var(--line, #d7dce6);
              border-radius: 6px; padding: 10px 14px; background: var(--card, #fff); }
.cc-details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cc-details[open] summary { margin-bottom: 8px; }
.cc-details code { font-size: 12px; }

.cc-missed { max-width: 760px; margin-top: 30px; padding: 18px; border: 1px dashed var(--line, #d7dce6);
             border-radius: 6px; display: flex; flex-direction: column; gap: 8px; }
.cc-missed .cc-h { margin-top: 0; }
.cc-missed .primary-btn { align-self: flex-start; margin-top: 4px; }
.cc-disclaim { max-width: 72ch; margin-top: 26px; color: var(--muted, #6b7280); font-size: 13px; }

/* ── Specifications ───────────────────────────────────────────────────────── */
.sp-intro { max-width: 70ch; margin-bottom: 22px; }
.sp-cols { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(280px, 1fr);
           gap: 34px; align-items: start; }
@media (max-width: 900px) { .sp-cols { grid-template-columns: 1fr; } }
.sp-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        color: var(--muted, #6b7280); margin: 22px 0 10px; }
.sp-h:first-child { margin-top: 0; }
.sp-dim { color: var(--muted, #6b7280); font-size: 13px; font-weight: 400; }

.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-row, .sp-file { display: flex; justify-content: space-between; align-items: center;
        gap: 14px; width: 100%; text-align: left; padding: 11px 14px;
        border: 1px solid var(--line, #d7dce6); border-radius: 6px;
        background: var(--card, #fff); color: inherit; cursor: pointer;
        text-decoration: none; }
.sp-row:hover, .sp-file:hover { border-color: #3459BC; }
.sp-master { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px;
        border: 1px solid var(--line, #d7dce6); border-radius: 6px; background: var(--card, #fff); }
.sp-num { font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 700;
        white-space: nowrap; }

.sp-form { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
/* the 460px cap here used to squeeze .sp-grid down to a single column: two 230px
   tracks plus the gap need 474px, so nothing ever fit side by side. */
.sp-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px;
        font-weight: 600; }
.sp-form input, .sp-form select { padding: 9px 11px; border: 1px solid var(--line, #d7dce6);
        border-radius: 6px; background: var(--card, #fff); color: inherit; font: inherit;
        font-size: 15px; font-weight: 400; }
.sp-form input:focus, .sp-form select:focus { outline: 2px solid #3459BC; outline-offset: 1px; }
.sp-why { font-weight: 400; font-size: 12px; color: var(--muted, #6b7280); }
.sp-form .primary-btn { align-self: flex-start; margin-top: 4px; }

.sp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-head h2 { margin: 0; font-size: 20px; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 26px; margin: 0 0 24px;
        padding: 14px 18px; border: 1px solid var(--line, #d7dce6); border-radius: 6px;
        background: var(--card, #fff); }
.sp-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .06em;
        text-transform: uppercase; color: var(--muted, #6b7280); }
.sp-meta dd { margin: 3px 0 0; font-weight: 600; }

.sp-picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
        gap: 6px; max-width: 1000px; }
.sp-pick { display: flex; align-items: baseline; gap: 10px; padding: 10px 13px;
        border: 1px solid var(--line, #d7dce6); border-radius: 6px;
        background: var(--card, #fff); cursor: pointer; }
.sp-pick:hover { border-color: #3459BC; }
.sp-pick input { margin: 0; }

.sp-actions { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.sp-actions a.primary-btn { text-decoration: none; display: inline-block; }

.sp-flags { max-width: 820px; border: 1px solid #f0d58a; border-left: 4px solid #FFDB30;
        border-radius: 6px; padding: 16px 20px; background: rgba(255, 219, 48, .06); }
.sp-flag { padding: 12px 0; border-top: 1px solid var(--line, #d7dce6); }
.sp-flag:first-of-type { border-top: none; }
.sp-flag-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sp-flag p { margin: 6px 0 0; max-width: 72ch; }
.sp-chip { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
        padding: 2px 8px; border-radius: 3px; color: #8a6400; background: #fdf3cf; }
.sp-ok { max-width: 72ch; padding: 12px 16px; border: 1px solid #bfe3d0;
        border-left: 4px solid #1c7a52; border-radius: 6px; background: rgba(28,122,82,.05); }

/* grouped, filterable section picker */
.sp-pickhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-search { flex: 1; min-width: 220px; max-width: 420px; padding: 8px 12px;
        border: 1px solid var(--line, #d7dce6); border-radius: 6px;
        background: var(--card, #fff); color: inherit; font: inherit; font-size: 14px; }
.sp-search:focus { outline: 2px solid #3459BC; outline-offset: 1px; }
.sp-picklist { display: block; max-width: 900px; }
.sp-divgroup { margin-bottom: 18px; }
.sp-divhead { display: flex; align-items: center; gap: 12px; padding: 6px 2px 8px;
        border-bottom: 1px solid var(--line, #d7dce6); margin-bottom: 8px; }
.sp-divname { font-weight: 700; font-size: 13px; }
.sp-divhead .sp-dim { margin-left: auto; font-variant-numeric: tabular-nums; }
.sp-divall { font-size: 11px; padding: 3px 9px; }
.sp-divgroup .sp-pick { margin-bottom: 5px; }
.sp-sticky { position: sticky; bottom: 0; background: var(--bg, #fff); padding: 14px 0;
        border-top: 1px solid var(--line, #d7dce6); }
.sp-count { font-weight: 600; margin-right: auto; }

/* home laid out as the two steps the job actually has */
.sp-step { display: flex; gap: 18px; align-items: flex-start; max-width: 940px;
        padding: 0 0 30px; }
.sp-stepnum { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #3459BC;
        color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.sp-stepbody { flex: 1; min-width: 0; }
.sp-steph { font-size: 17px; font-weight: 700; margin: 4px 0 4px; }
.sp-step .sp-dim { margin: 0 0 14px; max-width: 70ch; display: block; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 14px; max-width: 760px; }
.sp-form .sp-grid + .primary-btn { margin-top: 16px; }
.sp-empty { color: var(--muted, #6b7280); padding: 14px; border: 1px dashed var(--line, #d7dce6);
        border-radius: 6px; margin: 0; }
.sp-go { color: #3459BC; font-weight: 600; margin-left: 10px; }
.sp-masters { max-width: 940px; margin-top: 8px; border-top: 1px solid var(--line, #d7dce6);
        padding-top: 16px; }
.sp-masters summary { cursor: pointer; font-weight: 700; font-size: 13px;
        letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7280); }
.sp-masters .sp-list { margin-top: 12px; max-width: 560px; }

/* Section titles come off the filenames, which are inconsistent: "FIELD ENGINEERING"
   shouts, "Cutting and Patching" does not. Normalise in the DISPLAY rather than
   rewriting the data, so the files keep whatever Ted named them. Uppercase matches the
   sections' own headers ("SECTION 07 21 00 - 1 BUILDING INSULATION"). */
/* Target the title explicitly. It used to be styled as span:last-child, which broke
   the moment a tag span was appended after it: the tag inherited the uppercase
   treatment and the title lost it. */
.sp-master .sp-mtitle,
.sp-pick .sp-mtitle { text-transform: uppercase; letter-spacing: .01em; flex: 1 1 auto; }

/* Variant and client-standard markers. Two sections can share a CSI number on purpose,
   so the row has to say which one it is. */
.sp-tag {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap; text-transform: none;
}
.sp-tag-client { color: #2A3B70; background: #E6EBF8; }
.sp-tag-var    { color: #7A4A12; background: #F6EDE1; }

/* The reference list repeats the picker's grouping, but it is read, not operated, so
   its division headers sit quieter than the ones carrying a Toggle button. */
.sp-divhead-ref { border-bottom-color: #e6eaf2; padding-top: 2px; }
.sp-masters .sp-divgroup { margin-bottom: 14px; }
.sp-warn { color: #b8372c; font-weight: 600; }

.sp-expired { max-width: 54ch; padding: 20px 24px; border: 1px solid var(--line, #d7dce6);
        border-left: 4px solid #3459BC; border-radius: 6px; background: var(--card, #fff); }
.sp-expired p { margin: 8px 0 16px; }

/* ---- review findings -------------------------------------------------------
   Severity reads from a left rule and the chip colour, not a shouty background.
   Six findings across two sections has to stay scannable. Matches the rest of the
   dashboard: light only, every var() carries its fallback. */
.sp-deep { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
        color: var(--muted, #6b7280); cursor: pointer; margin-right: 4px; }
.sp-sev { max-width: 820px; margin: 18px 0; padding: 2px 0 2px 16px;
        border-left: 4px solid var(--line, #d7dce6); }
.sp-sev .sp-h { margin: 0 0 2px; }
.sp-sev > .sp-dim { display: block; margin: 0 0 6px; max-width: 72ch; }
.sp-sev-decide { border-left-color: #b8372c; }
.sp-sev-look   { border-left-color: #FFDB30; }
.sp-chip-decide { color: #8d2a21; background: #fbe8e5; }
.sp-chip-look   { color: #8a6400; background: #fdf3cf; }
.sp-chip-note   { color: #4a5160; background: #eceff4; }
.sp-quote { margin: 7px 0 2px !important; padding-left: 11px;
        border-left: 2px solid var(--line, #d7dce6); font-style: italic;
        color: var(--muted, #6b7280); font-size: 13px; }

/* A refused issue and a half-stamped issue are both "stop and decide", not "something
   broke" — so they read as a notice, not as a red error state. */
.sp-conflict {
  border: 1px solid #E0C9A6; border-left: 3px solid #A8541B;
  background: #FCF7F1; border-radius: 6px; padding: 14px 16px; margin-bottom: 18px;
}
.sp-conflict .sp-h { margin: 0 0 6px; }
.sp-conflict p { margin: 6px 0 0; }

/* Master list: a number is printed once, its versions listed beneath it. */
.sp-master-multi { align-items: flex-start; }
.sp-choices { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sp-choicehint { font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
                 color: var(--sp-dim, #8a9099); }
.sp-choice { display: flex; align-items: baseline; gap: 8px; }
.sp-qual { font-size: 11px; letter-spacing: .05em; color: var(--sp-dim, #8a9099);
           white-space: nowrap; }

/* Client job number: hidden until the project says it needs one. */
.sp-check { display: flex; align-items: center; gap: 9px; margin: 14px 0 4px;
            font-weight: 500; cursor: pointer; }
.sp-check input { width: auto; margin: 0; cursor: pointer; }
.sp-clientno { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
               gap: 14px; margin: 4px 0 16px; padding: 14px 16px;
               border-left: 2px solid var(--sp-rule, #d8dce1);
               background: var(--sp-sunken, rgba(127,137,150,.06)); border-radius: 6px; }
.sp-clientno[hidden] { display: none; }

/* Specificity: `.sp-form label` is 0,1,1 and stacks its contents in a column, so a
   bare `.sp-check` (0,1,0) never applied and the checkbox rendered above its text.
   These selectors have to outrank it, not merely come later in the file. */
.sp-form label.sp-check { flex-direction: row; align-items: center; gap: 9px;
        margin: 14px 0 4px; font-weight: 500; cursor: pointer; align-self: flex-start; }
.sp-form label.sp-check input { width: auto; flex: 0 0 auto; margin: 0; padding: 0;
        cursor: pointer; }
.sp-form .sp-clientno { display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px;
        margin: 2px 0 10px; padding: 14px 16px;
        border-left: 2px solid var(--line, #d7dce6);
        background: var(--sunken, rgba(127,137,150,.06)); border-radius: 6px; }
.sp-form .sp-clientno[hidden] { display: none; }

/* Project rows with a delete button beside them. */
.sp-rowwrap { display: flex; gap: 6px; align-items: stretch; }
.sp-rowwrap .sp-row { flex: 1; min-width: 0; width: auto; }
.sp-del { flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line, #d7dce6);
        border-radius: 6px; background: var(--card, #fff); color: var(--muted, #6b7280);
        font: inherit; font-size: 13px; cursor: pointer; }
.sp-del:hover, .sp-del:focus-visible { color: #b42318; border-color: #b42318; }
.sp-del:disabled { opacity: .6; cursor: default; }
.sp-dl { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--line, #d7dce6); border-radius: 6px; background: var(--card, #fff);
  color: #3459BC; font-size: 13px; text-decoration: none; white-space: nowrap; }
.sp-dl:hover, .sp-dl:focus-visible { border-color: #3459BC; }
.sp-issued { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin: 4px 0 8px; padding: 12px 14px;
  border: 1px solid var(--line, #d7dce6); border-radius: 8px; }
.sp-issued-files { margin: 0 0 20px; }
.sp-issued-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-redate { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line, #d7dce6);
  border-radius: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sp-redate[hidden] { display: none; }
.sp-redate p { flex-basis: 100%; margin: 0; font-size: 13px; }
.sp-redate label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sp-redate #spRedateMsg { flex-basis: 100%; }
.sp-redone { margin: 0 0 12px; padding: 12px 14px; border-radius: 8px;
  background: #eef6ee; border: 1px solid #b9d8b9; font-size: 13px; }
.sp-issued-files summary { cursor: pointer; color: #3459BC; font-size: 13px; padding: 4px 0; }
.sp-issued-files .sp-list { margin-top: 8px; }
.sp-form input[hidden] { display: none; }
