:root {
  --bg: #f3f7f5;
  --surface: #ffffff;
  --surface-strong: #eef6f3;
  --ink: #16302d;
  --muted: #667a76;
  --line: #dce7e3;
  --primary: #176d74;
  --primary-dark: #0e4c52;
  --accent: #3f86d9;
  --warning: #c8791c;
  --danger: #b84242;
  --shadow: 0 20px 50px rgba(26, 61, 57, 0.12);
  --shadow-soft: 0 10px 28px rgba(25, 58, 54, 0.08);
  --radius: 10px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7fbfa 0%, var(--bg) 420px),
    var(--bg);
  color: var(--ink);
  font-family:
    "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(210, 226, 221, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 26px rgba(20, 55, 51, 0.06);
}

.header-left {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #16717a, #29a078);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(23, 109, 116, 0.18);
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.header-actions,
.hero-actions,
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  justify-content: flex-end;
  min-width: 0;
  flex-shrink: 0;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(220, 231, 227, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.account-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0 6px 0 0;
}

.account-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.account-copy strong,
.account-copy small {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 13px;
  font-weight: 900;
}

.account-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-auth-button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #edf6f3;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
}

.account-pill[data-login-state="member"] .account-auth-button {
  background: #fff1f0;
  color: var(--danger);
}

.menu-shell {
  position: relative;
}

.menu-button {
  display: flex;
  flex-direction: column;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(220, 231, 227, 0.95);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-button span {
  display: block;
  width: 22px;
  height: 1.7px;
  border-radius: 999px;
  background: #24423f;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  background: var(--surface-strong);
}

.hamburger-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 238px;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(220, 231, 227, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.hamburger-menu a,
.hamburger-menu button {
  display: flex;
  min-height: 40px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.hamburger-menu a:hover,
.hamburger-menu button:hover {
  background: var(--surface-strong);
  color: var(--primary-dark);
}

.hamburger-menu a.active {
  background: #e7f4f0;
  color: var(--primary-dark);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 109, 116, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

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

.secondary-button,
.ghost-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.82);
}

.danger-button {
  padding: 0 16px;
  background: #fff1f0;
  color: var(--danger);
}

.icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  color: var(--primary);
}

.large {
  min-height: 48px;
  padding-inline: 22px;
}

.compact {
  min-height: 38px;
  padding-inline: 14px;
}

.hero-panel {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(7, 33, 31, 0.78), rgba(7, 33, 31, 0.36) 54%, rgba(7, 33, 31, 0.08)),
    url("assets/campus-study-hero.png") center / cover no-repeat;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(243, 247, 245, 0), var(--bg));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy .eyebrow {
  color: #9ee4d1;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  font-family:
    "Noto Serif TC", "Source Han Serif TC", "Noto Sans TC", serif;
  font-weight: 700;
}

h2 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 900;
}

h3 {
  font-size: 20px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 24px;
}

.hero-actions .primary-button {
  box-shadow: 0 16px 36px rgba(20, 76, 78, 0.32);
}

.hero-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(270px, 320px) 1fr;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 54px) 64px;
}

.filter-panel,
.page-panel,
.dialog-card,
.room-card,
.record-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.filter-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

label,
.filter-group {
  display: grid;
  gap: 7px;
}

label span,
.filter-group > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 109, 116, 0.12);
}

