:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #eef4f1;
  background: #101515;
  --panel: #192121;
  --field: #121b1a;
  --border: #3a4b46;
  --accent: #9af4c5;
  --muted: #b7c9c1;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; font-size: 16px; }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.top { border-bottom: 1px solid #2e3c36; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 67px; letter-spacing: .06em; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--accent); color: #10251c; }
.brand-section { color: var(--muted); font-size: .86em; }
.intro { padding: clamp(24px, 5vw, 40px) 0 22px; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.045em; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 16px; }
p { line-height: 1.55; }
.intro p { color: var(--muted); margin: 9px 0 0; }
.service-footer { padding-bottom: 36px; }
.service-card { min-width: 0; padding: 17px 18px; border: 1px solid #486353; border-radius: 14px; background: #1b2b24; }
.service-card h2 { margin: 0 0 6px; }
.service-card > p:not(.status) { color: var(--muted); font-size: .94rem; margin: 0 0 13px; }
.service-links { display: flex; flex-wrap: wrap; gap: 8px; }
.service-share-options { border-top: 1px solid #486353; margin-top: 14px; padding-top: 12px; }
.service-share-options input { margin: 5px 0 9px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); align-items: start; gap: 18px; padding-bottom: 36px; }
.editor { display: grid; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: clamp(16px, 3vw, 24px); min-width: 0; }
.presets { padding: 0; margin: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.presets label { display: flex; align-items: flex-start; gap: 9px; padding: 12px; background: var(--field); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.presets label:has(input:checked) { border-color: var(--accent); background: #20342b; }
.presets input { margin-top: 3px; }
label, summary, select, button, .button { font-size: .94rem; }
.presets small { display: block; margin-top: 4px; }
small, .hint, .privacy, .empty { color: var(--muted); line-height: 1.5; }
small, .hint { font-size: .87rem; }
.settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 12px; margin-top: 15px; }
.settings input, .settings select, #manual-format { margin-top: 6px; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 14px; cursor: pointer; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--accent); }
input[type='text'], select, textarea { width: 100%; color: inherit; background: var(--field); border: 1px solid var(--border); padding: 10px 11px; border-radius: 8px; font: inherit; font-size: .94rem; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #b7c9c1 50%), linear-gradient(135deg, #b7c9c1 50%, transparent 50%); background-position: calc(100% - 15px) center, calc(100% - 10px) center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { display: block; resize: vertical; min-height: 70px; margin: 6px 0; }
.rule-entry, .manual-actions { display: flex; gap: 10px; margin-top: 10px; }
.rule-entry select { flex: 1; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 8px 13px; font-family: inherit; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 690; text-decoration: none; }
.primary { color: #10251c; background: var(--accent); }
.primary:hover { background: #c0f9da; }
.secondary { color: #e6f4ed; background: #293a33; border-color: #50665a; }
.secondary:hover { background: #374c41; }
[aria-disabled='true'] { opacity: .48; cursor: default; }
:focus-visible { outline: 2px solid #c8f6df; outline-offset: 3px; }
.rules { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.rules:empty { margin-top: 0; }
.rules li { display: flex; gap: 8px; align-items: center; padding: 7px 8px 7px 10px; border-radius: 8px; background: var(--field); }
.rule-target { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rule-action { font-size: .83rem; color: var(--muted); }
.remove { color: #e5eee9; background: transparent; padding: 4px 8px; min-height: 28px; font-size: .83rem; }
.remove:hover { background: #352726; }
.empty { margin-bottom: 0; }
.export { position: sticky; top: 16px; }
.export #summary { color: var(--muted); margin-top: -6px; }
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.export .hint { margin: 13px 0; }
details { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 13px; }
summary { cursor: pointer; }
details label { display: block; margin-top: 12px; }
#export-value { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.privacy { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 13px; font-size: .84rem; }
.status { color: var(--accent); font-size: .88rem; margin-bottom: 0; overflow-wrap: anywhere; }
.status.error { color: #ffc2b0; }
[hidden] { display: none !important; }
@media (max-width: 795px) { .layout { grid-template-columns: minmax(0, 1fr); } .export { position: static; } }
@media (max-width: 445px) { .presets, .settings { grid-template-columns: minmax(0, 1fr); } .rules li { flex-wrap: wrap; } }
