.auth-account {
  gap: 7px;
  padding-left: 10px;
}

.header-park-code {
  display: grid;
  min-height: 38px;
  align-content: center;
  gap: 1px;
  padding: 5px 10px;
  border: 1px solid rgba(40, 168, 121, .28);
  border-radius: 10px;
  background: #edf6f0;
  color: var(--green-dark);
  line-height: 1.1;
}

.header-park-code[hidden] {
  display: none;
}

.header-park-code small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.header-park-code strong {
  font-size: 10px;
}

.header-park-code b {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account .header-csv-button,
.auth-account .header-admin-button,
.auth-account .header-notifications-button,
.auth-account .header-profile-button,
.auth-account .header-logout-button {
  min-height: 38px;
  margin: 0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.auth-account .header-csv-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 6px 12px;
  border-color: #d27629;
  background: linear-gradient(135deg, #f8a64b, #ee8426);
  color: #102b22;
}

.auth-account .header-csv-button > .csv-upload-icon {
  display: inline;
  color: inherit;
  font-size: 14px;
}

.auth-account .header-admin-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 104, 76, .28);
  background: #edf6f0;
  color: var(--green-dark);
}

.auth-account .header-admin-button[hidden] {
  display: none;
}

.auth-account .header-admin-button:hover {
  background: #dfeee5;
}

.auth-account .header-notifications-button {
  position: relative;
  display: grid;
  width: 40px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(15, 104, 76, .28);
  background: #edf6f0;
  color: var(--green-dark);
}

.auth-account .header-notifications-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-account .header-notifications-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #dc493f;
  color: #fff;
  font-size: 8px;
}

.auth-account .header-notifications-button b[hidden] {
  display: none;
}

.auth-account .header-csv-button .csv-upload-label {
  display: grid;
  gap: 2px;
  color: inherit;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
}

.auth-account .header-csv-button .csv-upload-label strong {
  font-size: 10px;
  letter-spacing: .12em;
}

.auth-account .header-csv-button .csv-upload-label small {
  color: inherit;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .01em;
  text-transform: none;
}

.topbar nav a.nav-two-line {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1;
  text-align: center;
}

.topbar nav a.nav-two-line small {
  color: #a9c3b9;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-account .header-profile-button {
  display: grid;
  min-width: 104px;
  gap: 1px;
  padding: 5px 10px;
  text-align: left;
}

.auth-account .header-profile-button > span {
  display: block;
  max-width: 130px;
  color: var(--green-dark);
  font-size: 10px;
}

.auth-account .header-profile-button > small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-account .header-logout-button {
  width: 38px;
  padding: 7px;
  font-size: 16px;
}

.terms-consent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faf7;
}

.terms-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
}

.auth-form .terms-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.terms-consent button,
.auth-privacy button,
footer button,
.text-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b94f16;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: min(92vh, 900px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(3, 30, 22, .36);
}

.app-dialog::backdrop {
  background: rgba(3, 28, 21, .72);
  backdrop-filter: blur(8px);
}

.dialog-heading {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.dialog-heading .kicker {
  margin-bottom: 7px;
}

.dialog-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.dialog-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.dialog-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f7f8f5;
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}

.upload-dialog {
  width: min(calc(100% - 32px), 1120px);
}

.upload-dialog .production-section {
  margin: 0;
  padding: 34px;
  border-radius: 0;
}

.upload-dialog .csv-import-section {
  scroll-margin-top: 0;
}

.upload-dialog .section-intro h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.profile-form {
  padding: 26px 28px 30px;
}

.admin-dialog {
  width: min(calc(100% - 32px), 1180px);
}

.admin-data-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 26px 28px 32px;
}

.admin-data-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfa;
}

.admin-comments-card,
.admin-parks-card,
.admin-audit-card,
.admin-power-jobs-card {
  grid-column: 1 / -1;
}

.admin-card-heading {
  padding: 20px 21px 17px;
  border-bottom: 1px solid var(--line);
}

.admin-card-heading h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.admin-card-heading > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.admin-entry-form {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-entry-form label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-entry-form input,
.admin-entry-form select,
.admin-entry-form textarea {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-entry-form input:focus,
.admin-entry-form select:focus,
.admin-entry-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 132, 38, .13);
}

