/* ===== Farben & Tokens ===== */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #d5dbe3;
  --text: #16202c;
  --muted: #4f5d6e;
  --accent: #1a5ccc;
  --accent-hover: #154aa6;
  --accent-text: #ffffff;
  --focus: #1a5ccc;
  --warn-bg: #fff4d6;
  --warn-text: #6b4a00;
  --ok-bg: #e3f5e8;
  --ok-text: #1b5e2b;
  --stage-bg: repeating-conic-gradient(#e6eaef 0% 25%, #f7f9fb 0% 50%) 50% / 24px 24px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419;
    --surface: #171e26;
    --surface-2: #212a35;
    --border: #334050;
    --text: #e8edf3;
    --muted: #a5b1bf;
    --accent: #5a9bff;
    --accent-hover: #7cb0ff;
    --accent-text: #0b1220;
    --focus: #7cb0ff;
    --warn-bg: #3a2e0c;
    --warn-text: #ffd977;
    --ok-bg: #12301c;
    --ok-text: #8fe0a6;
    --stage-bg: repeating-conic-gradient(#1c232c 0% 25%, #232b35 0% 50%) 50% / 24px 24px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #171e26;
  --surface-2: #212a35;
  --border: #334050;
  --text: #e8edf3;
  --muted: #a5b1bf;
  --accent: #5a9bff;
  --accent-hover: #7cb0ff;
  --accent-text: #0b1220;
  --focus: #7cb0ff;
  --warn-bg: #3a2e0c;
  --warn-text: #ffd977;
  --ok-bg: #12301c;
  --ok-text: #8fe0a6;
  --stage-bg: repeating-conic-gradient(#1c232c 0% 25%, #232b35 0% 50%) 50% / 24px 24px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ===== Basis ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend { font-family: "Montserrat", system-ui, sans-serif; }

svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: var(--accent-text);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.small { font-size: .875rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ===== Kopfbereich ===== */
.site-header {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 20px 16px 8px;
}

.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand-logo { width: 40px; height: 40px; color: var(--accent); }
.brand h1 { font-size: clamp(1.15rem, 3.6vw, 1.6rem); margin: 0; line-height: 1.2; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.header-tools { display: flex; gap: 8px; align-items: center; }

.compact-select select {
  height: 40px; padding: 0 28px 0 12px;
}

.privacy-note {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 1200px; margin: 8px auto 0;
  padding: 12px 16px;
  font-size: .925rem; color: var(--ok-text);
  background: var(--ok-bg);
  border-radius: var(--radius);
  width: calc(100% - 32px);
}
.badge {
  display: inline-flex; gap: 6px; align-items: center;
  font-weight: 800; white-space: nowrap;
}

/* ===== Layout ===== */
.layout {
  display: grid; gap: 20px;
  max-width: 1200px; margin: 0 auto;
  padding: 20px 16px 32px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .preview-sticky { position: sticky; top: 16px; }
}

/* ===== Vorschau ===== */
.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--stage-bg);
  box-shadow: var(--shadow);
  padding: 4%;
}

#preview {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}
#preview.dragging { cursor: grabbing; }
#preview:focus-visible { outline-offset: 6px; border-radius: 50%; }

.drop-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 3px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.drop-overlay svg { width: 64px; height: 64px; }
.stage.drag-over .drop-overlay { opacity: 1; }

.hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 10px 0 16px; }

/* ===== Panels & Felder ===== */
.controls-col { display: grid; gap: 16px; }
.controls-col:focus { outline: none; }

.panel {
  margin: 0; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px 18px;
  box-shadow: var(--shadow);
}
.panel legend {
  float: left; width: 100%;
  font-size: 1.05rem; font-weight: 700;
  padding: 14px 0 6px;
}
.panel legend + * { clear: both; }

.field { margin-top: 14px; }
.field > label, .field .label, .field-head label {
  display: block; font-weight: 700; font-size: .925rem; margin-bottom: 6px;
}
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-head label { margin-bottom: 4px; }
output { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .875rem; min-width: 3.5em; text-align: right; }

input[type="text"], select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
input[type="text"]:focus-visible, select:focus-visible { border-color: var(--focus); outline-offset: 1px; }
#text { font-size: 1.05rem; font-weight: 700; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23808a96' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
}

/* Schieberegler */
input[type="range"] {
  width: 100%; height: 28px; margin: 0;
  background: transparent;
  accent-color: var(--accent);
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent);
}

