/* Client CRM — 袋鼠返佣客户门户 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root,
[data-theme="dark"] {
  --bg: #0a1018;
  --bg-sidebar: #0d1420;
  --bg-card: #121a27;
  --bg-elevated: #172233;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef7;
  --text-muted: #8b9bb4;
  --text-dim: #5c6b82;
  --ice: #4ba3c7;
  --ice-strong: #3d8fb0;
  --ice-dim: rgba(75, 163, 199, 0.14);
  --gold: #c4a35a;
  --danger: #f07178;
  --danger-dim: rgba(240, 113, 120, 0.12);
  --ok: #4ba3c7;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --sidebar-w: 250px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f7fb;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f0f6fa;
  --line: rgba(15, 40, 60, 0.1);
  --line-strong: rgba(15, 40, 60, 0.18);
  --text: #152433;
  --text-muted: #5a6f82;
  --text-dim: #8a9aab;
  --ice: #2f8fb8;
  --ice-strong: #24779a;
  --ice-dim: rgba(47, 143, 184, 0.12);
  --gold: #b0892e;
  --danger: #d9555c;
  --danger-dim: rgba(217, 85, 92, 0.1);
  --ok: #2f8fb8;
  --shadow: 0 12px 32px rgba(30, 60, 90, 0.08);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

/* 主题切换：View Transitions 交叉淡入淡出 */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: theme-fade-out;
}

::view-transition-new(root) {
  animation-name: theme-fade-in;
}

@keyframes theme-fade-out {
  from { opacity: 1; filter: brightness(1); }
  to { opacity: 0; filter: brightness(1.08); }
}

@keyframes theme-fade-in {
  from { opacity: 0; filter: brightness(0.92); }
  to { opacity: 1; filter: brightness(1); }
}

.theme-veil {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg, #0c121c) 72%, #4ba3c7 8%);
  opacity: 0;
  transition: opacity 0.38s ease;
}

.theme-veil.on {
  opacity: 0.55;
}

body {
  font-family: 'Noto Sans SC', 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  transition: background 0.45s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.crm-app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.85rem;
  z-index: 40;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.55rem 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sidebar-brand strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  display: block;
}

.sidebar-brand span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.75rem 0.7rem 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: var(--ice-dim);
  color: var(--text);
}

.nav-link.active {
  background: var(--ice-dim);
  color: var(--ice);
  font-weight: 600;
}

.nav-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.content {
  padding: 1.4rem 2rem 2.5rem;
  width: 100%;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.icon-btn:hover {
  border-color: var(--ice);
  background: var(--ice-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--ice), var(--ice-strong));
  color: #fff;
  box-shadow: 0 8px 22px rgba(75, 163, 199, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--ice); background: var(--ice-dim); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}

.stat-card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.stat-card .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ice);
}

.stat-card .sub {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
}

.panel-head p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 0.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--ice-dim);
  color: var(--ice);
  border: 1px solid color-mix(in srgb, var(--ice) 30%, transparent);
}

.badge-gold {
  background: rgba(196, 163, 90, 0.15);
  color: var(--gold);
  border-color: rgba(196, 163, 90, 0.3);
}

.badge-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--ice-dim);
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--ice-dim); }

.mono { font-family: 'JetBrains Mono', monospace; }
.muted { color: var(--text-muted); }
.ice { color: var(--ice); }

.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  outline: none;
}

.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ice); }

.form-msg {
  display: none;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  margin-bottom: 0.85rem;
}

.form-msg.error {
  display: block;
  background: var(--danger-dim);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
}

.form-msg.success,
.form-msg.info {
  display: block;
  background: var(--ice-dim);
  border: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
  color: var(--ice);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, var(--ice-dim), transparent 55%),
    var(--bg);
}

.auth-box {
  width: min(100%, 420px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-box h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.auth-box .sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.35rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.auth-brand img { width: 42px; height: 42px; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pros-cons ul {
  padding-left: 0;
  display: grid;
  gap: 0.35rem;
}

.pros-cons li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-left: 0.9rem;
  position: relative;
}

.pros-cons .pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--ice);
  font-weight: 700;
}

.pros-cons .cons li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.announce-banner {
  padding: 0 1.5rem;
  margin-top: 0.75rem;
}

.announce-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
  background: var(--ice-dim);
}

.announce-banner-inner.is-important {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  background: rgba(196, 163, 90, 0.14);
}

.announce-banner-inner strong {
  display: inline;
  margin-right: 0.5rem;
}

