:root {
  --forest: #16382c;
  --forest-deep: #0f2b22;
  --spruce: #225e49;
  --accent: #d99b3d;
  --warm-white: #f7f5ee;
  --paper: #fffefa;
  --parchment: #e9e2d1;
  --sky: #7da8b5;
  --ink: #17211d;
  --muted: #68716c;
  --line: #d8d8d1;
  --success: #2f815d;
  --warning: #c18125;
  --danger: #a85245;
  --sidebar-width: 208px;
  --topbar-height: 66px;
  --radius: 7px;
  --shadow: 0 12px 30px rgb(18 43 34 / 8%);
  color-scheme: light;
  font-family: Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--warm-white);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--warm-white);
}

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

button,
summary,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, white);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #f7f5ee;
  background: var(--forest);
  border-right: 1px solid rgb(255 255 255 / 10%);
}

.unit-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.unit-brand img {
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
}

.unit-brand strong {
  max-width: 180px;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: .01em;
}

.unit-brand span {
  max-width: 180px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  color: rgb(255 255 255 / 78%);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav {
  display: grid;
  gap: 2px;
  padding: 12px 9px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-align: left;
  color: rgb(255 255 255 / 80%);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
}

.nav-item span {
  font-size: 13px;
  font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgb(255 255 255 / 11%);
}

.nav-item.active {
  border-left-color: var(--accent);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 14px 16px 18px;
  text-align: center;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .22em;
  color: rgb(255 255 255 / 62%);
}

.shell-body {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 26px;
  background: rgb(247 245 238 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.global-search {
  position: relative;
  width: min(420px, 47vw);
  display: flex;
  align-items: center;
}

.global-search > .icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--ink);
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 39px;
  padding: 0 14px 0 42px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
}

.search-results {
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.search-results button {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 2px 10px;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.search-results button:hover {
  background: var(--warm-white);
}

.search-results span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--spruce);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search-results strong {
  font-size: 13px;
}

.search-results small {
  color: var(--muted);
  font-size: 11px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button,
.bare-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.icon-button:hover,
.bare-button:hover {
  background: rgb(23 33 29 / 6%);
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 2px solid var(--warm-white);
  border-radius: 50%;
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.profile > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.profile div {
  display: grid;
  gap: 1px;
}

.profile strong {
  font-size: 12px;
}

.profile small {
  color: var(--muted);
  font-size: 10px;
}

.main-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 28px 46px;
}

.page-header {
  min-height: 93px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 2px 24px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(29px, 3vw, 41px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.page-header p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.button .icon {
  width: 17px;
  height: 17px;
}

.button.primary {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.button.accent {
  color: #1d241f;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 80%, #7b5315);
}

.page-header .button.primary {
  color: #1d241f;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 80%, #7b5315);
}

.button.secondary {
  color: var(--forest);
  background: transparent;
  border-color: color-mix(in srgb, var(--forest) 45%, var(--line));
}

.button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.button.large {
  min-width: 220px;
  min-height: 52px;
  font-size: 14px;
}

.button.small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11px;
}

.button.active {
  color: white;
  background: var(--success);
  border-color: var(--success);
}

.text-button,
.wide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  color: #155f8d;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-button .icon,
.wide-link .icon {
  width: 16px;
  height: 16px;
}

.text-button:hover,
.wide-link:hover {
  color: var(--forest);
}

.panel {
  background: rgb(255 254 250 / 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-heading {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.panel > h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.panel-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.today-band {
  min-height: 155px;
  display: grid;
  grid-template-columns: .75fr 1.15fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
  color: white;
  background: var(--forest);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--forest) 18%, transparent);
}

.today-band h2 {
  margin: 0;
  font-size: 39px;
  line-height: 1;
  letter-spacing: -.04em;
}

.today-band p {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgb(255 255 255 / 78%);
}

.next-meeting {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  padding-left: 28px;
  border-left: 1px solid rgb(255 255 255 / 35%);
}

.today-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid rgb(255 255 255 / 68%);
  border-radius: 50%;
}

.next-meeting div {
  display: grid;
  gap: 3px;
}

.next-meeting small {
  color: rgb(255 255 255 / 75%);
  font-size: 11px;
}

.next-meeting strong {
  font-size: 17px;
}

.next-meeting span {
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) 288px;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.event-list,
.request-list {
  padding: 0 14px;
}

.event-row {
  width: 100%;
  min-height: 89px;
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  align-items: center;
  gap: 13px;
  padding: 10px 4px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.event-row > time,
.event-detail-row > time {
  display: grid;
  justify-items: center;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.event-row time span,
.event-detail-row time span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
}

.event-row time strong,
.event-detail-row time strong {
  font-size: 24px;
  line-height: 1;
}

.event-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.event-copy strong {
  font-size: 13px;
}

.event-copy span {
  color: #45524c;
  font-size: 11px;
}

.event-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row > .icon {
  width: 16px;
  height: 16px;
}

.event-row:hover {
  background: color-mix(in srgb, var(--parchment) 32%, transparent);
}

.add-row {
  margin: 10px 18px 14px;
}

.request-row {
  min-height: 89px;
  display: grid;
  grid-template-columns: 41px 1fr 26px;
  align-items: center;
  gap: 11px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.request-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.request-row strong {
  font-size: 13px;
}

.request-row span span {
  color: #41534a;
  font-size: 11px;
}

.request-row small {
  color: var(--muted);
  font-size: 10px;
}

.avatar {
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--sky);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.request-row:nth-child(3n+2) .avatar,
.mini-messages button:nth-child(3n+2) .avatar,
.table-row:nth-child(3n+2) .avatar {
  background: #8a918f;
}

.request-row:nth-child(3n) .avatar,
.mini-messages button:nth-child(3n) .avatar,
.table-row:nth-child(3n) .avatar {
  background: #6c9577;
}

.rail-panel .panel-heading {
  min-height: 46px;
  padding: 11px 13px;
}

.rail-panel .panel-heading h2 {
  font-size: 16px;
}

.readiness-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 13px 15px 15px;
  list-style: none;
}

.readiness-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #33433c;
  font-size: 11px;
}

.readiness-list li > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: var(--success);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.readiness-list li > span .icon {
  width: 12px;
  height: 12px;
}

.readiness-list li.attention > span {
  background: var(--warning);
}

.balance-list {
  margin: 0;
  padding: 7px 13px 10px;
}

.balance-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.balance-list div:last-child {
  border-bottom: 0;
}

.balance-list dt {
  font-size: 11px;
}

.balance-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.mini-messages {
  padding: 2px 10px 8px;
}

.mini-messages button {
  width: 100%;
  display: grid;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 3px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.mini-messages .avatar {
  width: 31px;
  height: 31px;
  font-size: 9px;
}

.mini-messages button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mini-messages strong {
  font-size: 10px;
}

.mini-messages small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-messages time {
  align-self: start;
  color: var(--muted);
  font-size: 8px;
}

.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
}

.empty-state span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--success);
  border-radius: 50%;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
  background: var(--forest);
  color: white;
  border-radius: var(--radius);
}

.summary-strip > div {
  display: grid;
  gap: 3px;
  padding: 17px 21px;
  border-right: 1px solid rgb(255 255 255 / 20%);
}

.summary-strip > div:last-child {
  border-right: 0;
}

.summary-strip strong {
  font-size: 24px;
}

.summary-strip span {
  color: rgb(255 255 255 / 68%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.table-panel {
  overflow: hidden;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.data-table {
  display: grid;
}

.table-row {
  min-height: 65px;
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.table-row:last-child {
  border-bottom: 0;
}

.people-table .table-row {
  grid-template-columns: minmax(220px, 1.5fr) .8fr 1fr .7fr 1fr;
}

.money-table .table-row {
  grid-template-columns: .55fr 1.8fr 1fr .7fr;
}

.gear-table .table-row {
  grid-template-columns: 1.5fr .8fr .7fr .7fr .7fr;
}

.table-head {
  min-height: 43px;
  color: var(--muted);
  background: color-mix(in srgb, var(--parchment) 32%, white);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.person-cell > span {
  display: grid;
  gap: 3px;
}

.person-cell small {
  color: var(--muted);
  font-size: 10px;
}

.status-text {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.status-text.good {
  color: var(--success);
}

.status-text.warn {
  color: var(--warning);
}

.progress-cell {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 34px;
  align-items: center;
  gap: 9px;
}

.progress-cell::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 5px;
  background: var(--parchment);
  border-radius: 5px;
}

.progress-cell i {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: var(--progress);
  height: 5px;
  background: var(--spruce);
  border-radius: 5px;
}

.progress-cell small {
  color: var(--muted);
}

.two-column-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
}

.approval-list {
  padding: 0 16px;
}

.approval-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 3px;
  border-bottom: 1px solid var(--line);
}

.approval-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.approval-row span span,
.approval-row small {
  color: var(--muted);
  font-size: 11px;
}

.approved-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.approved-mark .icon {
  width: 16px;
  height: 16px;
}

.open-feature-list {
  display: grid;
  padding: 10px 15px;
}

.open-feature-list button,
.tool-tile {
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 13px;
  padding: 15px 3px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.open-feature-list button > span,
.tool-tile > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--parchment);
  border-radius: 50%;
}

.open-feature-list div,
.tool-tile div {
  display: grid;
  gap: 4px;
}

.open-feature-list strong,
.tool-tile strong {
  font-size: 13px;
}

.open-feature-list small,
.tool-tile small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.integration-note {
  margin: 14px 16px 16px;
  padding: 11px 12px;
  color: #5c5445;
  background: color-mix(in srgb, var(--accent) 13%, white);
  border-left: 3px solid var(--accent);
  font-size: 10px;
  line-height: 1.5;
}

.event-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.event-agenda {
  overflow: hidden;
}

.event-detail-row {
  min-height: 102px;
  display: grid;
  grid-template-columns: 58px 1fr 90px 30px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.attendance-count {
  display: grid;
  gap: 2px;
  text-align: right;
}

.attendance-count strong {
  font-size: 14px;
}

.attendance-count small {
  color: var(--muted);
  font-size: 9px;
}

.stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

.checklist-panel {
  padding: 16px;
}

.checklist-panel ul {
  display: grid;
  gap: 12px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.checklist-panel li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.checklist-panel li .icon {
  width: 17px;
  height: 17px;
  color: var(--success);
}

.checklist-panel li.attention {
  color: var(--warning);
  font-weight: 800;
}

.wide-link {
  width: calc(100% - 28px);
  justify-content: space-between;
  margin: 8px 14px 13px;
  padding: 9px 0;
}

.message-layout {
  min-height: 650px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.channel-list {
  padding: 14px 10px;
}

.channel-list h2 {
  padding: 4px 9px 12px;
}

.channel-list > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.channel-list > button.selected,
.channel-list > button:hover {
  color: white;
  background: var(--forest);
}

.safe-note {
  display: flex;
  gap: 8px;
  margin: 18px 8px 4px;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.5;
}

.safe-note .icon {
  width: 17px;
  height: 17px;
  color: var(--success);
}

.conversation {
  display: flex;
  flex-direction: column;
}

.message-feed {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.message-feed article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}

.message-feed article > div {
  max-width: 720px;
  padding: 11px 13px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 0 7px 7px 7px;
}

.message-feed header {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.message-feed header strong {
  font-size: 12px;
}

.message-feed header time,
.message-feed small {
  color: var(--muted);
  font-size: 9px;
}

.message-feed p {
  margin: 7px 0 8px;
  font-size: 12px;
}

.composer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.composer input,
.settings-form input,
.settings-form select,
.settings-form textarea,
.form-grid input,
.form-grid select,
.feature-directory-heading input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9cbc5;
  border-radius: 4px;
  font-size: 12px;
}

.money-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  margin-bottom: 16px;
  overflow: hidden;
  color: white;
  background: rgb(255 255 255 / 20%);
  border-radius: var(--radius);
}

.money-overview section {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: var(--forest);
}

.money-overview small,
.money-overview span {
  color: rgb(255 255 255 / 70%);
  font-size: 10px;
}

.money-overview strong {
  font-size: 27px;
}

.amount {
  font-weight: 800;
}

.amount.positive {
  color: var(--success);
}

.amount.negative {
  color: var(--danger);
}

.safety-hero,
.field-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 25px;
  color: white;
  background: var(--forest);
  border-radius: var(--radius);
}

.safety-hero > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.safety-hero > div > span,
.field-banner > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 50%;
}

.safety-hero h2,
.field-banner h2 {
  margin: 0;
  font-size: 22px;
}

.safety-hero p,
.field-banner p {
  max-width: 760px;
  margin: 6px 0 0;
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  line-height: 1.5;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .75fr;
  gap: 16px;
  margin-top: 16px;
}

.expiry-list {
  display: grid;
  padding: 4px 16px 10px;
}

.expiry-list > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.expiry-list time {
  color: var(--warning);
  font-size: 11px;
  font-weight: 900;
}

.expiry-list span {
  display: grid;
  gap: 3px;
}

.expiry-list strong {
  font-size: 12px;
}

.expiry-list small {
  color: var(--muted);
  font-size: 10px;
}

.privacy-panel {
  padding: 22px;
  color: white;
  background: var(--spruce);
  border-color: var(--spruce);
}

.privacy-panel > .icon {
  width: 31px;
  height: 31px;
  margin-bottom: 18px;
}

.privacy-panel p {
  color: rgb(255 255 255 / 75%);
  font-size: 11px;
  line-height: 1.6;
}

.field-banner > span .icon {
  width: 31px;
  height: 31px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 20px;
  padding: 0 4px;
  border-top: 1px solid var(--line);
}

.tool-tile {
  min-height: 100px;
  padding: 18px 6px;
}

.report-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.report-row {
  display: grid;
  grid-template-columns: 44px 1fr 90px auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--paper);
}

.report-row > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--parchment);
  border-radius: 50%;
}

.report-row h2 {
  margin: 0;
  font-size: 14px;
}

.report-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.report-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.feature-directory {
  margin-top: 28px;
  border-top: 3px solid var(--forest);
}

.feature-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 18px;
}

.feature-directory-heading h2 {
  margin: 0;
  font-size: 23px;
}

.feature-directory-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.feature-directory-heading input {
  max-width: 270px;
}

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

.feature-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.feature-group summary {
  display: grid;
  grid-template-columns: 36px 1fr 28px 19px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  list-style: none;
  cursor: pointer;
}

.feature-group summary::-webkit-details-marker {
  display: none;
}

.feature-group summary > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--parchment);
  border-radius: 50%;
}

