:root {
  --bg: #ffffff;
  --ink: #172029;
  --muted: #62717f;
  --line: #dfe7ee;
  --soft: #f5f8fb;
  --teal: #006a70;
  --blue: #195ca8;
  --amber: #b97818;
  --green: #17825d;
  --shadow: 0 18px 48px rgba(17, 32, 46, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

main,
section,
div,
article,
aside,
input,
textarea,
.hero-copy,
.search-panel,
.assistant-panel,
.detail-panel,
.content-grid,
.channel-list,
.pilot-grid,
.pilot-controls,
.pilot-output {
  min-width: 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 248px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  font-weight: 800;
}

.brand-logo {
  background: transparent;
  color: inherit;
  border-radius: 0;
}

.brand-logo img {
  display: block;
  width: 40px;
  height: 40px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.nav,
.panel-note,
.section-head p,
.workflow p,
.footer,
.meta-row,
.source-note {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.language-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lang-button {
  min-width: 52px;
  border: 0;
  padding: 9px 12px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 72px clamp(20px, 5vw, 72px) 42px;
}

.assistant-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: 48px clamp(20px, 5vw, 72px) 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.compact-head {
  margin: 0;
  position: sticky;
  top: 100px;
}

.compact-head h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.compact-head p {
  max-width: 520px;
  font-size: 18px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 72px;
  line-height: 1.02;
  font-weight: 780;
  overflow-wrap: break-word;
}

.hero-copy > p {
  max-width: 680px;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.search-panel {
  max-width: 760px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-row svg {
  color: var(--teal);
  flex: 0 0 auto;
}

.search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 18px;
}

.quick-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 820px;
}

.type-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.type-button.is-active {
  border-color: var(--teal);
  background: #e8f5f4;
  color: var(--teal);
}

.assistant-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.assistant-panel {
  align-self: start;
  padding: 24px;
}

.conversation-panel {
  display: grid;
  gap: 16px;
  box-shadow: 0 20px 56px rgba(17, 32, 46, 0.1);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 999px;
}

.panel-note {
  line-height: 1.5;
}

.ask-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chat-composer {
  margin-top: 0;
}

.ask-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.ask-form button,
.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 800;
}

.assistant-answer {
  margin-top: 18px;
  padding: 16px;
  background: var(--soft);
  border-radius: 8px;
  line-height: 1.55;
}

.chat-thread {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  margin-top: 0;
  padding: 14px;
}

.chat-message {
  width: min(100%, 760px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.chat-message p {
  margin: 0;
}

.assistant-message {
  justify-self: start;
}

.user-message {
  justify-self: end;
  border-color: rgba(0, 106, 112, 0.24);
  background: #e8f5f4;
}

.composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.file-control {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 106, 112, 0.28);
  border-radius: 8px;
  background: #e8f5f4;
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.file-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.file-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.assistant-answer ol {
  padding-left: 20px;
}

.answer-mode {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 2px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.model-warning {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 120, 24, 0.28);
  border-radius: 8px;
  background: #fff7e8;
  color: #8a560f;
  font-size: 13px;
  font-weight: 700;
}

.assistant-content {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.assistant-content p,
.assistant-content ul,
.assistant-content ol {
  margin: 0;
}

.assistant-content ul,
.assistant-content ol {
  padding-left: 20px;
}

.action-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.action-links > strong {
  color: var(--ink);
}

.action-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 106, 112, 0.28);
  border-radius: 8px;
  background: #e8f5f4;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.visual-guide {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.visual-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-guide-head span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.guide-steps {
  display: grid;
  gap: 12px;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.guide-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.guide-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-copy {
  display: grid;
  gap: 7px;
}

.guide-copy span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-copy h4,
.guide-copy p {
  margin: 0;
}

.guide-copy p {
  color: var(--muted);
}

.guide-copy a {
  width: fit-content;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.notice-band {
  margin: 0 clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--amber);
  font-weight: 700;
}

.notice-band p {
  margin: 0;
  padding: 18px 0;
}

.pilot {
  padding: 46px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.logo-lab {
  padding: 46px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.logo-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.logo-options article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

.logo-options img {
  width: 72px;
  height: 72px;
}

.logo-options h3 {
  margin: 14px 0 8px;
}

.logo-options p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.pilot-controls,
.pilot-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(17, 32, 46, 0.07);
}

.pilot-controls {
  display: grid;
  gap: 12px;
}

.pilot-controls label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.pilot-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: white;
}

.pilot-output h3,
.pilot-output h4 {
  margin: 0 0 10px;
}

.pilot-output h4 {
  margin-top: 18px;
  color: var(--teal);
  font-size: 13px;
  text-transform: uppercase;
}

.pilot-output ul {
  padding-left: 20px;
  line-height: 1.55;
}

.prompt-box {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.layout,
.workflow {
  padding: 54px clamp(20px, 5vw, 72px);
}

.channel-search {
  max-width: 860px;
  margin-bottom: 18px;
  box-shadow: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}

.section-head h2,
.workflow h2 {
  margin: 0;
  font-size: 34px;
}

.section-head p,
.workflow p {
  max-width: 520px;
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.channel-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 92, 168, 0.12);
}

.icon-box {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--blue);
  background: #eaf2fb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.agency-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
}

.agency-logo svg {
  display: none;
}

.agency-logo.logo-fallback svg {
  display: block;
}

.agency-logo.large {
  width: 92px;
  height: 92px;
}

.agency-logo.large img {
  width: 78px;
  height: 78px;
}

.channel-card h3,
.detail-panel h3 {
  margin: 0;
}

.channel-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.verified {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.detail-panel {
  padding: 24px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.detail-kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
}

.meta-row span {
  padding: 7px 9px;
  background: var(--soft);
  border-radius: 8px;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-panel h4 {
  margin: 18px 0 8px;
}

.detail-panel ul,
.detail-panel ol {
  padding-left: 20px;
  line-height: 1.55;
}

.source-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.workflow {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 30px;
  background: var(--soft);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.workflow-steps div {
  min-height: 122px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 18px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .topbar,
  .section-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    margin-left: 0;
  }

  .brand {
    min-width: 0;
  }

  .hero,
  .assistant-section,
  .content-grid,
  .workflow,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 54px;
  }

  .quick-types,
  .workflow-steps,
  .logo-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .assistant-section,
  .layout,
  .workflow,
  .pilot,
  .footer {
    width: 100vw;
    max-width: 100vw;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.08;
    max-width: 342px;
  }

  .hero-copy > p {
    font-size: 17px;
    max-width: 342px;
  }

  .search-row input {
    font-size: 16px;
  }

  .search-panel,
  .quick-types,
  .assistant-panel,
  .notice-band,
  .content-grid,
  .detail-panel,
  .pilot-grid,
  .pilot-controls,
  .pilot-output {
    max-width: 342px;
  }

  .quick-types,
  .detail-columns,
  .workflow-steps,
  .logo-options {
    grid-template-columns: 1fr;
  }

  .channel-card {
    grid-template-columns: 56px 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
  }

  .verified {
    grid-column: 2;
  }
}

/* User-facing redesign inspired by Dubai 04: service-first hero, clear AI entry, compact channel grid. */
:root {
  --civic-navy: #121e2a;
  --civic-blue: #155ea8;
  --civic-cyan: #00a7b5;
  --civic-mint: #e7f7f4;
  --civic-gold: #c98620;
  --glass: rgba(255, 255, 255, 0.88);
  --deep-shadow: 0 24px 80px rgba(18, 30, 42, 0.16);
}

body {
  background: #ffffff;
}

.topbar {
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
}

.brand {
  min-width: 260px;
}

.brand strong {
  color: var(--civic-navy);
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
}

.nav {
  gap: 24px;
  font-weight: 700;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  background: #eef6fb;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 32%, rgba(255, 255, 255, 0.34) 61%, rgba(255, 255, 255, 0.76) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, #ffffff 100%),
    url("brand/dubai-civic-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 56px);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--civic-navy);
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.01;
  font-weight: 820;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 560px;
  margin: 20px 0 28px;
  color: #425466;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.hero-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 12px;
}

.hero-entry {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(18, 30, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(18, 30, 42, 0.08);
  backdrop-filter: blur(12px);
}

.hero-entry.is-primary {
  background: var(--civic-navy);
  color: white;
}

.entry-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--civic-mint);
  color: var(--teal);
}

.hero-entry.is-primary .entry-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--civic-cyan);
}

.hero-entry strong,
.hero-entry small {
  display: block;
}

.hero-entry strong {
  font-size: 17px;
}

.hero-entry small {
  margin-top: 4px;
  color: #667786;
  font-size: 13px;
  line-height: 1.35;
}

.hero-entry.is-primary small {
  color: rgba(255, 255, 255, 0.75);
}

.hero-chat-card {
  width: 100%;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--glass);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(18px);
}

.chat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.chat-card-head div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.chat-card-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-chat-card .chat-thread {
  max-height: 330px;
  min-height: 210px;
  background: rgba(245, 248, 251, 0.82);
}

.hero-chat-card textarea {
  min-height: 108px;
  background: rgba(255, 255, 255, 0.92);
}

.notice-band {
  margin: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  background: #fffaf0;
}

.channels-section {
  padding: clamp(46px, 6vw, 78px) clamp(18px, 4vw, 56px);
  background: #ffffff;
}

.channels-head {
  align-items: center;
  margin-bottom: 26px;
}

.channels-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.channels-head p {
  max-width: 560px;
}

.channel-search {
  width: min(100%, 480px);
  margin: 0;
  background: white;
  box-shadow: 0 12px 34px rgba(18, 30, 42, 0.07);
}

.channel-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
}

.channel-card-grid .channel-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  min-height: 214px;
  padding: 18px;
  border: 1px solid #dbe6ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 12px 32px rgba(18, 30, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.channel-card-grid .channel-card:hover,
.channel-card-grid .channel-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 106, 112, 0.38);
  box-shadow: 0 18px 42px rgba(18, 30, 42, 0.11);
  outline: 0;
}

