:root {
  --bg0:rgb(12, 12, 18);
  --bg1:rgb(18, 18, 28);
  --panel: rgba(22, 22, 32, 0.92);
  --stroke: rgba(255, 255, 255, 0.1);
  --accent:rgb(136, 92, 255);
  --accent2:rgb(92, 194, 255);
  --accent-rgb: 136, 92, 255;
  --accent2-rgb: 92, 194, 255;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.45);
  --radius: 14px;
  --footer-h: 40px;
  --touch: 48px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: radial-gradient(1100px 520px at 50% -8%, #1b1430 0%, transparent 60%),
    linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 50%, #0e0c14 100%);
  background-attachment: fixed;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body.light {
  --bg0:rgb(240, 242, 248);
  --bg1:rgb(228, 232, 240);
  --panel: rgba(255, 255, 255, 0.94);
  --stroke: rgba(0, 0, 0, 0.08);
  --text: rgba(20, 22, 32, 0.95);
  --muted: rgba(20, 22, 32, 0.45);
  background: linear-gradient(165deg, var(--bg0), var(--bg1));
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.55) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.45);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.78);
  background-clip: padding-box;
}

.alert {
  margin: 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
}

.alert-danger {
  border: 1px solid rgba(255, 85, 85, 0.35);
  background: rgba(255, 45, 45, 0.12);
  color: rgba(255, 220, 220, 0.95);
}

.legacy {
  display: none !important;
}

.input-group-text,
.disable-text {
  cursor: default;
  user-select: none;
}

.app {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  box-sizing: border-box;
}

@supports (height: 100dvh) {
  .app {
    height: 100dvh;
    max-height: 100dvh;
  }
}

.chrome {
  position: relative;
  z-index: 300;
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 9px 12px;
  padding: 9px 14px;
  padding-top: max(9px, env(safe-area-inset-top, 0px));
  background: rgba(16, 17, 26, 0.55);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

body.light .chrome {
  background: rgba(255, 255, 255, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.35));
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.ver {
  font-size: 0.7rem;
  opacity: 0.5;
  padding: 2px 6px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
}

.urlbar-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 350;
  max-height: 320px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 6px;
}

.suggest[hidden] {
  display: none;
}

.suggest-item {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-item:hover,
.suggest-item.is-active {
  background: rgba(var(--accent-rgb), 0.18);
}

.urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.light .urlbar {
  background: rgba(255, 255, 255, 0.85);
}

.scheme {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--accent2);
  opacity: 0.95;
}

.path-hint {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: -4px;
}

.url-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  outline: none;
}

.go {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent2-rgb), 0.15));
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.go:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
}

.go,
.shortcut {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle {
  flex-shrink: 0;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.menu-toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.error {
  flex-shrink: 0;
}

.password {
  padding: 0 16px 8px;
}

.password-input {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  box-sizing: border-box;
}

.main {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tabbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  overflow-x: auto;
}

.tabbar[hidden] {
  display: none !important;
}

.tab-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.tab {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.tab.is-active {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.2);
}

.tab-close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}

.tab-close:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.frame-stack {
  flex: 1;
  min-height: 0;
  position: relative;
}

#home:not(.is-hidden) ~ #frame-stack {
  flex: 0 0 0;
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.frame-stack .frame {
  position: absolute;
  inset: 0;
}

.home {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quicklinks-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 728px;
}

.quick-heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.home .shortcuts {
  margin: 0;
}

.home-ad-leaderboard {
  width: 100%;
  max-width: 728px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  padding: 6px 0 0;
  box-sizing: border-box;
}

.leaderboard-frame {
  width: 100%;
  max-width: 728px;
  min-width: 0;
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-frame iframe {
  display: block;
  max-width: 100%;
  border: none;
}

.ad-sky {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  pointer-events: auto;
  box-sizing: border-box;
}

.ad-sky--left {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.ad-sky--right {
  right: max(12px, env(safe-area-inset-right, 0px));
}

.ad-sky-inner {
  width: 160px;
  height: 600px;
  max-width: 160px;
  max-height: 600px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

body.light .ad-sky-inner {
  background: rgba(255, 255, 255, 0.5);
}

@media (min-width: 1280px) {
  .ad-sky {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body:has(#home:not(.is-hidden)) .app {
    padding-left: calc(160px + max(12px, env(safe-area-inset-left, 0px)) + 24px);
    padding-right: calc(160px + max(12px, env(safe-area-inset-right, 0px)) + 24px);
    box-sizing: border-box;
  }
}

@media (max-width: 1279px) {
  .ad-sky {
    display: none !important;
  }
}

body:has(#home.is-hidden) .ad-sky {
  display: none !important;
}

body:has(#home.is-hidden) .app {
  padding-left: 0;
  padding-right: 0;
}

.home.is-hidden {
  display: none;
}

.clock-wrap {
  text-align: center;
}

.clock {
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25);
}

.tagline {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 520px;
}

.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  padding: 14px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.light .shortcut {
  background: rgba(255, 255, 255, 0.75);
}

.shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sic {
  font-size: 1.35rem;
  opacity: 0.9;
}

.slabel {
  font-size: 0.68rem;
  color: var(--muted);
}

.frame {
  display: none;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.frame.is-visible {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, calc(100vw - 16px));
  height: 100%;
  max-height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--stroke);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 200;
  backdrop-filter: blur(14px);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

@supports (height: 100dvh) {
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
  }
}

.sidebar.is-open {
  transform: translateX(0);
}

.side-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  box-sizing: border-box;
}

.side-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}

.side-head .side-title {
  margin: 0;
}

.sidebar-close {
  flex-shrink: 0;
  width: var(--touch);
  min-width: var(--touch);
  height: var(--touch);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-close:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.12);
}

