:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1e293b; background: #f8fafc; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; min-height: 44px; border: 0; border-radius: 8px; padding: 10px 16px; color: inherit; background: transparent; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.5; font-weight: 700; }
h2 { font-size: 20px; }
.site-header, main, footer { max-width: 1120px; margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 28px; border-bottom: 1px solid #e2e8f0; }
.brand { text-decoration: none; color: #0f766e; font-size: 23px; font-weight: 750; }
.brand span { display: inline-block; font-size: 12px; font-weight: 400; color: #64748b; margin-left: 16px; }
.local-badge { font-size: 12px; color: #475569; background: #e2e8f0; padding: 6px 10px; border-radius: 6px; }
main { padding: 42px 28px 24px; }
.intro > p:last-child { color: #64748b; margin-top: 12px; }
.eyebrow { color: #0f766e; font-size: 14px; margin-bottom: 8px; }
.mobile-break { display: none; }
.notice { min-height: 40px; padding-block: 12px; color: #0f766e; font-size: 14px; }
.workspace { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.panel { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.section-note { color: #64748b; font-size: 14px; line-height: 1.7; margin: 8px 0 20px; }
.count { color: #64748b; font-size: 14px; font-variant-numeric: tabular-nums; }
.text-button { color: #0f766e; font-size: 14px; padding-inline: 8px; text-decoration: underline; text-underline-offset: 4px; }
.secondary { background: white; border: 1px solid #cbd5e1; }
.secondary:hover { background: #f1f5f9; }
.primary { color: white; background: #0f766e; }
.primary:hover { background: #115e59; }
.full { width: 100%; }
.tags { display: grid; gap: 12px; margin-bottom: 16px; }
.tag { text-align: left; background: #f0fdfa; border: 1px solid #99f6e4; padding: 16px; min-width: 0; }
.tag:hover { background: #ccfbf1; }
.tag:active { border-color: #0f766e; }
.tag-name { display: block; font-weight: 650; font-size: 17px; overflow-wrap: anywhere; }
.tag-last { display: block; color: #475569; font-size: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.small-note { font-size: 12px; color: #64748b; line-height: 1.7; margin-top: 12px; }
.empty { padding: 32px 8px; text-align: center; color: #64748b; line-height: 1.8; }
.empty strong { display: block; color: #475569; font-weight: 500; margin-bottom: 8px; }
.record { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 16px 0; border-top: 1px solid #e2e8f0; }
.record-name { overflow-wrap: anywhere; font-weight: 550; }
time { display: block; margin-top: 6px; color: #64748b; font-size: 13px; font-variant-numeric: tabular-nums; }
.delete { color: #64748b; font-size: 13px; padding-inline: 8px; }
.delete:hover { background: #f1f5f9; color: #b91c1c; }
.backup { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; margin-top: 32px; border-top: 1px solid #e2e8f0; }
.backup h2 { font-size: 16px; margin-bottom: 10px; }
.backup p { font-size: 12px; color: #64748b; line-height: 1.9; }
.backup-actions { display: flex; flex-direction: column; flex-shrink: 0; gap: 4px; }
footer { padding: 20px 28px 32px; color: #64748b; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e2e8f0; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 16px; padding: 28px; color: #1e293b; }
dialog::backdrop { background: rgb(15 23 42 / .45); }
dialog h2 { margin-bottom: 20px; }
dialog p { line-height: 1.8; }
label { display: block; font-size: 14px; margin-bottom: 8px; }
input { width: 100%; min-width: 0; border: 1px solid #94a3b8; border-radius: 8px; padding: 12px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.field-error { font-size: 14px; color: #b91c1c; margin-top: 8px; }
.manage-row { border-top: 1px solid #e2e8f0; padding: 12px 0; }
.manage-row > span { display: block; overflow-wrap: anywhere; }
.error { padding: 16px; border: 1px solid #fca5a5; background: #fef2f2; border-radius: 8px; margin-top: 20px; }
.error p { color: #991b1b; font-size: 14px; line-height: 1.8; }
[hidden] { display: none !important; }
@media (max-width: 767px) {
  .site-header { padding: 20px 16px; }
  .brand span { display: none; }
  main { padding: 28px 16px 16px; }
  .workspace { display: flex; flex-direction: column; gap: 20px; }
  .panel { width: 100%; padding: 20px; }
  .tags-panel { order: -1; }
  .backup { flex-direction: column; }
  .backup-actions { align-items: flex-start; }
  footer { padding-inline: 16px; flex-direction: column; }
}
@media (max-width: 380px) { .mobile-break { display: block; } .panel { padding: 16px; } dialog { padding: 20px; } }