/* Farbfelder */
.color-inputs { display: flex; gap: 10px; align-items: center; }
input[type="color"] {
  width: 52px; height: 44px; padding: 3px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; flex-shrink: 0;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
input[type="color"]::-moz-color-swatch { border: none; border-radius: 6px; }
.hex { max-width: 130px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.hex[aria-invalid="true"] { border-color: #d93025; }

/* Schalter */
.toggles { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 32px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative; width: 44px; height: 26px; flex-shrink: 0;
  border-radius: 13px; background: var(--surface-2);
  border: 1.5px solid var(--border);
  transition: background .15s, border-color .15s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--muted);
  transition: transform .15s, background .15s;
}
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent-text); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Segment-Schalter */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px;
}
.segmented button, .segmented label {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; min-height: 34px; padding: 0 10px;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: .9rem;
  cursor: pointer;
}
.segmented button[aria-checked="true"],
.segmented label:has(input:checked) {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.segmented label { position: relative; }
.segmented label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }

/* Vorlagen */
.presets {
  display: grid; gap: 10px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.preset {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px;
  background: var(--surface-2); color: var(--text);
  border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.2;
  text-align: center; cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.preset:hover { border-color: var(--border); }
.preset:active { transform: scale(.97); }
.preset[aria-pressed="true"] { border-color: var(--accent); }
.preset canvas { width: 56px; height: 56px; border-radius: 50%; }

/* Upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 2px; margin-top: 10px; padding: 18px 12px;
  border: 2px dashed var(--border); border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.dropzone svg { width: 32px; height: 32px; color: var(--muted); }
.dropzone p { margin: 0; }
.dropzone.drag-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.link-button {
  color: var(--accent); font-weight: 800; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-button:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 800; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); flex: 1 1 260px; min-height: 52px; font-size: 1.02rem; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); flex: 1 1 120px; min-height: 52px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); font-weight: 700; }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: progress; }

.status { min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.status.error { color: #d93025; font-weight: 700; }
:root[data-theme="dark"] .status.error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.error { color: #ff8a80; } }

.warning {
  margin: 8px 0 0; padding: 8px 12px;
  border-radius: 8px; font-size: .875rem;
  background: var(--warn-bg); color: var(--warn-text);
}

.site-footer { text-align: center; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =====================================================================
   Erweiterungen: Seitenrahmen, Inhaltsbereiche, Vorlagen, Dialoge
   ===================================================================== */

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Kopf mit Navigation */
.brand { text-decoration: none; color: var(--text); }
.brand-name { font-family: "Montserrat", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 28px 16px 4px; }
.hero h1 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.hero p.lead { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--muted); margin: 0; max-width: 760px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; color: var(--muted); }
.trust-row li { display: inline-flex; gap: 6px; align-items: center; }
.trust-row svg { color: var(--ok-text); }

/* Gut sichtbarer Datenschutz-Hinweis */
.privacy-note strong { white-space: nowrap; }

/* Inhaltsbereiche */
.section { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.section h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 0 0 14px; }
.section h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text); }
.prose h2 { margin-top: 32px; }
.legal h2 { font-size: 1.25rem; }
.legal h3 { font-size: 1.05rem; }
.placeholder { background: var(--warn-bg); color: var(--warn-text); padding: 0 4px; border-radius: 4px; }



.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { margin: 12px 0 16px; }


