:root {
  --bg: #f8f1ea;
  --bg-2: #f3eadf;
  --surface: #ffffff;
  --surface-alt: #fffaf5;
  --surface-dark: #2f2a26;
  --surface-dark-2: #3a302a;
  --text: #2f2a26;
  --text-soft: #6f625a;
  --muted: #6f625a;
  --line: #eaded1;
  --line-strong: #d8c8b8;
  --primary: #c96b4b;
  --primary-2: #a95136;
  --primary-soft: rgba(201, 107, 75, 0.08);
  --teal: #8a9a5b;
  --teal-soft: rgba(138, 154, 91, 0.12);
  --gold: #c9a227;
  --gold-soft: rgba(186, 139, 44, 0.14);
  --danger: #c96b4b;
  --danger-soft: rgba(196, 61, 61, 0.12);
  --warning: #c96b4b;
  --warning-soft: rgba(209, 122, 0, 0.14);
  --success: #8a9a5b;
  --success-soft: rgba(138, 154, 91, 0.12);
  --info: #c96b4b;
  --info-soft: rgba(201, 107, 75, 0.12);
  --shadow-sm: 0 8px 18px rgba(47, 42, 38, 0.06);
  --shadow: 0 18px 48px rgba(47, 42, 38, 0.10);
  --shadow-lg: 0 28px 64px rgba(47, 42, 38, 0.14);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 20px;
  --radius-lg: 28px;
  --sidebar-width: 308px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf5 0%, #f8f1ea 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p, li, small, span, strong, th, td, label, h1, h2, h3, h4 { overflow-wrap: break-word; word-break: normal; }
p { margin: 0 0 1rem; color: var(--text-soft); }
h1, h2, h3, h4 { margin: 0 0 0.85rem; line-height: 1.2; color: var(--text); letter-spacing: -0.03em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
small { color: var(--muted); }
button, input, textarea, select { font: inherit; }
button { appearance: none; }
textarea { resize: vertical; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}
.stack-lg > * + * { margin-top: 1.5rem; }
.stack-md > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.5rem; }
.two-main { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr); }
.top-gap-sm { margin-top: 1rem; }
.align-right { text-align: right; }
.end-row { justify-content: flex-end; }
.nowrap { flex-wrap: nowrap; }
.muted, .subtle-value { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 1rem 0; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,250,245,0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  min-width: 0;
}
.card:hover { box-shadow: var(--shadow); }
.card-padless { padding: 0; overflow: hidden; }
.card-flat, .inset-card {
  box-shadow: none;
  background: var(--surface-alt);
}
.highlight-card {
  background:
    radial-gradient(circle at top right, rgba(138, 154, 91, 0.14), transparent 32%),
    radial-gradient(circle at top left, rgba(201, 107, 75, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,241,234,0.98));
  border-color: rgba(201, 107, 75, 0.14);
}
.surface-note {
  background: linear-gradient(180deg, #fffaf5 0%, #f8f1ea 100%);
}
.surface-dark {
  background: linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  color: #fff7ef;
  border-color: rgba(255,255,255,0.08);
}
.surface-dark p,
.surface-dark small,
.surface-dark span { color: rgba(255,247,239,0.84); }
.section-card { padding: 1.65rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--primary-2);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--primary-2));
  box-shadow: 0 0 0 4px rgba(138, 154, 91, 0.10);
}
.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.header-chip,
.utility-chip,
.status-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}
.utility-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.header-chip {
  background: rgba(255,255,255,0.72);
  color: var(--primary);
}
.status-chip {
  margin-top: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(201, 107, 75, 0.12);
}
.lead {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.8;
}
.price-big {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 14px 28px rgba(201, 107, 75, 0.22);
}
.btn-primary:hover { box-shadow: 0 18px 34px rgba(201, 107, 75, 0.28); }
.btn-light {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.btn-light:hover { border-color: rgba(201, 107, 75, 0.28); }
.btn-dark {
  background: linear-gradient(135deg, #2f2a26 0%, #241f1b 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 42, 38, 0.22);
}
.btn-sm {
  min-height: 40px;
  padding: 0.68rem 0.92rem;
  font-size: 0.88rem;
}
.btn-block { width: 100%; }
.action-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.action-grid {
  display: grid;
  gap: 0.75rem;
}
.single-col-actions { grid-template-columns: 1fr; }
.two-col-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand strong { display: block; font-size: 0.98rem; }
.brand small { display: block; font-size: 0.82rem; }
.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(201, 107, 75, 0.16);
}
.brand-logo-large {
  width: 72px;
  height: 72px;
}

.public-body {
  background:
    radial-gradient(circle at top left, rgba(201, 107, 75, 0.14), transparent 20%),
    radial-gradient(circle at top right, rgba(138, 154, 91, 0.12), transparent 18%),
    linear-gradient(180deg, #241f1b 0, #3a302a 23rem, #f8f1ea 23rem, #f8f1ea 100%);
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(47, 42, 38, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.public-header.is-scrolled { background: rgba(47, 42, 38, 0.92); }
.nav-row {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.public-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.public-nav > a:not(.btn) {
  color: rgba(255,255,255,0.86);
  font-size: 0.95rem;
  font-weight: 600;
}
.public-wrap { padding-block: 2rem 4rem; }
.public-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}
.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
}
.footer-note-grid {
  display: grid;
  gap: 1rem;
}
.footer-note-grid > div {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-shell { padding: 2rem 0 0.5rem; }
.hero-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  align-items: start;
}
.hero-card {
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,245,0.96));
}
.hero-card h1,
.hero-card p,
.hero-card strong { max-width: 20ch; }
.hero-card p { max-width: 58ch; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
.public-anchor-links {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.public-anchor-links a {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}
.dashboard-preview-card { padding: 1.35rem; }
.compact-header { margin-bottom: 1rem; }
.preview-list {
  display: grid;
  gap: 0.85rem;
}
.preview-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.preview-row span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.hero-summary-strip { margin-top: 1rem; }
.section-grid { margin-top: 1.4rem; }
.section-head,
.panel-header,
.table-toolbar,
.split-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.table-toolbar { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.panel-header { margin-bottom: 1.35rem; }
.section-description { max-width: 70ch; }
.feature-grid { display: grid; gap: 1rem; }
.feature-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card,
.role-card,
.process-card,
.note-tile,
.showcase-card,
.quote-card {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,245,0.98));
}
.role-grid,
.showcase-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-card p,
.feature-card p { margin-bottom: 0; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}
.quote-text { font-size: 1.05rem; line-height: 1.85; }
.quote-author { font-weight: 700; color: var(--primary); }

.app-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f1ea 0%, #fffaf5 100%);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1.3rem;
  background: linear-gradient(180deg, #2f2a26 0%, #3a302a 100%);
  color: rgba(255,255,255,0.88);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.brand-sidebar { margin-bottom: 1.4rem; }
.brand-sidebar strong,
.brand-sidebar small { color: #fff7ef; }
.sidebar-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}
.sidebar-panel-muted p { color: rgba(255,255,255,0.76); margin-bottom: 0; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.sidebar-user strong,
.sidebar-user small { color: #fff7ef; display: block; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.avatar-lg { width: 54px; height: 54px; font-size: 1.1rem; }
.sidebar-metrics,
.compact-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sidebar-metrics span,
.compact-grid span {
  display: block;
  color: rgba(255,255,255,0.70);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}
.sidebar-metrics strong,
.compact-grid strong { color: #fff; font-size: 0.92rem; }
.sidebar-group { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.section-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: rgba(255,255,255,0.56);
  margin: 0.25rem 0 0.4rem;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 46px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: rgba(255,255,255,0.86);
  font-weight: 600;
}
.nav-link:hover { background: rgba(255,255,255,0.06); }
.nav-link.is-active {
  background: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.counter {
  min-width: 24px;
  height: 24px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(248,241,234,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,107,75,0.08);
}
.topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.workspace-label {
  margin: 0 0 0.25rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-2);
  font-weight: 800;
}
.page-title { margin-bottom: 0.25rem; font-size: clamp(1.4rem, 2vw, 1.9rem); }
.page-subtitle { margin: 0; color: var(--muted); font-size: 0.93rem; }
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.page-content { padding: 1.5rem; }
.page-content-inner { width: min(1280px, 100%); }
.sidebar-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 42, 38, 0.42);
  border: 0;
  display: none;
  z-index: 49;
}

.dashboard-intro {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.85fr);
}
.intro-side { display: grid; gap: 1rem; align-content: start; }
.summary-strip,
.kpi-grid {
  display: grid;
  gap: 1rem;
}
.four-up-strip,
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-card,
.stat-card,
.metric-callout {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
}
.strip-card span,
.stat-card span { display: block; color: var(--muted); font-size: 0.86rem; margin-bottom: 0.35rem; }
.stat-value,
.stat-card strong { font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -0.03em; }
.emphasis-card,
.stat-card-emphasis,
.metric-callout {
  background: linear-gradient(180deg, rgba(201,107,75,0.06), rgba(255,255,255,0.96));
  border-color: rgba(201,107,75,0.12);
}
.metric-callout strong { font-size: 1.35rem; display: block; }
.metric-callout small { display: block; margin-top: 0.25rem; }
.detail-list { display: grid; gap: 0.2rem; margin-top: 0.4rem; }
.detail-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-line:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-line span { color: var(--muted); font-size: 0.9rem; }
.detail-line strong { text-align: right; }
.mini-list,
.timeline-list,
.settings-grid,
.notice-meta,
.auth-note-grid { display: grid; gap: 0.9rem; }
.structured-mini-list > div {
  padding: 0.95rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.structured-mini-list strong,
.structured-mini-list span { display: block; }
.structured-mini-list span { margin-top: 0.3rem; color: var(--muted); font-size: 0.92rem; }
.timeline-item,
.notice-card,
.empty-state-block,
.empty-callout {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.empty-state,
.empty-state-block,
.empty-callout { color: var(--muted); }
.note-list,
.list-check {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.notice-unread { border-color: rgba(201, 107, 75, 0.18); }
.notice-meta { grid-auto-flow: column; justify-content: start; }
.code-inline,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(201,107,75,0.06);
  padding: 0.18rem 0.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
thead th {
  background: #fffaf5;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: left;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--line);
}
tbody td, tbody th {
  padding: 1rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:hover { background: rgba(201,107,75,0.03); }
.invoice-total-row th { background: #fffaf5; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid transparent;
}
.badge-success { color: var(--success); background: var(--success-soft); border-color: rgba(138,154,91,0.16); }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: rgba(209,122,0,0.16); }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(196,61,61,0.16); }
.badge-info { color: var(--info); background: var(--info-soft); border-color: rgba(201,107,75,0.16); }
.badge-muted { color: var(--muted); background: rgba(102,114,119,0.10); border-color: rgba(102,114,119,0.12); }
.status-link { display: inline-flex; }

.field { display: grid; gap: 0.5rem; min-width: 0; }
.field > span { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.field-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.9rem;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}
textarea { min-height: 124px; }
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(201,107,75,0.35);
  box-shadow: 0 0 0 4px rgba(201,107,75,0.08);
}
.file-name { font-size: 0.84rem; color: var(--muted); }
.form-stack { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-span-full { grid-column: 1 / -1; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}
.inline-form input,
.inline-form select { width: auto; min-width: 150px; }
.compact-form input,
.compact-form select,
.compact-form textarea { min-height: 44px; }

.auth-wrapper {
  min-height: calc(100vh - 10rem);
  display: grid;
  gap: 1.4rem;
  align-items: stretch;
}
.auth-wide { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); }
.auth-card { padding: 2rem; }
.auth-head { margin-bottom: 1.4rem; }
.auth-head-with-logo {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.auth-side { display: grid; gap: 1rem; }
.auth-side-hero { padding: 1.6rem; }
.auth-foot { margin-top: 1.2rem; }
.note-tile strong,
.note-tile span { display: block; }
.note-tile span { margin-top: 0.3rem; color: var(--muted); }

.qr-manual-box {
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: #fff;
}
.proof-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.report-filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-filter-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.report-filter-card strong { font-size: 1.15rem; }
.report-filter-card.is-active {
  background: linear-gradient(180deg, rgba(201,107,75,0.10), rgba(255,255,255,0.96));
  border-color: rgba(201,107,75,0.16);
}
.report-filter-label { font-size: 0.88rem; font-weight: 700; color: var(--primary); }

.chat-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 660px;
}
.chat-sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf5 0%, #f8f1ea 100%);
}
.chat-sidebar-head,
.chat-main-head { padding: 1.25rem; border-bottom: 1px solid var(--line); }
.chat-thread-list { display: grid; gap: 0; }
.chat-thread-item {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.chat-thread-item:hover { background: rgba(201,107,75,0.04); }
.chat-thread-item.is-active { background: rgba(201,107,75,0.08); }
.chat-thread-top,
.chat-thread-meta,
.chat-bubble-head,
.chat-attachment { display: flex; justify-content: space-between; gap: 0.75rem; }
.chat-thread-item p { margin: 0; font-size: 0.9rem; }
.chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}
.chat-head-side { text-align: right; }
.chat-messages {
  padding: 1.2rem;
  overflow: auto;
  background: linear-gradient(180deg, #fffaf5 0%, #fffaf5 100%);
  display: grid;
  gap: 0.9rem;
}
.chat-empty,
.chat-empty-message {
  padding: 2rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.chat-bubble {
  max-width: min(76%, 720px);
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.chat-bubble.mine {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(201,107,75,0.06), rgba(255,255,255,0.98));
}
.chat-bubble-head {
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.chat-bubble-head span,
.chat-bubble-head small { color: var(--muted); font-size: 0.82rem; }
.chat-bubble p { margin-bottom: 0; }
.chat-form {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.alert {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(138,154,91,0.18); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(196,61,61,0.18); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(209,122,0,0.18); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: rgba(201,107,75,0.18); }

@media (max-width: 1200px) {
  .hero-grid,
  .dashboard-intro,
  .two-main,
  .auth-wide,
  .footer-grid,
  .chat-layout,
  .role-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid-4,
  .process-grid,
  .report-filter-grid,
  .four-up-strip,
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar-width), calc(100vw - 3rem));
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .sidebar-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 1.2rem)); }
  .page-content { padding: 1rem; }
  .public-wrap { padding-top: 1rem; }
  .nav-row,
  .topbar,
  .panel-header,
  .section-head,
  .table-toolbar,
  .split-row,
  .auth-head-with-logo {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-actions,
  .utility-chip-group,
  .public-nav,
  .action-row { width: 100%; }
  .two-col,
  .report-filter-grid,
  .four-up-strip,
  .four-col,
  .feature-grid-4,
  .process-grid,
  .two-col-actions,
  .sidebar-metrics,
  .compact-grid { grid-template-columns: 1fr; }
  .chat-bubble { max-width: 100%; }
  h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
}


.table-subtitle {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.compact-state-card { min-height: 100%; }
.chip-success { background: var(--success-soft); color: var(--success); border-color: rgba(138,154,91,0.18); }
.chip-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(209,122,0,0.18); }
.chip-info { background: var(--info-soft); color: var(--info); border-color: rgba(201,107,75,0.18); }
.chip-muted { background: rgba(102,114,119,0.12); color: var(--muted); border-color: rgba(102,114,119,0.18); }
.fee-editor-card { gap: 1rem; }
.fee-editor-top { align-items: flex-start; }
.notification-layout { align-items: start; }
.notice-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.timeline-list { display: grid; gap: 1rem; }
.timeline-soft .notice-card { background: rgba(255,255,255,0.72); }
.empty-state-compact {
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,255,255,0.7);
}
.readiness-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.readiness-card {
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fffaf5);
}
.readiness-card.is-ok {
  border-color: rgba(138,154,91,0.2);
  background: linear-gradient(180deg, rgba(138,154,91,0.08), rgba(255,255,255,0.98));
}
.readiness-card.is-warning {
  border-color: rgba(209,122,0,0.18);
  background: linear-gradient(180deg, rgba(209,122,0,0.08), rgba(255,255,255,0.98));
}
.enhanced-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.config-line {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
}
.config-line code,
.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(201,107,75,0.08);
  color: var(--primary);
}
.audit-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(102,114,119,0.12);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}
.audit-pill.is-login { background: var(--info-soft); color: var(--info); }
.audit-pill.is-payment { background: var(--success-soft); color: var(--success); }
.audit-pill.is-billing { background: var(--primary-soft); color: var(--primary); }
.audit-pill.is-approval { background: var(--warning-soft); color: var(--warning); }
@media (max-width: 1200px) {
  .readiness-grid,
  .enhanced-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .readiness-grid,
  .enhanced-settings-grid { grid-template-columns: 1fr; }
}