.feature-group summary div {
  display: grid;
  gap: 3px;
}

.feature-group summary strong {
  font-size: 12px;
}

.feature-group summary small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.feature-group summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.feature-group summary > .icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.feature-group[open] summary > .icon {
  transform: rotate(90deg);
}

.feature-group ul {
  margin: 0;
  padding: 0 14px 12px;
  list-style: none;
}

.feature-group li,
.modal-feature-list li {
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.feature-group li > .icon,
.modal-feature-list li > .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.feature-group li span,
.modal-feature-list li span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.website-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.public-preview {
  overflow: hidden;
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 9px 24px rgb(23 33 29 / 7%);
}

.public-preview > header {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.public-preview header img {
  width: 54px;
  height: 54px;
  padding: 4px;
  background: var(--forest);
  border-radius: 50%;
}

.public-preview header > div {
  display: grid;
}

.public-preview header strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.public-preview header span {
  font-size: 12px;
}

.public-preview header small {
  color: var(--muted);
  font-size: 9px;
}

.public-preview header nav {
  margin-left: auto;
  display: flex;
  gap: 21px;
  font-size: 10px;
  font-weight: 700;
}

.public-preview header nav a {
  color: inherit;
  text-decoration: none;
}

.public-preview header nav a:hover,
.public-preview header nav a:focus-visible {
  text-decoration: underline;
}

.public-hero {
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  color: white;
  background-color: var(--forest);
  background-image: url("./assets/public-hero.png");
  background-position: center;
  background-size: cover;
}

.public-hero h2 {
  max-width: 420px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .98;
  letter-spacing: -.04em;
  text-shadow: 0 2px 18px rgb(0 0 0 / 48%);
}

.public-hero p {
  margin: 14px 0 0;
  font-size: 12px;
  text-shadow: 0 2px 12px rgb(0 0 0 / 58%);
}

.public-about {
  padding: 28px 32px 32px;
}

.public-about h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 22px;
}

.public-about > p {
  max-width: 630px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.public-about dl {
  display: flex;
  gap: 44px;
  margin: 22px 0 0;
}

.public-about dl div {
  display: grid;
  gap: 3px;
}

.public-website {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 18px;
  background: color-mix(in srgb, var(--forest) 6%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--forest) 18%, var(--line));
  border-radius: 8px;
}

.public-website-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.public-website-copy > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 50%;
}