/* Vorlagen */
.preset-group { margin: 14px 0 0; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.preset { position: relative; }

.field-row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-btn { width: 40px; height: 40px; font-size: 1.25rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; }
.emoji-btn:hover { border-color: var(--accent); }

.text-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.editor { padding-top: 12px; }

/* Hinweis nach dem Öffnen eines Design-Links */
.link-notice {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  max-width: 1200px; width: calc(100% - 32px); margin: 12px auto 0; padding: 12px 16px;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); font-size: .925rem;
}
.link-notice.error { border-color: var(--warn-text); background: var(--warn-bg); color: var(--warn-text); }
.link-notice-text { margin: 0; flex: 1 1 260px; font-weight: 700; }
.link-notice-actions { display: flex; gap: 10px; align-items: center; }
.link-notice .btn-secondary { min-height: 44px; flex: 0 0 auto; }
#link-dialog .inline-row { margin-top: 14px; }
#link-dialog .inline-row .btn { flex: 0 0 auto; min-height: 44px; }

/* Dialoge */
.dialog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 18px;
  background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.dialog::backdrop { background: rgba(10, 15, 25, .55); }
.dialog h2 { margin: 0 34px 8px 0; font-size: 1.35rem; }
.dialog-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.icon-button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 1rem; cursor: pointer; }

.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0 8px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--text); }
.dont-show { display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 24px 16px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }

/* Mobile-Korrekturen: Kopfzeile & Datenschutz-Hinweis */
.site-header { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 12px; }

/* Sprachumschalter „DE | EN“ */
.lang-switch { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.lang-switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 4px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current="page"] { color: var(--text); }
@media (max-width: 480px) {
  .site-header { column-gap: 8px; }
  .site-header .segmented button { min-width: 32px; padding: 0 6px; }
  .lang-switch { gap: 2px; }
  .lang-switch a { padding: 0 3px; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-name { font-size: 1rem; }
  .site-header .segmented button { min-width: 28px; padding: 0 4px; }
}
.privacy-note { display: block; }
.privacy-note .badge { display: inline-flex; white-space: normal; margin-right: 6px; vertical-align: top; }
.privacy-note .badge svg { margin-top: 2px; }
.privacy-note strong { white-space: normal; }
.presets-list.collapsed .preset:nth-child(n+10) { display: none; }
.more-presets { margin-top: 10px; }
.prose, .legal { overflow-wrap: break-word; hyphens: auto; }

/* Ideen für den Text */
.ideas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; margin: 0; list-style: none; }
.idea { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.idea h3 { margin: 0; font-size: 1.05rem; }
.idea p { margin: 0; color: var(--muted); }
.idea-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.idea-examples li { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 700; }
.idea .btn { margin-top: auto; align-self: flex-start; }

/* Logo */
.file-button { position: relative; }
.file-button:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented-wrap { display: flex; flex-wrap: wrap; }
.segmented-wrap label { flex: 1 1 auto; }
.field-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; font-size: .875rem; background: var(--surface-2); color: var(--text); }
.is-replaced input[type="text"] { opacity: .55; cursor: not-allowed; text-decoration: line-through; }

/* Eigene Vorlagen */
.own-templates { margin: 6px 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.own-list { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.own-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.own-item .own-preset { flex: 1 1 200px; flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; min-width: 0; }
.own-item .own-preset span { overflow-wrap: anywhere; }
.own-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.own-actions .text-button { font-size: .875rem; }
.text-button.danger { color: #c62828; }
:root[data-theme="dark"] .text-button.danger { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .text-button.danger { color: #ff8a80; } }
.own-save { margin-top: 12px; }
.own-save label { display: block; font-weight: 700; font-size: .925rem; margin-bottom: 6px; }
.inline-row, .own-rename { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-row input, .own-rename input { flex: 1 1 180px; min-width: 0; }
.own-rename { flex: 1 1 100%; }
