:root {
 color-scheme: light dark;
 --bg: #f5f5f5;
 --surface: #ffffff;
 --text: #242424;
 --muted: #616161;
 --border: #d1d1d1;
 --accent: #0f6cbd;
 --accent-hover: #115ea3;
 --danger: #c50f1f;
}
@media (prefers-color-scheme: dark) {
 :root {
 --bg: #202020;
 --surface: #292929;
 --text: #f5f5f5;
 --muted: #c8c8c8;
 --border: #505050;
 --accent: #479ef5;
 --accent-hover: #62abf5;
 --danger: #ff99a4;
 }
}
* { box-sizing: border-box; }
body {
 margin: 0;
 font: 14px "Segoe UI", Arial, sans-serif;
 background: var(--bg);
 color: var(--text);
}
header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 10px;
 padding: 12px 14px 9px;
 background: var(--surface);
 border-bottom: 1px solid var(--border);
}
h1 { margin: 0 0 2px; font-size: 19px; font-weight: 600; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
p { margin: 0; }
main { padding: 10px; display: grid; gap: 9px; }
.card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: 4px;
 padding: 10px;
}
label { display: block; margin-bottom: 5px; font-weight: 600; }
.row { display: flex; gap: 6px; }
select, button {
 min-height: 31px;
 border: 1px solid var(--border);
 border-radius: 3px;
 font: inherit;
}
select {
 flex: 1;
 min-width: 0;
 padding: 4px 7px;
 background: var(--surface);
 color: var(--text);
}
button { padding: 4px 9px; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.primary {
 width: 100%;
 border-color: var(--accent);
 background: var(--accent);
 color: white;
 font-weight: 600;
}
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { background: var(--surface); color: var(--text); }
.muted { color: var(--muted); margin-top: 6px; font-size: 12px; }
.check {
 display: flex;
 align-items: center;
 gap: 7px;
 margin: 9px 0;
 font-weight: 400;
}
.check input { margin: 0; }
.sectionTitle { display: flex; align-items: center; justify-content: space-between; }
.linkButton {
 border: 0;
 background: transparent;
 color: var(--accent);
 min-height: auto;
 padding: 3px;
}
.routeList { margin-top: 7px; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.route {
 display: grid;
 grid-template-columns: 1fr auto;
 gap: 8px;
 border: 1px solid var(--border);
 padding: 8px;
 border-radius: 3px;
}
.routeSender { font-weight: 600; overflow-wrap: anywhere; }
.routeDestination { color: var(--muted); font-size: 12px; margin-top: 2px; }
.routeActions { display: flex; gap: 4px; align-items: center; }
.routeActions button { min-height: 27px; padding: 2px 7px; background: var(--surface); color: var(--text); }
.routeActions .delete { color: var(--danger); }
.status { min-height: 18px; color: var(--muted); font-size: 12px; }
.status.error { color: var(--danger); }
