:root {
  color-scheme: light;
  --bg: #f5f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ed;
  --line: #d8ded7;
  --text: #17201a;
  --muted: #657064;
  --accent: #246b5a;
  --accent-2: #9f5b35;
  --danger: #a64235;
  --warn: #b47a13;
  --ok: #2f7851;
  --shadow: 0 18px 45px rgba(25, 34, 29, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
}

.sidebar {
  background: #17201a;
  color: #f5f6f3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #d9efe6;
  color: #17201a;
  border-radius: 8px;
  font-weight: 800;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.section-title h3,
.section-title p {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
}

.brand p {
  color: #b9c4bb;
  font-size: 13px;
  margin-top: 3px;
}

.field {
  display: grid;
  gap: 7px;
}

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

.sidebar .field span {
  color: #b9c4bb;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  min-height: 42px;
}

.sidebar select,
.sidebar input {
  border-color: rgba(255, 255, 255, 0.14);
  background: #233029;
  color: #f5f6f3;
}

.login-box {
  display: grid;
  gap: 10px;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  color: #d9e2db;
}

.nav-item.active,
.nav-item:hover {
  background: #25342c;
}

.main {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2 {
  font-size: 28px;
}

.primary-button,
.dialog-actions button.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 11px 16px;
  font-weight: 750;
}

.danger-button {
  border: 1px solid #d7a49c;
  border-radius: 8px;
  background: #fff0ee;
  color: var(--danger);
  display: block;
  margin-top: 8px;
  padding: 9px 12px;
  font-weight: 750;
}

.danger-button:hover {
  background: #ffe4df;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.metric,
.project-card,
.detail-panel,
.toolbar,
.table-wrap,
.note,
.comment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
}

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

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

.project-card {
  padding: 14px;
  display: grid;
  gap: 10px;
  text-align: left;
  width: 100%;
  border-left: 5px solid transparent;
}

.project-card.active {
  border-left-color: var(--accent);
}

.project-card.is-completed {
  background: #effaf1;
  border-color: #b8dfc0;
}

.project-card.is-completed.active {
  border-left-color: #5aa469;
}

.project-card h3 {
  margin: 0;
  font-size: 17px;
}

.project-meta,
.pill-row,
.money-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.project-meta {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  color: #344039;
}

.pill.warn {
  background: #fff1d6;
  color: #7d4f00;
}

.pill.danger {
  background: #ffe6e2;
  color: #8e3026;
}

.pill.ok {
  background: #dff1e8;
  color: #205a3a;
}

.money-row {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.money-row strong {
  color: var(--text);
}

.detail-panel {
  min-height: 640px;
  padding: 18px;
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.detail-head h2 {
  margin: 4px 0 8px;
  font-size: 25px;
}

.project-name-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  flex-wrap: wrap;
}

.project-name-input {
  min-width: min(420px, 100%);
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 25px;
  font-weight: 800;
  padding: 6px 8px;
}

.project-name-input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(47, 107, 79, 0.18);
}

.project-deadline-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.project-deadline-form label {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-deadline-form label:nth-child(2) {
  min-width: min(320px, 100%);
}

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

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 0;
  scrollbar-width: thin;
}

.detail-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface-2);
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.detail-tab.is-active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

.detail-tab-section.is-hidden {
  display: none;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 12px;
  color: var(--text);
  font-weight: 700;
}

.secondary-button.is-disabled,
.secondary-button:disabled {
  color: #9aa39b;
  background: #edf0ed;
  cursor: not-allowed;
}

.compact-button {
  padding: 7px 10px;
  white-space: nowrap;
}

.table-input {
  width: 100%;
  min-width: 108px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 7px 8px;
}

.date-input {
  min-width: 112px;
}

.buyer-input {
  min-width: 160px;
}

.amount-input {
  min-width: 118px;
  text-align: right;
}

.mini-field {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.action-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.warning-box {
  display: grid;
  gap: 6px;
  border: 1px solid #efd38b;
  border-radius: 8px;
  background: #fff8e8;
  color: #6f4b00;
  padding: 10px 12px;
  font-size: 13px;
}

.section {
  padding-top: 18px;
  display: grid;
  gap: 12px;
}

.compact-section {
  padding-top: 8px;
}

.folder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.section-title h3 {
  font-size: 17px;
}

.section-title p {
  color: var(--muted);
  font-size: 13px;
}

.finance-grid,
.object-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.finance-cell,
.object-card {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 13px;
}

.object-card {
  position: relative;
  overflow: hidden;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.image-card {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
}

.image-thumb-button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: var(--surface-2);
  cursor: zoom-in;
}

.image-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-card figcaption {
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: var(--muted);
}

.image-card figcaption .danger-button {
  justify-self: start;
  margin-top: 4px;
}

.image-card figcaption strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.image-placeholder,
.empty-gallery {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.image-dialog {
  width: min(980px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(12, 23, 16, 0.28);
}

.image-dialog::backdrop {
  background: rgba(10, 18, 14, 0.62);
}

.image-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.image-dialog img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  display: block;
  background: #101814;
  border-radius: 6px;
}

.object-card.is-deleted {
  border: 2px solid #d3422f;
  background: #fff1ef;
}

.object-card.is-sold {
  border: 2px solid #8fcb9a;
  background: #effaf1;
}

.sold-price {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #dff4e4;
  color: #1f5d32;
  font-weight: 800;
}

.deleted-cross::before,
.deleted-cross::after {
  content: "";
  position: absolute;
  left: -15%;
  top: 50%;
  width: 130%;
  height: 6px;
  border-radius: 999px;
  background: rgba(211, 66, 47, 0.75);
  pointer-events: none;
}

.deleted-cross::before {
  transform: rotate(35deg);
}

.deleted-cross::after {
  transform: rotate(-35deg);
}

.object-edit,
.object-add-panel {
  margin-top: 12px;
}

.object-add-panel {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.object-edit summary,
.object-add-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.object-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.object-sold-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

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

.object-form-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.finance-cell span,
.object-card span {
  color: var(--muted);
  font-size: 12px;
}

.finance-cell strong,
.object-card strong {
  display: block;
  margin-top: 5px;
}

.progress-track {
  height: 9px;
  background: #dfe5df;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.timeline-item.is-completed {
  border-left-color: #5aa469;
  background: #effaf1;
  box-shadow: inset 0 0 0 1px #b8dfc0;
}

.timeline-item h4,
.timeline-item p {
  margin: 0;
}

.timeline-item p {
  color: var(--muted);
  margin-top: 4px;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.stage-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.stage-progress-form,
.stage-comment-form,
.stage-add-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.stage-progress-form,
.stage-comment-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-progress-form label,
.stage-add-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stage-progress-form label:first-child {
  flex: 1 1 260px;
}

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

.stage-add-form h4 {
  margin: 0;
}

.stage-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 160px 1fr;
  gap: 10px;
}

.stage-comment-form {
  margin-top: 10px;
  background: var(--surface);
  padding: 8px;
}

.stage-comment-form input {
  flex: 1 1 260px;
}

.stage-comments {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.stage-comment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
}

.stage-comment strong {
  font-size: 13px;
}

.stage-comment span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

.stage-comment p {
  color: var(--text);
  margin-top: 4px;
}

.comment-link {
  color: #125c3c;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.link-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.link-preview-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  min-height: 86px;
  padding: 8px;
  border: 1px solid #c8d9cd;
  border-radius: 8px;
  background: #f5faf6;
  color: var(--text);
  text-decoration: none;
}

.link-preview-card:hover {
  border-color: #7cab88;
  background: #edf7ef;
}

.link-preview-thumb,
.link-preview-image {
  width: 96px;
  height: 70px;
  border-radius: 6px;
  background: linear-gradient(135deg, #dfece3, #f8fbf8);
  object-fit: cover;
}

.link-preview-thumb::after {
  content: "LINK";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6d7a70;
  font-size: 11px;
  font-weight: 800;
}

.link-preview-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.link-preview-card span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-preview-card strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-preview-card small {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.note {
  padding: 12px;
  background: #fffaf0;
  border-color: #ead7ae;
}

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

.comment {
  box-shadow: none;
  padding: 12px;
}

.comment strong {
  display: block;
}

.comment p {
  margin: 5px 0 0;
  color: #303a34;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.upload-box {
  border: 1px dashed #9caf9f;
  border-radius: 8px;
  background: #f7faf7;
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.upload-box.dragging {
  border-color: var(--accent);
  background: #e9f5ef;
}

.upload-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.inline-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.logged-out {
  --bg: #f4f0e8;
  --accent: #1d6f5f;
  --accent-2: #b56a2d;
}

.logged-out .app-shell {
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.logged-out .sidebar {
  background: #1b2a22;
}

.logged-out .main {
  align-content: start;
  padding: 34px;
}

.public-home {
  display: grid;
  gap: 16px;
}

.public-hero {
  min-height: min(620px, calc(100vh - 150px));
  border: 1px solid #d8cdbb;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 235, 0.9)),
    repeating-linear-gradient(90deg, rgba(29, 111, 95, 0.08) 0 1px, transparent 1px 72px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: clamp(26px, 5vw, 64px);
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.hero-badge {
  width: fit-content;
  border: 1px solid #d8cdbb;
  border-radius: 999px;
  background: #fffaf1;
  color: #81511f;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  color: #14231c;
}

.hero-copy p {
  margin: 0;
  color: #3b463f;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-jokes {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.hero-jokes div,
.joke-card,
.public-strip div {
  border: 1px solid #d8cdbb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px;
}

.joke-card {
  display: grid;
  gap: 7px;
  min-height: 150px;
}

.joke-card span {
  color: #81511f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.joke-card h3 {
  margin: 0;
  font-size: 18px;
}

.joke-card p {
  margin: 0;
  color: #3f4a43;
  font-size: 14px;
  line-height: 1.42;
}

.hero-jokes strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
}

.hero-jokes span,
.public-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
}

.hero-mascot {
  position: relative;
  min-height: 380px;
}

.coin-face {
  position: absolute;
  right: 18%;
  top: 16%;
  width: min(260px, 48vw);
  aspect-ratio: 1;
  border: 10px solid #e0a743;
  border-radius: 50%;
  background: #ffd36b;
  display: grid;
  place-items: center;
  color: #6e4300;
  font-size: clamp(82px, 10vw, 140px);
  font-weight: 900;
  box-shadow: 0 24px 35px rgba(118, 73, 16, 0.18);
}

.coin-face::before,
.coin-face::after {
  content: "";
  position: absolute;
  background: #33271b;
  border-radius: 999px;
  width: 14px;
  height: 14px;
  top: 31%;
}

.coin-face::before {
  left: 30%;
}

.coin-face::after {
  right: 30%;
}

.paper {
  position: absolute;
  border: 2px solid #26342c;
  border-radius: 8px;
  background: #ffffff;
  color: #26342c;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(38, 52, 44, 0.12);
}

.paper-one {
  left: 6%;
  top: 22%;
  transform: rotate(-8deg);
}

.paper-two {
  right: 6%;
  bottom: 17%;
  transform: rotate(7deg);
}

.paper-three {
  left: 18%;
  bottom: 8%;
  transform: rotate(3deg);
}

.public-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.public-strip strong {
  display: block;
  color: var(--text);
}

.review-table td {
  vertical-align: top;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  min-width: 560px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  min-width: 560px;
}

.review-summary div {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 9px;
}

.review-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.review-summary strong {
  display: block;
  margin-top: 3px;
}

.review-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-grid input,
.review-grid select {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 500;
}

.wide-review {
  grid-column: 1 / -1;
}

.muted-line {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.warning-line {
  color: var(--warn);
  font-size: 13px;
  margin-bottom: 5px;
}

.pill.warn {
  background: #fff2d6;
  color: #8a5a00;
}

.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 24px;
}

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(920px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.dialog-card {
  padding: 20px;
  max-height: min(86vh, 900px);
  overflow: auto;
}

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

.dialog-head h3 {
  margin: 0;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.wide {
  grid-column: 1 / -1;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .logged-out .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .toolbar,
  .content-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .finance-grid,
  .object-grid,
  .upload-box,
  .review-grid,
  .public-hero,
  .hero-jokes,
  .public-strip {
    grid-template-columns: 1fr;
  }

  .hero-mascot {
    min-height: 300px;
  }
}