.public-website-copy .icon {
  width: 19px;
  height: 19px;
}

.public-website-copy > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.public-website-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-website-copy strong {
  overflow-wrap: anywhere;
  font-family: Georgia, serif;
  font-size: 16px;
}

.public-website-copy p {
  max-width: 520px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.public-website-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.external-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.external-text-link .icon {
  width: 12px;
  height: 12px;
}

.public-about dt {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.public-about dd {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.publishing-panel {
  align-self: start;
  padding: 18px;
}

.publishing-panel > h2 {
  margin-bottom: 13px;
}

.publishing-panel dl {
  margin: 16px 0;
}

.publishing-panel dl div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.publishing-panel dt {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.publishing-panel dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.45;
}

.patch-summary {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 18px;
  color: white;
  background: var(--forest);
  border-radius: var(--radius);
}

.patch-summary > div {
  display: grid;
  gap: 3px;
  padding: 16px 22px;
  border-right: 1px solid rgb(255 255 255 / 18%);
}

.patch-summary strong {
  font-size: 22px;
}

.patch-summary span {
  color: rgb(255 255 255 / 66%);
  font-size: 9px;
  text-transform: uppercase;
}

.patch-summary .button {
  margin-left: auto;
  margin-right: 14px;
  color: white;
  border-color: rgb(255 255 255 / 40%);
}

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

.patch-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.patch-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 15px;
  text-align: center;
  color: white;
  background: var(--patch-color);
  border: 8px double rgb(255 255 255 / 72%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--patch-color), 0 3px 10px rgb(23 33 29 / 15%);
}

.patch-art span {
  font-size: 10px;
}

.patch-art strong {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.1;
}

.patch-card > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.patch-card h2 {
  margin: 8px 0 3px;
  font-size: 16px;
}

.patch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.patch-card > div:last-child > div {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(380px, .8fr) minmax(480px, 1.2fr);
  gap: 28px;
}

.settings-form {
  display: grid;
  gap: 13px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.settings-form section h2,
.preview-label h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 23px;
}

.settings-form section p,
.preview-label p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.settings-form > label {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 14px;
}

.settings-form > label > span,
.color-fields label > span,
.mark-upload > span {
  font-size: 11px;
  font-weight: 800;
}

.settings-form label > small {
  grid-column: 2;
  justify-self: end;
  margin-top: -10px;
  color: var(--muted);
  font-size: 9px;
}

.settings-form textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.website-details-field {
  align-items: start !important;
}

.color-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 8px 0 4px;
}

.color-fields label {
  display: grid;
  gap: 8px;
}

.color-fields label > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.color-fields input[type="color"] {
  width: 46px;
  height: 34px;
  padding: 2px;
  background: white;
  border: 1px solid var(--line);
}

.color-fields code {
  color: var(--muted);
  font-size: 10px;
}

.mark-upload {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 10px 0 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.mark-upload legend {
  padding: 0;
  font-size: 11px;
  font-weight: 800;
}

.mark-upload > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

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

.mark-option {
  position: relative;
}

.mark-option > input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
}

.mark-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.mark-card img {
  width: 52px;
  height: 52px;
  padding: 5px;
  background: var(--forest);
  border-radius: 6px;
}

.mark-card strong {
  font-size: 10px;
  line-height: 1.3;
}

.mark-option > input:checked + .mark-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
}