.admin-comments-form {
  grid-template-columns: minmax(180px, .65fr) minmax(260px, 1.35fr);
}

.admin-park-form {
  grid-template-columns: .8fr 1.4fr 1fr 1fr;
}

.admin-park-form > button {
  grid-column: 1 / -1;
}

.admin-comments-form input[type="file"] {
  padding: 8px;
  text-transform: none;
}

.admin-comment-preview-field {
  grid-column: 1 / -1;
}

.admin-entry-form textarea {
  display: block;
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
  text-transform: none;
}

.admin-entry-form textarea[readonly] {
  background: #f7f9f6;
}

.admin-comment-preview-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.admin-entry-form .admin-value-field {
  grid-column: 1 / -1;
}

.admin-entry-form .money-input {
  margin-top: 6px;
}

.admin-entry-form .money-input input {
  margin-top: 0;
  padding-right: 112px;
}

.admin-entry-form > button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 150px;
}

.admin-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table-wrap th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f1f5f1;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-table-wrap td:nth-child(3) {
  color: var(--green-dark);
  font-weight: 800;
}

.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.admin-row-actions button {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 800;
}

.admin-row-actions button[data-admin-delete],
.admin-row-actions button[data-admin-park-delete] {
  color: #a23c29;
}

.admin-parks-table {
  max-height: 420px;
}

.admin-parks-table th:first-child,
.admin-parks-table td:first-child,
.admin-parks-table th:nth-child(3),
.admin-parks-table td:nth-child(3),
.admin-parks-table th:nth-child(4),
.admin-parks-table td:nth-child(4) {
  white-space: nowrap;
}

.admin-parks-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 600;
}

.admin-parks-table td:last-child {
  width: 145px;
}

.admin-owner-select {
  width: min(240px, 100%);
  min-width: 170px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.power-control-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 7px;
  min-width: 130px;
  cursor: pointer;
}

.power-control-toggle input {
  width: 16px;
  height: 16px;
  grid-row: 1 / 3;
  accent-color: var(--orange);
}

.power-control-toggle > span {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
}

.power-status {
  width: max-content;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .03em;
}