.announce-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.announce-banner-inner p {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.risk-box {
  margin-bottom: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  background: var(--danger-dim);
}

.risk-box strong {
  color: var(--danger);
  font-family: 'Sora', sans-serif;
  display: block;
  margin-bottom: 0.35rem;
}

.risk-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.link-block {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.link-block .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.link-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.link-row code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  word-break: break-all;
  white-space: normal;
  color: var(--ice);
  line-height: 1.45;
}

.poster-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.poster-art {
  min-height: 120px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.poster-art.tone-ice {
  background: linear-gradient(135deg, #1a4d66, #4ba3c7 70%);
}

.poster-art.tone-green {
  background: linear-gradient(135deg, #1b4a44, #3db89a 70%);
}

.poster-art.tone-gold {
  background: linear-gradient(135deg, #5a4520, #c4a35a 70%);
}

.poster-art .broker-tag {
  font-size: 0.72rem;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.poster-art h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
}

.poster-body {
  padding: 1rem 1.05rem 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  transition: background 0.2s, border-color 0.2s;
}

.contact-tile:hover {
  border-color: var(--ice);
  background: var(--ice-dim);
}

.contact-tile .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.4rem;
}

.contact-tile a {
  color: var(--text);
  word-break: break-all;
}

.contact-tile a:hover { color: var(--ice); }

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
}

.broker-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.broker-detail {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.broker-card.open .broker-detail {
  display: block;
}

.broker-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
  align-items: start;
}

.broker-detail-grid .stack {
  display: grid;
  gap: 0.75rem;
}

.dash-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1.55fr;
  gap: 1rem;
  align-items: stretch;
}

.dash-split--main {
  /* 与下方工作时间列宽对齐：左窄右宽 */
  grid-template-columns: minmax(220px, 0.72fr) 1.55fr;
}

.dash-split--meta {
  /* 工作时间保持原先较窄比例，公告汇总占剩余宽度 */
  grid-template-columns: minmax(220px, 0.72fr) 1.55fr;
}

.dash-split > .panel {
  margin-bottom: 1rem;
}

.tips-panel,
.featured-panel,
.hours-panel,
.ann-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 280px;
  overflow: auto;
  padding-right: 0.15rem;
}

.tips-panel--compact .tips-list {
  max-height: 168px;
  gap: 0.4rem;
}

.tips-panel--compact .tip-card {
  padding: 0.55rem 0.65rem;
}

.tips-panel--compact .tip-card-body strong {
  font-size: 0.82rem;
}

.tips-panel--compact .tip-card-body p {
  font-size: 0.74rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tips-panel--compact .tips-empty {
  min-height: 100px;
}

.ann-panel--roomy {
  min-height: 280px;
}

.ann-panel--roomy .ann-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 220px;
  max-height: 220px;
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ann-panel--roomy .ann-feed.is-peek {
  overflow: hidden;
}

.ann-panel--roomy .ann-feed.is-peek::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-card) 0%, transparent) 0%,
    var(--bg-card) 90%
  );
}

.ann-panel--roomy .ann-feed.is-peek .ann-extra {
  opacity: 0.9;
}

.ann-panel--roomy .ann-feed.is-expanded {
  overflow: auto;
}

.ann-panel--roomy .ann-single p {
  -webkit-line-clamp: 5;
}

.ann-more-count {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ice);
  background: color-mix(in srgb, var(--bg-card) 82%, var(--ice-dim));
  border: 1px solid color-mix(in srgb, var(--ice) 30%, var(--line));
  pointer-events: none;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.tip-card.tip-ok {
  border-color: color-mix(in srgb, var(--ice) 35%, var(--line));
  background: color-mix(in srgb, var(--ice-dim) 55%, var(--bg-elevated));
}

.tip-card.tip-warn {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: color-mix(in srgb, var(--danger-dim) 55%, var(--bg-elevated));
}

.tip-card-body {
  flex: 1;
  min-width: 0;
}

.tip-card-body strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.tip-card-body p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tip-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ice);
}

.tip-dismiss {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.tips-empty {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 140px;
  font-size: 0.85rem;
}

.featured-panel .featured-brokers {
  flex: 1;
  align-content: stretch;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.featured-panel .featured-tile {
  min-height: 72px;
  padding: 0.7rem 0.75rem;
  text-align: left;
}

.featured-panel .featured-tile .hint {
  left: auto;
  right: 0.85rem;
  bottom: 50%;
  transform: translateY(50%);
}

.ann-panel .ann-single {
  padding: 0.75rem 0.85rem;
}

.ann-panel .ann-single h3 {
  font-size: 0.9rem;
}

.ann-panel .ann-single p {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hours-panel {
  display: flex;
  flex-direction: column;
}

.hours-status {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.hours-status.open {
  color: var(--ice);
  background: var(--ice-dim);
}

.hours-status.closed {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.hours-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 0.25rem;
}

.hours-note {
  font-size: 0.82rem;
  margin: 0.55rem 0 1rem;
  flex: 1;
}

.featured-brokers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.ann-extra {
  display: none;
  margin-top: 0.65rem;
}

.ann-extra.show {
  display: grid;
  gap: 0.65rem;
}

.featured-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  padding: 0.95rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}

.featured-tile:hover {
  border-color: var(--ice);
  background: var(--ice-dim);
  transform: translateY(-2px);
}

.featured-tile strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.featured-tile span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.featured-tile .hint {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 0.68rem;
  color: var(--ice);
  font-weight: 600;
  transition: opacity 0.15s;
  pointer-events: none;
}

.featured-tile:hover .hint {
  opacity: 1;
}

.stat-card.stat-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  text-decoration: none;
}

.stat-card.stat-action:hover {
  border-color: var(--ice);
  background: var(--ice-dim);
}

.ann-extra h3,
.ann-single h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.98rem;
  margin: 0.35rem 0;
}

@media (max-width: 1100px) {
  .featured-brokers {
    grid-template-columns: repeat(3, 1fr);
  }
  .broker-detail-grid,
  .dash-split,
  .dash-split--main,
  .dash-split--meta {
    grid-template-columns: 1fr;
  }
  .tips-list {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .featured-brokers {
    grid-template-columns: 1fr;
  }
}

.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  place-items: center;
  padding: 1rem;
}

.modal-mask.show {
  display: grid;
}

.modal-box {
  width: min(100%, 560px);
  max-height: 85vh;
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.modal-box iframe,
.modal-box embed,
.modal-box object {
  width: 100%;
  height: 60vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
}

@media (max-width: 860px) {
  .announce-banner { padding: 0 1rem; }
  .quick-grid, .contact-grid { grid-template-columns: 1fr; }
  .link-row { flex-direction: column; }
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .crm-app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    width: min(86vw, 280px);
    box-shadow: var(--shadow);
  }
  .crm-app.sidebar-open .sidebar { transform: none; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .crm-app.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .content { padding: 1rem 1rem 2rem; }
  .topbar { padding: 0.8rem 1rem; }
}
