:root {
  --gold: #c2883f;
  --ink: #1a1a1a;
  --line: #e3e3e3;
  --soft: #f7f5f2;
  --ok: #2f7d32;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  margin: 0;
  background: #faf9f7;
  line-height: 1.45;
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}
header.brand {
  border-bottom: 3px solid var(--gold);
  padding-bottom: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 100%;   /* prevents overflow if the container is ever narrower */
  display: block;
  /* makes the white logo background transparent on the cream page background */
  mix-blend-mode: multiply;
}
h1 {
  font-size: 20px;
  margin: 18px 0 4px;
}
.proj {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.proj label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#projName {
  font-size: 15px;
  font-weight: 600;
}
.bar-wrap {
  position: sticky;
  top: 0;
  background: #faf9f7;
  padding: 10px 0 12px;
  z-index: 5;
}
.bar {
  height: 12px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar > div {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.bar-txt {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}
.phase {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}
.phase > h2 {
  font-size: 15px;
  margin: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phase > h2 .pc {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.item:first-of-type {
  border-top: none;
}
.item input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold);
  cursor: pointer;
}
.item span {
  font-size: 14.5px;
}
.item.done > span {
  color: #9a9a9a;
  text-decoration: line-through;
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 2px;
}
button {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
}
button.reset {
  color: #9b2c2c;
  border-color: #e2c4c4;
}
.note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .brand-logo {
    height: 30px;
  }
  .item {
    padding: 10px 12px;
    gap: 8px;
  }
  .btn-notes {
    font-size: 10px;
    padding: 2px 6px;
  }
  .modal {
    margin: 0 8px;
  }
  .modal-notes {
    max-height: 92vh;
  }
  .notes-add-form {
    padding: 12px 14px 16px;
  }
  .notes-list {
    padding: 10px 14px;
  }
  .notes-modal-header {
    padding: 16px 14px 12px;
  }
  .notes-form-row .btn-primary {
    margin-left: auto;
  }
  .controls {
    gap: 6px;
  }

  /* ── Admin page — mobile ── */
  .dash-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .user-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .user-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  /* Delete button sits alone in the third cell — span full width */
  .user-card-actions .btn-danger:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .user-card-actions .btn-secondary,
  .user-card-actions .btn-danger {
    text-align: center;
    white-space: normal;
  }
  /* Backup restore row — stretch to full card width */
  .backup-restore-row {
    width: 100%;
  }
  .backup-file-label {
    flex: 1;
    max-width: none;
    text-align: center;
  }
  .backup-restore-row .btn-primary {
    flex-shrink: 0;
  }
}

@media print {
  .bar-wrap,
  .controls {
    display: none;
  }
  .phase {
    break-inside: avoid;
  }
}

.login-wrap {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 16px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
}
.login-card h1 {
  font-size: 17px;
  margin: 0 0 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}
.field input {
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus {
  border-color: var(--gold);
}
.btn-login {
  width: 100%;
  padding: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-login:hover {
  opacity: 0.85;
}
.error {
  font-size: 13px;
  color: #9b2c2c;
  background: #fff5f5;
  border: 1px solid #e2c4c4;
  border-radius: 6px;
  padding: 8px 11px;
  margin-bottom: 14px;
  display: none;
}
.error.visible {
  display: block;
}

/* ── User bar ── */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  gap: 12px;
  flex-wrap: wrap;
}
.user-bar-name {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.user-bar-link {
  font-size: 12px;
  color: #888;
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.user-bar-link:hover {
  color: var(--ink);
  background: var(--line);
}

/* ── Role badge ── */
.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.role-admin {
  background: #1a1a1a;
  color: var(--gold);
}
.role-user {
  background: #eee;
  color: #666;
}
.role-self {
  background: #e8f4e8;
  color: #2f7d32;
}
.role-protected {
  background: #fff8e1;
  color: #7a5c00;
}

/* ── Backup section ───────────────────────────────────────────────────────── */
.backup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  flex-wrap: wrap;
}
.backup-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}
.backup-card-info strong {
  font-weight: 600;
}
.backup-card-info span {
  color: #888;
  font-size: 12px;
}
.backup-card-info code {
  font-family: monospace;
  background: var(--soft);
  padding: 1px 4px;
  border-radius: 3px;
}
.backup-restore-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.backup-file-label {
  cursor: pointer;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.backup-status {
  font-size: 13px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
}
.backup-status-ok  { background: #e8f5e9; color: var(--ok); }
.backup-status-err { background: #fff5f5; color: #9b2c2c; }

/* ── Edit-mode access toggle button ─────────────────────────────────────── */
.btn-access-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  cursor: pointer;
  color: #aaa;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-access-toggle:hover {
  background: var(--soft);
  color: var(--ink);
}
.btn-access-toggle.active {
  border-color: var(--gold);
  color: var(--gold);
  background: #fffcf5;
}

/* ── Access modal ─────────────────────────────────────────────────────────── */
.access-hint {
  font-size: 13px;
  color: #555;
  margin: 0 0 4px;
}
.access-note {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 14px;
}
.access-user-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.access-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: background 0.15s;
}
.access-user-row:hover {
  background: var(--soft);
}
.access-user-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── User cards (admin page) ── */
.user-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.user-card-info {
  flex: 1;
  min-width: 0;
}
.user-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.user-card-meta {
  font-size: 12px;
  color: #888;
}
.user-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-secondary {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-danger {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #e2c4c4;
  background: #fff;
  color: #9b2c2c;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-danger:hover {
  background: #fff5f5;
}

/* ── Field select & error ── */
.field-select {
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
}
.field-select:focus {
  border-color: var(--gold);
}
.field-error {
  font-size: 13px;
  color: #9b2c2c;
  background: #fff5f5;
  border: 1px solid #e2c4c4;
  border-radius: 6px;
  padding: 8px 11px;
  margin-bottom: 14px;
}

/* ── Login page ── */
.login-wrap header.brand {
  margin-bottom: 24px;
}

/* ── Dashboard page ── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
}
.dash-header h1 {
  margin: 0;
}
.btn-add {
  padding: 9px 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-add:hover {
  opacity: 0.85;
}
.checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.checklist-card:hover {
  border-color: var(--gold);
}
.card-info {
  flex: 1;
}
.card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 12px;
  color: #888;
}
.card-restricted {
  font-size: 12px;
  opacity: 0.6;
}
.card-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 80px;
}
.card-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.mini-bar {
  width: 80px;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mini-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
  display: none;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  margin: 0 16px;
  transform: translateY(8px);
  transition: transform 0.15s;
}
.modal-backdrop.visible .modal {
  transform: translateY(0);
}
.modal h2 {
  font-size: 16px;
  margin: 0 0 18px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.btn-primary {
  padding: 9px 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover {
  opacity: 0.85;
}
.modal-lg {
  max-width: 560px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.modal-lg .modal-top {
  padding: 28px 28px 16px;
  flex-shrink: 0;
}
.modal-lg h2 {
  margin: 0 0 18px;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal-lg .modal-actions {
  padding: 16px 28px;
  margin: 0;
  flex-shrink: 0;
}
.modal-phase-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 8px;
}
.modal-phase-header:first-child {
  margin-top: 4px;
}
.modal-phase-title-input {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.modal-phase-title-input:focus {
  border-bottom-color: var(--gold);
  color: var(--ink);
}
.modal-phase-title-input::placeholder {
  color: #bbb;
  font-weight: 600;
}
.btn-add-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 8px 14px;
  cursor: pointer;
  display: block;
  width: 100%;
  margin-top: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-add-category:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.modal-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.modal-item-row input {
  flex: 1;
  font-size: 13px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.modal-item-row input:focus {
  border-color: var(--gold);
}
.btn-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #ccc;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.btn-icon:hover {
  color: #9b2c2c;
  background: #fff5f5;
}
.btn-add-item {
  font-size: 12px;
  color: var(--gold);
  background: none;
  border: none;
  padding: 3px 0 10px;
  cursor: pointer;
  display: block;
}
.btn-add-item:hover {
  opacity: 0.75;
}

/* ── Notes button ── */
.btn-notes {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-notes.has-notes {
  border-color: var(--gold);
  color: var(--gold);
}
.note-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
}

/* ── Notes modal ── */
.modal-notes {
  max-width: 520px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.notes-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.notes-modal-header h2 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}
.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
  min-height: 60px;
}
.notes-loading,
.notes-empty {
  font-size: 13px;
  color: #aaa;
  margin: 8px 0;
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
}
.note-author {
  color: var(--ink);
  font-weight: 600;
}
.note-del {
  width: 20px;
  height: 20px;
  font-size: 16px;
  color: #ccc;
}
.note-del:hover {
  color: #9b2c2c;
  background: #fff5f5;
}
.note-text {
  font-size: 13.5px;
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.note-text:last-child {
  margin-bottom: 0;
}
.note-photo {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 6px;
  cursor: zoom-in;
  object-fit: contain;
}
.notes-add-form {
  border-top: 1px solid var(--line);
  padding: 14px 22px 18px;
  flex-shrink: 0;
}
.notes-add-form textarea {
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  color: var(--ink);
}
.notes-add-form textarea:focus {
  border-color: var(--gold);
}
.notes-form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn-photo input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.btn-photo {
  position: relative;
  display: inline-block;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-photo:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-photo.has-file {
  border-color: var(--gold);
  color: var(--gold);
}
.photo-preview {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: #fdf8f2;
}
.photo-preview img {
  max-height: 120px;
  max-width: 100%;
  border-radius: 5px;
  object-fit: contain;
  flex: 1;
}
.photo-preview-remove {
  flex-shrink: 0;
  color: #aaa;
  font-size: 18px;
}

/* ── Edit mode ── */
#btnSave, #btnCancelEdit { display: none; }
body.edit-mode #btnSave,
body.edit-mode #btnCancelEdit { display: inline-block; }
body.edit-mode #btnEdit,
body.edit-mode #btnDelete { display: none; }
body.edit-mode .bar-wrap { display: none; }

.edit-phase-title {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.edit-phase-title::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.edit-phase-title:focus {
  border-bottom-color: var(--gold);
}
.btn-icon-light {
  color: rgba(255, 255, 255, 0.4);
  background: none;
}
.btn-icon-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.edit-items {
  padding: 10px 16px 0;
}
.phase > .btn-add-item {
  margin: 4px 16px 10px;
  padding-bottom: 0;
}

/* ── Camera overlay ── */
.camera-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
}
.camera-overlay.visible {
  display: flex;
}
.camera-viewfinder,
.camera-review {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.camera-viewfinder {
  position: relative;
}
.camera-review {
  display: none;
}
.camera-overlay.reviewing .camera-viewfinder {
  display: none;
}
.camera-overlay.reviewing .camera-review {
  display: flex;
}
#cameraVideo,
#cameraReviewImg {
  flex: 1;
  width: 100%;
  object-fit: cover;
}
#cameraVideo {
  touch-action: manipulation;
}
.camera-focus-indicator {
  position: fixed;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.25);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.camera-focus-indicator.visible {
  opacity: 1;
  transform: scale(1);
}
.camera-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 32px;
  background: rgba(0, 0, 0, 0.7);
}
.btn-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.1s;
}
.btn-shutter:active {
  background: #ccc;
}
.btn-cam-side {
  min-width: 72px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-cam-side:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-cam-ok {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1209;
  font-weight: 600;
}
.btn-cam-ok:hover {
  background: #e8b84b;
}

/* ── Admin-only items ── */
.item.admin-only-item {
  background: #fffcf5;
  border-left: 3px solid var(--gold);
  padding-left: 13px; /* compensate for the border */
}
/* Admin-only phase — highlights the whole section header */
.phase.admin-only-phase > h2 {
  background: #fffcf5;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  border-radius: 4px;
}
.admin-only-badge {
  font-size: 12px;
  opacity: 0.55;
  flex-shrink: 0;
  margin-right: 2px;
  user-select: none;
}

/* Lock toggle in edit mode */
.admin-only-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 3px 5px;
  border-radius: 4px;
  opacity: 0.25;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
  border: none;
  background: none;
}
.admin-only-toggle input[type="checkbox"] {
  display: none; /* visually hidden — the emoji acts as the toggle */
}
.admin-only-toggle:hover {
  opacity: 0.55;
  background: rgba(194, 136, 63, 0.1);
}
.admin-only-toggle.active {
  opacity: 1;
  color: var(--gold);
}
