/* ═══════════════════════════════════════════════════════════════════════════
   Roger v2.1 — Phase 3a styles.
   Built on the v2 base. Adds: workspace layout, floating chat widget,
   dashboard stats, property list/detail, document grid.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Serif:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #14202E;
  --navy-deep: #0B1620;
  --navy-mid: #1F2D40;
  --navy-soft: #2A3B52;
  --gold: #B8860B;
  --gold-bright: #D4A017;
  --gold-soft: #E8C56B;
  --parchment: #F4EFE6;
  --parchment-soft: #FAF6EE;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #7A7A7A;
  --rule: #D4CDB8;
  --rule-soft: #E8E2D2;
  --danger: #9B2C2C;
  --success: #2F5D3A;

  --serif: 'IBM Plex Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

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

html, body {
  height: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 150ms ease;
}
a:hover { border-bottom-color: var(--gold); }
a.plain { border-bottom: none; }
a.plain:hover { border-bottom: none; color: var(--gold-bright); }

button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; }

/* ─── Masthead ─────────────────────────────────────────────────────────────── */
.masthead {
  background: var(--navy);
  color: var(--parchment);
  padding: 1rem 2rem;
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead-brand {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.masthead-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--parchment);
}

.masthead-subtitle {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  padding-left: 1rem;
  border-left: 1px solid var(--navy-soft);
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.masthead-nav a {
  color: var(--parchment);
  border-bottom-color: transparent;
  padding: 0.25rem 0;
}
.masthead-nav a:hover,
.masthead-nav a.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.masthead-user {
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--navy-soft);
}

.masthead-user-name { color: var(--parchment); }

.logout-btn {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--navy-soft);
  padding: 0.35rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 150ms ease;
}
.logout-btn:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ─── Login page (unchanged from v2) ───────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-soft) 100%);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 39px,
    rgba(20, 32, 46, 0.025) 39px, rgba(20, 32, 46, 0.025) 40px);
  pointer-events: none;
}
.login-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgba(20, 32, 46, 0.25);
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--navy);
}
.login-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 60px; height: 4px; background: var(--gold);
}
.login-eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 0.5rem;
}
.login-title {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--navy); margin-bottom: 0.4rem;
}
.login-tagline {
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  color: var(--ink-soft); margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule-soft);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-family: var(--mono); font-size: 0.7rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-soft); margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; font-family: var(--sans);
  font-size: 0.95rem; color: var(--ink);
  background: var(--parchment-soft); border: 1px solid var(--rule);
  border-radius: 0; transition: all 150ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--sans); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }

.btn-primary {
  padding: 0.85rem 1.5rem; background: var(--navy); color: var(--parchment);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  transition: all 200ms ease; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: wait; }

.btn-secondary {
  padding: 0.85rem 1.5rem; background: var(--paper); color: var(--navy);
  border: 1px solid var(--navy);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  transition: all 200ms ease; cursor: pointer;
}
.btn-secondary:hover { background: var(--parchment-soft); }

.login-error {
  background: rgba(155, 44, 44, 0.08); border-left: 3px solid var(--danger);
  padding: 0.7rem 0.9rem; font-size: 0.85rem; color: var(--danger);
  margin-bottom: 1rem; display: none;
}
.login-error.visible { display: block; }
.login-footer {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-muted); text-align: center;
}

/* ─── Workspace layout (Dashboard / Properties / Documents) ───────────────── */
.workspace {
  min-height: 100vh;
  background: var(--parchment);
  padding-bottom: 3rem;
}
.workspace-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--rule);
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.page-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.page-actions { display: flex; gap: 0.75rem; }

/* ─── Dashboard stats strip ───────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  position: relative;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--gold);
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.stat-value {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.stat-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* ─── Hero tagline (dashboard) ────────────────────────────────────────────── */
.hero-tagline {
  background: var(--navy);
  color: var(--parchment);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  border-left: 4px solid var(--gold);
}
.hero-tagline-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
}
.hero-tagline-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  font-style: italic;
}

/* ─── Section card ────────────────────────────────────────────────────────── */
.section {
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}
.section-subtitle {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.placeholder-section {
  opacity: 0.55;
}
.placeholder-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--rule-soft);
  color: var(--ink-soft);
  padding: 0.2rem 0.6rem;
  margin-left: 0.75rem;
  vertical-align: middle;
}

