:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #132f3a;
  background: #fff;
  font-size: 16px;
  --ink: #132f3a;
  --green: #064e49;
  --border: #d3dfdc;
  --muted: #536773;
  --soft: #f3f7f6;
  --radius: 8px;
  line-height: 1.45;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
input,
select {
  min-height: 48px;
}
button {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  background: white;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
button.primary:hover {
  background: #063d39;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bbcdd1;
  border-radius: 5px;
  background: #fff;
  padding: 10px 12px;
}
textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.4;
}
input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--green);
  flex-shrink: 0;
}
input[type="radio"] {
  cursor: pointer;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f3f6f5;
  color: #536773;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
:focus-visible {
  outline: 3px solid #238d83;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #102934;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.2;
}
.subtle,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.brand {
  width: 218px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 80px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  align-self: stretch;
  gap: 8px;
}
nav button {
  border: 0;
  border-radius: 0;
  font-weight: 400;
  border-bottom: 3px solid transparent;
  padding: 10px 24px;
}
nav button[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
  border-bottom-color: var(--green);
}
.logout {
  margin-left: auto;
  border-color: transparent;
}
.workspace {
  padding: 20px 28px 32px;
  max-width: 1760px;
  margin: auto;
}
.notice {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f3f7f7;
  display: flex;
  gap: 16px;
  align-items: center;
}
.info {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: bold;
  font-family: Georgia, serif;
}
.feedback:empty {
  display: none;
}
.feedback {
  margin: 16px 0;
  padding: 12px 16px;
  background: #eaf5ee;
  border: 1px solid #b8d8c4;
  border-radius: 6px;
  white-space: pre-wrap;
}
.feedback.error {
  background: #fff2ed;
  border-color: #d9a891;
  color: #813e27;
}
#view {
  margin-top: 32px;
}
.intro {
  font-size: 18px;
  margin-top: 6px;
  margin-bottom: 20px;
}
.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(360px, 1fr);
  gap: 16px;
}
.inventory-panel,
.editor {
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}
.filters {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}
.filters input {
  flex: 1;
  min-width: 100px;
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23536773' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.filters select {
  width: 180px;
}
.filters label {
  white-space: nowrap;
}
.table-region {
  overflow: auto;
  max-height: 546px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 15px;
  white-space: nowrap;
}
thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8f8;
}
th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
thead th {
  font-weight: 600;
}
tbody th {
  font-weight: 400;
}
td:first-child {
  width: 52px;
  padding-left: 20px;
}
tbody label {
  cursor: pointer;
}
tr.selected {
  background: #e2efeb;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 14px;
  line-height: 1.2;
  background: #edf1f2;
  color: #455d68;
  white-space: nowrap;
}
.badge.available,
.badge.visible {
  background: #e4f4e7;
  color: #064e49;
}
.badge.occupied {
  background: #f7ecd9;
  color: #704913;
}
.badge.unavailable {
  background: #f4e8e4;
  color: #7b4938;
}
.table-count {
  padding: 22px 18px;
  font-size: 14px;
}
.editor {
  padding: 22px;
  align-self: start;
}
.editor h2 {
  margin-bottom: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 15px;
  font-weight: 600;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.actions > * {
  flex: 1;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.login {
  width: min(420px, calc(100% - 40px));
  margin: 10vh auto;
}
.login > .brand {
  display: block;
  margin: 0 auto 32px;
  object-position: center;
}
.login-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.login-form h1 {
  font-size: 28px;
}
.login-form .subtle {
  margin: 8px 0 24px;
}
.login-form button {
  width: 100%;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 5;
  background: #fff;
  padding: 12px;
  color: var(--green);
}
.skip-link:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .topbar {
    gap: 16px;
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .topbar nav {
    order: 3;
    width: 100%;
  }
  .topbar nav button {
    flex: 1;
    padding: 10px 12px;
  }
  .workspace {
    padding: 16px;
  }
  .inventory-layout {
    grid-template-columns: 1fr;
  }
  .table-region {
    max-height: 390px;
  }
  .editor {
    width: 100%;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
  }
  .logout {
    margin-left: auto;
  }
  h1 {
    font-size: 32px;
  }
  .intro {
    font-size: 16px;
  }
  .brand {
    width: 190px;
  }
  .notice {
    align-items: flex-start;
    font-size: 14px;
  }
  #view {
    margin-top: 24px;
  }
  .editor h2 {
    font-size: 26px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .actions > * {
    min-width: 130px;
  }
  th,
  td {
    padding: 14px;
  }
  .login-form {
    padding: 22px;
  }
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 14px;
}
.readonly-note {
  margin: 12px 0 20px;
  color: var(--muted);
}
.reload {
  margin-left: 16px;
}
.revision-line {
  color: var(--muted);
  margin-bottom: 28px;
}
.public-differences,
.internal-differences {
  margin: 24px 0;
}
.public-differences > h2,
.internal-differences > h2 {
  font-size: 24px;
}
.difference-block {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.difference-block h3 {
  margin: 0;
  padding: 16px 20px;
  font-size: 18px;
}
.diff-table-wrap {
  overflow: auto;
}
.diff-table {
  table-layout: fixed;
  white-space: normal;
}
.diff-table td,
.diff-table th {
  width: 33.33%;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.diff-table tbody td:last-child {
  background: #f0f7f3;
}
.empty-state {
  padding: 24px 0;
  color: var(--muted);
}
.publish-form {
  max-width: 640px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}
.history-entry {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow-wrap: anywhere;
}
.history-entry h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
.history-entry p {
  margin-top: 8px;
}
.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.history-meta time {
  font-size: 14px;
  color: var(--muted);
}
#history-more {
  margin-top: 24px;
}
.account-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
}
.account-password {
  font-size: 14px;
  border-color: transparent;
  padding: 10px 8px;
  font-weight: 400;
}
.password-view {
  max-width: 480px;
}
.password-view h1 {
  font-size: 32px;
}
.password-gate {
  padding-top: 48px;
  max-width: 560px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 24px;
}
.users-table {
  border: 1px solid var(--border);
  border-radius: 6px;
}
.user-actions {
  white-space: normal;
  min-width: 160px;
}
.user-actions button {
  font-size: 13px;
  padding: 6px 10px;
  min-height: 40px;
  margin: 2px;
}
.permission-help {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
#user-editor h2 {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.topbar {
  gap: 24px;
}
.topbar nav button {
  padding: 10px 16px;
}
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
  }
  .topbar nav button {
    flex: 1;
  }
  .users-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .account-actions {
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 150px;
  }
  .account-password {
    font-size: 12px;
    min-height: 32px;
    padding: 4px;
  }
  .account-actions .logout {
    padding: 4px 10px;
    min-height: 32px;
  }
  .topbar {
    padding: 12px 16px;
  }
  .topbar nav button {
    font-size: 14px;
    padding: 8px;
  }
  .topbar .brand {
    width: 160px;
  }
  .history-meta {
    flex-direction: column;
    gap: 8px;
  }
  .section-heading h1 {
    font-size: 30px;
  }
  .section-heading button {
    font-size: 14px;
    padding: 10px 12px;
  }
}
.users-layout > * {
  min-width: 0;
}
.inventory-panel {
  align-self: start;
}
.editor .field {
  gap: 5px;
  margin-bottom: 11px;
}
.editor .field label {
  line-height: 1.25;
}
.editor textarea {
  min-height: 66px;
}
.editor .check-field {
  margin: 12px 0;
}
.editor .field-hint {
  margin: -5px 0 12px;
}
.editor .actions {
  margin-top: 14px;
}
.table-region {
  max-height: 568px;
}
.inventory-panel tbody th,
.inventory-panel tbody td {
  padding-top: 13px;
  padding-bottom: 13px;
}
@media (max-width: 900px) {
  .table-region {
    max-height: 390px;
  }
  .actions > * {
    min-width: 0;
  }
  .editor .actions {
    flex-wrap: nowrap;
  }
  .editor .actions button {
    font-size: 14px;
    padding: 10px 12px;
  }
  .users-table {
    max-height: 520px;
  }
}
.history-details {
  margin-top: 16px;
}
.history-details summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
  width: fit-content;
  padding: 10px 0;
  min-height: 44px;
}
.history-details > .diff-table-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 16px;
}
.history-details > .subtle {
  font-size: 14px;
  margin-bottom: 16px;
}
