.notifications-page {
  width: 100%;
}
.notifications-page .page-heading {
  margin: 26px 0 18px;
}
.notification-welcome {
  max-width: 520px;
}
.notifications-page .panel-body {
  padding: 18px;
}
.notifications-page .panel-body > p:first-child {
  margin-top: 0;
}
.notification-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}
.notification-layout > .panel {
  min-width: 0;
  margin-top: 0;
}
.notifications-page button {
  background: #343435;
  color: #eee;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #666;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  line-height: 1.3;
}
.notifications-page button.primary-button {
  background: #cddc39;
  border-color: #cddc39;
  color: #202021;
  font-weight: 600;
}
.notifications-page button.danger-button {
  color: #ffb4ac;
}
.notifications-page button:disabled,
.notifications-page [aria-busy="true"] button {
  opacity: 0.55;
  cursor: wait;
}
.notifications-page :focus-visible {
  outline: 2px solid #cddc39;
  outline-offset: 3px;
}
.notification-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.notification-form h3 {
  margin: 0;
  font-size: 17px;
}
.notification-editor {
  margin: 18px 0;
  padding: 18px 0;
  border-block: 1px solid #555;
}
.notification-form label {
  display: grid;
  gap: 6px;
}
.notification-form input:not([type="checkbox"]),
.notification-form select,
.notification-form textarea {
  background: #232324;
  color: #eee;
  border: 1px solid #777;
  border-radius: 5px;
  padding: 10px;
  font: inherit;
  min-width: 0;
  width: 100%;
}
.notification-form textarea {
  resize: vertical;
}
.notification-form input[type="checkbox"] {
  accent-color: #cddc39;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
}
.notification-form fieldset {
  border: 1px solid #555;
  border-radius: 5px;
  padding: 12px;
  min-width: 0;
}
.notification-form legend {
  padding: 0 5px;
}
.notification-selection > .notification-checks,
#location-codes:not(:empty) {
  margin-top: 12px;
}
.notification-agreement {
  margin: 0;
  font-size: 13px;
}
.zone-add {
  margin-top: 18px;
}
.notification-form small,
.notification-footnote {
  color: #bbb;
  font-size: 13px;
}
.notification-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px 16px;
}
.notification-checks label,
.notification-form label.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.3;
}
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.browser-setup:has(button:not([hidden])) ~ #devices {
  margin-top: 16px;
}
.notification-row {
  padding: 16px 0;
  border-top: 1px solid #505051;
  overflow-wrap: anywhere;
}
.notification-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.notification-row:last-child {
  padding-bottom: 0;
}
.notification-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.notification-row p {
  color: #bbb;
  margin: 5px 0 12px;
  font-size: 13px;
}
.notification-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#notification-message {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 3;
}
#notification-message,
#account-expiry,
#control-message {
  overflow-wrap: anywhere;
  background: #333334;
  border-left: 3px solid #cddc39;
  padding: 12px 16px;
}
#notification-message:empty {
  display: none;
}
#zone-map {
  height: 500px;
  background: #ddd;
  border-radius: 5px;
}
#map-help {
  font-size: 13px;
  margin-bottom: 0;
}
#push-support {
  margin-top: 0;
}
.token-panel {
  border-color: #a5b329;
  margin-bottom: 20px;
}
.token-value {
  overflow-wrap: anywhere;
  user-select: all;
  font:
    16px/1.6 ui-monospace,
    monospace;
  padding: 12px;
  background: #232324;
  border-radius: 5px;
}
#account-uid {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.notifications-page summary {
  cursor: pointer;
}
.notifications-page details[open] > summary {
  margin-bottom: 14px;
}
.account-panel {
  margin-top: 20px;
}
.notification-footnote {
  margin-top: 20px;
}
#login-form {
  margin-top: 16px;
}
@media (max-width: 720px) {
  .notification-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .notification-form input:not([type="checkbox"]),
  .notification-form select,
  .notification-form textarea {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .notification-columns {
    grid-template-columns: 1fr;
  }
}
/* Control forms stay readable without requiring client-side scripts. */
.control-create-account {
  margin-top: 18px;
}
.control-page details > form,
.control-page details > details {
  margin-top: 16px;
}
.control-page .notification-item {
  padding: 16px 0;
  border-bottom: 1px solid #505051;
}
.control-page .panel-body > details + details {
  margin-top: 16px;
}
