:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --soft-panel: #eef5f3;
  --text: #17202a;
  --muted: #647084;
  --line: #d9dee8;
  --primary: #0f6b5f;
  --primary-dark: #0a4c44;
  --accent: #c48a2c;
  --accent-soft: #fff5df;
  --blue-soft: #edf4ff;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--primary-dark);
}

.topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.inline-form {
  margin: 0;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 24px 56px;
}

.auth-panel,
.form-panel,
.featured-service,
.list-panel,
.chat-panel,
.conversation-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.05);
  padding: 28px;
}

.auth-panel,
.form-panel {
  margin: 48px auto;
  max-width: 640px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 10px;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.lede {
  color: var(--muted);
  font-size: 17px;
}

.public-hero {
  background: #10231e;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 520px;
  overflow: hidden;
}

.public-hero-copy {
  align-self: center;
  padding: 42px;
}

.public-hero-copy .eyebrow,
.public-hero-copy .lede {
  color: #dce8e3;
}

.public-hero-copy h1 {
  font-size: 48px;
}

.public-hero-image,
.login-visual {
  background:
    linear-gradient(90deg, rgba(16, 35, 30, 0.1), rgba(16, 35, 30, 0)),
    var(--hero-image) center / cover no-repeat;
  min-height: 420px;
}

.public-service-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.public-service-row article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.public-service-row span {
  color: var(--muted);
}

.login-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 460px);
  margin: 24px auto;
  max-width: 1080px;
}

.login-visual {
  align-items: end;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  min-height: 620px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.login-visual::before {
  background: linear-gradient(180deg, rgba(16, 35, 30, 0.05), rgba(16, 35, 30, 0.84));
  content: "";
  inset: 0;
  position: absolute;
}

.login-visual > div {
  max-width: 520px;
  position: relative;
}

.login-visual .eyebrow {
  color: #dce8e3;
}

.login-visual h1 {
  font-size: 36px;
}

.login-visual p {
  color: #edf5f0;
}

.login-panel {
  align-self: center;
  margin: 0;
  width: 100%;
}

.small-note,
small,
.eyebrow,
.muted-text {
  color: var(--muted);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.actions,
.dashboard-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.portal-hero {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(16, 35, 30, 0.96) 0%, rgba(16, 35, 30, 0.82) 48%, rgba(16, 35, 30, 0.18) 100%),
    var(--hero-image) center / cover no-repeat;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  margin-bottom: 22px;
  overflow: hidden;
  padding: 30px;
}

.portal-copy {
  align-self: center;
}

.portal-copy .eyebrow,
.portal-copy .lede {
  color: #d6e4df;
}

.portal-copy h1 {
  font-size: 42px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.portal-copy .secondary-link {
  background: #ffffff;
  color: var(--primary-dark);
}

.portal-visual {
  background: rgba(246, 243, 234, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 16px;
  min-height: 280px;
  padding: 22px;
}

.hub-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.hub-primary {
  background: #ffffff;
  border-color: #d7c496;
}

.hub-primary span {
  align-items: center;
  background: var(--primary-dark);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 72px;
}

.hub-primary strong {
  font-size: 22px;
}

.hub-primary small {
  color: var(--muted);
}

.hub-lanes {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-lanes span {
  background: #fffaf0;
  border: 1px solid #e5d5ab;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
}

.button-link,
button {
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.button-link:hover,
button:hover {
  background: var(--primary-dark);
}

.secondary-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--primary-dark);
  display: inline-block;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.full-width-link {
  text-align: center;
  width: 100%;
}

.messages {
  margin-bottom: 20px;
}

.message {
  background: #eef6f4;
  border: 1px solid #bddbd4;
  border-radius: 6px;
  padding: 12px 14px;
}

.message.error {
  background: #fff1f0;
  border-color: #f0b8b2;
  color: var(--danger);
}

.message.warning {
  background: #fff7e8;
  border-color: #ead29e;
}

form p {
  display: grid;
  gap: 6px;
}

.requirements-box,
.form-error-summary {
  border-radius: 8px;
  margin: 18px 0;
  padding: 14px 16px;
}

.requirements-box {
  background: var(--soft-panel);
  border: 1px solid #c8dfd9;
}

.requirements-box h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.requirements-box ul,
.field-error-list {
  margin: 0;
  padding-left: 20px;
}

.requirements-box li,
.field-error-list li {
  margin: 4px 0;
}

.form-error-summary {
  background: #fff1f0;
  border: 1px solid #f0b8b2;
  color: var(--danger);
}

.form-error-summary p {
  margin-bottom: 0;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.field-error-list {
  color: var(--danger);
  font-weight: 700;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  max-width: 100%;
  padding: 10px 12px;
  width: 100%;
}

.metric-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 24px;
}

.metric-strip article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric-strip span {
  color: var(--primary-dark);
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-strip p {
  color: var(--muted);
  margin-bottom: 0;
}

.featured-service {
  border-left: 5px solid var(--accent);
  margin: 24px 0;
}

.active-service {
  align-items: center;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-soft) 100%);
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.service-bridge {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
}

.service-bridge div {
  border-top: 1px solid rgba(196, 138, 44, 0.32);
  padding-top: 10px;
}

.service-bridge dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-bridge dd {
  margin: 3px 0 0;
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 34px 0 14px;
}

.section-head h2 {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 22px;
}

.shell-card {
  gap: 14px;
  min-height: 190px;
}

.card-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.status-pill {
  align-self: flex-start;
  background: var(--blue-soft);
  border: 1px solid #c7d8f5;
  border-radius: 999px;
  color: #24476f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.text-link {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.active-pill {
  background: #eaf8f4;
  border-color: #b7ddcf;
  color: var(--primary-dark);
}

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

.conversation-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  padding: 14px;
  text-decoration: none;
}

.chat-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.conversation-sidebar {
  align-self: start;
  position: sticky;
  top: 20px;
}

.conversation-sidebar h1 {
  font-size: 24px;
}

.sidebar-summary {
  color: var(--muted);
}

.memory-boundary {
  background: var(--soft-panel);
  border: 1px solid #c8dfd9;
  border-radius: 8px;
  margin: 20px 0;
  padding: 14px;
}

.memory-boundary p:last-child {
  margin-bottom: 0;
}

.sidebar-heading {
  margin-bottom: 0;
}

.sidebar-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-list a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
}

.chat-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.chat-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
}

.chat-header h2 {
  margin-bottom: 0;
}

.message-list {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 28px;
}

.chat-message,
.empty-chat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.chat-message.user {
  background: #f3faf8;
  justify-self: end;
  max-width: 82%;
}

.chat-message.assistant {
  background: #ffffff;
  justify-self: start;
  max-width: 88%;
}

.empty-chat {
  background: var(--soft-panel);
  border-color: #c8dfd9;
  align-self: start;
}

.message-role {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.message-meta {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.model-label {
  border-top: 1px solid var(--line);
  display: block;
  margin-top: 12px;
  padding-top: 8px;
}

.chat-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 20px 28px 28px;
}

.chat-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-errors {
  color: var(--danger);
}

.today-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 35, 30, 0.9) 0%, rgba(16, 35, 30, 0.72) 48%, rgba(16, 35, 30, 0.08) 100%),
    var(--today-image) center / cover no-repeat;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  min-height: 360px;
  overflow: hidden;
  padding: 34px;
}