.btn-ghost {
  background: rgba(201,107,75,0.06);
  color: var(--primary);
  border-color: rgba(201,107,75,0.14);
}
.btn-ghost:hover { border-color: rgba(201,107,75,0.24); }
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #b42318 0%, #991b1b 100%);
  box-shadow: 0 14px 28px rgba(153, 27, 27, 0.22);
}
.btn-danger:hover { box-shadow: 0 18px 34px rgba(153, 27, 27, 0.28); }

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: rgba(102,114,119,0.34);
  box-shadow: 0 0 0 4px rgba(102,114,119,0.12);
}
.timeline-item.is-complete .timeline-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(138,154,91,0.14);
}
.timeline-item p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.compact-timeline .timeline-item {
  background: rgba(255,255,255,0.7);
}
.invoice-detail-page .proof-image,
.payment-page .proof-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}
.auth-security-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(201,107,75,0.14);
  background: rgba(201,107,75,0.06);
  color: var(--text);
  font-size: 0.92rem;
}
.auth-security-note strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* stage 4 final polish */
p, li, small, span, strong, th, td, label, h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: normal;
}
.brand-meta,
.brand-sidebar {
  min-width: 0;
}
.public-header .brand strong,
.public-header .brand span strong {
  color: #ffffff;
}
.public-header .brand small,
.public-header .brand span small {
  color: rgba(255,255,255,0.80);
}
.public-header .brand {
  min-width: 0;
}
.public-nav > a:not(.btn) {
  padding: 0.58rem 0.86rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.public-nav > a:not(.btn):hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.public-wrap {
  padding-block: 1.2rem 4rem;
}
.hero-shell.hero-shell-full {
  padding-top: 0.6rem;
}
.hero-stage.hero-card-full {
  min-height: calc(100vh - 8.5rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2.4rem;
  background:
    radial-gradient(circle at top right, rgba(201, 107, 75, 0.10), transparent 32%),
    radial-gradient(circle at left center, rgba(138, 154, 91, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,245,0.96));
}
.hero-stage-inner {
  width: min(980px, 100%);
}
.hero-card h1,
.hero-card p,
.hero-card strong {
  max-width: none;
}
.hero-card p {
  max-width: 64ch;
}
.hero-card-full h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
}
.hero-card-full .lead {
  font-size: 1.05rem;
  margin-bottom: 0;
}
.hero-metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.75rem;
}
.hero-metric-card {
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-sm);
}
.hero-metric-card span,
.hero-metric-card small {
  display: block;
  color: var(--muted);
}
.hero-metric-card span {
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}
.hero-metric-card strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.hero-metric-card small {
  font-size: 0.82rem;
}
.section-card {
  padding: 1.75rem;
}
.page-content-inner {
  width: min(1320px, 100%);
}
.topbar {
  padding: 1rem 1.6rem;
  background: rgba(248,241,234,0.94);
}
.page-title {
  line-height: 1.15;
}
.page-subtitle {
  max-width: 70ch;
}
.footer-note-grid > div,
.feature-card,
.role-card,
.process-card,
.showcase-card,
.quote-card,
.notice-card,
.readiness-card,
.report-filter-card,
.metric-callout,
.strip-card,
.stat-card {
  overflow: hidden;
}
.report-filter-card {
  min-height: 148px;
  align-content: start;
}
.report-filter-card small {
  line-height: 1.45;
}
.chat-thread-item strong,
.preview-row strong,
.detail-line strong,
.table-subtitle,
.page-subtitle,
.notice-card h3,
.note-tile strong,
.utility-chip,
.badge,
.status-chip {
  word-break: break-word;
}
.detail-line strong {
  max-width: 58%;
}
.quote-text {
  font-size: 1rem;
}
.footer-grid > div:first-child {
  padding-right: 1rem;
}
@media (max-width: 1200px) {
  .hero-stage.hero-card-full {
    min-height: auto;
  }
  .hero-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hero-stage.hero-card-full {
    padding: 1.4rem;
  }
  .hero-metric-grid {
    grid-template-columns: 1fr;
  }
  .detail-line strong {
    max-width: none;
  }
}