/* ─── Data table ──────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--rule);
  background: var(--parchment-soft);
}
.data-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.data-table tr:hover td {
  background: var(--parchment-soft);
}
.data-table .mono { font-family: var(--mono); font-size: 0.82rem; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.5rem;
}
.badge-admin { background: var(--navy); color: var(--gold-bright); }
.badge-user { background: var(--rule-soft); color: var(--ink-soft); }
.badge-active { background: var(--success); color: var(--parchment); }
.badge-disabled { background: var(--rule); color: var(--ink-soft); }
.badge-rollup { background: var(--gold); color: var(--navy); }
.badge-third { background: var(--ink-muted); color: var(--parchment); }
.badge-managed { background: var(--rule); color: var(--ink-soft); }
.badge-tier1 { background: var(--success); color: var(--parchment); }
.badge-tier2 { background: var(--navy-mid); color: var(--gold-soft); }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--ink-muted);
}
.empty-state h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* ─── Property/Entity form modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 32, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.visible { display: flex; }
.modal {
  background: var(--paper);
  border: 1px solid var(--rule);
  max-width: 640px;
  width: calc(100% - 2rem);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--navy);
}
.modal::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 60px; height: 4px; background: var(--gold);
}
.modal-body { padding: 2.5rem 2rem 2rem; }
.modal-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
}

/* ─── Property detail page ────────────────────────────────────────────────── */
.detail-header {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.detail-header::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--gold);
}
.detail-code {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.detail-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
}
.detail-meta-item {
  font-family: var(--sans);
  font-size: 0.9rem;
}
.detail-meta-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}
.detail-meta-value { color: var(--navy); font-weight: 500; }

/* ─── Floating chat widget ────────────────────────────────────────────────── */
.fchat-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(11, 22, 32, 0.4);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  z-index: 999;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.fchat-launcher:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px -5px rgba(11, 22, 32, 0.5);
}
.fchat-launcher.hidden { display: none; }

.fchat-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 400px;
  height: 600px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px -10px rgba(11, 22, 32, 0.35);
  display: none;
  flex-direction: column;
  z-index: 999;
}
.fchat-panel.visible { display: flex; }

.fchat-header {
  background: var(--navy);
  color: var(--parchment);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}
.fchat-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.fchat-title-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.15rem;
}
.fchat-close {
  background: transparent;
  color: var(--parchment);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.25rem;
}
.fchat-close:hover { color: var(--gold-bright); }

.fchat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--parchment-soft);
}
.fchat-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-muted);
}
.fchat-empty h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.fchat-empty p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.fchat-msg {
  margin-bottom: 1rem;
  animation: fadeIn 200ms ease;
}
.fchat-msg-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}
.fchat-msg.user .fchat-msg-label { color: var(--navy); }
.fchat-msg.assistant .fchat-msg-label { color: var(--gold); }
.fchat-msg-content {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}
.fchat-msg.user .fchat-msg-content {
  font-family: var(--sans);
  color: var(--navy);
}
.fchat-msg-content p { margin-bottom: 0.6rem; }
.fchat-msg-content p:last-child { margin-bottom: 0; }
.fchat-msg-content strong { color: var(--navy); font-weight: 600; }
.fchat-msg-content code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--paper); border: 1px solid var(--rule-soft);
  padding: 0.05rem 0.3rem; color: var(--navy);
}
.fchat-msg-content table {
  font-family: var(--sans);
  font-size: 0.85rem;
  border-collapse: collapse;
  margin: 0.6rem 0;
  width: 100%;
}
.fchat-msg-content th, .fchat-msg-content td {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--rule-soft);
}
.fchat-msg-content th {
  background: var(--navy); color: var(--parchment);
  font-family: var(--mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.fchat-pagecontext {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gold);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  margin: 0.5rem 1rem 0;
  text-align: center;
}

.fchat-composer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.fchat-composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--rule);
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
  background: var(--parchment-soft);
  min-height: 38px;
  max-height: 120px;
}
.fchat-composer textarea:focus {
  outline: none; border-color: var(--navy);
  background: var(--paper);
}
.fchat-send {
  background: var(--navy);
  color: var(--parchment);
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  height: 38px;
}
.fchat-send:hover { background: var(--navy-deep); }
.fchat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.thinking { display: inline-flex; gap: 4px; align-items: center; padding: 0.5rem 0; }
.thinking-dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; animation: pulse 1.2s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.15s; }
.thinking-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--rule); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ─── Admin section preserved from v2 ─────────────────────────────────────── */
.admin-section { background: var(--paper); border: 1px solid var(--rule);
  margin-bottom: 1.5rem; padding: 1.5rem 1.75rem; }
.admin-section-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.25rem;
  display: flex; justify-content: space-between; align-items: baseline; }
.admin-section-subtitle { font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-muted); margin-bottom: 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: 0.88rem; }
.admin-table th { text-align: left; padding: 0.5rem 0.75rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft);
  border-bottom: 2px solid var(--rule); }
.admin-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--rule-soft); }
.admin-table .mono { font-family: var(--mono); font-size: 0.82rem; }
.admin-action-btn { padding: 0.4rem 0.85rem; background: var(--navy);
  color: var(--parchment); font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em; transition: all 150ms ease; }
.admin-action-btn:hover { background: var(--navy-deep); }
.notice { background: rgba(184, 134, 11, 0.08); border-left: 3px solid var(--gold);
  padding: 0.85rem 1.1rem; font-size: 0.88rem; color: var(--ink-soft);
  margin-bottom: 1.5rem; }
.notice strong { color: var(--navy); font-weight: 600; }

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 740px) {
  .masthead { padding: 0.85rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .masthead-title { font-size: 1.2rem; }
  .masthead-subtitle { display: none; }
  .workspace-main { padding: 1rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0.75rem; }
  .fchat-panel { width: calc(100vw - 1rem); height: calc(100vh - 1rem);
                 bottom: 0.5rem; right: 0.5rem; }
}