.today-hero-copy {
  max-width: 560px;
}

.today-hero-copy .eyebrow,
.today-hero-copy p {
  color: #f4f0dc;
}

.today-hero h1 {
  font-size: 44px;
}

.today-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  margin-top: 18px;
}

.today-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.05);
  padding: 20px;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.stack-form {
  display: grid;
  gap: 10px;
}

.stack-form p {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

.customer-card {
  background: #fbf7eb;
  border: 1px solid #e5d5ab;
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}

.avatar-badge {
  align-items: center;
  background: var(--primary-dark);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 12px;
  width: 48px;
}

.mini-profile {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.mini-profile div {
  border-top: 1px solid #e5d5ab;
  padding-top: 8px;
}

.mini-profile dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-profile dd {
  margin: 0;
}

.conversation-game {
  display: grid;
  gap: 16px;
}

.today-chat-log {
  display: grid;
  gap: 12px;
  min-height: 420px;
}

.today-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.today-message.customer {
  background: #fffaf0;
  justify-self: start;
  max-width: 88%;
}

.today-message.sales {
  background: #f0f8f5;
  justify-self: end;
  max-width: 82%;
}

.today-composer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.today-composer label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.score-bars {
  display: grid;
  gap: 8px;
}

.score-row {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.insight-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.insight-list p {
  background: var(--soft-panel);
  border: 1px solid #c8dfd9;
  border-radius: 6px;
  margin-bottom: 0;
  padding: 10px;
}

.leaderboard-mini {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
}

.leaderboard-mini a,
.ranking-row,
.admin-session-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  padding: 12px;
  text-decoration: none;
}

.ranking-row span,
.admin-session-row span {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 800;
}

.med-hero {
  align-items: center;
  background: linear-gradient(90deg, #0f6b5f 0%, #eaf8f4 100%);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 300px;
  overflow: hidden;
  padding: 34px;
}

.med-hero p {
  max-width: 720px;
}

.med-hero .eyebrow,
.med-hero p {
  color: #f3fffb;
}

.med-icon {
  background: #ffffff;
  border-radius: 8px;
  height: 128px;
  object-fit: contain;
  padding: 20px;
  width: 128px;
}

.med-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 18px;
}

.med-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.05);
  padding: 22px;
}