body.light .sidebar-close {
  background: rgba(255, 255, 255, 0.55);
}

.side-title {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.side-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  min-height: var(--touch);
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.side-btn--action-only {
  justify-content: center;
}

.side-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-weight: 500;
  line-height: 1.25;
}

.side-btn--action-only .side-label {
  flex: none;
  text-align: center;
}

.side-keys {
  flex-shrink: 0;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  opacity: 0.5;
  white-space: nowrap;
  text-align: right;
}

.side-keys kbd {
  font-size: inherit;
  font-family: ui-monospace, monospace;
  opacity: 1;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
}

body.light .side-btn {
  background: rgba(255, 255, 255, 0.72);
}

.side-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.side-btn--toggle {
  position: relative;
}

.side-btn--toggle[aria-pressed='true'] {
  border: 1px solid rgba(var(--accent-rgb), 0.85);
  background: rgba(var(--accent-rgb), 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

body.light .side-btn--toggle[aria-pressed='true'] {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(106, 72, 220, 0.6);
}

.side-btn--toggle[aria-pressed='false'] {
  border-color: var(--stroke);
  background: rgba(0, 0, 0, 0.08);
  opacity: 1;
  box-shadow: none;
}

body.light .side-btn--toggle[aria-pressed='false'] {
  background: rgba(255, 255, 255, 0.55);
}

.side-btn--toggle[aria-pressed='true'] .side-label::after {
  content: ' · On';
  font-size: 0.82em;
  font-weight: 700;
  color: var(--accent2);
}

.side-btn--toggle[aria-pressed='false'] .side-label::after {
  content: ' · Off';
  font-size: 0.82em;
  font-weight: 600;
  color: var(--muted);
}

.footer {
  position: relative;
  z-index: 280;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: var(--footer-h);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
}

body.light .footer {
  background: rgba(255, 255, 255, 0.85);
}

.footer-left,
.footer-right {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-discord:hover {
  color: #5865f2;
}

body:has(#home.is-hidden) .footer {
  display: none;
}

@media (max-width: 860px) {
  .chrome {
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .urlbar-wrap {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .brand-text {
    display: none;
  }

  .path-hint {
    display: none;
  }

  .chrome {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .scheme {
    display: none;
  }

  .url-input {
    font-size: 16px;
  }

  .footer {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .shortcuts {
    gap: 10px;
    max-width: 100%;
  }

  .shortcut {
    width: 44%;
    max-width: 120px;
    min-width: 0;
  }

  .tabbar {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
    border-left: none;
  }

  .side-keys {
    display: none;
  }

  .side-btn {
    padding: 14px 16px;
    min-height: 52px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.66);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  background: var(--panel);
}

.modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
}

.modal-body {
  padding: 8px 20px 20px;
}

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke);
}

.set-row:last-child {
  border-bottom: none;
}

.set-row--stack {
  flex-direction: column;
  align-items: stretch;
}

.set-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.seg {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  overflow: hidden;
}

.seg button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.seg button.is-active {
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatches button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sw);
  cursor: pointer;
  padding: 0;
}

.swatches button.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--sw);
}

.select,
.input {
  font-size: 0.88rem;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  outline: none;
  box-sizing: border-box;
  min-width: 0;
  max-width: 60%;
}

.select:focus,
.input:focus {
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.light .select,
body.light .input {
  background: rgba(255, 255, 255, 0.8);
}

.set-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.16);
  color: inherit;
  cursor: pointer;
}

.set-btn:hover {
  background: rgba(var(--accent-rgb), 0.26);
}

.set-btn--danger {
  border-color: rgba(255, 85, 85, 0.5);
  background: rgba(255, 45, 45, 0.14);
}

.set-btn--danger:hover {
  background: rgba(255, 45, 45, 0.24);
}

.set-inline {
  display: flex;
  gap: 8px;
  width: 100%;
}

.set-inline .input {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.set-inline .select {
  flex: 0 0 auto;
  max-width: 48%;
}

.input--key {
  flex: 0 0 56px;
  text-align: center;
}

body.light .menu-toggle,
body.light .tabbar,
body.light .tab {
  background: rgba(255, 255, 255, 0.72);
}

body.light .url-input {
  color: var(--text);
}

body.light .modal-close {
  background: rgba(255, 255, 255, 0.6);
}
