:root {
  --bg: #0f1012;
  --surface: #151618;
  --surface-2: #1a1b1e;
  --surface-3: #202226;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #96989e;
  --muted-2: #6f7279;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  height: 100vh;
  background: var(--bg);
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #010409;
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.loader-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/loading-bg.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: bgFloat 7s ease-in-out infinite alternate;
}

.loader-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.8));
}

.loader-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  margin-bottom: clamp(58px, 10.5vh, 122px);
  text-align: center;
}

.loader-line {
  width: min(260px, 52vw);
  height: 1px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.loader-line::after {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.42);
  content: "";
  animation: lineRun 1.45s ease-in-out infinite;
}

.loader-title {
  margin: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.34) 0%,
    #ffffff 25%,
    #d7d7d9 42%,
    #ffffff 58%,
    rgba(255, 255, 255, 0.4) 100%
  );
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(34px, 6vw, 82px);
  font-weight: 800;
  letter-spacing: clamp(0.22em, 1.2vw, 0.42em);
  line-height: 1;
  text-indent: clamp(0.22em, 1.2vw, 0.42em);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
  animation: shimmer 2.4s linear infinite;
}

.loader-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background: #010409;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    visibility 420ms ease;
  visibility: hidden;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  background-image: url("../img/loading-bg.png");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.78;
  transform: scale(1.02);
}

.auth-screen::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(0, 0, 0, 0.62) 100%);
  content: "";
}

.auth-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.auth-logo {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.auth-logo img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
  filter: grayscale(1) contrast(1.05);
}

.auth-orbit {
  position: absolute;
  z-index: 1;
  width: min(72vw, 760px);
  height: min(72vw, 760px);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.018), transparent);
  filter: blur(0.2px);
  opacity: 0.75;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 40px));
  padding: 48px 44px 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(17, 18, 20, 0.9);
  backdrop-filter: blur(16px);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card-glow {
  position: absolute;
  inset: -140px auto auto 50%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(62px);
  transform: translateX(-50%);
  pointer-events: none;
}

.auth-card-head {
  position: relative;
  text-align: center;
}

.auth-card-head h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-card-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.auth-key-field {
  position: relative;
  display: grid;
  gap: 5px;
  margin-top: 34px;
  padding: 12px 64px 12px 23px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.82);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-key-field:focus-within {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.auth-key-field span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.auth-key-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-key-field input::placeholder {
  color: rgba(150, 152, 158, 0.55);
}

.auth-key-field button {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f4f4f5;
  color: #0d0e11;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.14);
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.auth-key-field button:hover {
  filter: brightness(1.08);
  transform: translateY(-50%) scale(1.03);
}

.auth-key-field button svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 34px 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-link-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.68);
  color: var(--text);
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.auth-link-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.052);
  transform: translateY(-1px);
}

.auth-link-icon {
  color: var(--text);
}

.auth-link-icon svg {
  width: 22px;
  height: 22px;
}

.auth-link-button strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-link-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.auth-help {
  margin: 32px 0 0;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.auth-help a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.auth-screen {
  background: #020306;
}

.auth-screen::before {
  opacity: 0.52;
  filter: saturate(0.75) contrast(1.08) brightness(0.72);
}

.auth-screen::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.025), transparent 38%),
    radial-gradient(circle at 50% 50%, transparent 0 20%, rgba(0, 0, 0, 0.72) 100%);
}

.auth-logo {
  top: 20px;
  left: 24px;
  gap: 11px;
  font-size: 15px;
}

.auth-logo img {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: none;
  filter: grayscale(1) contrast(1.1) brightness(0.92);
}

.auth-orbit {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  border-color: rgba(255, 255, 255, 0.035);
  background: transparent;
  opacity: 0.5;
}