.channel-card-grid .channel-card.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 106, 112, 0.12), 0 18px 42px rgba(18, 30, 42, 0.11);
}

.channel-logo {
  width: 82px;
  height: 82px;
  background: white;
  border: 1px solid #e4edf4;
  box-shadow: 0 10px 24px rgba(18, 30, 42, 0.07);
}

.channel-logo img {
  width: 68px;
  height: 68px;
}

.channel-card-copy h3 {
  font-size: 18px;
  line-height: 1.25;
}

.channel-card-copy p {
  font-size: 14px;
  line-height: 1.45;
}

.channel-arrow {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: end;
  align-self: end;
  border-radius: 8px;
  background: var(--civic-mint);
  color: var(--teal);
}

.channel-arrow svg {
  width: 18px;
  height: 18px;
}

.channel-detail-panel {
  margin-top: 18px;
  box-shadow: 0 18px 48px rgba(18, 30, 42, 0.08);
}

.channel-detail-panel.is-empty {
  padding: 22px;
  background: #f7fafc;
  box-shadow: none;
}

.empty-detail {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.empty-detail strong {
  color: var(--ink);
}

.site-footer {
  align-items: center;
  background: var(--civic-navy);
  color: white;
  border: 0;
}

.site-footer p {
  max-width: 720px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 800;
}

.footer-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.social-logo-link {
  gap: 8px;
}

.social-logo-link img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.social-logo-link.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.feedback-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(18, 30, 42, 0.24);
}

