body.owner-open-lock {
  overflow: hidden;
}

.owner-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
}

.owner-layer[hidden] {
  display: none;
}

.owner-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 8, 6, 0.62);
}

.owner-page .owner-sheet,
.owner-sheet {
  position: relative;
  z-index: 1;
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: #fffaf4;
  color: #24170f;
  font-family: "Segoe UI", Roboto, sans-serif;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
}

.owner-page .owner-sheet {
  max-height: none;
  border-radius: 18px;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

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

.owner-title {
  margin: 0;
  font-size: 1.6rem;
}

.owner-close,
.owner-editor button,
.owner-gate button {
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  padding: 12px 14px;
  cursor: pointer;
}

.owner-close {
  background: #efe4d6;
  color: #24170f;
}

.owner-intro,
.owner-hint,
.field-help,
.form-status {
  line-height: 1.4;
}

.form-status {
  min-height: 1.3em;
  font-weight: 700;
}

.form-status.is-error {
  color: #9d1c32;
}

.field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #d9c8b2;
  background: #fff;
  color: #24170f;
  font-size: 16px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-help {
  margin: 0;
  font-weight: 500;
  color: #6d5848;
  font-size: 0.92rem;
}

.priority {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 14px;
}

.priority-choice {
  background: #fff;
  color: #24170f;
  border: 1.5px solid #d9c8b2 !important;
}

.priority-choice[aria-pressed="true"] {
  background: #9d1c32;
  color: #fffaf4;
  border-color: #9d1c32 !important;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 600;
}

.check-row input {
  width: 22px;
  height: 22px;
}

.owner-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(#fffaf400, #fffaf4 20%);
}

.owner-page .owner-actions {
  position: static;
  background: none;
}

.primary {
  background: #9d1c32;
  color: #fffaf4;
  font-weight: 750;
}

.ghost {
  background: #efe4d6;
  color: #24170f;
}

.danger {
  background: #fff;
  color: #9d1c32;
  border: 1.5px solid #e4b3bc !important;
}

.saved-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.saved-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eadfce;
}

.saved-text {
  display: grid;
  min-width: 0;
}

.saved-text strong,
.saved-text span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-row button {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: #efe4d6;
  cursor: pointer;
}

.admin-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(242, 212, 138, 0.35), transparent 40%),
    #f3e6d4;
  color: #24170f;
  font-family: Georgia, "Iowan Old Style", serif;
}

.admin-wrap {
  width: min(640px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.admin-wrap h1 {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 0.95;
  margin: 8px 0;
}

.admin-lead {
  font-size: 1.05rem;
  line-height: 1.45;
}

.admin-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-links a {
  color: #9d1c32;
}