.mark-option > input:focus-visible + .mark-card {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.switch-row {
  min-height: 55px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.switch-row > span {
  display: grid;
  gap: 3px;
}

.switch-row strong {
  font-size: 11px;
}

.switch-row small {
  color: var(--muted);
  font-size: 9px;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.switch-row i {
  position: relative;
  width: 43px;
  height: 24px;
  flex: 0 0 auto;
  background: #aeb3b0;
  border-radius: 20px;
}

.switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 150ms ease;
}

.switch-row input:checked + i {
  background: var(--spruce);
}

.switch-row input:checked + i::after {
  transform: translateX(19px);
}

.settings-actions {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

.settings-preview {
  min-width: 0;
}

.preview-label {
  margin-bottom: 15px;
}

.settings-preview .public-hero {
  min-height: 265px;
}

.settings-preview .public-about {
  padding: 22px 26px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(10 24 19 / 64%);
}

.modal {
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgb(0 0 0 / 30%);
}

.modal > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 19px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.modal h2 {
  margin: 0;
  font-size: 20px;
}

.modal-intro {
  margin: 0;
  padding: 17px 19px 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.checkin-list {
  padding: 8px 19px;
}

.checkin-list label {
  min-height: 61px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.checkin-list label > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.checkin-list strong {
  font-size: 12px;
}

.checkin-list small {
  color: var(--muted);
  font-size: 9px;
}

.checkin-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--forest);
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 19px 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 19px 0;
}

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

.form-grid label span {
  font-size: 10px;
  font-weight: 800;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.modal-feature-list {
  margin: 10px 19px 0;
  padding: 0;
  list-style: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 48px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: white;
  background: var(--ink);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 5px;
  box-shadow: 0 12px 35px rgb(0 0 0 / 25%);
  font-size: 11px;
}

.toast .icon {
  width: 17px;
  height: 17px;
  color: color-mix(in srgb, var(--accent) 80%, white);
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

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

  .privacy-panel {
    grid-column: 1 / -1;
  }

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

  .settings-form {
    padding-right: 0;
    padding-bottom: 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 228px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    transform: translateX(-105%);
    box-shadow: 14px 0 40px rgb(0 0 0 / 25%);
    transition: transform 180ms ease;
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgb(0 0 0 / 35%);
    border: 0;
  }

  .shell-body {
    width: 100%;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .global-search {
    width: min(480px, 58vw);
  }

  .main-content {
    padding: 24px 18px 40px;
  }

  .profile div {
    display: none;
  }

  .profile {
    padding-left: 10px;
  }

  .today-band {
    grid-template-columns: .75fr 1.25fr;
  }

  .today-band .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .people-table .table-row {
    grid-template-columns: 1.4fr .7fr 1fr .7fr;
  }

  .people-table .table-row > :last-child {
    display: none;
  }

  .website-workspace,
  .event-workspace {
    grid-template-columns: 1fr;
  }

  .publishing-panel {
    order: -1;
  }

  .patch-grid,
  .feature-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 7px;
  }

  .top-actions {
    gap: 4px;
  }

  .profile {
    display: none;
  }

  .global-search {
    width: auto;
    flex: 1;
  }

  .main-content {
    padding: 20px 13px 32px;
  }

  .page-header {
    min-height: auto;
    display: grid;
    padding-bottom: 18px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .page-header .button {
    width: 100%;
  }

  .today-band {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 22px;
  }

  .next-meeting {
    padding: 18px 0 0;
    border-top: 1px solid rgb(255 255 255 / 35%);
    border-left: 0;
  }

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

  .dashboard-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-strip > div:nth-child(2) {
    border-right: 0;
  }

  .summary-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid rgb(255 255 255 / 20%);
  }

  .table-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .table-panel .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-table {
    overflow-x: auto;
  }

  .table-row {
    min-width: 680px;
  }

  .two-column-wide,
  .message-layout,
  .safety-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .message-layout {
    min-height: auto;
  }

  .channel-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .channel-list h2,
  .safe-note {
    display: none;
  }

  .channel-list > button {
    min-width: max-content;
  }

  .conversation {
    min-height: 560px;
  }

  .money-overview {
    grid-template-columns: 1fr;
  }

  .safety-hero,
  .field-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .safety-hero > div > span,
  .field-banner > span {
    display: none;
  }

  .report-row {
    grid-template-columns: 40px 1fr auto;
  }

  .report-row > em {
    display: none;
  }

  .report-row > .button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .feature-directory-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-directory-heading input {
    max-width: none;
  }

  .public-preview > header nav {
    display: none;
  }

  .public-hero {
    min-height: 250px;
    padding: 24px;
  }

  .public-about dl {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .public-website {
    align-items: stretch;
    flex-direction: column;
  }

  .public-website-link {
    justify-content: center;
  }

  .patch-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .patch-summary > div {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }

  .patch-summary .button {
    margin: 12px;
  }

  .patch-card {
    grid-template-columns: 100px 1fr;
  }

  .settings-form > label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .settings-form label > small {
    grid-column: 1;
  }

  .color-fields {
    grid-template-columns: 1fr;
  }

  .settings-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

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

  .form-grid .span-2 {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .page-header .button,
  .button,
  .text-button,
  .composer {
    display: none !important;
  }

  .app-shell,
  .shell-body {
    display: block;
  }

  .main-content {
    max-width: none;
    padding: 0;
  }

  .panel,
  .report-list,
  .feature-group {
    break-inside: avoid;
    box-shadow: none;
  }

  body {
    background: white;
  }
}