.feedback-dialog::backdrop {
  background: rgba(18, 30, 42, 0.44);
}

.feedback-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.feedback-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.feedback-head strong {
  display: block;
  font-size: 22px;
}

.feedback-head p,
.feedback-privacy,
.feedback-status {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.feedback-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  font: inherit;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 800;
}

.feedback-actions button:first-child {
  background: var(--soft);
  color: var(--ink);
}

.feedback-actions button:last-child {
  background: var(--teal);
  color: white;
}

@media (max-width: 1180px) {
  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-chat-card {
    max-width: 820px;
  }

  .channel-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .home-hero,
  .hero-content {
    min-height: auto;
    max-width: 100vw;
  }

  .hero-content {
    display: block;
    width: 100vw;
    padding: 34px 20px 42px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-entry-grid,
  .hero-chat-card {
    width: auto;
    max-width: 100%;
  }

  .hero-chat-card {
    margin-top: 28px;
    padding: 16px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero-entry-grid,
  .channel-card-grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .hero-entry {
    grid-template-columns: 44px minmax(0, 1fr);
    min-width: 0;
  }

  .chat-card-head > span {
    display: none;
  }

  .chat-card-head div,
  .chat-message {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-chat-card .chat-thread {
    max-height: 380px;
  }

  .channels-head {
    align-items: stretch;
  }

  .channel-search {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}