.med-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.med-result.low {
  background: #f0f8f5;
  border-color: #b7ddcf;
}

.med-result.caution {
  background: #fff7e8;
  border-color: #ead29e;
}

.med-result.urgent {
  background: #fff1f0;
  border-color: #f0b8b2;
}

.history-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.vertical-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.92) 0%, rgba(23, 32, 42, 0.72) 48%, rgba(23, 32, 42, 0.08) 100%),
    var(--vertical-image) center / cover no-repeat;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 330px;
  overflow: hidden;
  padding: 34px;
}

.vertical-hero p {
  max-width: 760px;
}

.vertical-hero .eyebrow,
.vertical-hero p {
  color: #f4f0dc;
}

.vertical-hero h1 {
  font-size: 42px;
}

.tax-hero {
  background:
    linear-gradient(90deg, rgba(34, 48, 70, 0.94) 0%, rgba(34, 48, 70, 0.72) 48%, rgba(34, 48, 70, 0.05) 100%),
    var(--vertical-image) center / cover no-repeat;
}

.souzoku-hero {
  background:
    linear-gradient(90deg, rgba(75, 54, 42, 0.94) 0%, rgba(75, 54, 42, 0.72) 48%, rgba(75, 54, 42, 0.05) 100%),
    var(--vertical-image) center / cover no-repeat;
}

.education-hero {
  background:
    linear-gradient(90deg, rgba(42, 71, 67, 0.94) 0%, rgba(42, 71, 67, 0.72) 48%, rgba(42, 71, 67, 0.05) 100%),
    var(--vertical-image) center / cover no-repeat;
}

.building-hero {
  background:
    linear-gradient(90deg, rgba(72, 65, 45, 0.94) 0%, rgba(72, 65, 45, 0.72) 48%, rgba(72, 65, 45, 0.05) 100%),
    var(--vertical-image) center / cover no-repeat;
}

.pricehills-hero {
  background:
    linear-gradient(90deg, rgba(20, 82, 84, 0.94) 0%, rgba(20, 82, 84, 0.72) 48%, rgba(20, 82, 84, 0.05) 100%),
    var(--vertical-image) center / cover no-repeat;
}

.vertical-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: var(--primary-dark);
  display: flex;
  flex: 0 0 128px;
  font-size: 28px;
  font-weight: 900;
  height: 128px;
  justify-content: center;
  text-align: center;
}

.vertical-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
  margin-top: 18px;
}

.vertical-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.05);
  padding: 22px;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.result-card p {
  margin-bottom: 0;
}

.source-list,
.route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.source-list a,
.route-list span {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-list p,
.boundary-box p {
  background: var(--soft-panel);
  border: 1px solid #c8dfd9;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.boundary-box {
  display: grid;
  gap: 8px;
}

.quiz-form ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quiz-form li label {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.quiz-form input[type="radio"],
.stack-form input[type="checkbox"] {
  width: auto;
}

.warning-pill {
  background: #fff7e8;
  border-color: #ead29e;
  color: #78500e;
}

.danger-pill {
  background: #fff1f0;
  border-color: #f0b8b2;
  color: var(--danger);
}

@media (max-width: 760px) {
  .topbar,
  .nav,
  .actions,
  .dashboard-head,
  .portal-hero,
  .public-hero,
  .login-hero,
  .conversation-row,
  .active-service,
  .section-head,
  .chat-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
    padding: 16px;
  }

  .page {
    padding: 20px 14px 40px;
  }

  .public-hero,
  .login-hero {
    grid-template-columns: 1fr;
  }

  .public-hero-copy {
    padding: 28px;
  }

  .public-hero-copy h1 {
    font-size: 38px;
  }

  .public-hero-image {
    min-height: 320px;
  }

  .login-visual {
    min-height: 420px;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .today-layout {
    grid-template-columns: 1fr;
  }

  .med-layout {
    grid-template-columns: 1fr;
  }

  .vertical-layout {
    grid-template-columns: 1fr;
  }

  .vertical-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .vertical-badge {
    flex-basis: auto;
    height: 96px;
    width: 112px;
  }

  .med-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .today-hero {
    min-height: 420px;
  }

  .today-message.customer,
  .today-message.sales {
    justify-self: stretch;
    max-width: none;
  }

  .portal-hero {
    grid-template-columns: 1fr;
  }

  .conversation-sidebar {
    position: static;
  }

  .metric-strip,
  .service-bridge,
  .public-service-row,
  .hub-lanes {
    grid-template-columns: 1fr;
  }

  .chat-message.user,
  .chat-message.assistant {
    justify-self: stretch;
    max-width: none;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
