:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background:
    radial-gradient(circle at top left, rgba(255, 174, 0, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(7, 99, 142, 0.18), transparent 30%),
    linear-gradient(180deg, #f4efe7 0%, #f8f7f3 100%);
  color: #10232e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.panel {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(16, 35, 46, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(16, 35, 46, 0.08);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 32px;
}

.hero-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #10232e, #0e5f66);
  color: #f5f0e8;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #0e5f66;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.hero-text,
.panel-heading p,
.metric-note,
.empty-state {
  margin: 0;
  color: rgba(16, 35, 46, 0.76);
}

.metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
}

.metric-label {
  margin-top: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-note {
  color: rgba(245, 240, 232, 0.8);
  margin-top: 12px;
}

.invite-panel {
  margin-bottom: 20px;
  background:
    radial-gradient(circle at top right, rgba(7, 99, 142, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 232, 0.96), rgba(238, 246, 244, 0.96));
}

.invite-state {
  margin: 0;
  color: rgba(16, 35, 46, 0.76);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.primary-invite-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 35, 46, 0.12);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
}

.primary-invite-button {
  background: #10232e;
  color: #f5f0e8;
}

.whatsapp-button {
  background: #1f9d5b;
  color: #f7fff9;
}

.primary-invite-button:hover {
  background: #173341;
}

.whatsapp-button:hover {
  background: #19834c;
}

.invite-state {
  margin-top: 12px;
  font-size: 0.92rem;
}

.invite-state.success {
  color: #cdebd7;
}

.invite-state.warning {
  color: #ffe6aa;
}

.invite-state.hidden {
  display: none;
}

.layout {
  display: block;
}

.panel {
  padding: 24px;
}

.main-panel {
  padding: 20px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.three-column {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr 1fr;
  gap: 20px;
}

.subpanel {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(16, 35, 46, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(16, 35, 46, 0.08);
  padding: 24px;
}

.panel-heading {
  margin-bottom: 18px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-button {
  border: 1px solid rgba(16, 35, 46, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fffdfa;
  color: rgba(16, 35, 46, 0.78);
  cursor: pointer;
}

.tab-button.active {
  background: #10232e;
  color: #f5f0e8;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.rules-list,
.dashboard-cards,
.dashboard-topics {
  display: grid;
  gap: 12px;
}

.rule-card,
.metric-card {
  border: 1px solid rgba(16, 35, 46, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 237, 0.96));
}

.rule-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.rule-card p {
  margin: 0;
  color: rgba(16, 35, 46, 0.76);
}

.topic-list,
.perspective-list,
.perspective-form {
  display: grid;
  gap: 12px;
}

.topic-button {
  text-align: left;
  border: 1px solid rgba(16, 35, 46, 0.1);
  border-radius: 18px;
  padding: 16px;
  background: #fffdfa;
  color: #10232e;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.topic-button:hover,
.topic-button.active {
  transform: translateY(-1px);
  border-color: rgba(14, 95, 102, 0.45);
  box-shadow: 0 12px 30px rgba(14, 95, 102, 0.12);
}

.topic-button small {
  display: block;
  margin-top: 8px;
  color: rgba(16, 35, 46, 0.66);
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.filters input,
.filters select,
.perspective-form input,
.perspective-form select,
.perspective-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 35, 46, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fffdfa;
  color: #10232e;
}

.perspective-card {
  border: 1px solid rgba(16, 35, 46, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 237, 0.96));
}

.perspective-meta,
.context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perspective-meta span,
.context-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(14, 95, 102, 0.08);
  color: #0e5f66;
  font-size: 0.9rem;
}

.perspective-text {
  margin: 14px 0;
  white-space: pre-wrap;
}

.perspective-form button {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  background: #10232e;
  color: #f5f0e8;
  cursor: pointer;
}

.submit-state {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
}

.submit-state.success {
  background: rgba(27, 123, 82, 0.12);
  color: #1b7b52;
}

.submit-state.warning {
  background: rgba(192, 120, 0, 0.12);
  color: #8d5800;
}

.submit-state.error {
  background: rgba(161, 47, 39, 0.12);
  color: #a12f27;
}

.moderation-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(192, 120, 0, 0.18);
  background: rgba(192, 120, 0, 0.08);
}

.moderation-panel.hidden {
  display: none;
}

.moderation-panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.moderation-copy {
  margin: 0 0 10px;
  color: rgba(16, 35, 46, 0.78);
}

.moderation-panel textarea {
  width: 100%;
  border: 1px solid rgba(16, 35, 46, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fffdfa;
  color: #10232e;
}

.submit-state.hidden {
  display: none;
}

.log-list,
.change-list,
.ticket-list {
  display: grid;
  gap: 12px;
}

.dashboard-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-card-value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.metric-card-label {
  display: block;
  margin-top: 8px;
  color: rgba(16, 35, 46, 0.68);
  font-size: 0.88rem;
}

.log-entry,
.change-entry,
.ticket-entry {
  border: 1px solid rgba(16, 35, 46, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 237, 0.96));
}

.log-entry {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-grid {
  align-items: start;
}

.ticket-section h3,
.entry-title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.entry-meta {
  margin-bottom: 10px;
  color: rgba(16, 35, 46, 0.6);
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .hero,
  .intro-grid,
  .three-column,
  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
