/* =====================================================================
   Weiterleitungs-Panel – Design im Stil des DomainundSpeicher-CP
   (cp.domainundspeicher.de): helles Panel, dunkle Navy-Sidebar,
   Markenblau #00ACEF, Inter + JetBrains Mono (lokal eingebunden).
   ===================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --sidebar-bg: #0f172a;
  --sidebar-border: #1e293b;
  --sidebar-footer-bg: #0a1224;
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #64748b;
  --sidebar-hover: #1e293b;

  --accent: #00ACEF;
  --accent-dim: #0091cc;
  --accent-bg: rgba(0, 172, 239, 0.08);

  --amber: #f59e0b;  --amber-bg: #fef3c7;  --amber-text: #92400e;
  --danger: #ef4444; --danger-bg: #fef2f2; --danger-text: #991b1b;
  --success: #10b981; --success-bg: #ecfdf5; --success-text: #065f46;
  --info-bg: #eff6ff; --info-text: #1e40af;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, .04);
  --shadow: 0 4px 12px -2px rgba(15, 23, 42, .06), 0 2px 4px -1px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .12);

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* ---------------------------------------------------------------- */
/* App-Shell: Sidebar + Hauptbereich                                 */
/* ---------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; color: var(--sidebar-text); z-index: 200; }
.sidebar-brand { padding: 20px 20px 18px; border-bottom: 1px solid var(--sidebar-border); }
.sidebar-brand .logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius-sm); padding: 8px 12px; width: fit-content; margin: 0 auto; }
.sidebar-brand .logo img { display: block; height: 26px; width: auto; }
.sidebar-brand .sub { font-family: var(--font-mono); font-size: 10px; color: var(--accent); background: rgba(0, 172, 239, .12); text-transform: uppercase; letter-spacing: .08em; margin: 12px auto 0; padding: 3px 9px; border-radius: 20px; text-align: center; width: fit-content; }

.sidebar-user { padding: 14px 20px 16px; border-bottom: 1px solid var(--sidebar-border); background: var(--sidebar-footer-bg); font-size: 12.5px; }
.sidebar-user .who { color: #f1f5f9; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .role { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.sidebar-user-links { display: flex; gap: 14px; margin-top: 8px; align-items: center; }
.sidebar-user-links a, .sidebar-user-links button { color: var(--sidebar-text-muted); font-size: 12px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.sidebar-user-links a:hover, .sidebar-user-links button:hover { color: var(--sidebar-text); text-decoration: none; }
.sidebar-user-links form { margin: 0; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px 14px; }
.sidebar-nav .nav-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-text-muted); padding: 16px 12px 8px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--sidebar-text); font-weight: 500; font-size: 14px; text-decoration: none; margin-bottom: 1px; }
.sidebar-nav a:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.sidebar-nav a.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 4px 12px -3px rgba(0, 172, 239, .5); }
.sidebar-nav .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; flex-shrink: 0; }
.sidebar-nav a.active .dot { opacity: 1; }
.nav-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 7px; border-radius: 20px; background: var(--sidebar-hover); color: var(--sidebar-text); }
.sidebar-nav a.active .nav-count { background: #fff; color: var(--accent); }

.sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--sidebar-border); background: var(--sidebar-footer-bg); font-size: 12px; color: var(--sidebar-text-muted); line-height: 1.6; }
.sidebar-footer a { color: var(--sidebar-text-muted); }
.sidebar-footer a:hover { color: var(--sidebar-text); text-decoration: none; }
.sidebar-footer .support { color: var(--sidebar-text); margin-bottom: 4px; font-size: 12px; }
.sidebar-footer .copy { font-size: 11px; margin-top: 2px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(10px); position: sticky; top: 0; z-index: 100; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .breadcrumb b { color: var(--text); font-weight: 600; }
.content { padding: 32px 40px; width: 100%; max-width: 1480px; }

.hamburger-btn { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; cursor: pointer; flex-shrink: 0; padding: 0; }
.hamburger-btn span, .hamburger-btn span::before, .hamburger-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.hamburger-btn span::before { content: ""; position: absolute; top: -6px; }
.hamburger-btn span::after { content: ""; position: absolute; top: 6px; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 190; }

/* ---------------------------------------------------------------- */
/* Karten                                                            */
/* ---------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px; box-shadow: var(--shadow-sm); position: relative; }
.card-narrow { max-width: 820px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px 14px; border-bottom: 1px solid var(--surface-3); min-height: 58px; }
.card-head h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.card-body { padding: 20px 26px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px 20px; flex-wrap: wrap; border-top: 1px solid var(--surface-3); }

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-family: var(--font-ui); font-weight: 500; font-size: 13.5px; cursor: pointer; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); border-color: var(--border-light); color: var(--text); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; background: #fff; color: var(--text-muted); border-color: var(--border); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); box-shadow: 0 4px 12px -3px rgba(0, 172, 239, .5); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-bg); border-color: transparent; color: var(--accent-dim); }
.btn-active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-dim); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; height: 42px; font-size: 14px; }
.btn-round { width: 42px; padding: 0; }
.btn-round .ic { width: 18px; height: 18px; }
.danger-text { color: var(--danger) !important; }
.danger-text:hover { background: var(--danger-bg) !important; border-color: #fecaca !important; }
.push { margin-left: auto; }
.caret { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid currentColor; margin-left: 2px; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text-faint); cursor: pointer; }
.iconbtn:hover { background: var(--surface-3); color: var(--text); }

/* ---------------------------------------------------------------- */
/* Alerts, Badges                                                    */
/* ---------------------------------------------------------------- */
.alert, .flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13.5px; border: 1px solid; background: var(--success-bg); border-color: #a7f3d0; color: var(--success-text); }
.alert .ic, .flash .ic { margin-top: 2px; }
.alert-success { background: var(--success-bg); border-color: #a7f3d0; color: var(--success-text); }
.alert-error, .flash-err { background: var(--danger-bg); border-color: #fecaca; color: var(--danger-text); }
.alert-info { background: var(--info-bg); border-color: #bfdbfe; color: var(--info-text); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 30px; background: var(--accent-bg); color: var(--accent-dim); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.tag-dim { background: var(--surface-3); color: var(--text-muted); }
.tag-blue { background: var(--accent); color: #fff; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--success); }
.dot.off { background: var(--border-light); }

/* ---------------------------------------------------------------- */
/* Übersicht: Toolbar, Dropdowns, Tabelle, Pager                     */
/* ---------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 16px 26px 6px; flex-wrap: wrap; }
.sel-info { color: var(--text-muted); font-size: 12.5px; font-family: var(--font-mono); }
.search { margin-left: auto; position: relative; }
.search .ic { position: absolute; left: 12px; top: 11px; color: var(--text-faint); }
.search input[type=search] { height: 38px; width: 280px; padding: 0 12px 0 36px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; font-size: 13.5px; background: #fff; }

.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; }
.dd.open .dd-menu { display: block; }
.dd-wide { min-width: 270px; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text); text-align: left; border-radius: var(--radius-sm); cursor: pointer; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--surface-3); text-decoration: none; }
.dd-menu a.sel { color: var(--accent-dim); font-weight: 600; background: var(--accent-bg); }
.dd-menu .danger { color: var(--danger); }
.dd-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 10px 10px 4px; }
.dd-pad { padding: 4px 10px 8px; }
.dd-reset { border-top: 1px solid var(--surface-3) !important; margin-top: 6px; border-radius: 0 !important; color: var(--danger) !important; }

.table-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.grid td { padding: 11px 14px; border-bottom: 1px solid var(--surface-3); vertical-align: middle; color: var(--text); }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr { transition: background .12s; }
.grid tbody tr[data-href] { cursor: pointer; }
.grid tbody tr:hover td { background: #fafbfc; }
.grid tbody tr.checked td { background: var(--accent-bg); }
.grid tr.inactive td { color: var(--text-faint); }
.grid tr.inactive .src, .grid tr.inactive .tgt { text-decoration: line-through; text-decoration-color: var(--border-light); }
.grid .empty { text-align: center; color: var(--text-muted); padding: 50px 20px; }
.th-sort { color: inherit; display: inline-flex; align-items: center; gap: 3px; }
.th-sort:hover { text-decoration: none; color: var(--accent); }
.th-sort .ic { width: 12px; height: 12px; color: var(--text-faint); stroke-width: 2.4; }
.th-sort.cur { color: var(--text); }
.th-sort.cur .ic { color: var(--accent); }
.c-check { width: 46px; padding-left: 26px !important; }
.c-date { width: 110px; white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted) !important; }
.c-src { width: 28%; font-weight: 500; }
.c-tgt .arr { color: var(--text-faint); margin-right: 8px; }
.c-tgt .note { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 0 26px; }
.c-type { width: 70px; color: var(--text-faint); }
.c-type .ic { width: 18px; height: 18px; stroke-width: 1.5; }
.c-owner { width: 120px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted) !important; }
.c-status { width: 90px; white-space: nowrap; font-size: 12.5px; }
.c-dns { width: 130px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; margin: 0; }
.dnsbtn { font-family: var(--font-mono); font-size: 11px; border: 1px dashed var(--border-light); background: none; color: var(--text-muted); border-radius: 20px; padding: 2px 10px; cursor: pointer; }
.dnsbtn:hover { color: var(--accent); border-color: var(--accent); }
.dns-ok, .dns-bad, .dns-wait { font-size: 12px; font-weight: 600; white-space: nowrap; cursor: help; }
.dns-ok { color: var(--success); }
.dns-bad { color: var(--danger); }
.dns-wait { color: var(--text-faint); }

.perpage { display: flex; align-items: center; gap: 12px; }
.perpage select { width: auto; height: 34px; margin: 0; padding: 0 32px 0 12px; }
.count { color: var(--text-muted); font-size: 12.5px; font-family: var(--font-mono); white-space: nowrap; }
.pager { display: flex; align-items: center; gap: 4px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; padding: 0 6px; font-family: var(--font-mono); }
.pager a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.pager .cur { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 4px 12px -3px rgba(0, 172, 239, .5); }
.pager .dis { color: var(--border-light); }

/* ---------------------------------------------------------------- */
/* Formulare                                                         */
/* ---------------------------------------------------------------- */
.form { padding: 22px 26px; }
.form.bordered { border-top: 1px solid var(--surface-3); }
.form h2, .card-body h2, .dnsbox h2, .login-card h2 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.field { margin-bottom: 16px; }
.field > label, .login-card label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin: 0 0 6px; letter-spacing: .01em; }
input:where(:not([type=checkbox]):not([type=radio]):not([type=file])), select, textarea { width: 100%; height: 40px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 13px; color: var(--text); font-family: var(--font-ui); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 13px; resize: vertical; min-height: 40px; line-height: 1.5; }
input.mono, textarea.mono { font-family: var(--font-mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
input[type=file] { font: inherit; font-size: 13px; color: var(--text-muted); }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 500; height: 36px; padding: 0 14px; margin-right: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--surface-3); }
.field-err { color: var(--danger); font-size: 12px; margin-top: 6px; }
.hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-mx { grid-template-columns: 3fr 1fr; }
.check { display: block; margin: 8px 0; cursor: pointer; font-size: 13.5px; }
.check > input[type=checkbox] { margin: -2px 8px 0 0; }
.check.switch { display: flex; align-items: center; gap: 10px; }
.opts { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 8px; margin: 0 0 16px; }
.opts legend { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); padding: 0 6px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; gap: 3px; background: var(--surface-2); flex-wrap: wrap; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--text-muted); border-radius: 7px; }
.seg span:hover { color: var(--text); }
.seg input:checked + span { background: var(--accent); color: #fff; box-shadow: 0 2px 8px -2px rgba(0, 172, 239, .5); }
.seg input:disabled + span { cursor: default; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-bg); }
.switch input { position: absolute; opacity: 0; }
.sw { width: 36px; height: 20px; border-radius: 10px; background: var(--border-light); position: relative; transition: background .15s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--surface-3); flex-wrap: wrap; }
.pwrow { display: flex; gap: 8px; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; gap: 10px; }
.form h2.sep { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--surface-3); }