.search-box,
.filter-group,
.filter-grid,
.advanced-filter {
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.chip.active {
  border-color: rgba(23, 109, 116, 0.28);
  background: var(--surface-strong);
  color: var(--primary-dark);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.advanced-filter {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.advanced-filter summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.advanced-filter[open] summary {
  margin-bottom: 10px;
}

.advanced-filter label {
  margin-bottom: 10px;
}

.inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.room-area {
  min-width: 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.room-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px 18px 18px 22px;
  box-shadow: 0 14px 34px rgba(31, 67, 61, 0.1);
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
}

.room-card.intensity-light {
  background: linear-gradient(180deg, #ecfbf2 0%, #f8fffb 58%, #ffffff 100%);
  border-color: #84d6ae;
}

.room-card.intensity-medium {
  background: linear-gradient(180deg, #edf6ff 0%, #f8fbff 58%, #ffffff 100%);
  border-color: #8bbce8;
}

.room-card.intensity-intense {
  background: linear-gradient(180deg, #fff1ea 0%, #fff9f5 58%, #ffffff 100%);
  border-color: #efab93;
}

.room-card.intensity-light::before {
  background: #26a86f;
}

.room-card.intensity-medium::before {
  background: #2c77c7;
}

.room-card.intensity-intense::before {
  background: #dc6542;
}

.room-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.room-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.status-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.almost-full {
  background: #fff4df;
  color: var(--warning);
}

.status-pill.full,
.status-pill.ended {
  background: #edf0f0;
  color: #6b7472;
}

.meta-list {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.host-row,
.member-row,
.card-actions,
.room-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e7ecef;
  color: #4e5d62;
  font-weight: 800;
  object-fit: cover;
}

.avatar-male {
  background: #dcecff;
  color: #245a9f;
}

.avatar-female {
  background: #ffe1e8;
  color: #a33a56;
}

.avatar-unknown {
  background: #e8ecef;
  color: #566166;
}

.avatar-image {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.intensity-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.intensity-pill.intensity-light,
.intensity-option.light {
  background: #ccefdc;
  color: #0d6a45;
}

.intensity-pill.intensity-medium,
.intensity-option.medium {
  background: #d5e9ff;
  color: #1f62aa;
}

.intensity-pill.intensity-intense,
.intensity-option.intense {
  background: #ffe0d2;
  color: #bd4a25;
}

.condition-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(102, 122, 118, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-people-block {
  display: grid;
  gap: 8px;
}

.people-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 10px 3px 4px;
  border: 1px solid rgba(102, 122, 118, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.member-chip .avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: 12px;
}

.more-chip {
  padding-inline: 12px;
  color: var(--muted);
}

.notes {
  min-height: 48px;
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.card-actions {
  justify-content: space-between;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed #b8c9c4;
  border-radius: var(--radius);
  text-align: center;
}

.page-panel {
  margin: 28px clamp(18px, 4vw, 54px) 56px;
  padding: clamp(20px, 4vw, 34px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 34px;
}

.soft-copy {
  color: var(--muted);
  line-height: 1.7;
}

.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.record-list,
.settings-stack,
.panel-form {
  display: grid;
  gap: 14px;
}

.record-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
}

.record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.switch-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.switch-row input {
  width: auto;
  min-height: auto;
}

.blacklist-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.dialog-card {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  padding: 0;
  box-shadow: var(--shadow);
}

.wide-dialog {
  width: min(760px, calc(100vw - 32px));
}

.detail-dialog {
  width: min(960px, calc(100vw - 32px));
}

.dialog-card::backdrop {
  background: rgba(12, 31, 29, 0.44);
  backdrop-filter: blur(4px);
}

.dialog-close-form {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
  background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
}

.modal-form,
#roomDetail {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.subsection-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.subsection-panel h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.condition-card {
  background: linear-gradient(180deg, #f2faf7 0%, #fbfdfc 100%);
}

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

.condition-field {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.condition-field > span,
.condition-field > label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.segmented-control label {
  display: block;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.segmented-control span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.segmented-control input:checked + span {
  background: var(--primary);
  color: #fff;
}

.range-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-pair label {
  gap: 6px;
}

.range-pair label span {
  color: var(--muted);
  font-size: 12px;
}

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

.intensity-option {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.45;
}

.intensity-option input {
  width: auto;
  min-height: auto;
}

.intensity-option span {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 280px;
  gap: 22px;
}

.detail-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.detail-section h3 {
  margin-bottom: 0;
}

.danger-zone {
  border-color: #f0c7c2;
  background: #fff8f7;
}

.application-list,
.message-list {
  display: grid;
  gap: 10px;
}

.application-card,
.message-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.application-card footer {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.qr-box {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: white;
}

.qr-box img {
  width: 168px;
  height: 168px;
  border-radius: 4px;
}

.invite-code {
  padding: 8px 10px;
  border-radius: 6px;
  background: #eef6f3;
  color: var(--primary-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: #143733;
  color: white;
  box-shadow: var(--shadow);
}

.notice-content {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .app-header {
    align-items: center;
    flex-wrap: nowrap;
  }

  .header-left {
    flex: 1;
  }

  .hamburger-menu {
    position: fixed;
    top: 74px;
    right: clamp(14px, 4vw, 30px);
    width: min(320px, calc(100vw - 28px));
  }

  .workspace,
  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .intensity-options {
    grid-template-columns: 1fr;
  }

  .condition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    width: auto;
    display: flex;
    gap: 8px;
  }

  .account-pill {
    padding: 3px;
  }

  .account-copy {
    display: none;
  }

  .account-auth-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  .hero-panel {
    min-height: 500px;
    padding-block: 58px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.13;
  }

  .hero-actions,
  .card-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions > *,
  .card-actions > *,
  .section-heading .primary-button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .record-card {
    grid-template-columns: 1fr;
  }

  .record-actions,
  .notice-actions,
  .inline-grid,
  .range-pair,
  .condition-summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .record-actions > *,
  .notice-actions > *,
  .notice-actions form,
  .notice-actions button {
    width: 100%;
  }
}
