.personalisation {
  background: var(--soft);
  border: 1px solid var(--rule);
  border-radius: 7px;
  color: var(--body);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 9px;
}

.topbar .personalisation { margin-left: auto; }
.personalisation:hover { border-color: var(--faint); color: var(--ink); }

.personalisation.preview {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--rule));
  color: var(--accent);
}

.tune-notice {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--rule));
  border-radius: 8px;
  color: var(--accent);
  padding: 10px 12px;
}

.tune-actions { flex-wrap: wrap; }
.admin-panel { border-top: 2px solid var(--ink); padding-top: 20px; }
.admin-panel > label { display: grid; gap: 7px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.admin input[type="password"] { max-width: 520px; width: 100%; }
.visit-panel { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 20px; }
.visit-panel h2 { font-family: "Iowan Old Style", Georgia, serif; font-size: 20px; margin: 0 0 6px; }
.visit-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.visit-summary { background: var(--soft); border: 1px solid var(--rule); border-radius: 7px; color: var(--body); font-size: 12px; line-height: 1.5; margin-top: 16px; padding: 10px 12px; }
.visit-summary strong { color: var(--ink); }
.visit-locations { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; }
.visit-locations span { color: var(--muted); }
.visit-locations strong { color: var(--body); font-weight: 650; margin-left: 4px; }
.visit-list { border-top: 1px solid var(--rule); margin: 16px 0 0; }
.visit-entry { align-items: baseline; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; grid-template-columns: 170px 1fr auto; padding: 9px 0; }
.visit-entry time, .visit-entry code { color: var(--muted); font-size: 11px; }
.visit-entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.visit-total { color: var(--muted); font-size: 12px; margin: 0; }
[hidden] { display: none !important; }

@media (max-width: 620px) {
  .tune-actions { justify-content: stretch; }
  .tune-actions .button { flex: 1 1 44%; }
  .admin-actions .button { width: 100%; }
  .visit-entry { gap: 4px; grid-template-columns: 1fr; }
}