body:not(.t-mail) .only-mail, body.t-mail .only-web, body:not(.m-frame) .only-frame, body.m-frame .only-redirect { display: none; }

/* DNS-Bereiche */
.dnsbox { border-top: 1px solid var(--surface-3); padding: 18px 26px 22px; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.dnsbox p { margin: 0 0 6px; font-size: 13px; }
.dns-row { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 13px; }
.dns-row b { min-width: 200px; font-weight: 600; }
.dns-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-size: 13px; }
.dns-pill b { font-family: var(--font-mono); font-weight: 600; }
.dns-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dns-split h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 8px; text-transform: none; letter-spacing: 0; }
.dns-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; font-size: 12.5px; color: var(--text-muted); margin: 4px 0 10px; }
.note-box .ic { margin-top: 2px; color: var(--accent); }
.note-info { background: var(--info-bg); border-color: #bfdbfe; color: var(--info-text); font-size: 13.5px; }
.warn-text { color: var(--amber-text); }
.tips { padding-left: 18px; margin: 18px 0; }
.tips li { margin-bottom: 6px; }
.support { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.prose p { font-size: 13.5px; }
.prose h2 { display: flex; align-items: center; gap: 8px; margin-top: 26px; }

/* Konto / Import / Protokoll */
.copy { cursor: copy; }
.copy.copied { background: var(--success-bg); }
.token { display: inline-block; margin-top: 6px; font-size: 13px; background: #fff; border: 1px solid #a7f3d0; padding: 6px 10px; border-radius: var(--radius-sm); cursor: copy; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.stats div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; box-shadow: var(--shadow-sm); }
.stats b { display: block; font-size: 26px; color: var(--text); letter-spacing: -.02em; text-transform: none; margin-bottom: 4px; }
.stats .bad b { color: var(--danger); }
.errlist { max-height: 260px; overflow: auto; margin: 0; padding: 10px 14px 10px 30px; background: var(--danger-bg); border: 1px solid #fecaca; color: var(--danger-text); border-radius: var(--radius); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
.apidoc summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--accent); }
.apidoc pre { background: var(--sidebar-bg); color: #e2e8f0; padding: 14px; border-radius: var(--radius); overflow-x: auto; font-size: 12px; line-height: 1.6; }
.modal { border: 0; border-radius: 18px; padding: 24px; width: min(420px, 92vw); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(15, 23, 42, .55); }
.modal h2 { margin: 0 0 6px; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Einstellungen: Reiter */
.subtabs { display: flex; gap: 4px; padding: 0 26px; border-bottom: 1px solid var(--surface-3); }
.subtabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--text); text-decoration: none; }
.subtabs a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.subtabs a.on .ic { color: var(--accent); }

/* ---------------------------------------------------------------- */
/* Login (dunkler Hintergrund, helle Karte – wie CP-Login)           */
/* ---------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--sidebar-bg);
  background-image: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0, 172, 239, .18) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 172, 239, .08) 0%, transparent 60%); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 40px 36px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08); }
.login-card .logo { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.login-card .logo img { display: block; height: 40px; width: auto; max-width: 100%; }
.login-card .tagline { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 28px; }
.login-card label { margin-top: 14px; }
.login-card label:first-of-type { margin-top: 0; }
.login-card .btn-block { margin-top: 20px; }
.login-help { text-align: center; color: var(--text-muted); font-size: 12.5px; margin: 20px 0 0; }
.login-legal { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 22px; }
.login-legal a { color: var(--text-faint); }
.login-legal a:hover { color: var(--accent); text-decoration: none; }
.login-copy { text-align: center; font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }

/* ---------------------------------------------------------------- */
/* API-Seite                                                         */
/* ---------------------------------------------------------------- */
.api-page { max-width: none; }
.api-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; padding: 26px; border-bottom: 1px solid var(--surface-3); background: radial-gradient(900px 260px at 0% 0%, var(--accent-bg), transparent 60%); }
.api-hero .eyebrow { background: rgba(0, 172, 239, .12); border-radius: 20px; padding: 3px 10px; }
.api-hero h2 { font-size: 22px; letter-spacing: -0.02em; margin: 12px 0 8px; }
.api-hero p { color: var(--text-muted); margin: 0 0 18px; max-width: 620px; line-height: 1.6; }
.baseurl { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); padding: 4px 4px 4px 14px; }
.baseurl span { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.baseurl code { background: var(--sidebar-bg); color: #fff; border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; }
.api-hero-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.kpi { border: 1px solid var(--border); background: #fff; border-radius: var(--radius-lg); padding: 14px 16px; font-size: 11px; color: var(--text-muted); line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; box-shadow: var(--shadow-sm); }
.kpi b { display: block; font-size: 26px; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; text-transform: none; }
.api-hero-side .dl { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.api-section { padding: 24px 26px; border-bottom: 1px solid var(--surface-3); }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 16px !important; letter-spacing: -0.01em !important; text-transform: none !important; color: var(--text) !important; font-family: var(--font-ui) !important; margin: 0 0 16px !important; }
.sec-title .ic { color: var(--accent); width: 18px; height: 18px; }
.keyform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.keyform .field { margin: 0; }
.keyform .btn { height: 40px; }
.keyhint { margin: 10px 2px 18px; }
.newkey { border: 1px solid #a7f3d0; background: var(--success-bg); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px; }
.newkey-head { display: flex; align-items: center; gap: 10px; color: var(--success-text); margin-bottom: 10px; }
.newkey-head .ic { color: var(--success); }
.newkey-val { display: flex; gap: 10px; align-items: center; }
.newkey-val code { flex: 1; background: #fff; border: 1px dashed #6ee7b7; padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; word-break: break-all; }
.newkey p { margin: 10px 0 0; font-size: 12.5px; color: var(--success-text); }
.api-docs { display: grid; grid-template-columns: 250px 1fr; }
.api-toc { border-right: 1px solid var(--surface-3); background: var(--surface-2); border-radius: 0 0 0 var(--radius-lg); }
.toc-in { position: sticky; top: 70px; padding: 18px 12px 24px; max-height: calc(100vh - 80px); overflow: auto; }
.toc-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: 14px 10px 6px; }
.api-toc a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 12.5px; line-height: 1.3; }
.api-toc a:hover { background: #fff; text-decoration: none; }
.api-toc a.on { background: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--accent), var(--shadow-sm); }
.api-toc .mb { min-width: 42px; font-size: 9px; padding: 2px 0; }
.api-main { padding: 6px 32px 40px; min-width: 0; }
.doc { padding: 24px 0; border-bottom: 1px solid var(--surface-3); scroll-margin-top: 72px; min-width: 0; }
.doc h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 10px; }
.doc h3 { font-size: 15px; margin: 14px 0 6px; text-transform: none; letter-spacing: 0; color: var(--text); }
.doc p { color: #334155; line-height: 1.65; margin: 0 0 12px; }
.group-title { font-family: var(--font-mono); font-size: 11px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 34px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--sidebar-bg); }
.mb { display: inline-block; text-align: center; font-family: var(--font-mono); font-weight: 600; font-size: 11px; border-radius: var(--radius-sm); padding: 3px 8px; color: #fff; }
.m-get { background: var(--accent); }
.m-post { background: var(--success); }
.m-patch { background: var(--amber); }
.m-del { background: var(--danger); }
.ep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep-path { font-size: 14.5px; font-weight: 500; background: none; padding: 0; color: var(--text); }
.ep-head .try { margin-left: auto; }
.params { margin: 8px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.params td { vertical-align: top; }
.ep-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.ep-ex > div { min-width: 0; }
.ex-h { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
pre.code { background: var(--sidebar-bg); color: #e2e8f0; border-radius: var(--radius); padding: 14px 16px; margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.65; }
.c-k { color: #38bdf8; } .c-s { color: #7dd3fc; } .c-v { color: #6ee7b7; } .c-c { color: #64748b; }
.st { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.st-ok { background: var(--success-bg); color: var(--success-text); }
.st-warn { background: var(--amber-bg); color: var(--amber-text); }
.st-err { background: var(--danger-bg); color: var(--danger-text); }
.rules { margin: 0; padding-left: 20px; line-height: 1.8; color: #334155; }
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flows > div { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 13px; }
.flows ol { margin: 8px 0 0; padding-left: 18px; line-height: 1.8; color: #334155; }
.tester { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: var(--surface-2); }
.t-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; margin-bottom: 16px; }
.t-url { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding-left: 12px; }
.t-url span { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.t-url input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; }
.t-out pre { min-height: 80px; max-height: 420px; }

/* ---------------------------------------------------------------- */
/* Responsiv (wie CP: Sidebar wird ab 900px zur Off-Canvas-Leiste)    */
/* ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .c-dns { display: none; }
  .content { padding: 28px 28px; }
}
@media (max-width: 1000px) {
  .api-hero, .api-docs, .ep-ex, .flows, .dns-split { grid-template-columns: 1fr; }
  .api-toc { display: none; }
  .api-main { padding: 6px 20px 30px; }
  .keyform { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hamburger-btn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: 0; width: 84vw; max-width: 300px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .app-shell.sidebar-open .sidebar { transform: none; }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
  .topbar { padding: 0 16px; }
  .topbar-right .btn { padding: 0 10px; }
  .content { padding: 20px 16px 32px; }
  .c-status, .c-owner { display: none; }
}
@media (max-width: 720px) {
  .search { margin-left: 0; width: 100%; }
  .search input[type=search] { width: 100%; }
  .toolbar { padding: 14px 16px 6px; }
  .card-head, .card-body, .form, .dnsbox, .api-section { padding-left: 16px; padding-right: 16px; }
  .c-date, .c-type { display: none; }
  .c-tgt .arr, .c-tgt .tag, .c-src .tag { display: none; }
  .c-tgt .note { margin-left: 0; }
  .c-check { padding-left: 14px !important; width: 36px; }
  .grid { table-layout: fixed; }
  .c-src { width: 46%; }
  .c-tgt .tgt { word-break: break-all; }
  .row2, .stats, .api-hero-side { grid-template-columns: 1fr 1fr; }
  .card-foot { justify-content: center; }
  .login-card { padding: 32px 22px; }
  .login-wrap { padding: 16px; }
  .topbar-right .btn span, .topbar-right .btn { font-size: 0; gap: 0; }
  .topbar-right .btn .ic { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .row2, .stats { grid-template-columns: 1fr; }
}

/* Übersicht: Ziel einzeilig halten, Notiz darf umbrechen */
.c-src { width: auto; white-space: nowrap; }
.c-tgt { white-space: nowrap; }
.c-tgt .note { white-space: normal; }
.c-date { width: 104px; }
.c-owner { width: 100px; }
.c-dns { width: 110px; }
@media (max-width: 1360px) { .c-src .tag, .c-tgt .tag-dim { display: none; } }
@media (max-width: 720px) { .c-src, .c-tgt { white-space: normal; } }

/* Bearbeiten-Link in der Übersicht */
.c-src a.src { color: var(--text); font-weight: 500; }
.c-src a.src:hover { color: var(--accent); text-decoration: none; }
.c-act { width: 48px; text-align: right; padding-right: 18px !important; }
.c-act .iconbtn { width: 30px; height: 30px; }
.grid tbody tr:hover .c-act .iconbtn { color: var(--accent); background: var(--accent-bg); }
.framecheck { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.fc-ok { color: var(--success-text); }
.fc-bad { color: var(--danger-text); }
.fc-warn { color: var(--amber-text); }

/* Typ beim Bearbeiten (fest) */
.type-fixed { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.type-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius); background: var(--accent-bg); color: var(--accent-dim); font-weight: 600; font-size: 13.5px; }

/* =====================================================================
   Domain-Seite (Web + E-Mail gemeinsam)
   ===================================================================== */
.domain-page { max-width: 1060px; }
.domain-page .card-head h1 { display: flex; align-items: center; gap: 10px; }
.domain-page .card-head h1 .ic { color: var(--accent); width: 18px; height: 18px; }
.domain-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.domain-head .field { margin-bottom: 0; }
.domain-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; height: 40px; }
.domain-name .ic { width: 20px; height: 20px; color: var(--accent); }
.dns-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--surface-3); }
.dns-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; }
.dns-chip b { font-weight: 600; }

.head-switch { margin: 0; font-size: 13px; color: var(--text-muted); }
.section-web .web-body { display: none; }
.section-web.is-on .web-body { display: block; }
.section-web.is-on .web-off-hint { display: none; }
.section-web:not(.is-on) .card-head { border-bottom: 0; }
.web-off-hint p { margin: 0; font-size: 13.5px; }
.opts-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 2px 0 14px; }
.opts-row .check { margin: 0; }
.framebox { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: -4px 0 16px; }
.framebox .framecheck { margin-top: 8px; }

.mail-head, .mail-row { display: grid; grid-template-columns: minmax(260px, 1.1fr) 1.4fr 56px 36px; gap: 10px; align-items: center; }
.mail-head { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 0 0 8px; border-bottom: 1px solid var(--surface-3); margin-bottom: 8px; }
.mail-row { padding: 6px 0; position: relative; }
.mail-row .addr { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.mail-row .addr:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.mail-row .addr input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 60px; text-align: right; padding-right: 2px; }
.mail-row .at { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding: 0 12px 0 0; white-space: nowrap; background: #fff; }
.mail-row .switch.sm { margin: 0; justify-self: center; }
.mail-row .row-del:hover { color: var(--danger); background: var(--danger-bg); }
.mail-row .row-err { grid-column: 1 / -1; color: var(--danger); font-size: 12px; margin-top: -2px; }
.mail-row.has-err .addr, .mail-row.has-err .tgt input { border-color: #fca5a5; }
.mail-row .row-undo { display: none; grid-column: 1 / -1; font-size: 12px; color: var(--danger-text); }
.mail-row.is-deleted > .addr, .mail-row.is-deleted > .tgt, .mail-row.is-deleted > .switch, .mail-row.is-deleted > .row-del { opacity: .35; pointer-events: none; }
.mail-row.is-deleted .addr input, .mail-row.is-deleted .tgt input { text-decoration: line-through; }
.mail-row.is-deleted .row-undo { display: block; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; }
.mail-empty { display: none; padding: 14px 0 6px; font-size: 13.5px; }
.no-mails .mail-empty { display: block; }
.no-mails .mail-head { display: none; }
.mail-actions { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }

.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; padding: 14px 18px; margin: 0 -2px 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .domain-head { grid-template-columns: 1fr; }
  .mail-head { display: none; }
  .mail-row { grid-template-columns: 1fr 44px 32px; padding: 10px 0; border-bottom: 1px solid var(--surface-3); }
  .mail-row .addr { grid-column: 1 / -1; }
  .mail-row .tgt { grid-column: 1; }
}

/* Subdomains */
.head-dom { font-size: 13px; font-weight: 500; color: var(--text-muted); background: var(--surface-3); border-radius: 20px; padding: 2px 10px; }
.subs-body { border-top: 1px solid var(--surface-3); background: linear-gradient(var(--surface-2), #fff 60px); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.section-web:not(.is-on) .subs-body { border-top: 1px solid var(--surface-3); }
.subs-title { margin-bottom: 12px; font-size: 14px; }
.sub-head, .sub-row { display: grid; grid-template-columns: minmax(230px, 1fr) 1.2fr 150px 56px 72px; gap: 10px; align-items: center; }
.sub-head { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 0 0 8px; border-bottom: 1px solid var(--surface-3); margin-bottom: 8px; }
.no-subs .sub-head { display: none; }
.sub-empty { display: none; font-size: 13.5px; padding: 4px 0 6px; }
.no-subs .sub-empty { display: block; }
.sub-row { padding: 6px 0; }
.sub-row .addr { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sub-row .addr:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.sub-row .addr input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 60px; text-align: right; padding-right: 1px; }
.sub-row .at { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding: 0 12px 0 0; white-space: nowrap; }
.sub-row .switch.sm { margin: 0; justify-self: center; }
.row-btns { display: flex; gap: 2px; justify-content: flex-end; }
.sub-row.open .row-more { color: var(--accent); background: var(--accent-bg); }
.sub-row .row-del:hover { color: var(--danger); background: var(--danger-bg); }
.row-more-box { display: none; grid-column: 1 / -1; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; gap: 10px; flex-direction: column; }
.sub-row.open .row-more-box { display: flex; }
.only-row-frame { display: none; gap: 10px; flex-wrap: wrap; align-items: center; }
.only-row-frame > input { flex: 1; min-width: 220px; }
.sub-row.is-frame .only-row-frame { display: flex; }
.sub-row .row-err { grid-column: 1 / -1; color: var(--danger); font-size: 12px; }
.sub-row.has-err .addr, .sub-row.has-err .tgt input { border-color: #fca5a5; }
.sub-row .row-undo { display: none; grid-column: 1 / -1; font-size: 12px; color: var(--danger-text); }
.sub-row.is-deleted > .addr, .sub-row.is-deleted > .tgt, .sub-row.is-deleted > select, .sub-row.is-deleted > .switch, .sub-row.is-deleted > .row-btns { opacity: .35; pointer-events: none; }
.sub-row.is-deleted .addr input, .sub-row.is-deleted .tgt input { text-decoration: line-through; }
.sub-row.is-deleted .row-undo { display: block; }

/* Favicon */
.lbl { display: block; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.fav-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fav-current { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; }
.fav-current img { width: 16px; height: 16px; object-fit: contain; }
.fav-field .check { margin: 0; }

@media (max-width: 860px) {
  .sub-head { display: none; }
  .sub-row { grid-template-columns: 1fr 1fr; padding: 10px 0; border-bottom: 1px solid var(--surface-3); }
  .sub-row .addr, .sub-row .tgt { grid-column: 1 / -1; }
}
.card-head h1 .ic { color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.owner-pick-head { display: flex; gap: 8px; margin-bottom: 8px; }
.owner-pick-head input { max-width: 280px; height: 34px; }
.owner-list { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 12px; }
.owner-item { display: grid !important; grid-template-columns: 18px 90px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; margin: 0 !important; border-bottom: 1px solid var(--surface-3); }
.owner-item:last-child { border-bottom: 0; }
.owner-item > input[type=checkbox] { margin: 0; }
.stats-5 { grid-template-columns: repeat(5, 1fr); }
.notelist { background: var(--amber-bg); border-color: #fde68a; color: var(--amber-text); margin-bottom: 10px; }
@media (max-width: 720px) { .stats-5 { grid-template-columns: 1fr 1fr; } }

/* CSV-Hilfe */
.csvhelp { border-top: 1px solid var(--surface-3); }
.csvhelp > summary { display: flex; align-items: center; gap: 8px; padding: 14px 26px; cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
.csvhelp > summary::-webkit-details-marker { display: none; }
.csvhelp > summary::after { content: "▸"; margin-left: auto; color: var(--text-faint); transition: transform .15s; }
.csvhelp[open] > summary::after { transform: rotate(90deg); }
.csvhelp-body { padding: 0 26px 18px; }
.csvhelp-body p { font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; }
.csvhelp .params td { vertical-align: top; }
.csvhelp .params td:first-child { white-space: nowrap; }
.csv-example { margin-top: 14px; }
.csv-example pre { white-space: pre; }
