/* ─────────────────────────────────────────────────────────────
   M2 Shell — shared theme + chrome for SEO CRM, Page Log, Work Log.
   One file, served from /seo-crm/assets/shell.css.
   ───────────────────────────────────────────────────────────── */

:root{
  --bg: #f3f4f6;
  --panel: #ffffff;
  --surface: #f9fafb;
  --line: #e5e7eb;
  --line-light: #f3f4f6;

  --text: #1f2937;
  --muted: #6b7280;

  --accent: #58b46a;
  --accent-hover: #4aa35c;
  --accent-soft: rgba(88,180,106,0.12);
  --accent-ring: rgba(88,180,106,0.30);

  --danger: #dc2626;
  --danger-soft: rgba(220,38,38,0.10);
  --good: #16a34a;
  --good-soft: rgba(22,163,74,0.10);
  --link: #2563eb;

  --radius: 12px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(17,24,39,0.04);
  --shadow: 0 1px 3px rgba(17,24,39,0.06), 0 1px 2px rgba(17,24,39,0.04);
  --shadow-md: 0 4px 14px rgba(17,24,39,0.08), 0 2px 4px rgba(17,24,39,0.04);
  --shadow-lg: 0 16px 40px rgba(17,24,39,0.18), 0 4px 12px rgba(17,24,39,0.10);

  --transition: 0.15s ease;

  /* Legacy aliases so the dash + work-logs inline styles map cleanly. */
  --accent-dark: var(--accent-hover);
  --mm-green: var(--accent);
  --mm-green-dark: var(--accent-hover);
  --mm-text: var(--text);
  --mm-muted: var(--muted);
  --mm-border: var(--line);
  --mm-bg: var(--bg);
  --mm-white: var(--panel);
  --linkBlue: var(--link);
}

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

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-hover); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); text-decoration: underline; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ── Shared shell header + nav (all three apps) ── */
.shell-header{
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 40;
}
.shell-header-inner{
  max-width: 1800px;
  width: 95%;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.shell-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.shell-brand-logo{
  height: 40px;
  width: auto;
  display: block;
}
.shell-brand-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shell-title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.shell-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.shell-nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.shell-nav-link{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.shell-nav-link:hover{
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  text-decoration: none;
}
.shell-nav-link.active{
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(88,180,106,0.30);
}
.shell-nav-link.external::after{
  content: "↗";
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.55;
}

.shell-nav-divider{
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 6px;
}
.shell-nav-user{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.shell-logout{
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-weight: 700;
  text-decoration: none;
}
.shell-logout:hover{
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ── Page container ── */
.shell-wrap{
  width: 95%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

/* ── Cards ── */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

hr{ border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ── Forms ── */
input, select, textarea{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder, textarea::placeholder{ color: var(--muted); opacity: 0.7; }
select{ cursor: pointer; }
input:focus, select:focus, textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
textarea{ min-height: 120px; resize: vertical; line-height: 1.55; }

label{
  display: block;
  margin: 12px 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
label.inline-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.checkbox-inline{ width: auto !important; margin: 0 !important; vertical-align: middle; }

/* ── Buttons ── */
button{ font-family: inherit; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  border: 1px solid transparent;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  font-family: inherit;
}
.btn:hover{ background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:disabled{ opacity: 0.55; cursor: not-allowed; }
.btn.primary{ background: var(--accent); }
.btn.primary:hover{ background: var(--accent-hover); }
.btn.secondary{
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.secondary:hover{
  background: var(--surface);
  color: var(--text);
  border-color: #d1d5db;
}
.btn.danger{
  background: var(--panel);
  border: 1px solid rgba(220,38,38,0.4);
  color: var(--danger);
}
.btn.danger:hover{
  background: var(--danger-soft);
  border-color: rgba(220,38,38,0.65);
  color: var(--danger);
}
.btn.small{ padding: 6px 12px; font-size: 12px; }

/* ── Badges, pills, KPI ── */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  background: var(--surface);
  letter-spacing: 0.02em;
}
.badge.good{
  border-color: rgba(22,163,74,0.4);
  color: var(--good);
  background: var(--good-soft);
}
.badge.bad{
  border-color: rgba(107,114,128,0.3);
  color: var(--muted);
  background: rgba(107,114,128,0.08);
}

.kpi{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.pill b{ color: var(--text); font-weight: 800; }

/* Charts row: monthly revenue (3/4) + revenue-by-type pie (1/4) */
.chartsRow{
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.chartsRow > .card{ margin: 0; }
@media (max-width: 980px){
  .chartsRow{ grid-template-columns: 1fr; }
}

/* Revenue chart card */
.revenueChartCard .hdr{ margin-bottom: 12px; }
.revenueChart{ display: block; width: 100%; height: auto; max-height: 320px; }
.revenueChart rect{ transition: opacity 0.15s ease; }
.revenueChart rect:hover{ opacity: 0.78; }
.revenueChartNote{
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Revenue-by-type pie chart card */
.pieChartCard .hdr{ margin-bottom: 8px; }
.pieChartWrap{
  display: flex;
  justify-content: center;
  padding: 4px 0 10px;
}
.pieChart{
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}
.pieChart path,
.pieChart circle{ transition: opacity 0.15s ease; }
.pieChart path:hover,
.pieChart circle:hover{ opacity: 0.85; }
.pieLegend{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.pieLegendItem{
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}
.pieDot{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.pieLegendLabel{ flex: 1; color: var(--text); font-weight: 600; }
.pieLegendValue{ color: var(--muted); font-size: 11px; white-space: nowrap; font-weight: 600; }
.pieLegendValue .muted{ opacity: 0.7; }

/* Top-of-page KPI strip — dark stat cards, label over value, brand-green accent on the primary. */
.kpi-strip{
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}
.kpi-strip-pill{
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #475569;
  border: 1px solid #475569;
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
  min-height: 56px;
}
.kpi-strip-pill .label{
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.kpi-strip-pill .value{
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.kpi-strip-pill .value .count{
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 12px;
  margin-left: 6px;
  letter-spacing: 0;
}
.kpi-strip-pill.primary{
  background: #334155;
  border-color: #334155;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.kpi-strip-pill.primary .value{ font-size: 19px; }
.kpi-strip-pill.total{
  margin-left: auto;
  background: #334155;
  border-color: #334155;
  border-right: 3px solid var(--accent);
  padding-right: 14px;
}
.kpi-strip-pill.total .value{ font-size: 19px; }

/* Per-type pills — filled with the type color, text adapts for contrast */
.kpi-strip-pill.type-automotive{ background: #BF2600; border-color: #BF2600; }
.kpi-strip-pill.type-automotive .label{ color: rgba(255,255,255,0.82); }
.kpi-strip-pill.type-automotive .value{ color: #ffffff; }
.kpi-strip-pill.type-automotive .value .count{ color: rgba(255,255,255,0.6); }

.kpi-strip-pill.type-healthcare{ background: #17B890; border-color: #17B890; }
.kpi-strip-pill.type-healthcare .label{ color: rgba(255,255,255,0.82); }
.kpi-strip-pill.type-healthcare .value{ color: #ffffff; }
.kpi-strip-pill.type-healthcare .value .count{ color: rgba(255,255,255,0.6); }

.kpi-strip-pill.type-legal{ background: #2F4858; border-color: #2F4858; }
.kpi-strip-pill.type-legal .label{ color: rgba(255,255,255,0.65); }
.kpi-strip-pill.type-legal .value{ color: #ffffff; }
.kpi-strip-pill.type-legal .value .count{ color: rgba(255,255,255,0.45); }

.kpi-strip-pill.type-food-bev{ background: #E3D081; border-color: #d6c172; }
.kpi-strip-pill.type-food-bev .label{ color: rgba(31,41,55,0.7); }
.kpi-strip-pill.type-food-bev .value{ color: #1f2937; }
.kpi-strip-pill.type-food-bev .value .count{ color: rgba(31,41,55,0.55); }

.kpi-strip-pill.type-other{ background: #74B3CE; border-color: #74B3CE; }
.kpi-strip-pill.type-other .label{ color: rgba(31,41,55,0.72); }
.kpi-strip-pill.type-other .value{ color: #1f2937; }
.kpi-strip-pill.type-other .value .count{ color: rgba(31,41,55,0.55); }
.kpi-strip-sep{
  width: 1px;
  background: var(--line);
  align-self: stretch;
  margin: 0 4px;
  font-size: 0;
}

/* ── Notices ── */
.notice{
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 14px;
}
.notice.ok{ border-left-color: var(--good); background: var(--good-soft); }
.notice.err{ border-left-color: var(--danger); background: var(--danger-soft); color: #7f1d1d; }

/* ── Layout helpers ── */
.row{ display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.col{ flex: 1; min-width: 280px; }
.col-2{ flex: 2; min-width: 400px; }
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 840px){ .split{ grid-template-columns: 1fr; } }
.grid3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px){ .grid3{ grid-template-columns: 1fr 1fr; } }
.twoCol{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 840px){ .twoCol{ grid-template-columns: 1fr; } }
.mt-sm{ margin-top: 10px; }
.mt-md{ margin-top: 16px; }
.spaced{ margin-top: 14px; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ── Tables ── */
.table{ width: 100%; border-collapse: collapse; }
.table th, .table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
  text-align: left;
}
.table th{
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface);
}
.table tbody tr{ transition: background var(--transition); }
.table tbody tr:hover{ background: var(--accent-soft); }
.table tbody tr:last-child td{ border-bottom: none; }
.table td{ font-size: 13px; }
.table td.actionsCell{ text-align: right; white-space: nowrap; }
.table tfoot td{
  background: #475569;
  color: #ffffff;
  border-top: 2px solid #475569;
  border-bottom: none;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
}
.table tfoot tr:hover td{ background: #475569; }
.table tfoot .totalLabel{
  text-align: right;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.table tfoot .totalValue{
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
}
.table td.fee-low{ color: #dc2626; font-weight: 700; }
.table td.fee-mid{ color: #d97706; font-weight: 700; }
.table td.fee-high{ color: #16a34a; font-weight: 700; }

.clientNameCell{ width: 38%; }
.clientNameCell .nameLine{ display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.clientNameCell .nameLine > div > div:first-child{ font-weight: 700; }
.clientNameCell .nameLine > div > div:first-child a{ color: var(--text); }
.clientNameCell .nameLine > div > div:first-child a:hover{ color: var(--accent-hover); }
.subLine{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
.clientActionsInline{ display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Search bar ── */
.searchbar-form{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 840px){ .searchbar-form{ grid-template-columns: 1fr; } }
.searchbar-main label{ margin-top: 0; }
.searchbar-btns{ display: flex; gap: 8px; align-items: end; }

/* ── Modals ── */
.modal-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.show{ display: flex; }
.modal{
  background: var(--panel);
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.modal .top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--panel);
}
.modal .top h2{ margin: 0; font-size: 16px; font-weight: 800; }
.modal .close{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}
.modal .close:hover{ background: var(--surface); color: var(--text); }
.modal .body{ padding: 18px; }
.btnRow{ display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── Notes / URL log (CRM client page) ── */
.empty{ color: var(--muted); padding: 14px; font-style: italic; text-align: center; }
.field-label{ font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.section-title{ margin: 0; font-size: 16px; font-weight: 800; }
.clientPageTitle{
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

/* ── Client page ── */
.clientHeaderTop{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.clientSubline{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.clientSubline .dotSep{ position: relative; padding-left: 12px; }
.clientSubline .dotSep::before{
  content: "•";
  position: absolute;
  left: 0;
  color: var(--line);
}

.statTiles{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.statTile{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.statTile .statLabel{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.statTile .statValue{
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.statTile--accent{ background: var(--accent-soft); border-color: rgba(88,180,106,0.40); }
.statTile--accent .statValue{ color: var(--accent-hover); }
.statTile--warn{ background: var(--danger-soft); border-color: rgba(220,38,38,0.30); }
.statTile--warn .statValue{ color: var(--danger); }

.detailGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  margin-top: 14px;
}
.detailItem .detailValue{
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}
.detailValue--break{ word-break: break-word; }

.clientColumns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px){ .clientColumns{ grid-template-columns: 1fr; } }

.groupHeadRight{ display: flex; align-items: center; gap: 8px; }
.hdr{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.actions{ display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form{ display: inline; }
.footer{ color: var(--muted); font-size: 12px; padding: 20px 0; text-align: center; }
.back-nav{ margin-bottom: 12px; }
.rowItem{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: 8px;
}
.rowItem-title{ font-weight: 700; }
.rowActions{ display: flex; gap: 6px; }
.list{ display: block; }

.noteList{ display: flex; flex-direction: column; gap: 10px; }
.noteItem{ border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); }
.noteTop{ display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.noteTitle{ font-weight: 700; font-size: 14px; margin: 0; line-height: 1.3; }
.noteDate{ font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.noteActions{ display: flex; gap: 6px; flex-shrink: 0; }
.noteText{ font-size: 13px; line-height: 1.55; white-space: normal; }

.urlGroup{ border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--panel); }
.groupHead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.urlGroup.open .groupHead{ border-bottom-color: var(--line); }
.groupHead h3{ margin: 0; font-size: 14px; font-weight: 800; }
.urlList{ display: none; padding: 10px 12px; }
.urlGroup.open .urlList{ display: block; }
.accordion-chevron{ transition: transform var(--transition); display: inline-block; }
.urlGroup.open .accordion-chevron{ transform: rotate(90deg); }
.urlItem{ padding: 8px 0; border-bottom: 1px solid var(--line-light); font-size: 13px; }
.urlItem:last-child{ border-bottom: none; }
.urlItem a{ color: var(--link); word-break: break-all; }
.urlItem .meta{ color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ── CRM login ── */
.loginWrap{
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.loginCard{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.loginCard h2{ margin: 0; font-size: 22px; font-weight: 800; }
.loginSub{ color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.login-submit{ margin-top: 16px; }
.btn-login{ width: 100%; padding: 12px; font-size: 14px; }
.login-hint{ margin-top: 14px; font-size: 12px; }