.power-status-unset,
.power-status-off { background: #edf0ed; color: #6c7772; }
.power-status-simulation { background: #fff0d5; color: #8c501d; }
.power-status-live { background: #dcefe3; color: #0b6848; }

.admin-power-jobs-table { max-height: 430px; }
.admin-power-jobs-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.power-job-status { display: inline-block; padding: 4px 7px; border-radius: 10px; background: #edf0ed; font-size: 8px; font-weight: 800; }
.power-job-simulated { background: #fff0d5; color: #8c501d; }
.power-job-succeeded { background: #dcefe3; color: #0b6848; }
.power-job-failed { background: #f8e2df; color: #8f2c27; }
.power-job-pending, .power-job-processing { background: #e3edf8; color: #285982; }

.admin-comments-table td:first-child {
  width: 120px;
  white-space: nowrap;
}

.admin-comments-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 400;
}

.admin-comments-table td:nth-child(3) {
  width: 145px;
  color: inherit;
  font-weight: 400;
}

.admin-comment-text {
  max-height: 110px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.55;
}

.admin-comment-source {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

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

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

.profile-form label {
  color: var(--muted);
}

.profile-form input {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.profile-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 132, 38, .13);
}

.profile-form input[readonly] {
  background: #f3f6f2;
  color: var(--green-dark);
}

.profile-security {
  margin: 24px -28px -1px;
  padding: 23px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}

.profile-security h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.profile-security > p {
  margin: 6px 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.dialog-actions,
.terms-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
}

.dialog-actions .text-link-button {
  margin-right: auto;
}

.danger-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a5322d;
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.danger-button {
  padding: 11px 17px;
  border: 1px solid #982f2a;
  border-radius: 9px;
  background: #a83a34;
  color: #fff;
  font-weight: 800;
}

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

.delete-account-dialog {
  width: min(calc(100% - 32px), 560px);
}

.delete-account-form {
  display: grid;
  gap: 19px;
  padding: 24px 28px 28px;
}

.delete-account-form > label:not(.delete-account-confirm) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.delete-account-form > label > input[type="password"] {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.delete-account-form > label > input[type="password"]:focus {
  border-color: #a83a34;
  box-shadow: 0 0 0 3px rgba(168, 58, 52, .12);
}

.delete-account-warning {
  padding: 16px 17px;
  border: 1px solid #edc9c6;
  border-radius: 11px;
  background: #fff4f3;
  color: #6e2c29;
  font-size: 10px;
  line-height: 1.55;
}

.delete-account-warning strong,
.delete-account-warning p {
  margin: 0;
}

.delete-account-warning ul {
  margin: 8px 0;
  padding-left: 19px;
}

.delete-account-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.delete-account-confirm input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #a83a34;
}

.dialog-message {
  margin: 20px 28px 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #e5f1eb;
  color: var(--green-dark);
  font-size: 12px;
}

.dialog-message.error {
  background: #f8e9e8;
  color: #7d2522;
}

.profile-assigned-parks {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf7;
}

.profile-assigned-parks[hidden] { display: none; }
.profile-assigned-parks h3 { margin: 2px 0 4px; color: var(--green-dark); font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.profile-assigned-parks > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.profile-assigned-parks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.profile-park-card { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid #d8e1dc; border-radius: 10px; background: #fff; }
.profile-park-card span { color: var(--green-dark); font-size: 12px; font-weight: 800; }
.profile-park-card small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.profile-park-card strong { color: var(--orange-dark); font-size: 12px; letter-spacing: .04em; }
.profile-parks-empty { grid-column: 1 / -1; margin: 5px 0; color: var(--muted); font-size: 10px; text-align: center; }
.profile-parks-error { color: #8f2c27; }

.power-control-dialog,
.notifications-dialog {
  width: min(calc(100% - 32px), 850px);
}

.power-control-form { padding: 0 28px 28px; }
.power-control-safety { margin: 0 -28px 22px; padding: 17px 28px; border-bottom: 1px solid #edc89d; background: #fff4e5; color: #71401c; }
.power-control-safety strong { display: block; margin-bottom: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.power-control-safety p { margin: 0; font-size: 10px; line-height: 1.55; }
.power-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.power-control-grid label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.power-control-grid input { width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.power-control-grid small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.power-control-wide { grid-column: 1 / -1; }
.power-control-wiring { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 20px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.power-control-wiring span { display: grid; gap: 4px; padding: 12px; background: #f7faf7; color: var(--muted); font-size: 9px; }
.power-control-wiring b { color: var(--green-dark); font-size: 9px; }
.power-control-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.power-control-options label { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; cursor: pointer; }
.power-control-options input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--orange); }
.power-control-options span { display: grid; gap: 4px; }
.power-control-options strong { color: var(--green-dark); font-size: 10px; }
.power-control-options small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.power-control-form .dialog-message { margin: 18px 0 0; }
.power-control-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.power-control-actions button { margin: 0; }
.power-danger { padding: 10px 13px; border: 1px solid #b8493d; border-radius: 8px; background: #fff5f3; color: #8e2b25; font-size: 9px; font-weight: 800; }

.notifications-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 25px; border-bottom: 1px solid var(--line); background: #f7faf7; color: var(--muted); font-size: 10px; }
.notifications-toolbar button { margin: 0; }
.notifications-list { display: grid; gap: 10px; padding: 20px 24px 28px; }
.notifications-empty { margin: 15px 0; color: var(--muted); text-align: center; }
.notifications-error { color: #8f2c27; }
.notification-card { position: relative; padding: 15px 16px 15px 19px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.notification-card::before { position: absolute; top: 15px; bottom: 15px; left: 0; width: 4px; border-radius: 0 3px 3px 0; background: #739184; content: ''; }
.notification-card.is-unread { box-shadow: 0 8px 24px rgba(3, 48, 35, .08); }
.notification-warning::before { background: var(--orange); }
.notification-error::before { background: #c74239; }
.notification-success::before { background: #16845e; }
.notification-card > div { display: flex; justify-content: space-between; gap: 10px; color: var(--orange-dark); font-size: 9px; font-weight: 800; }
.notification-card > div small { color: var(--muted); font-weight: 600; }
.notification-card h3 { margin: 9px 0 5px; color: var(--green-dark); font-size: 13px; }
.notification-card p { margin: 0; color: #52615b; font-size: 10px; line-height: 1.55; }
.notification-card.is-read { opacity: .68; }

.terms-dialog {
  width: min(calc(100% - 32px), 880px);
}

.terms-content {
  display: grid;
  gap: 0;
  padding: 8px 30px 4px;
}

.terms-content section {
  padding: 18px 0;
  border-bottom: 1px solid #e7ebe6;
}

.terms-content h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 14px;
}

.terms-content p {
  margin: 0;
  color: #52615b;
  font-size: 12px;
  line-height: 1.7;
}

.terms-actions {
  position: sticky;
  z-index: 4;
  bottom: 0;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.terms-actions p {
  margin: 0 auto 0 0;
  color: #8b3c18;
  font-size: 11px;
  font-weight: 750;
}

.production-meta {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(180px, 1.4fr) minmax(130px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 17px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f5f7f3, #eef3ed);
}

.production-meta div {
  display: grid;
  gap: 4px;
}

.production-meta span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.production-meta strong {
  color: #8a9691;
  font-size: 12px;
}

.production-meta i {
  color: #9ba7a2;
  font-style: normal;
}

.production-meta.ready {
  background: linear-gradient(135deg, #e8f3ec, #f5f8f2);
}

.production-meta.ready strong {
  color: var(--green-dark);
}

footer button {
  color: var(--green-dark);
  font-size: 10px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(3, 28, 21, .24);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ffad54;
  outline-offset: 3px;
}

.admin-audit-table {
  max-height: 440px;
}

.admin-audit-table td {
  vertical-align: top;
}

.admin-audit-table td:first-child,
.admin-audit-table td:nth-child(2) {
  white-space: nowrap;
}

.admin-audit-table td:nth-child(3),
.admin-audit-table td:nth-child(4),
.admin-audit-table td:nth-child(5) {
  color: var(--ink);
  font-weight: 400;
}

.admin-audit-table td:nth-child(4) small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.admin-audit-action {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 99px;
  background: #e6f1e9;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 850;
}

.admin-audit-delete {
  background: #f9e8e4;
  color: #9f3b2c;
}

[data-app-view][hidden] {
  display: none !important;
}

[data-app-view] {
  scroll-margin-top: 100px;
}

body[data-workspace-view="home"] #notice {
  display: none !important;
}

.topbar nav a[aria-current="page"] {
  color: #ffad54;
}

.home-dashboard {
  padding: 36px 0 96px;
  scroll-margin-top: 80px;
}

.home-welcome {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr);
  gap: 48px;
  align-items: center;
  padding: 56px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 173, 84, .2), transparent 32%),
    linear-gradient(135deg, #092f25, #0b4434);
  box-shadow: 0 28px 70px rgba(6, 39, 30, .2);
  color: #fff;
}

.home-welcome .eyebrow {
  color: #ffad54;
}

.home-welcome h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5.2vw, 70px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

.home-welcome h1 em {
  color: #c9e76d;
  font-weight: 400;
}

.home-welcome > div > p:last-child {
  max-width: 510px;
  margin: 25px 0 0;
  color: #bed0c9;
  font-size: 14px;
  line-height: 1.7;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-actions a {
  display: grid;
  min-height: 126px;
  align-content: end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 15px;
  background: rgba(255, 255, 255, .075);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.home-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 173, 84, .65);
  background: rgba(255, 255, 255, .12);
}

.home-actions span {
  align-self: start;
  margin-bottom: 22px;
  color: #ffad54;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.home-actions strong,
.home-actions small {
  display: block;
}

.home-actions strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.home-actions small {
  margin-top: 5px;
  color: #adc3bb;
  font-size: 10px;
}

.home-updates {
  margin-top: 34px;
}

.home-updates-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 32px;
  align-items: end;
  padding: 24px 5px;
}

.home-updates-heading .kicker {
  margin-bottom: 8px;
}

.home-updates-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.5vw, 43px);
  font-weight: 400;
}

.home-updates-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.home-comment-card {
  padding: 24px 26px;
  border: 1px solid rgba(18, 54, 43, .12);
  border-radius: 16px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 17px 45px rgba(9, 47, 37, .08);
}

.home-comment-pinned {
  margin-bottom: 16px;
}

.home-comment-pinned.article-133-sos {
  border: 1px solid #e8a36f;
  border-left: 6px solid #c7561c;
  background: linear-gradient(135deg, #fff3e6, #fffdf8 58%, #eef6ef);
  box-shadow: 0 18px 42px rgba(111, 55, 20, .12);
}

.home-comments-list {
  display: grid;
  gap: 14px;
}

.home-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  color: #9a4a20;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-133-body .home-comment-meta {
  margin-bottom: 10px;
}

.home-comment-meta time {
  flex: 0 0 auto;
  color: var(--muted);
  letter-spacing: .04em;
}

.home-comment-copy {
  color: #314a41;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.home-comments-status {
  padding: 30px;
  border: 1px dashed rgba(18, 54, 43, .2);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.home-comments-error {
  border-color: rgba(178, 57, 50, .3);
  background: #fff4f2;
  color: #8e332d;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 14px;
  }

  .topbar .live {
    display: none;
  }

  .header-park-code {
    display: none;
  }

  .admin-button-label {
    display: none;
  }

  .home-welcome {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body:not(.auth-pending) {
    padding-bottom: 76px;
  }

  .topbar nav {
    position: fixed;
    z-index: 30;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(8, 45, 35, .97);
    box-shadow: 0 12px 35px rgba(3, 28, 21, .28);
  }

  .topbar nav a {
    min-width: 0;
    padding: 9px 3px;
    overflow: hidden;
    border-radius: 9px;
    font-size: 9px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar nav a[aria-current="page"] {
    background: rgba(255, 173, 84, .15);
  }
}

@media (max-width: 760px) {
  .auth-account {
    margin-left: auto;
    padding-left: 6px;
  }

  .auth-account .header-profile-button {
    min-width: auto;
  }

  .auth-account .header-profile-button > span {
    display: none;
  }

  .profile-grid,
  .profile-assigned-parks-list,
  .production-meta {
    grid-template-columns: 1fr 1fr;
  }

  .production-meta > div:nth-child(-n + 2) {
    grid-column: 1 / -1;
  }

  .production-meta > i {
    display: none;
  }

  .upload-dialog .production-section {
    padding: 26px 20px;
  }

  .admin-data-layout {
    grid-template-columns: 1fr;
  }

  .admin-park-form {
    grid-template-columns: 1fr 1fr;
  }

  .power-control-grid,
  .power-control-options { grid-template-columns: 1fr; }
  .power-control-wide { grid-column: auto; }
  .power-control-wiring { grid-template-columns: 1fr 1fr; }
  .notifications-toolbar { align-items: stretch; flex-direction: column; }

  .home-dashboard {
    padding-top: 22px;
  }

  .home-welcome {
    gap: 34px;
    padding: 34px 26px;
  }

  .home-updates-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .home-actions {
    grid-template-columns: 1fr;
  }

  .home-actions a {
    min-height: 105px;
  }

  .home-comment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 560px) {
  .app-dialog {
    width: calc(100% - 18px);
    max-height: 95vh;
    border-radius: 16px;
  }

  .dialog-heading {
    padding: 20px;
  }

  .dialog-heading h2 {
    font-size: 25px;
  }

  .profile-form,
  .delete-account-form,
  .terms-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .profile-security {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-assigned-parks-list { grid-template-columns: 1fr; }

  .admin-data-layout {
    padding: 20px;
  }

  .admin-entry-form {
    grid-template-columns: 1fr;
  }

  .admin-entry-form .admin-value-field,
  .admin-comment-preview-field,
  .admin-entry-form > button {
    grid-column: auto;
  }

  .admin-park-form {
    grid-template-columns: 1fr;
  }

  .profile-wide {
    grid-column: auto;
  }

  .dialog-actions,
  .terms-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-actions .text-link-button,
  .dialog-actions .danger-link-button,
  .terms-actions p {
    margin: 0;
    text-align: center;
  }

  .auth-account .header-csv-button {
    padding-right: 8px;
    padding-left: 8px;
  }

  .terms-consent {
    grid-template-columns: 1fr;
  }
}

@media print {
  .app-dialog,
  .header-csv-button,
  .header-admin-button,
  .header-notifications-button,
  .header-profile-button,
  footer button {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
