/* The editor: the static tool's styles plus the save button. */
.actions #save-code { grid-column: 1 / -1; }
.save-status { margin: 8px 0 0; min-height: 1.3em; font-size: 14px; color: var(--muted); }
.save-status:empty { margin: 0; min-height: 0; }
.save-status.error { color: var(--warn); font-weight: 650; }
.static-row { margin-top: 10px; }
.static-row .btn { display: flex; align-items: center; gap: 10px; justify-content: center; width: 100%; text-decoration: none; border-style: dashed; border-width: 1.5px; background: none; box-shadow: none; }
.static-row .btn:hover { box-shadow: 3px 3px 0 var(--rule); background: var(--field); }
/* "Get it free?" */
.free-dialog { border: 2px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--rule); padding: 20px; width: min(380px, calc(100vw - 32px)); }
.free-dialog::backdrop { background: rgba(21, 19, 15, 0.45); }
.free-dialog h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.compare { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.compare li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--field); font-size: 14.5px; line-height: 1.35; }
.compare strong { font-weight: 800; }
.free-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.free-actions .btn { justify-content: center; text-decoration: none; }
/* Scans in the last 30 days */
.scans-panel { margin-top: 18px; border-top: 1.5px solid var(--rule); padding-top: 12px; }
.scans-head { display: flex; align-items: baseline; gap: 10px; }
.scans-head strong { font-size: 22px; letter-spacing: -0.02em; }
.scans-head .muted { margin-left: auto; color: var(--muted); }
.scan-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin-top: 8px; }
.scan-bars i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.scan-bars i.on { background: var(--ink); }
.scans-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.is-frozen { opacity: 0.55; }
/* The QR code's private name, above Save. */
.name-field { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) { .name-field { margin: 18px 0 -4px; } }
.name-field input { font: 16px/1.3 system-ui, sans-serif; color: var(--ink); background: var(--field); padding: 9px 10px; border: 1.5px solid var(--rule); border-radius: var(--radius); width: 100%; box-sizing: border-box; }
.name-field input:focus-visible { outline: 2px solid var(--signal, #f7741c); outline-offset: 1px; }
.name-field input:disabled { opacity: 0.6; }
/* Cancel or Done, and Delete: quiet outlined buttons in their own row, set apart from the
   finish buttons above. Full height, so they're easy to tap. */
.edit-row { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edit-row .btn { margin: 0; justify-content: center; }
.edit-row #cancel-edit { grid-column: 1; }
.edit-row #delete-code { grid-column: 2; color: var(--warn); border-color: var(--warn); }
.edit-row #delete-code:hover:not(:disabled) { box-shadow: 4px 4px 0 var(--warn); }
.edit-row .btn[hidden] { display: none; }
.dialog-note { margin: 0 0 4px; color: var(--muted); font-size: 14.5px; }
.free-actions .btn.danger { background: var(--warn); color: #fff; }
