:root {
  color-scheme: light dark;
  supported-color-schemes: light dark;

  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5c5954;
  --border: #e2dfd8;
  --accent: #1f5c4a;
  --accent-hover: #174839;
  --accent-soft: #e8f1ef;
  --on-accent: #ffffff;
  --shadow: 0 2px 12px rgba(28, 27, 25, 0.07);
  --shadow-hover: 0 8px 32px rgba(28, 27, 25, 0.12);
  --shadow-modal: 0 16px 48px rgba(28, 27, 25, 0.18);
  --backdrop: rgba(28, 27, 25, 0.45);
  --backdrop-light: rgba(28, 27, 25, 0.22);
  --backdrop-nested: rgba(28, 27, 25, 0.4);
  --status-not-started: #8a8580;
  --status-in-progress: #b8860b;
  --status-done: #1f5c4a;
  --status-na: #9bbdb3;
  --status-not-started-bg: #f0eeeb;
  --status-in-progress-bg: #fbf3e0;
  --status-na-bg: #eef4f2;
  --danger: #8b2e2e;
  --danger-border: #e2c4c4;
  --danger-bg: #fdeaea;
  --issue: #c0392b;
  --issue-bg: #fdeaea;
  --improvement: #1f7a3f;
  --improvement-bg: #e7f6ec;
  --note: #2a5db0;
  --note-bg: #e8f0fc;
  --comment-card-bg: #fafaf8;
  --theme-color: #f7f6f3;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110;
  --surface: #1c1b19;
  --text: #e8e6e1;
  --muted: #a8a49c;
  --border: #33302c;
  --accent: #5aab92;
  --accent-hover: #6fbfa6;
  --accent-soft: #1a2e28;
  --on-accent: #0f1412;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.55);
  --backdrop: rgba(0, 0, 0, 0.65);
  --backdrop-light: rgba(0, 0, 0, 0.45);
  --backdrop-nested: rgba(0, 0, 0, 0.55);
  --status-not-started: #b0aba4;
  --status-in-progress: #d4a84b;
  --status-done: #5aab92;
  --status-na: #7a9e94;
  --status-not-started-bg: #2a2825;
  --status-in-progress-bg: #3a3020;
  --status-na-bg: #1e2a28;
  --danger: #e89090;
  --danger-border: #5a3030;
  --danger-bg: #3a2222;
  --issue: #e87070;
  --issue-bg: #3a2222;
  --improvement: #6bc48a;
  --improvement-bg: #1e3328;
  --note: #7a9fd4;
  --note-bg: #1e2838;
  --comment-card-bg: #242220;
  --theme-color: #121110;
}

html {
  color-scheme: light dark;
  background: var(--bg);
  overflow-x: clip;
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow-x: clip;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
}

.page {
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Compact page header */
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 10px;
  min-width: 0;
  flex-shrink: 0;
}

.header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 5px;
  padding: 2px;
  box-sizing: border-box;
}

.header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.header .btn-icon {
  width: 26px;
  height: 26px;
  color: var(--muted);
  border-radius: 5px;
}

.header .btn-icon:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.header .btn-icon:disabled {
  opacity: 0.5;
  cursor: default;
}

.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn-icon.theme-toggle:hover {
  color: var(--accent);
}

.auth-page .theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.auth-page .theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.user-picker select {
  font: inherit;
  font-size: 0.85rem;
  max-width: 10rem;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  font-size: 0.78rem;
  padding: 4px 8px;
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn.is-active,
#edit-toggle.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
}

.btn-icon:hover {
  color: var(--danger);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.load-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.user-badge {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}

.auth-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}

.auth-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 4px;
}

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.auth-field input,
.auth-field select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.auth-remember {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-remember input {
  width: auto;
  margin: 0;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.page--admin {
  overflow: auto;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.admin-panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-empty {
  color: var(--muted);
  margin: 0;
}

.venue-edit-urls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px 6px;
}

.venue-edit-urls label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.venue-edit-urls input,
.comment-form input,
.comment-form textarea,
.comment-form select,
.venue-assign select {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  width: 100%;
}

.venue-assign {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 4px 2px;
  align-items: center;
}

.venue-assign select {
  flex: 1;
  min-width: 0;
}

.comment-counts {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 999px;
  background: transparent;
}

.comment-counts--issues {
  background: var(--issue-bg);
}

.comment-counts--improvements {
  background: var(--improvement-bg);
}

.count--issue {
  color: var(--issue);
}

.count--improvement {
  color: var(--improvement);
}

.count--note {
  color: var(--note);
}

.icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.icon-btn--danger:hover,
.icon-btn--danger:focus-visible {
  background: var(--danger-bg);
  color: var(--danger);
}

.icon-btn--accent {
  color: var(--accent);
  background: var(--accent-soft);
}

.icon-btn--accent:hover,
.icon-btn--accent:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-icon.is-refreshing svg,
.is-refreshing .icon {
  animation: refresh-spin 800ms linear infinite;
}

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

.section-heading h3 {
  margin: 0;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.comment-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--comment-card-bg);
}

.comment-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-card-top .comment-header {
  flex: 1;
  min-width: 0;
}

.comment-card-top .comment-actions {
  margin-left: auto;
}

.comment-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
  flex-shrink: 0;
}

.comment-type--issue {
  background: var(--issue-bg);
  color: var(--issue);
}

.comment-type--improvement {
  background: var(--improvement-bg);
  color: var(--improvement);
}

.comment-type--note {
  background: var(--note-bg);
  color: var(--note);
}

