:root {
  color-scheme: light;
  --bg: #f3f4f2;
  --panel: #ffffff;
  --panel-soft: #f7f8f6;
  --ink: #17201b;
  --muted: #667069;
  --line: #dce1dc;
  --accent: #176b4d;
  --accent-dark: #0f5039;
  --accent-soft: #e2f1e9;
  --warning: #8a5a0a;
  --warning-soft: #fff4d6;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --success: #087f5b;
  --shadow: 0 14px 38px rgba(30, 42, 35, 0.07);
}

* {
  box-sizing: border-box;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  padding: 0 14px;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(23, 107, 77, 0.13);
}

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

h1,
h2,
h3 {
  margin-bottom: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.08rem;
}

.topbar {
  display: flex;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1460px) / 2));
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  color: var(--ink);
  font-size: 1.48rem;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.topbar-actions,
.button-row,
.dialog-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted,
.small-note,
.share-panel p,
.not-found p {
  color: var(--muted);
}

.sync-status {
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 750;
}

.sync-status.error,
.form-error {
  color: var(--danger);
}

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

.secondary-button:hover {
  background: var(--panel-soft);
}

.danger-button {
  background: var(--danger);
}

.danger-button:hover {
  background: #8f1d14;
}

.square-button {
  width: 40px;
  padding: 0;
  font-size: 1.5rem;
}

.full-button {
  width: 100%;
  margin-top: 10px;
}

.auth-page,
.not-found {
  display: grid;
  min-height: calc(100vh - 66px);
  place-items: center;
  padding: 22px;
}

.auth-panel {
  display: grid;
  width: min(430px, 100%);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-panel .muted {
  margin-bottom: 4px;
}

label span,
.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
}

.form-error {
  min-height: 20px;
  margin: 0;
  font-size: 0.88rem;
}

.admin-shell {
  display: grid;
  width: min(1460px, calc(100% - 32px));
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  margin: 18px auto 32px;
  align-items: start;
}

.sidebar,
.admin-main,
.public-heading,
.identity-band,
.items-panel,
.bill-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 16px;
  min-height: 260px;
  padding: 16px;
}

.admin-main {
  min-height: 660px;
  padding: 20px;
}

.section-head,
.page-heading,
.public-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head.compact {
  margin-bottom: 12px;
}

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

.board-admin-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.board-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.board-link-row input {
  min-width: 0;
  font-size: 0.78rem;
}

.app-list-empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 12px 2px;
}

.app-button {
  display: grid;
  width: 100%;
  min-height: 64px;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.app-button:hover,
.app-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.app-button small {
  color: var(--muted);
  font-weight: 600;
}

.empty-page {
  display: grid;
  min-height: 600px;
  gap: 12px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.empty-page p {
  max-width: 500px;
  color: var(--muted);
}

.empty-mark {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  place-items: center;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(320px, 1fr);
  gap: 18px;
  border: 1px solid #b9d8c9;
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 18px;
  padding: 14px;
  align-items: center;
}

.share-panel p {
  margin: 0;
  font-size: 0.84rem;
}

.share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 120px 170px;
  gap: 12px;
  margin-bottom: 18px;
}

.full-field {
  grid-column: 1 / -1;
}

.toggle-field {
  display: flex;
  min-height: 42px;
  gap: 10px;
  align-items: center;
}

.toggle-field input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.toggle-field span {
  margin: 0;
  color: var(--ink);
}

.extract-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.upload-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.upload-box {
  display: grid;
  min-height: 156px;
  gap: 6px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: #f8fbf9;
  cursor: pointer;
  place-items: center;
  align-content: center;
  text-align: center;
}

.upload-box input {
  display: none;
}

.upload-box small,
.small-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.upload-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  place-items: center;
}

.invoice-preview {
  width: 100%;
  max-height: 290px;
  margin-top: 10px;
  border-radius: 7px;
  background: var(--panel-soft);
  object-fit: contain;
}