/* final revision April 16 */
.summary-duo {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}
.summary-duo-hero {
  margin-top: 1rem;
}
.strip-card-wide {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}
.strip-card-wide small {
  color: var(--muted);
  line-height: 1.5;
}
.schedule-inline-form {
  justify-content: flex-end;
}
.chat-page {
  min-height: calc(100vh - 11rem);
}
.chat-layout-refined {
  height: calc(100vh - 12.75rem);
  min-height: 720px;
  overflow: hidden;
}
.chat-sidebar,
.chat-main,
.chat-thread-list,
.chat-messages {
  min-height: 0;
}
.chat-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.chat-sidebar-head-refined {
  display: grid;
  gap: 1rem;
}
.chat-search input {
  min-height: 44px;
  border-radius: 999px;
  background: #fff;
  padding-inline: 1rem;
}
.chat-thread-list {
  overflow: auto;
  scrollbar-gutter: stable;
}
.chat-thread-item {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}
.chat-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,107,75,0.08);
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}
.chat-thread-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}
.chat-thread-body {
  min-width: 0;
}
.chat-thread-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-main-head-refined {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.chat-person {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}
.chat-person-meta {
  min-width: 0;
}
.chat-person-meta p,
.chat-person-meta small {
  margin: 0;
}
.chat-head-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.chat-head-side {
  max-width: 240px;
}
.chat-messages {
  align-content: start;
}
.chat-day-separator {
  display: flex;
  justify-content: center;
}
.chat-day-separator span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(201,107,75,0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.chat-form-refined {
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,245,0.98));
}
.chat-composer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
}
.chat-message-field textarea {
  min-height: 118px;
  max-height: 240px;
}
.chat-form-actions {
  display: grid;
  gap: 0.85rem;
}
.chat-upload-field,
.chat-submit-box {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.chat-submit-box {
  display: grid;
  gap: 0.7rem;
}
.hero-stage-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}
.hero-card-full h1 {
  max-width: 13.5ch;
  margin-inline: auto;
}
.hero-card-full .lead,
.hero-card-full .hero-badges,
.hero-card-full .action-row,
.hero-links-compact {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-card-full .lead {
  max-width: 62ch;
}
.hero-links-compact a {
  color: var(--primary-2);
}
@media (max-width: 1200px) {
  .summary-duo {
    grid-template-columns: 1fr;
  }
  .chat-layout-refined {
    height: auto;
    min-height: 760px;
  }
  .chat-composer-grid {
    grid-template-columns: 1fr;
  }
  .chat-head-side {
    max-width: none;
  }
}
@media (max-width: 760px) {
  .chat-main-head-refined,
  .chat-person {
    flex-direction: column;
  }
  .chat-layout-refined {
    min-height: auto;
  }
  .chat-messages {
    min-height: 360px;
  }
}


.panel-header > div:first-child,
.table-toolbar > div:first-child,
.section-head > div:first-child {
  max-width: 720px;
}
.panel-header .lead,
.table-toolbar .subtle-value,
.section-head .section-description {
  max-width: 62ch;
}


/* final polish April 16 - landing and chat */
.hero-topline {
  justify-content: center;
}
.hero-stage.hero-card-full {
  min-height: calc(100vh - 7.5rem);
  padding: 2.8rem;
}
.hero-stage-inner {
  width: min(1100px, 100%);
}
.hero-card-full h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}
.hero-card-full .lead {
  max-width: 66ch;
  margin-inline: auto;
  font-size: 1.08rem;
}
.hero-action-row {
  justify-content: center;
}
.hero-metric-card {
  min-height: 144px;
}
.hero-metric-card strong {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.landing-overview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.landing-overview-card {
  padding: 1.35rem;
  min-height: 100%;
}
.compact-note-list {
  gap: 0.5rem;
}
.landing-stat-stack {
  display: grid;
  gap: 0.85rem;
}
.landing-stat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.landing-stat-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.landing-stat-line span {
  color: var(--muted);
}
.landing-stat-line strong {
  max-width: 58%;
  text-align: right;
}
.summary-strip,
.kpi-grid {
  align-items: stretch;
}
.strip-card,
.stat-card,
.metric-callout {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}
.strip-card small,
.metric-callout small {
  line-height: 1.5;
}
.chat-layout-refined {
  height: calc(100vh - 11.6rem);
  min-height: 760px;
}
.chat-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-sidebar-head-refined {
  padding: 1.1rem 1.15rem;
  gap: 0.9rem;
}
.chat-sidebar-head-refined h3 {
  margin-bottom: 0.55rem;
}
.chat-sidebar-head-refined .subtle-value {
  line-height: 1.65;
}
.chat-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.chat-thread-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}
.chat-thread-item {
  padding: 1rem 1.05rem;
  align-items: flex-start;
}
.chat-thread-top {
  align-items: flex-start;
}
.chat-thread-top strong {
  line-height: 1.35;
}
.chat-thread-top small {
  white-space: nowrap;
}
.chat-thread-meta {
  align-items: center;
}
.chat-thread-meta span:first-child {
  color: var(--muted);
  font-size: 0.88rem;
}
.chat-thread-snippet {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}
.chat-main-head-refined {
  padding: 1.1rem 1.15rem;
}
.chat-conversation-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.25rem 1.25rem 0.9rem;
  overflow-y: auto;
  gap: 0.85rem;
  align-content: start;
  scrollbar-gutter: stable both-edges;
}
.chat-empty-message {
  min-height: 100%;
}
.chat-bubble {
  max-width: min(74%, 720px);
  border-radius: 20px;
}
.chat-bubble.theirs {
  border-top-left-radius: 10px;
}
.chat-bubble.mine {
  border-top-right-radius: 10px;
}
.chat-form-refined {
  flex: 0 0 auto;
  padding: 0.9rem 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,250,245,0.98));
}
.chat-composer-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}
.chat-input-wrap {
  display: grid;
  gap: 0.45rem;
}
.chat-input-wrap textarea {
  width: 100%;
  min-height: 58px;
  max-height: 168px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  line-height: 1.55;
  resize: none;
  box-shadow: inset 0 1px 0 rgba(201, 107, 75, 0.04);
}
.chat-input-wrap textarea:focus {
  outline: none;
  border-color: rgba(201, 107, 75, 0.36);
  box-shadow: 0 0 0 4px rgba(201, 107, 75, 0.08);
}
.chat-input-wrap small {
  margin-left: 0.2rem;
  font-size: 0.8rem;
}
.chat-send-button {
  min-width: 136px;
  min-height: 58px;
  padding-inline: 1.35rem;
}
@media (max-width: 1200px) {
  .landing-overview-grid {
    grid-template-columns: 1fr;
  }
  .chat-layout-refined {
    height: auto;
    min-height: 760px;
  }
}
@media (max-width: 760px) {
  .hero-stage.hero-card-full {
    min-height: auto;
    padding: 1.6rem;
  }
  .hero-card-full h1 {
    max-width: none;
  }
  .landing-stat-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-stat-line strong {
    max-width: none;
    text-align: left;
  }
  .chat-main-head-refined {
    padding-bottom: 0.95rem;
  }
  .chat-composer-inline {
    grid-template-columns: 1fr;
  }
  .chat-send-button {
    width: 100%;
  }
  .chat-bubble {
    max-width: 100%;
  }
}
/* Pemberitahuan dapat ditutup manual dan tetap mudah dioperasikan dengan keyboard. */
.alert-close{margin-left:auto;border:0;background:transparent;color:inherit;font:inherit;font-size:1.35rem;line-height:1;cursor:pointer;border-radius:.4rem;padding:.1rem .35rem}
.alert-close:focus-visible{outline:3px solid currentColor;outline-offset:2px}
