@font-face {
  font-family: Inter;
  src: url("/assets/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
.review-limit-label {
  max-width: 280px;
  margin-bottom: 16px;
}
.admin-review-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.admin-review-row {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 24px;
  background: var(--admin-surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.admin-review-row > div {
  min-width: 0;
}
.admin-review-row h3 {
  margin: 0 0 8px;
}
.admin-review-row p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.admin-review-meta {
  color: var(--muted);
  font-size: 12px;
}
.admin-review-row[data-visible="false"] {
  border-style: dashed;
}
.admin-review-row a {
  color: var(--orange);
  font-size: 12px;
}
.admin-review-row .project-eye {
  flex-shrink: 0;
  align-self: flex-start;
  width: 42px;
  height: 42px;
  padding: 10px;
}
@media (max-width: 640px) {
  .admin-review-row {
    padding: 18px;
    gap: 12px;
  }
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("/assets/jetbrains-mono-400.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --orange: #ff5100;
  --muted: #93938f;
  --rule: #ffffff1c;
  --admin-bg: #0a0a0a;
  --admin-text: #efeee9;
  --admin-strong: #fff;
  --admin-label: #bbbcb6;
  --admin-surface: #111;
  --admin-field: #0c0c0c;
  --admin-control: #1c1c1c;
  --admin-hover: #292929;
  --admin-border: #ffffff29;
  --admin-hover-border: #ffffff68;
  --admin-danger: #ff9b84;
}
:root[data-theme="light"] {
  color-scheme: light;
  --muted: #62625b;
  --rule: #cfcdc4;
  --admin-bg: #eceae3;
  --admin-text: #191919;
  --admin-strong: #191919;
  --admin-label: #4b4b45;
  --admin-surface: #f8f7f3;
  --admin-field: #fff;
  --admin-control: #e3e1d9;
  --admin-hover: #d8d5cb;
  --admin-border: #c9c7be;
  --admin-hover-border: #918d81;
  --admin-danger: #a92e17;
}
:root[data-theme="light"] .admin-header img {
  mix-blend-mode: multiply;
  filter: invert(1) hue-rotate(180deg);
}
:root[data-theme="light"] #admin-status {
  color: #191919;
}
:root[data-theme="light"] #admin-status[data-error="true"] {
  color: #8b260e;
  background: #ffe1d4;
}
#admin-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 11px;
}
.user-last-active {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.activity-list .activity-detail {
  color: var(--admin-label);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.activity-list li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.activity-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--admin-surface);
}
.activity-search {
  grid-column: span 2;
}
.activity-filters button {
  align-self: end;
  justify-self: start;
}
.activity-summary {
  margin: 20px 0 8px;
  font-size: 12px;
}
.activity-pagination,
#activity-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-pagination {
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.activity-pagination button {
  padding: 9px 13px;
  font-size: 12px;
}
.activity-pagination button:disabled {
  cursor: default;
}
#activity-pages button[aria-current] {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 800;
}
@media (max-width: 800px) {
  .activity-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .activity-filters {
    padding: 14px;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-search {
    grid-column: auto;
  }
  #activity-pages {
    width: 100%;
    justify-content: center;
    order: 3;
  }
}
@media (max-width: 640px) {
  #admin-theme span {
    display: none;
  }
  #admin-theme {
    padding: 9px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0px;
  background: var(--admin-bg);
  color: var(--admin-text);
  font:
    14px / 1.6 Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
.admin-arrow {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button {
  cursor: pointer;
  border: 1px solid var(--admin-border);
  border-radius: 7px;
  background: var(--admin-control);
  color: inherit;
  padding: 11px 16px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
button:hover {
  background: var(--admin-hover);
  border-color: var(--admin-hover-border);
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
button.primary {
  background: var(--orange);
  color: white;
  border: 1px solid var(--orange);
  font-weight: 800;
}
button.primary:hover {
  background: rgb(231, 73, 0);
}
button.quiet {
  background: transparent;
}
button.danger {
  color: var(--admin-danger);
  font-size: 12px;
}
input,
select,
textarea {
  min-width: 0px;
  width: 100%;
  border: 1px solid var(--admin-border);
  background: var(--admin-field);
  color: var(--admin-text);
  border-radius: 6px;
  padding: 11px 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--orange);
  border-color: var(--orange);
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--admin-label);
  font-size: 12px;
}
label input,
label textarea,
label select {
  font-size: 14px;
}
h1,
h2,
h3,
p {
  margin-top: 0px;
}
h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin-bottom: 0px;
  font-weight: 600;
}
h1 > span {
  color: var(--orange);
}
h2 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 8px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0px;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.admin-header {
  max-width: 1440px;
  margin: auto;
  padding: 25px 5vw;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}
.admin-header img {
  width: 104px;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}
.admin-header > span,
.eyebrow {
  font:
    10px Mono,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.site-link {
  margin-left: auto;
  font-size: 12px;
}
.site-link:hover {
  color: var(--orange);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 50px 5vw 90px;
}
.access-card {
  width: min(100%, 440px);
  margin: 4vh auto;
}
.eyebrow {
  display: block;
  margin-bottom: 16px;
}
.access-card h1 {
  margin-bottom: 24px;
}
.access-card form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 38px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-tabs button {
  flex-shrink: 0;
  white-space: nowrap;
}
#logout {
  flex-shrink: 0;
  font-size: 12px;
}
.category-filter {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
#project-filter-empty {
  padding: 8px 14px;
}
.project-eye {
  flex: 0 0 30px;
  padding: 7px 5px;
  border: 0;
  background: transparent;
  color: var(--orange);
}
.project-eye[aria-pressed="false"] {
  color: var(--muted);
}
.project-eye svg {
  display: block;
  width: 20px;
  height: 20px;
}
.inline-form,
.category-row {
  display: flex;
  align-items: end;
  gap: 10px;
}
.inline-form label,
.category-row label {
  flex: 1;
  min-width: 0;
}
.category-list {
  margin: 24px 0;
  display: grid;
  gap: 16px;
  max-height: 42svh;
  overflow-y: auto;
}
.category-row button {
  padding: 10px;
}
.form-error {
  color: var(--admin-danger);
  margin: 18px 0 0;
  font-size: 13px;
}
.overview-intro {
  margin-top: 18px !important;
}
.overview-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.overview-stat {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(
    145deg,
    var(--admin-control),
    var(--admin-surface)
  );
  border-color: var(--rule);
}
.overview-stat > span {
  font-size: 12px;
  color: var(--admin-label);
}
.overview-stat strong {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--orange);
  font-weight: 800;
}
.overview-stat small {
  font-size: 11px;
  color: var(--muted);
}
.activity-panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--admin-surface);
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.activity-list li > div {
  display: grid;
  gap: 5px;
}
.activity-list span,
.activity-list time {
  font-size: 11px;
  color: var(--muted);
}
.activity-list time {
  white-space: nowrap;
}
.user-list {
  display: grid;
  gap: 14px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--admin-surface);
}
.user-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff510018;
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
}
.user-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.user-info p {
  margin: 4px 0;
  font-size: 12px;
}
.user-badge {
  font-size: 10px;
  color: var(--orange);
}
.user-card[data-active="false"] .user-badge {
  color: var(--muted);
}
.user-actions {
  display: flex;
  gap: 10px;
}
@media (max-width: 1000px) {
  .overview-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .admin-header {
    flex-wrap: wrap;
  }
  #logout {
    margin-left: auto;
    padding: 8px 10px;
  }
  .user-card {
    flex-wrap: wrap;
    padding: 18px;
  }
  .user-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .activity-list li {
    flex-direction: column;
    gap: 8px;
  }
  .category-row {
    gap: 6px;
  }
  .category-row button {
    padding: 10px 6px;
    font-size: 11px;
  }
  .overview-counts {
    gap: 10px;
  }
  .overview-stat {
    padding: 16px;
  }
  .project-eye {
    min-height: 44px;
  }
}
.admin-tabs button {
  border-width: 0px 0px 2px;
  border-style: none none solid;
  border-color: currentcolor currentcolor transparent;
  border-image: none;
  border-radius: 0px;
  background: transparent;
  padding: 14px 18px;
  color: var(--muted);
}
.admin-tabs button[aria-pressed="true"] {
  color: var(--admin-strong);
  border-color: var(--orange);
}
.admin-tabs span {
  font:
    10px Mono,
    monospace;
  padding: 3px 6px;
  background: var(--admin-control);
  border-radius: 4px;
  margin-left: 6px;
}
.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  margin-bottom: 28px;
}
.panel-toolbar p {
  margin: 0px;
  max-width: 620px;
}
.panel-toolbar > button {
  flex-shrink: 0;
}
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.toolbar-actions button {
  white-space: nowrap;
}
.globe-layout-status {
  font-size: 12px;
  line-height: 1.7;
  margin: -10px 0 22px;
  color: var(--muted);
}
.project-visibility {
  padding: 15px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  margin-bottom: 20px;
}
.project-visibility small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.project-visibility input {
  flex-shrink: 0;
}
.row-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.row-visibility {
  font-size: 9px;
  color: var(--orange);
}
.project-row[data-visible="false"] .row-visibility {
  color: var(--muted);
}
.project-row[data-visible="false"] img {
  opacity: 0.45;
}
.globe-settings {
  border: 1px solid var(--rule);
  border-radius: 9px;
  margin-bottom: 26px;
  background: var(--admin-surface);
}
.globe-settings summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.globe-settings summary span {
  float: right;
  color: var(--orange);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  gap: 20px;
  padding: 8px 20px 22px;
}
.toggle {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
}
.editor-grid {
  display: grid;
  grid-template-columns: 290px minmax(0px, 1fr);
  gap: 24px;
}
.project-sidebar,
.project-editor,
.contact-editor {
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--admin-surface);
}
.list-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--rule);
}
.list-toolbar input {
  font-size: 12px;
}
.list-toolbar button {
  font-size: 20px;
  line-height: 1;
  padding: 8px 13px;
}
.project-list {
  max-height: 910px;
  overflow: auto;
  padding: 8px;
  scrollbar-width: thin;
}
.project-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  margin: 2px 0px;
}
.project-list-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-list-item .project-row {
  flex: 1;
  min-width: 0;
  gap: 8px;
}
.project-order {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.project-order button {
  padding: 2px 7px;
  line-height: 1.4;
}
.project-order button:disabled {
  cursor: default;
}
#project-save-status {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}
#access > .access-heading {
  color: var(--admin-strong);
  font:
    800 clamp(36px, 5vw, 52px) / 1.08 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.admin-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: clamp(20px, 4vw, 36px);
  color: var(--admin-text);
  background: var(--admin-surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 28px 100px #0008;
}
.admin-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(6px);
}
.admin-dialog h2 {
  font-size: 28px;
  margin: 0 0 22px;
  line-height: 1.2;
}
.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dialog-heading button {
  align-self: start;
  padding: 3px 10px;
  font-size: 22px;
}
.dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 28px;
}
.project-row[aria-pressed="true"] {
  background: rgba(255, 81, 0, 0.063);
  border-color: rgba(255, 81, 0, 0.3);
}
.project-row img {
  width: 37px;
  height: 37px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--admin-control);
}
.project-row .row-number {
  font:
    10px Mono,
    monospace;
  color: var(--muted);
}
.project-row .row-name {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.project-row[aria-pressed="true"] .row-number {
  color: var(--orange);
}
.project-editor {
  padding: 24px;
}
.editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.icon-actions button {
  padding: 6px 12px;
}
.project-preview {
  background: var(--admin-field);
  height: 220px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 24px;
}
.project-preview img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.project-preview span {
  font-size: 12px;
  color: var(--muted);
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1 / -1;
}
.upload-label {
  border: 1px dashed var(--admin-border);
  border-radius: 6px;
  padding: 14px;
}
.upload-label span {
  font-size: 11px;
  color: var(--muted);
}
.upload-label input {
  border: 0px;
  padding: 4px 0px;
  background: none;
  font-size: 12px;
}
.palette {
  display: flex;
  gap: 20px;
  border: 0px;
  margin: 0px;
  padding: 10px 0px 0px;
  flex-wrap: wrap;
}
.palette legend {
  font-size: 12px;
  color: var(--admin-label);
}
.palette input {
  height: 38px;
  width: 70px;
  padding: 3px;
}
.field-note {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0px 0px;
}
.empty-state {
  text-align: center;
  padding: 50px 24px;
  color: var(--muted);
  border: 1px dashed var(--rule);
  border-radius: 9px;
}
.filter-label {
  max-width: 270px;
  margin-bottom: 24px;
}
.inbox-grid {
  display: grid;
  grid-template-columns: 310px minmax(0px, 1fr);
  gap: 24px;
}
.contact-row {
  display: block;
  text-align: left;
  width: 100%;
  margin-bottom: 8px;
  background: var(--admin-surface);
}
.contact-row[aria-pressed="true"] {
  border-color: var(--orange);
}
.contact-row strong,
.contact-row time,
.contact-row small {
  display: block;
  overflow-wrap: anywhere;
}
.contact-row time {
  font:
    10px Mono,
    monospace;
  color: var(--muted);
  margin: 6px 0px;
}
.contact-row small {
  font-size: 11px;
  color: var(--orange);
}
.contact-editor {
  padding: 24px;
}
.contact-editor label {
  margin-bottom: 20px;
}
.contact-editor a {
  color: var(--orange);
  overflow-wrap: anywhere;
}
.contact-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--admin-label);
  padding: 22px 0px;
  border-block: 1px solid var(--rule);
  margin: 22px 0px;
}
.contact-editor .field-note {
  margin: 0px;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.integration-note {
  max-width: 730px;
  font-size: 12px;
}
.integration-card {
  border: 1px solid var(--rule);
  background: var(--admin-surface);
  padding: 24px;
  border-radius: 9px;
  margin-bottom: 18px;
}
.integration-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.integration-card .fields-grid {
  margin-bottom: 20px;
}
.integration-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.add-integration {
  width: 100%;
  border-style: dashed;
  background: transparent;
}
.admin-footer {
  font:
    10px Mono,
    monospace;
  color: rgb(101, 101, 95);
  text-align: center;
  padding: 25px;
  border-top: 1px solid var(--rule);
}
#admin-status:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgb(237, 237, 223);
  color: var(--admin-surface);
  border-left: 4px solid var(--orange);
  padding: 14px 20px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.533) 0px 10px 45px;
  width: max-content;
  max-width: calc(100% - 32px);
  font-size: 13px;
}
#admin-status[data-error="true"] {
  background: rgb(51, 23, 14);
  color: rgb(255, 207, 191);
}
@media (max-width: 1000px) {
  .editor-grid {
    grid-template-columns: 240px minmax(0px, 1fr);
  }
  .inbox-grid {
    grid-template-columns: 240px minmax(0px, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-toolbar {
    flex-direction: column;
  }
  .project-editor {
    padding: 18px;
  }
  .dashboard-heading {
    align-items: start;
  }
  .dashboard-heading > button {
    font-size: 11px;
  }
}
@media (max-width: 650px) {
  main {
    padding: 35px 20px 85px;
  }
  .admin-header {
    padding: 22px 20px;
    gap: 12px;
  }
  .admin-header > span {
    display: none;
  }
  .dashboard-heading {
    flex-direction: column;
    gap: 18px;
  }
  .dashboard-heading > button {
    padding: 7px 10px;
  }
  .admin-tabs {
    gap: 0px;
  }
  .admin-tabs button {
    padding: 12px 9px;
    font-size: 12px;
  }
  .admin-tabs span {
    margin-left: 2px;
  }
  .editor-grid,
  .inbox-grid {
    grid-template-columns: 1fr;
  }
  .project-list {
    max-height: 220px;
  }
  .project-row {
    padding: 6px 8px;
  }
  .fields-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .settings-grid {
    gap: 16px;
  }
  .project-preview,
  .project-preview img {
    height: 200px;
  }
  .integration-card,
  .contact-editor {
    padding: 18px;
  }
  .editor-title {
    gap: 12px;
  }
  .contact-list {
    max-height: 280px;
    overflow: auto;
  }
  .access-card {
    margin: 2vh auto;
  }
  .panel-toolbar > button {
    width: 100%;
  }
  .toolbar-actions,
  .toolbar-actions button {
    width: 100%;
  }
  .integration-actions > button {
    font-size: 12px;
  }
  .palette {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#contact-phone {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.admin-languages {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  flex-shrink: 0;
}
.admin-languages button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  background: transparent;
}
.admin-languages button[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--admin-control);
}
.admin-languages svg {
  width: 24px;
  height: 16px;
  border-radius: 2px;
}
@media (max-width: 700px) {
  .admin-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px 8px;
    padding: 18px 16px;
  }
  .admin-header > a:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .admin-header > span {
    display: none;
  }
  .admin-languages {
    grid-column: 2;
    grid-row: 1;
  }
  #admin-theme {
    grid-column: 3;
    grid-row: 1;
    padding: 12px;
    min-height: 44px;
  }
  #admin-theme span {
    display: none;
  }
  .site-link {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0;
    font-size: 12px;
  }
  #logout {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: end;
    margin: 0;
    min-height: 44px;
  }
  main {
    padding: 24px 16px 64px;
  }
  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    margin-bottom: 26px;
    background: var(--admin-surface);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: visible;
  }
  .admin-tabs button {
    min-width: 0;
    min-height: 48px;
    padding: 9px 3px;
    font-size: 11px;
    border-radius: 7px;
    white-space: normal;
  }
  .admin-tabs button[aria-pressed="true"] {
    background: var(--admin-control);
  }
  .panel-toolbar {
    gap: 16px;
    margin-bottom: 20px;
    flex-direction: column;
  }
  .panel-toolbar p {
    font-size: 13px;
  }
  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .toolbar-actions button {
    padding: 11px 7px;
    font-size: 12px;
    white-space: normal;
  }
  #project-save-status {
    grid-column: 1 / -1;
  }
  .editor-grid,
  .inbox-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .project-sidebar {
    min-width: 0;
  }
  .project-list {
    max-height: 320px;
    overscroll-behavior: contain;
  }
  .project-list-item {
    gap: 2px;
  }
  .project-order button {
    min-width: 36px;
    min-height: 36px;
  }
  .row-copy {
    overflow-wrap: anywhere;
  }
  .project-list-item img {
    width: 38px;
  }
  .activity-panel {
    padding: 16px;
  }
  .activity-filters {
    padding: 12px;
  }
  .activity-pagination {
    gap: 12px;
  }
  .admin-dialog {
    padding: 20px;
    width: calc(100% - 24px);
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions button {
    flex: 1;
  }
  label input,
  label textarea,
  label select {
    font-size: 16px;
  }
  .user-actions button {
    flex: 1;
    min-height: 44px;
  }
}