.auth-card {
  width: min(520px, calc(100vw - 40px));
  padding: 46px 44px 40px;
  border-color: rgba(255, 255, 255, 0.13);
  border-top-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(16, 17, 19, 0.88);
  backdrop-filter: blur(12px);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.auth-card-glow {
  display: none;
}

.auth-card-head h1 {
  font-size: clamp(31px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.auth-card-head p {
  color: rgba(176, 181, 190, 0.82);
}

.auth-key-field {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(6, 7, 9, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 10px 32px rgba(0, 0, 0, 0.34);
}

.auth-key-field:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 3px rgba(255, 255, 255, 0.028);
}

.auth-key-field button {
  background: #f0f0f1;
  box-shadow: none;
}

.auth-key-field button:hover {
  filter: brightness(1.04);
}

.auth-divider::before,
.auth-divider::after {
  background: rgba(255, 255, 255, 0.09);
}

.auth-link-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 11, 0.72);
}

.auth-link-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.auth-link-arrow {
  background: rgba(255, 255, 255, 0.055);
}

.panel-shell {
  display: flex;
  gap: 14px;
  height: 100vh;
  padding: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 700ms ease 220ms,
    transform 700ms ease 220ms;
}

.panel-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar {
  display: flex;
  width: 272px;
  min-width: 272px;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #101113;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.brand-title,
.brand-subtitle {
  margin: 0;
}

.brand-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.tabs {
  display: grid;
  gap: 6px;
  padding: 12px 10px;
}

.tab-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tab-button.is-active {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
}

.tab-icon {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tab-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-footer-legacy {
  display: none;
}

.sidebar-control-footer {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.sidebar-status-row,
.sidebar-footer-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer-action {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.sidebar-footer-action:hover {
  color: var(--text);
  transform: translateX(2px);
}

.sidebar-footer-icon {
  display: grid;
  width: 22px;
  height: 22px;
  min-width: 22px;
  place-items: center;
  color: currentColor;
}

.sidebar-footer-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7bd88f;
}

.workspace {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.ghost-button,
.primary-button {
  height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #f4f4f5;
  color: #111214;
}

.content-grid {
  display: grid;
  min-height: 0;
  height: 100%;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  isolation: isolate;
  padding: 12px;
  overflow: hidden;
}

.content-panel,
.right-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111214;
}

.content-panel {
  display: flex;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.tab-panel {
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.992);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  visibility: hidden;
}

.tab-panel.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.right-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 3;
}

.panel-shell.is-offerup-workspace .content-grid {
  grid-template-columns: minmax(0, 1fr) 306px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 26px;
}

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-card {
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
}

.stat-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.stat-card p {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platforms-heading {
  margin-top: 28px;
}

.platforms-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.platform-card {
  display: block;
  min-height: 152px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.016);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.platform-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.platform-card-active {
  border-color: rgba(73, 223, 131, 0.24);
}

.platform-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-logo {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(73, 223, 131, 0.28);
  border-radius: 10px;
  background: rgba(73, 223, 131, 0.06);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.platform-top h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.platform-top p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-badge {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.platform-metrics strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.platform-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-content {
  display: grid;
  min-height: 0;
  min-width: 0;
  flex: 1;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  isolation: isolate;
  margin-top: 18px;
}

.workspace-section {
  display: flex;
  min-height: 0;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(9px) scale(0.994);
  transition:
    opacity 210ms ease,
    transform 210ms ease,
    visibility 210ms ease;
  visibility: hidden;
  width: 100%;
}

.workspace-section.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.workspace-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.outline-action-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.outline-action-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.outline-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.outline-action-button span {
  font-size: 18px;
  line-height: 1;
}

.preset-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.preset-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.014);
}

.preset-row.is-selected {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.045);
}

.preset-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.preset-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted-2);
}

.preset-row.is-selected .preset-dot {
  background: var(--text);
}

.preset-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.selected-label {
  margin-right: 8px;
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.icon-button svg {
  display: block;
  width: 17px;
  height: 17px;
}

.workspace-hint {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}

.config-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.config-scroll::-webkit-scrollbar {
  width: 6px;
}

.config-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.config-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.014);
}

.compact-config-block {
  display: flex;
  height: 128px;
  flex-direction: column;
}

.config-block + .config-block,
.config-grid + .config-block {
  margin-top: 12px;
}

.config-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.config-block-head span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-option {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.category-option:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.category-option input {
  width: 15px;
  height: 15px;
  accent-color: #ffffff;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.config-grid > .config-block {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

.form-field {
  display: grid;
  gap: 8px;
}

.spaced-field {
  margin-top: 16px;
}

.form-field span,
.seller-filter-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.period-control input,
.period-control select,
.seller-filter-card input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #101113;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.form-field input:focus,
.form-field textarea:focus,
.period-control input:focus,
.period-control select:focus,
.seller-filter-card input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.period-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  margin-top: auto;
}

.period-control select {
  cursor: pointer;
}

.seller-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seller-filter-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.seller-filter-card strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
}

.random-pause-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: #ffffff;
}

.random-pause-fields {
  display: grid;
  align-items: center;
  grid-template-columns: 96px auto 96px auto;
  gap: 10px;
}