.comment-header {
  font-size: 0.92rem;
}

.comment-body {
  margin: 0 0 6px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0;
}

.comment-actions,
.form-actions,
.link-edit-actions,
.link-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay--nested {
  z-index: 120;
}

.overlay--nested.is-open {
  pointer-events: auto;
  background: var(--backdrop-nested);
}

.modal--comment {
  max-width: 28rem;
}

.comment-form label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.link-row {
  position: relative;
}

.link-edit-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.link-admin {
  margin-top: 8px;
}

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

body.edit-mode .venue-panel.is-editing {
  outline: 1px dashed var(--accent);
  outline-offset: -1px;
}

/* Five venue columns on desktop */
.venue-grid {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
  min-width: 0;
  align-content: stretch;
  align-items: stretch;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.venue-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.venue-panel-header {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 6px 8px 6px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 0;
}

.venue-panel-header-main {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.venue-panel-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.venue-header-comments {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.venue-header-comments:hover,
.venue-header-comments:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.venue-panel-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.venue-panel-logo {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.venue-panel-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.venue-panel-chevron {
  display: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-right: 2px;
}

.venue-panel-body {
  padding: 2px 4px 6px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.venue-trello {
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.venue-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 5px 6px;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
  transition: background 0.12s ease;
}

.venue-quick-link:hover,
.venue-quick-link:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.venue-quick-link.is-disabled {
  color: var(--muted);
  cursor: default;
}

.venue-quick-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  line-height: 1.25;
}

.venue-quick-link:not(.is-disabled) .venue-quick-label {
  color: inherit;
}

.venue-quick-action {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.88rem;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}

.venue-quick-link.is-disabled .venue-quick-action {
  color: var(--muted);
  font-weight: 400;
}

.detail-text.muted {
  color: var(--muted);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
}

.process-item .process-btn {
  flex: 1;
  min-width: 0;
}

.process-btn {
  appearance: none;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 5px 6px;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  transition: background 0.12s ease;
}

.process-btn:hover,
.process-btn:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.process-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.process-btn.is-active .process-btn-arrow {
  color: var(--accent);
}

.process-btn-label {
  font-weight: 550;
  line-height: 1.25;
  min-width: 0;
}

.process-btn-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.process-btn-meta .comment-counts {
  font-size: 0.72rem;
}

.process-btn-arrow {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Detail popup — backdrop is visual only so venue panels stay clickable */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--backdrop-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.overlay.is-open .modal {
  transform: translateY(0);
}

.modal.is-dragging,
.modal.is-dragged {
  transition: none;
}

.modal.is-dragging,
.modal.is-dragging .modal-header {
  cursor: grabbing;
}

.modal--detail .modal-header {
  padding: 14px 16px 8px;
  align-items: center;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.modal-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.modal-header .modal-header-title h2 {
  font-size: 1.05rem;
  line-height: 28px;
}

.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  user-select: auto;
  touch-action: manipulation;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.modal-body {
  padding: 8px 12px 20px;
  overflow-y: auto;
}

.detail-section {
  margin-bottom: 18px;
}

.detail-section h3 {
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-not_started {
  background: var(--status-not-started-bg);
  color: var(--status-not-started);
}

.status-in_progress {
  background: var(--status-in-progress-bg);
  color: var(--status-in-progress);
}

.status-done {
  background: var(--accent-soft);
  color: var(--status-done);
}

.status-na {
  background: var(--status-na-bg);
  color: var(--status-na);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px 16px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.link-row:last-child {
  border-bottom: none;
}

.link-row-name {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  word-break: break-word;
}

.link-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

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

.link-row-comment {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.detail-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Stay 5 columns until the viewport is genuinely narrow, then accordion */
@media (max-width: 720px) {
  .page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
    padding: 10px 10px 16px;
  }

  .header {
    margin-bottom: 8px;
  }

  #add-user-btn,
  #edit-toggle {
    display: none;
  }

  .header h1 {
    font-size: 1.05rem;
  }

  .header-logo {
    width: 24px;
    height: 24px;
  }

  .venue-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    flex: none;
  }

  .venue-panel {
    height: auto;
    max-height: none;
  }

  .venue-panel-header {
    border-bottom: none;
    padding: 10px 10px;
  }

  .venue-panel-header-main {
    cursor: pointer;
  }

  .venue-panel-header-main:hover,
  .venue-panel-header-main:focus-visible {
    outline: none;
  }

  .venue-panel-header:has(.venue-panel-header-main:hover),
  .venue-panel-header:has(.venue-panel-header-main:focus-visible) {
    background: var(--accent-soft);
  }

  .venue-panel-header h2 {
    font-size: 1rem;
  }

  .venue-panel-logo,
  .venue-panel-icon {
    width: 26px;
    height: 26px;
  }

  .venue-panel-chevron {
    display: block;
  }

  .venue-panel.is-expanded .venue-panel-header {
    border-bottom: 1px solid var(--border);
  }

  .venue-panel.is-expanded .venue-panel-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
  }

  .venue-panel-body {
    display: none;
    padding: 2px 6px 10px;
  }

  .venue-panel.is-expanded .venue-panel-body {
    display: block;
  }

  .process-btn {
    padding: 8px 8px;
    font-size: 1rem;
  }

  .venue-quick-link {
    padding: 8px 8px;
    font-size: 1rem;
  }

  .venue-quick-label {
    font-size: 0.8rem;
  }

  .modal {
    max-width: none;
  }

  .link-row {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .link-row-comment {
    grid-column: 2;
  }
}