.validation-banner {
  border: 1px solid #ead18a;
  border-radius: 7px;
  background: var(--warning-soft);
  color: var(--warning);
  margin-bottom: 10px;
  padding: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.validation-banner.success {
  border-color: #a8d4be;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.editor-labels,
.editor-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px 140px 42px;
  gap: 8px;
  align-items: center;
}

.editor-labels {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0 3px 5px;
}

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

.icon-button {
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
  font-size: 1.15rem;
}

.icon-button:hover {
  background: var(--danger-soft);
}

.admin-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.public-shell {
  width: min(1200px, calc(100% - 28px));
  margin: 18px auto 36px;
}

.public-heading {
  margin-bottom: 14px;
  padding: 20px;
}

.public-heading-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.secondary-link {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

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

.identity-band {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
}

.identity-band label {
  color: var(--muted);
  font-weight: 800;
}

.identity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.participant-status {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.summary-strip div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 16px;
}

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

.summary-strip span,
.totals span,
.claim-row span,
.person-items {
  color: var(--muted);
  font-size: 0.84rem;
}

.summary-strip strong,
.totals strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.summary-strip .personal-total {
  background: var(--accent-soft);
}

.event-photos {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 16px;
}

.event-messages {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 16px;
}

.event-messages .small-note {
  margin: 0;
}

.message-list {
  display: grid;
  max-height: 360px;
  gap: 8px;
  overflow-y: auto;
  margin-top: 10px;
}

.message-row {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px 42px 10px 11px;
}

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

.message-meta strong,
.message-row p {
  overflow-wrap: anywhere;
}

.message-meta time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.message-row p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}

.message-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.message-delete:hover {
  background: var(--danger);
  color: #fff;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

.message-form textarea {
  min-height: 54px;
  max-height: 140px;
  resize: vertical;
}

.photo-upload-button {
  display: grid;
  min-height: 40px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 14px;
  place-items: center;
}

.photo-upload-button:hover {
  background: var(--accent-dark);
}

.photo-upload-button input {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.photo-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  margin: 0;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-view-button {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.photo-view-button:hover img,
.photo-view-button:focus-visible img,
.place-photos button:hover img,
.place-photos button:focus-visible img {
  transform: scale(1.025);
}

.photo-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(20, 25, 22, 0.76);
  padding: 0;
}

.photo-delete:hover {
  background: var(--danger);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 14px;
  align-items: start;
}

.items-panel,
.bill-panel {
  padding: 16px;
}

.bill-panel {
  position: sticky;
  top: 16px;
}

.count-pill {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 5px 10px;
  white-space: nowrap;
}

.claimable-list,
.shared-list,
.claimed-list,
.people-list {
  display: grid;
  gap: 8px;
}

.claim-row {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 11px;
  align-items: center;
}

.claim-row strong,
.claimed-chip span,
.person-items {
  overflow-wrap: anywhere;
}

.claim-action {
  display: grid;
  grid-template-columns: auto 76px 76px;
  gap: 9px;
  align-items: center;
}

.share-button {
  border: 1px solid #b9d8c9;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.share-button:hover {
  background: #cfe7da;
}

.shared-block {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.shared-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #b9d8c9;
  border-radius: 7px;
  background: var(--accent-soft);
  padding: 11px;
  align-items: center;
}

.shared-row span {
  color: var(--accent-dark);
  font-size: 0.84rem;
}

.claimed-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 9px;
  align-items: center;
}

.totals {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  margin-top: 12px;
  padding: 12px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals strong {
  margin: 0;
}

.pay-row {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.pay-row strong {
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.revolut-button {
  display: grid;
  min-height: 44px;
  border-radius: 7px;
  background: #111;
  color: #fff;
  margin-top: 12px;
  padding: 0 14px;
  font-weight: 800;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.revolut-button:hover {
  background: #2b2b2b;
}

.people-block {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.rating-block {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

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

.rating-heading span,
.rating-value span {
  color: var(--muted);
  font-size: 0.82rem;
}

.rating-control {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  margin-top: 10px;
  padding: 12px;
}

.rating-value {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.rating-value strong {
  font-size: 1.45rem;
}

.rating-control input[type="range"] {
  min-height: 26px;
  padding: 0;
  accent-color: var(--accent);
}

.rating-entries {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rating-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  padding: 5px 8px;
}

.board-shell {
  width: min(1200px, calc(100% - 28px));
  margin: 18px auto 40px;
}

.board-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding: 8px 0 18px;
}

.board-heading-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-small {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.place-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.place-card-copy {
  display: grid;
  gap: 6px;
  padding: 15px;
}

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

.place-score {
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}

.place-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.place-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
}

.place-photos button {
  position: relative;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: var(--panel-soft);
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}

.place-photos img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background: var(--panel-soft);
  object-fit: cover;
  transition: transform 160ms ease;
}

.photo-more {
  position: absolute;
  right: 7px;
  bottom: 7px;
  border-radius: 999px;
  background: rgba(20, 25, 22, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 7px;
}

.people-block h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.person-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.person-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  padding: 13px;
}

.not-found {
  align-content: center;
  justify-items: center;
  text-align: center;
}

dialog {
  width: min(420px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(20, 31, 25, 0.48);
}

dialog.image-browser {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
  background: #111512;
  color: #fff;
  margin: 0;
  box-shadow: none;
  overflow: hidden;
}

.image-browser::backdrop {
  background: #111512;
}

.image-browser-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  padding: 22px;
}

.image-browser-stage {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-column: 2;
  gap: 12px;
  align-items: center;
  justify-items: center;
  margin: 0;
}

.image-browser-stage img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  user-select: none;
  touch-action: none;
  cursor: grab;
  will-change: transform, opacity;
}

.image-browser-stage img:active,
.image-browser.is-zoomed .image-browser-stage img {
  cursor: grabbing;
}

.image-browser-stage figcaption {
  width: 100%;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  color: #d7ded9;
  font-size: 0.86rem;
}

.image-browser-stage figcaption span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.image-browser-stage figcaption span:last-child {
  flex: 0 0 auto;
}

.image-browser-close,
.image-browser-nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  padding: 0;
}

.image-browser-close:hover,
.image-browser-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.image-browser-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  min-height: 44px;
  font-size: 1.8rem;
}

.image-browser-nav {
  width: 48px;
  min-height: 48px;
  font-size: 2.4rem;
  line-height: 1;
  justify-self: center;
}

.image-browser-previous {
  grid-column: 1;
}

.image-browser-next {
  grid-column: 3;
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .admin-shell,
  .extract-grid,
  .split-layout,
  .share-panel {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .bill-panel {
    position: static;
  }

  .sidebar {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 0 12px;
  }

  .admin-shell,
  .public-shell,
  .board-shell {
    width: min(100% - 16px, 1460px);
    margin-top: 8px;
  }

  .admin-main,
  .items-panel,
  .bill-panel,
  .public-heading {
    padding: 12px;
  }

  .page-heading,
  .public-heading,
  .section-head {
    align-items: flex-start;
  }

  .public-heading {
    display: grid;
  }

  .public-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .board-heading {
    align-items: flex-start;
  }

  .board-heading-actions {
    flex: 0 0 auto;
  }

  .image-browser-shell {
    display: block;
    padding: 12px;
  }

  .image-browser-stage {
    width: 100%;
    height: 100%;
  }

  .image-browser-close {
    top: 10px;
    right: 10px;
  }

  .image-browser-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 42px;
    min-height: 42px;
    transform: translateY(-50%);
  }

  .image-browser-previous {
    left: 10px;
  }

  .image-browser-next {
    right: 10px;
  }

  .form-grid,
  .share-actions,
  .editor-row,
  .identity-band,
  .identity-row,
  .claim-row,
  .claim-action,
  .claimed-chip {
    grid-template-columns: 1fr;
  }

  .message-form {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .message-meta {
    display: grid;
    gap: 2px;
  }

  .full-field {
    grid-column: auto;
  }


  .board-list {
    grid-template-columns: 1fr;
  }

  .editor-labels {
    display: none;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .icon-button {
    width: 100%;
  }
}