.random-pause-fields input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: #101113;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.random-pause-fields span,
.random-pause-fields small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.message-config-block {
  margin-bottom: 2px;
}

.config-title {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.1;
}

.message-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.message-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.014);
}

.message-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.message-card-head p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compact-action {
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 11px;
}

.compact-action span {
  font-size: 15px;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.message-item-text {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.message-item-text strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-item-text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-empty {
  min-height: 58px;
  margin: 0;
  padding: 18px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.api-settings {
  display: grid;
  gap: 12px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.provider-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.provider-option:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.provider-option input {
  width: 15px;
  height: 15px;
  accent-color: #ffffff;
}

.provider-field {
  display: none;
}

.provider-field.is-active {
  display: block;
}

.api-actions {
  display: flex;
  justify-content: flex-end;
}

.accounts-manager {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.global-accounts-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.proxy-manager-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.panel-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.proxy-import-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.014);
}

.proxy-import-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.proxy-import-grid select,
.proxy-import-grid textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #101113;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.proxy-import-grid select {
  height: 42px;
  padding: 0 12px;
  cursor: pointer;
}

.proxy-import-grid textarea {
  min-height: 118px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

.proxy-lines-field {
  min-width: 0;
}

.proxy-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proxy-list-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.proxy-list-head span {
  color: var(--text);
}

.proxy-selected-text {
  margin-left: 8px;
  color: var(--muted-2) !important;
}

.proxy-bulk-delete {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 93, 93, 0.34);
  border-radius: 0;
  background: rgba(255, 93, 93, 0.07);
  color: #ff7c7c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.proxy-bulk-delete.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.proxy-bulk-delete:hover {
  border-color: rgba(255, 93, 93, 0.52);
  background: rgba(255, 93, 93, 0.12);
}

.proxy-bulk-delete span,
.proxy-bulk-delete svg {
  display: block;
  width: 15px;
  height: 15px;
}

.proxy-bulk-delete strong {
  color: inherit;
  font-size: 12px;
}

.proxy-table-wrap {
  flex: 1;
}

.proxy-table {
  min-width: 1120px;
}

.proxy-row-value {
  max-width: 420px;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.proxy-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proxy-status.is-ok {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.proxy-status.is-bad {
  border-color: rgba(255, 93, 93, 0.42);
  background: rgba(255, 93, 93, 0.08);
  color: #ff7c7c;
}

.accounts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.014);
}

.accounts-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.accounts-title-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.accounts-title-icon svg {
  width: 19px;
  height: 19px;
}

.accounts-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.accounts-title p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.accounts-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.slim-button {
  height: 38px;
  padding: 0 13px;
  font-size: 12px;
}

.square-button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 18px;
}

.accounts-warning {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.accounts-warning span {
  color: var(--text);
}

.account-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-filters button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-filters button.is-active {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-height: 0;
  margin-top: -12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 260ms ease,
    margin-top 260ms ease,
    background 220ms ease,
    border-color 220ms ease,
    opacity 200ms ease,
    padding 260ms ease,
    transform 220ms ease;
}

.bulk-actions.is-visible {
  max-height: 180px;
  margin-top: 0;
  padding: 12px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bulk-actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bulk-actions strong {
  color: var(--text);
}

.bulk-actions select,
.status-control select,
.preset-select {
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: #101113;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.bulk-actions select {
  min-width: 150px;
  padding: 0 10px;
}

.accounts-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
}

.accounts-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.accounts-table th,
.accounts-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  text-align: left;
  vertical-align: middle;
}

.accounts-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111214;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.accounts-table td {
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.accounts-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #ffffff;
}

.muted-cell {
  color: var(--muted-2) !important;
  font-weight: 800 !important;
}

.account-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-name-cell strong {
  font-size: 13px;
}

.mini-user-icon {
  color: var(--muted-2);
  font-size: 14px;
}

.status-control {
  display: grid;
  grid-template-columns: 92px 112px;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-active {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f4f5;
}

.status-ready {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.status-banned {
  border-color: rgba(255, 93, 93, 0.4);
  background: rgba(255, 93, 93, 0.08);
  color: #ff7c7c;
}

.status-limit {
  border-color: rgba(255, 183, 77, 0.34);
  background: rgba(255, 183, 77, 0.07);
  color: #ffc56d;
}

.status-unknown {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.proxy-cell {
  display: block;
  width: 100%;
  max-width: 210px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.proxy-cell:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.static-proxy-cell {
  cursor: default;
}

.static-proxy-cell:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.platform-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-accounts-table {
  min-width: 920px;
}

.global-accounts-table-wrap {
  flex: 1;
}

.preset-select {
  width: 150px;
  padding: 0 10px;
}

.cookie-label {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.check-modal-card {
  width: min(520px, 100%);
}

.check-progress {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.check-progress strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.check-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.progress-line {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-line i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 260ms ease;
}

.cookie-modal-card {
  width: min(560px, 100%);
}

.modal-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drop-zone {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.drop-zone:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.025);
}

.drop-icons {
  color: var(--text);
  font-size: 20px;
  letter-spacing: 0.22em;
}

.drop-zone strong {
  font-size: 14px;
}

.drop-zone small {
  max-width: 360px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-or-label {
  margin: 18px 0 10px;
}

.cookie-platform-field[hidden] {
  display: none;
}

.cookie-platform-field select {
  cursor: pointer;
}

.cookie-textarea {
  min-height: 112px;
}

.cookie-viewer-card {
  width: min(760px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
}

.cookie-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cookie-viewer-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.cookie-eye {
  color: var(--text);
  font-size: 14px;
}

.cookie-viewer-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.cookie-viewer-title span:last-child {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.cookie-json-box {
  max-height: min(560px, calc(100vh - 210px));
  margin: 16px;
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #090a0b;
  color: #f4f4f5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-wrap;
}

.cookie-json-box::-webkit-scrollbar {
  width: 8px;
}

.cookie-json-box::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.cookie-viewer-count {
  margin: -4px 16px 16px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.proxy-assign-card {
  width: min(600px, calc(100vw - 36px));
  min-height: 520px;
}

.proxy-edit-card {
  width: min(700px, calc(100vw - 36px));
}

.proxy-edit-card select {
  width: 170px;
  cursor: pointer;
}

.proxy-edit-value {
  min-height: 72px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 850;
}

.proxy-modal-head {
  margin-bottom: 18px;
}

.proxy-modal-head h2 {
  margin: 7px 0 8px;
  color: var(--text);
  font-size: 20px;
}

.proxy-modal-head span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.unlink-proxy-button {
  width: 100%;
  margin-bottom: 10px;
}

.proxy-choice-list {
  display: grid;
  max-height: min(320px, 42vh);
  gap: 9px;
  overflow: auto;
  padding-right: 4px;
}

.proxy-choice-list::-webkit-scrollbar {
  width: 6px;
}

.proxy-choice-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.proxy-choice {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.proxy-choice.is-selected {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.proxy-choice input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #ffffff;
}

.proxy-choice span {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.proxy-choice small {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
}

.proxy-empty-state {
  display: grid;
  min-height: 230px;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.proxy-empty-state p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.proxy-empty-state span {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tab-panel[data-panel="messenger"] {
  padding: 0;
}

.messenger-panel {
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-columns: 388px minmax(0, 1fr);
  overflow: hidden;
}

.messenger-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.messenger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 16px 14px;
}

.messenger-head h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 24px;
}

.messenger-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.danger-icon-button {
  color: #ff5b5b;
}

.messenger-filters {
  display: flex;
  gap: 7px;
  padding: 0 16px 12px;
}

.messenger-filters button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101113;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.messenger-filters button:hover,
.messenger-filters button.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface-3);
  color: var(--text);
}

.messenger-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0 16px 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101113;
  color: var(--muted-2);
}

.messenger-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.messenger-search input::placeholder {
  color: var(--muted-2);
}

.messenger-count {
  margin: 0;
  padding: 0 16px 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.chat-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 0 10px 14px;
  overflow: auto;
}

.chat-list-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 106px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.chat-list-item:hover,
.chat-list-item.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.chat-list-item.is-active {
  transform: translateX(2px);
}

.chat-list-item img,
.chat-header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-3);
}

.chat-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.chat-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.banned-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border: 1px solid rgba(255, 83, 83, 0.42);
  border-radius: 6px;
  background: rgba(255, 83, 83, 0.12);
  color: #ff6969;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-badges em {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.chat-title {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-seller,
.chat-last,
.chat-list-item time {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.chat-last {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-item time {
  align-self: end;
}

.chat-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0b0c0e;
}

.chat-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.chat-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header h3 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header-top span {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.chat-seller-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.seller-avatar {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  object-fit: cover;
}

.chat-header small {
  color: var(--muted-2);
  font-size: 11px;
}

.chat-header-actions {
  display: flex;
  align-self: start;
  align-items: center;
  gap: 8px;
}

.chat-header-banned {
  height: 22px;
}

.copy-listing-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.copy-listing-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.copy-listing-button svg {
  width: 16px;
  height: 16px;
}

.chat-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  overflow: auto;
}

.message-bubble {
  display: grid;
  gap: 8px;
  width: fit-content;
  min-width: 92px;
  max-width: min(68%, 620px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

.message-bubble.is-mine {
  align-self: flex-end;
  border-color: rgba(255, 255, 255, 0.22);
  background: #f4f4f5;
  color: #101113;
}

.message-bubble.is-system {
  width: auto;
  max-width: min(76%, 720px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
}

.message-bubble p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.message-bubble span {
  justify-self: end;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
}

.message-bubble.is-mine span {
  color: rgba(16, 17, 19, 0.62);
}

.message-bubble em {
  margin-left: 5px;
  color: inherit;
  font-style: normal;
  letter-spacing: -0.12em;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.chat-compose input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #111214;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.chat-compose button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: #f4f4f5;
  color: #101113;
  cursor: pointer;
}

.chat-compose button svg {
  width: 19px;
  height: 19px;
}

.chat-empty-state {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.chat-empty-list {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.empty-state {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  margin-top: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.right-panel {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.panel-shell:not(.is-offerup-workspace) .right-panel {
  display: none;
}

.panel-shell.is-offerup-workspace .right-panel {
  display: flex;
}

.right-panel-default {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workspace-side-menu {
  display: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.panel-shell.is-offerup-workspace .right-panel-default {
  display: none;
}

.panel-shell.is-offerup-workspace .workspace-side-menu {
  display: block;
}

.workspace-side-menu h3 {
  margin: 7px 0 8px;
  color: var(--text);
  font-size: 17px;
}

.side-menu-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-tabs {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.workspace-tab-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.workspace-tab-button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.workspace-tab-button.is-active {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
}

.workspace-tab-icon {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.workspace-tab-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.mini-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.mini-card h3 {
  margin: 7px 0 8px;
  color: var(--text);
  font-size: 17px;
}

.mini-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.toast-layer {
  position: fixed;
  z-index: 30;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(26, 27, 30, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  color: var(--text);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast strong {
  font-size: 13px;
}

.toast span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.modal-layer.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(8px);
  transition: transform 180ms ease;
}

.modal-layer.is-open .modal-card {
  transform: translateY(0);
}

.modal-head h2 {
  margin: 6px 0 18px;
  color: var(--text);
  font-size: 22px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field-label-spaced {
  margin-top: 14px;
}

.text-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #101113;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.textarea-input {
  min-height: 136px;
  padding: 13px;
  line-height: 1.45;
  resize: vertical;
}

.text-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.message-modal-card {
  width: min(540px, 100%);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@keyframes shimmer {
  to {
    background-position: -240% center;
  }
}

@keyframes lineRun {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(260%);
  }
}

@keyframes bgFloat {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: brightness(0.9);
  }

  to {
    transform: scale(1.055) translate3d(0, -8px, 0);
    filter: brightness(1.08);
  }
}

@media (max-width: 680px) {
  .loader-content {
    margin-bottom: 56px;
  }

  .loader-subtitle {
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .auth-screen {
    padding: 18px;
  }

  .auth-logo {
    top: 16px;
    left: 18px;
  }

  .auth-card {
    padding: 38px 22px 30px;
    border-radius: 24px;
  }

  .auth-link-button {
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    padding-left: 18px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .panel-shell {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }

  .app {
    min-height: 100vh;
    height: auto;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-button {
    justify-content: center;
  }

  .sidebar-footer {
    display: none;
  }

  .content-grid {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  .right-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .content-panel {
    min-height: 420px;
  }

  .stats-grid,
  .platforms-grid,
  .config-grid,
  .message-cards-grid,
  .seller-filter-grid,
  .runtime-grid {
    grid-template-columns: 1fr;
  }

  .compact-config-block {
    height: auto;
    min-height: 116px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .random-pause-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .messenger-panel {
    grid-template-columns: 1fr;
  }

  .messenger-sidebar {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-workspace {
    min-height: 520px;
  }

  .right-panel {
    display: none;
  }
}

@media (max-width: 620px) {
  .panel-shell {
    padding: 10px;
  }

  .brand {
    padding: 14px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .topbar-actions {
    width: 100%;
  }

  .ghost-button,
  .primary-button {
    flex: 1;
  }
}
