:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #162033;
  --muted: #647084;
  --line: #dfe5ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #15915a;
  --red: #d43f3f;
  --amber: #b87900;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(229, 183, 99, 0.14), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(152, 166, 183, 0.12), transparent 30%),
    radial-gradient(circle at 52% 78%, rgba(229, 183, 99, 0.08), transparent 32%),
    linear-gradient(135deg, #101214 0%, #17191d 46%, #1d1d22 100%);
  color: #dedbd3;
  overflow-x: hidden;
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 222, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 222, 216, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

.landing-page::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  right: -170px;
  top: 18%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 183, 99, 0.13), transparent 66%);
  filter: blur(10px);
  animation: floatAura 9s ease-in-out infinite;
}

@property --trace-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -90deg;
}

.button-link::after,
.landing-nav a::after,
.product-list div::after,
.site-chip::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--trace-angle), #e5b763 0deg, #98a6b7 72deg, transparent 86deg);
  opacity: 0;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 180ms ease, --trace-angle 760ms ease;
}

.button-link:hover::after,
.landing-nav a:hover::after,
.product-list div:hover::after,
.site-chip:hover::after,
.feature-card:hover::after {
  --trace-angle: 270deg;
  opacity: 1;
}

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

button {
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  background: #d9a84f;
  color: #101412;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(217, 168, 79, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button-link:hover {
  background: #e5b763;
  box-shadow: 0 18px 48px rgba(217, 168, 79, 0.3);
  transform: translateY(-3px) scale(1.015);
}

.button-link:hover::before {
  transform: translateX(120%);
}

.button-link.ghost-dark {
  background: rgba(216, 222, 216, 0.06);
  color: #dedbd3;
  border: 1px solid rgba(216, 222, 216, 0.16);
  box-shadow: none;
}

.button-link.ghost-dark:hover {
  background: rgba(229, 183, 99, 0.1);
  border-color: rgba(229, 183, 99, 0.32);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

button:hover {
  background: var(--primary-dark);
}

button.ghost {
  background: #edf2ff;
  color: var(--primary-dark);
}

button.danger {
  background: #fde8e8;
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.landing-header {
  display: grid;
  grid-template-columns: auto minmax(520px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1440px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 12px;
  position: sticky;
  top: 14px;
  z-index: 20;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background: rgba(13, 21, 18, 0.62);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dedbd3;
  font-weight: 800;
  text-decoration: none;
}

.landing-brand .brand-mark {
  background: linear-gradient(135deg, rgba(217, 168, 79, 0.68), rgba(152, 166, 183, 0.5));
  color: rgba(16, 20, 18, 0.86);
  box-shadow: 0 10px 28px rgba(217, 168, 79, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.landing-brand:hover .brand-mark {
  box-shadow: 0 14px 38px rgba(217, 168, 79, 0.18);
  transform: rotate(-4deg) scale(1.04);
}

.agency-title {
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 34px auto 0;
  perspective: 900px;
  color: #d9a84f;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.agency-title span {
  display: inline-block;
  transform-origin: 50% 0%;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.agency-title .gap {
  margin-left: 0.42em;
}

.agency-title span:nth-child(-n + 9) {
  color: #d9a84f;
}

.agency-title span:nth-child(n + 10) {
  color: #98a6b7;
  opacity: 0.88;
}

.agency-title:hover span {
  animation: letterFall 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 28ms);
  text-shadow: 0 16px 34px rgba(217, 168, 79, 0.22);
}

.landing-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 1.2fr);
  align-items: center;
  gap: 6px;
  width: 100%;
}

.landing-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfc3c7;
  text-decoration: none;
  border-radius: 6px;
  padding: 9px 12px;
  position: relative;
  overflow: hidden;
  transition: color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.landing-nav a:hover {
  color: #eef2ed;
  background: rgba(229, 183, 99, 0.08);
  transform: translateY(-1px);
}

.landing-nav .nav-cta {
  min-width: 0;
  justify-content: center;
  background: rgba(217, 168, 79, 0.3);
  color: rgba(16, 20, 18, 0.9);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(217, 168, 79, 0.08);
  gap: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 38px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(16, 18, 20, 0.42);
}

.auth-split a {
  border-radius: 0;
}

.auth-split a:first-child {
  border-right: 1px solid rgba(216, 222, 216, 0.1);
}

.auth-split a:first-child:hover {
  background: rgba(152, 166, 183, 0.12);
}

.landing-nav .nav-cta:hover {
  background: rgba(229, 183, 99, 0.86);
  color: #101412;
  box-shadow: 0 18px 38px rgba(217, 168, 79, 0.22);
}

.landing-nav .nav-cta span {
  display: inline-block;
}

.landing-nav .nav-cta:hover span {
  animation: letterHop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 24ms);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  width: min(1440px, calc(100% - 40px));
  min-height: calc(100vh - 104px);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(229, 183, 99, 0.26);
  border-radius: 999px;
  padding: 0 10px;
  color: #e5b763;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: #bfc3c7;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.hero-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: 100%;
  border: 1px solid rgba(216, 222, 216, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero-product:hover {
  border-color: rgba(229, 183, 99, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.product-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bfc3c7;
  font-size: 13px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9a84f;
  box-shadow: 0 0 0 0 rgba(217, 168, 79, 0.5);
  animation: pulseGlow 1.8s infinite;
}

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

.product-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 110px;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.product-list div:hover {
  border-color: rgba(229, 183, 99, 0.28);
  background: rgba(229, 183, 99, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px);
}

.product-list span {
  color: #d9a84f;
  font-size: 13px;
  font-weight: 900;
}

.product-list strong {
  color: #dedbd3;
  font-size: clamp(20px, 2vw, 28px);
}

.sites-board {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 18px;
}

.sites-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sites-board-head strong {
  font-size: 18px;
}

.sites-board-head span {
  color: #aeb3b8;
  font-size: 13px;
}

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

.site-chip {
  display: grid;
  gap: 5px;
  min-height: 74px;
  border: 1px solid rgba(216, 222, 216, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 13px;
  color: #dedbd3;
  font-size: 18px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-chip:hover {
  border-color: rgba(229, 183, 99, 0.28);
  background: rgba(229, 183, 99, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.site-chip b {
  color: #aeb3b8;
  font-size: 14px;
}

.site-chip.ready {
  border-color: rgba(229, 183, 99, 0.32);
  background: rgba(229, 183, 99, 0.08);
}

.site-chip.ready b {
  color: #e5b763;
}

.feature-band {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  max-width: 820px;
  margin: 14px 0 0;
  color: #dedbd3;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

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

.feature-card {
  min-height: 190px;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  border-color: rgba(229, 183, 99, 0.26);
  background: rgba(32, 31, 29, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px);
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  border: 1px solid rgba(229, 183, 99, 0.2);
  border-radius: 6px;
  background: rgba(229, 183, 99, 0.06);
  color: #d9a84f;
  font-weight: 800;
  font-size: 13px;
}

.info-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto 14px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 24px;
}

.info-band h2,
.info-band p {
  margin: 0;
}

.info-band h2 {
  margin-top: 12px;
}

.info-band p {
  max-width: 520px;
  color: #aeb3b8;
  line-height: 1.55;
}

.info-band.compact {
  align-items: center;
  min-height: 86px;
}

.info-band.compact span {
  font-weight: 800;
}

.section-placeholder {
  color: #98a6b7;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.registration-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  justify-items: center;
  width: min(980px, calc(100% - 40px));
  margin: 48px auto 90px;
}

.registration-copy {
  position: static;
  overflow: hidden;
  text-align: center;
}

.registration-copy h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32em;
  margin: 18px auto 14px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.registration-copy h1 span {
  display: block;
}

.registration-copy h1 span:nth-child(1) {
  color: #d9a84f;
}

.registration-copy h1 span:nth-child(2),
.registration-copy h1 span:nth-child(3) {
  color: #98a6b7;
}

.registration-copy p {
  margin: 0 auto;
  color: #bfc3c7;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
}

.registration-form {
  display: grid;
  gap: 20px;
  width: 100%;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

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

.registration-form label,
.registration-form legend {
  color: #dedbd3;
  font-weight: 800;
}

.registration-form input,
.registration-form textarea {
  margin-top: 8px;
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  transition: border-color 240ms ease, background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.registration-form textarea {
  min-height: 118px;
}

.registration-form input:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: rgba(229, 183, 99, 0.48);
  background: rgba(16, 18, 20, 0.76);
  box-shadow: 0 0 0 3px rgba(229, 183, 99, 0.12);
  transform: translateY(-1px);
}

.registration-form fieldset {
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  margin: 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.58), rgba(29, 29, 34, 0.52)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.04), transparent 34%);
}

.site-select-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.site-select-grid label {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 82px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 13px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 320ms ease, border-color 320ms ease, background-color 320ms ease, box-shadow 320ms ease;
}

.site-select-grid label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(217, 168, 79, 0.12), rgba(152, 166, 183, 0.06));
  opacity: 0;
  transition: opacity 360ms ease;
}

.site-select-grid label:hover {
  border-color: rgba(229, 183, 99, 0.24);
  background: rgba(229, 183, 99, 0.045);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.site-select-grid label:hover::before {
  opacity: 1;
}

.site-select-grid input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.site-select-grid span,
.site-select-grid em {
  position: relative;
  z-index: 1;
}

.site-select-grid span {
  color: #dedbd3;
  font-size: 14px;
  font-weight: 900;
}

.site-select-grid em {
  color: #aeb3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.site-select-grid label:has(input:checked) {
  border-color: rgba(229, 183, 99, 0.42);
  background: rgba(229, 183, 99, 0.1);
  box-shadow: 0 12px 34px rgba(217, 168, 79, 0.08);
  transform: translateY(-2px);
}

.site-select-grid label:has(input:checked)::before {
  opacity: 1;
}

.site-select-grid label.ready em {
  color: #66d28f;
}

.site-select-grid label.dev em {
  color: #e46f6f;
}

.site-select-grid label.ready:has(input:checked) em {
  color: #66d28f;
}

.site-select-grid label.dev:has(input:checked) em {
  color: #e46f6f;
}

.registration-submit {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.registration-submit:hover {
  background: #e5b763;
  box-shadow: 0 18px 42px rgba(217, 168, 79, 0.22);
  transform: translateY(-2px);
}

.login-shell {
  display: grid;
  place-items: center;
  width: min(560px, calc(100% - 40px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 52px 0 90px;
}

.login-card {
  width: 100%;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  padding: 30px;
}

.login-card h1 {
  margin: 16px 0 10px;
  color: #dedbd3;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.login-card p {
  margin: 0 0 24px;
  color: #bfc3c7;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  color: #dedbd3;
  font-weight: 800;
}

.login-form input {
  margin-top: 8px;
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  transition: border-color 240ms ease, background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(229, 183, 99, 0.48);
  background: rgba(16, 18, 20, 0.76);
  box-shadow: 0 0 0 3px rgba(229, 183, 99, 0.12);
  transform: translateY(-1px);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #bfc3c7;
  line-height: 1.45;
}

.form-status[data-type="success"] {
  color: #66d28f;
}

.form-status[data-type="error"] {
  color: #e46f6f;
}

.admin-shell {
  display: grid;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto 90px;
}

.admin-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-token-row input {
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
}

.admin-token-row input:focus {
  outline: none;
  border-color: rgba(229, 183, 99, 0.48);
  background: rgba(16, 18, 20, 0.76);
  box-shadow: 0 0 0 3px rgba(229, 183, 99, 0.12);
}

.admin-invite-link {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(229, 183, 99, 0.28);
  border-radius: 10px;
  background: rgba(229, 183, 99, 0.08);
}

.admin-invite-link[hidden] {
  display: none;
}

.admin-invite-link span {
  color: #e5b763;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-invite-link a {
  max-width: 100%;
  color: #d8ded8;
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-invite-link button {
  width: fit-content;
  border: 1px solid rgba(229, 183, 99, 0.42);
  border-radius: 8px;
  background: rgba(229, 183, 99, 0.2);
  color: #f0c36a;
  font-weight: 900;
  cursor: pointer;
}

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

.admin-request {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 18px;
}

.admin-request header,
.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-actions button {
  min-height: 42px;
  border-radius: 6px;
  font-weight: 900;
}

.admin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.admin-actions .admin-approve {
  background: rgba(102, 210, 143, 0.82);
  color: #0d1512;
}

.admin-actions .admin-approve:hover {
  background: #66d28f;
  box-shadow: 0 14px 32px rgba(102, 210, 143, 0.18);
}

.admin-actions .danger {
  background: rgba(228, 111, 111, 0.82);
  color: #151010;
}

.admin-actions .danger:hover {
  background: #e46f6f;
  box-shadow: 0 14px 32px rgba(228, 111, 111, 0.18);
}

.admin-request strong {
  color: #dedbd3;
  font-size: 20px;
}

.admin-request p {
  margin: 0;
  color: #bfc3c7;
  line-height: 1.5;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 168, 79, 0.42);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(217, 168, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 168, 79, 0);
  }
}

@keyframes floatAura {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-24px, 22px, 0) scale(1.08);
  }
}

@keyframes letterFall {
  0% {
    transform: rotateX(0deg) translateY(0);
  }
  34% {
    transform: rotateX(72deg) translateY(8px);
  }
  68% {
    transform: rotateX(-18deg) translateY(-3px);
  }
  100% {
    transform: rotateX(0deg) translateY(0);
  }
}

@keyframes letterHop {
  0%,
  100% {
    transform: translateY(0);
  }
  38% {
    transform: translateY(-5px);
  }
  68% {
    transform: translateY(2px);
  }
}

.feature-card h3 {
  margin: 24px 0 10px;
  color: #dedbd3;
  font-size: 24px;
  line-height: 1.15;
}

.feature-card p {
  margin: 0;
  color: #aeb3b8;
  line-height: 1.55;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7ff68;
  color: #111827;
  font-weight: 800;
}

.director-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.director-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 24px;
  height: 100vh;
  border-right: 1px solid rgba(216, 222, 216, 0.1);
  background: rgba(13, 15, 17, 0.72);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.director-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dedbd3;
  text-decoration: none;
}

.director-brand .brand-mark {
  background: linear-gradient(135deg, rgba(217, 168, 79, 0.7), rgba(152, 166, 183, 0.48));
  color: rgba(16, 20, 18, 0.9);
}

.director-brand span:last-child {
  display: grid;
  gap: 2px;
}

.director-brand em {
  color: #98a6b7;
  font-size: 13px;
  font-style: normal;
}

.director-nav {
  display: grid;
  gap: 8px;
}

.director-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bfc3c7;
  padding: 11px 12px;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.director-nav a:hover,
.director-nav a.active {
  border-color: rgba(229, 183, 99, 0.22);
  background: rgba(229, 183, 99, 0.07);
  color: #dedbd3;
  transform: translateX(3px);
}

.director-sidebar-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 16px;
}

.director-sidebar-card .pulse-dot {
  margin-bottom: 4px;
}

.director-sidebar-card strong {
  color: #dedbd3;
}

.director-sidebar-card p {
  margin: 0;
  color: #98a6b7;
  font-size: 13px;
  line-height: 1.45;
}

.director-workspace {
  display: grid;
  gap: 18px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.director-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.director-topbar h1 {
  margin: 16px 0 10px;
  color: #dedbd3;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.director-topbar p {
  max-width: 760px;
  margin: 0;
  color: #bfc3c7;
  line-height: 1.55;
}

.director-actions,
.panel-actions,
.split {
  display: flex;
  gap: 10px;
}

.director-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.director-metric,
.director-panel {
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.director-metric {
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.director-metric:hover,
.director-panel:hover {
  border-color: rgba(229, 183, 99, 0.24);
}

.director-metric:hover {
  transform: translateY(-3px);
}

.director-metric strong {
  display: block;
  color: #d9a84f;
  font-size: 34px;
  line-height: 1;
}

.director-metric span {
  display: block;
  margin-top: 8px;
  color: #dedbd3;
  font-weight: 900;
}

.director-metric p {
  margin: 6px 0 0;
  color: #98a6b7;
  font-size: 13px;
}

.director-grid {
  display: grid;
  gap: 18px;
}

.director-grid.two {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

.director-grid.profile-operator-stack {
  grid-template-columns: minmax(0, 1fr);
}

.director-panel {
  padding: 20px;
  transition: border-color 180ms ease;
}

.director-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.director-panel-head span {
  color: #d9a84f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.director-panel-head h2 {
  margin: 6px 0 0;
  color: #dedbd3;
  font-size: 24px;
  line-height: 1.15;
}

.director-form {
  display: grid;
  gap: 12px;
}

.profile-form {
  grid-template-columns: 160px 1fr 1fr 1fr auto;
  margin-bottom: 16px;
}

.operator-form {
  grid-template-columns: 1fr 1fr 140px;
}

.operator-form button {
  grid-column: 1 / -1;
}

.director-form label {
  color: #dedbd3;
  font-weight: 800;
}

.director-form input,
.director-form select,
.director-form textarea {
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.director-form textarea {
  min-height: 108px;
}

.director-form input:focus,
.director-form select:focus,
.director-form textarea:focus {
  outline: none;
  border-color: rgba(229, 183, 99, 0.48);
  background: rgba(16, 18, 20, 0.76);
  box-shadow: 0 0 0 3px rgba(229, 183, 99, 0.12);
}

.director-form button,
.panel-actions button,
.director-actions button {
  min-height: 42px;
  border-radius: 6px;
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.director-form button:hover,
.panel-actions button:hover,
.director-actions button:hover {
  background: #e5b763;
  box-shadow: 0 18px 42px rgba(217, 168, 79, 0.18);
  transform: translateY(-2px);
}

.ghost-dark {
  border: 1px solid rgba(216, 222, 216, 0.14);
  background: rgba(216, 222, 216, 0.06) !important;
  color: #dedbd3 !important;
}

.ghost-dark:hover {
  background: rgba(229, 183, 99, 0.1) !important;
}

.danger-dark {
  background: rgba(228, 111, 111, 0.76) !important;
  color: #151010 !important;
}

.danger-dark:hover {
  background: #e46f6f !important;
  box-shadow: 0 16px 34px rgba(228, 111, 111, 0.18) !important;
}

.small-button {
  min-height: 32px !important;
  padding: 0 10px;
  font-size: 12px;
}

.director-table-wrap {
  overflow-x: auto;
}

#profiles {
  min-width: 0;
  overflow: hidden;
}

#profiles .profile-form {
  grid-template-columns: 145px repeat(3, minmax(0, 1fr)) 118px;
}

#profiles .profile-form > * {
  min-width: 0;
  width: 100%;
}

#profiles .director-table-wrap {
  max-height: min(66vh, 680px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

#profiles .director-table-wrap::-webkit-scrollbar {
  display: none;
}

#profiles .director-table {
  table-layout: fixed;
}

#profiles .director-table th,
#profiles .director-table td {
  padding: 9px 7px;
  overflow-wrap: anywhere;
}

#profiles .director-table th:nth-child(1) { width: 10%; }
#profiles .director-table th:nth-child(2) { width: 11%; }
#profiles .director-table th:nth-child(3) { width: 22%; }
#profiles .director-table th:nth-child(4) { width: 13%; }
#profiles .director-table th:nth-child(5) { width: 12%; }
#profiles .director-table th:nth-child(6) { width: 13%; }
#profiles .director-table th:nth-child(7) { width: 13%; }
#profiles .director-table th:nth-child(8) { width: 72px; }

#profiles .table-select,
#profiles .table-input {
  min-width: 0;
  padding-inline: 6px;
}

#profiles .table-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 6px;
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  font-size: 13px;
}

#profiles .profile-children-select,
#profiles .profile-city-input {
  width: 100%;
}

#profiles .table-actions {
  display: grid;
  gap: 6px;
}

#profiles .table-actions .small-button {
  width: 100%;
  min-width: 0;
  padding-inline: 5px;
  font-size: 11px;
}

.director-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.director-table th,
.director-table td {
  border-bottom: 1px solid rgba(216, 222, 216, 0.1);
  padding: 11px 8px;
  color: #bfc3c7;
  text-align: left;
  vertical-align: middle;
}

.director-table th {
  color: #98a6b7;
  font-weight: 800;
}

.table-select {
  width: min(220px, 100%);
  min-height: 34px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 6px;
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  padding: 6px 8px;
}

.operator-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.operator-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 12px;
}

.operator-card strong,
.operator-card span {
  display: block;
}

.operator-card strong {
  color: #dedbd3;
}

.operator-card span {
  color: #98a6b7;
  font-size: 13px;
}

.operator-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-note {
  margin: -6px 0 16px;
  color: #98a6b7;
  font-size: 14px;
}

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

.partner-admin-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.partner-admin-status {
  margin-top: 12px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 12px;
  background: rgba(12, 14, 16, 0.28);
  color: #aeb8c4;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.partner-admin-status.connected {
  border-color: rgba(102, 210, 143, 0.35);
  background: rgba(102, 210, 143, 0.08);
  color: #bdebcf;
}

.partner-admin-status strong {
  color: #dedbd3;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.partner-admin-status span {
  color: inherit;
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.partner-admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.balance-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 14px;
}

.balance-card strong,
.balance-card span,
.balance-card b,
.balance-card em {
  display: block;
}

.balance-card strong,
.balance-card b {
  color: #dedbd3;
}

.balance-card b {
  color: #d9a84f;
  font-size: 20px;
  text-align: right;
}

.balance-card span,
.balance-card em {
  color: #98a6b7;
  font-size: 13px;
  font-style: normal;
}

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

.site-toggle-row label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 0 12px;
  cursor: pointer;
}

.site-toggle-row input {
  position: absolute;
  opacity: 0;
}

.site-toggle-row span {
  color: #98a6b7;
  font-weight: 900;
}

.site-toggle-row label:has(input:checked) {
  border-color: rgba(229, 183, 99, 0.36);
  background: rgba(229, 183, 99, 0.08);
}

.site-toggle-row label:has(input:checked) span {
  color: #d9a84f;
}

.brand span,
.topbar p,
.panel p,
.empty span,
.site-status span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.sidebar .brand span,
.sidebar .site-status span {
  color: #aab6ca;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  color: #dbe4f5;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 12px;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-status {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.site-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
}

.workspace {
  padding: 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar h1,
.panel h2 {
  margin: 0 0 4px;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

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

.form-row {
  grid-template-columns: 150px 1fr 1fr 1fr auto;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #edf2ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.badge.green {
  background: #e4f8ed;
  color: var(--green);
}

.badge.amber {
  background: #fff4d9;
  color: var(--amber);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.check input {
  width: auto;
  min-height: auto;
}

.queue-list,
.connector-grid {
  display: grid;
  gap: 10px;
}

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

.queue-item,
.connector {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.queue-item header,
.connector header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.queue-item p,
.connector p {
  margin: 0;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.dashboard-page .badge {
  background: rgba(216, 222, 216, 0.08);
  color: #bfc3c7;
}

.dashboard-page .badge.green {
  background: rgba(102, 210, 143, 0.12);
  color: #66d28f;
}

.dashboard-page .badge.amber {
  background: rgba(229, 183, 99, 0.12);
  color: #e5b763;
}

.dashboard-page .badge.danger-badge {
  background: rgba(160, 72, 72, 0.18);
  color: #e18b8b;
}

.dashboard-page .dark-badge {
  border: 1px solid rgba(216, 222, 216, 0.1);
  background: rgba(16, 18, 20, 0.34);
  color: #bfc3c7;
}

.dashboard-page .director-table td em {
  display: block;
  margin-top: 6px;
  max-width: 220px;
  color: #d69b9b;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.35;
}

.dashboard-page .table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dashboard-page .queue-list,
.dashboard-page .connector-grid {
  display: grid;
  gap: 10px;
}

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

.dashboard-page .queue-item,
.dashboard-page .connector {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 14px;
}

.dashboard-page .queue-item header,
.dashboard-page .connector header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-page .queue-item strong,
.dashboard-page .connector strong {
  color: #dedbd3;
}

.dashboard-page .queue-item p,
.dashboard-page .connector p {
  margin: 0;
  color: #98a6b7;
  line-height: 1.45;
}

.dashboard-page .queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-page .dark-empty {
  border-color: rgba(216, 222, 216, 0.14);
  background: rgba(16, 18, 20, 0.24);
}

.dashboard-page .dark-empty strong {
  color: #dedbd3;
}

.dashboard-page .dark-empty span {
  color: #98a6b7;
}

.operator-workspace-page {
  overflow: hidden;
}

.operator-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 12px;
  width: min(1460px, calc(100% - 44px));
  height: calc(100vh - 44px);
  margin: 22px auto;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.operator-rail,
.operator-center,
.operator-context-card,
.operator-tabs,
.operator-pane {
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.operator-rail {
  min-height: 0;
  padding: 15px;
  overflow: hidden;
}

.operator-center {
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 15px;
  overflow: visible;
}

.operator-worktop {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(170px, 1fr);
  grid-template-areas:
    ". invite-title invite-total"
    "invite-actions invite-actions invite-actions";
  gap: 12px 16px;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid rgba(229, 183, 99, 0.2);
  padding-bottom: 14px;
}

.operator-worktop h1 {
  margin: 14px 0 8px;
  color: #dedbd3;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.operator-worktop p,
.operator-context-card p {
  margin: 0;
  color: #bfc3c7;
  line-height: 1.5;
}

.operator-panel-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(229, 183, 99, 0.22);
  border-radius: 999px;
  padding: 0 9px;
  color: #d9a84f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: 1px solid rgba(229, 183, 99, 0.28);
  border-radius: 999px;
  background: rgba(16, 18, 20, 0.42);
  color: #d9a84f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.operator-back-link:hover {
  border-color: rgba(229, 183, 99, 0.55);
  background: rgba(229, 183, 99, 0.11);
  transform: translateX(-2px);
}

.operator-worktop-title {
  grid-area: invite-title;
  display: grid;
  align-items: center;
  justify-self: center;
  min-height: 24px;
  text-align: center;
}

.operator-worktop-title span {
  color: #d9a84f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.operator-worktop-actions {
  grid-area: invite-actions;
  display: grid;
  grid-template-columns: minmax(116px, 1fr) minmax(118px, 1.08fr) minmax(52px, 0.48fr) minmax(96px, 0.9fr) minmax(96px, 0.9fr) minmax(76px, 0.68fr);
  align-items: center;
  gap: clamp(8px, 1.5vw, 18px);
  justify-self: stretch;
  width: min(100%, 820px);
  margin: 0 auto;
}

.operator-page-nav a,
.operator-page-nav button,
.operator-worktop-actions button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 18, 20, 0.52), rgba(29, 29, 34, 0.34)),
    radial-gradient(circle at 100% 0%, rgba(229, 183, 99, 0.05), transparent 42%);
  color: #dedbd3;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.operator-page-nav a::before,
.operator-page-nav button::before,
.operator-worktop-actions button::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 168, 79, 0.95), rgba(170, 182, 196, 0.75));
  transition: width 280ms ease;
}

.operator-page-nav a:hover,
.operator-page-nav button:hover,
.operator-worktop-actions button:hover {
  border-color: rgba(229, 183, 99, 0.28);
  background-color: rgba(229, 183, 99, 0.08);
  transform: translateX(3px);
}

.operator-page-nav a:hover::before,
.operator-page-nav button:hover::before,
.operator-worktop-actions button:hover::before {
  width: 100%;
}

.operator-worktop-actions #generateInviteDrafts {
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
}

.operator-worktop-actions #translateAllInviteDrafts {
  min-width: 0;
}

.operator-worktop-actions #startInviteSending {
  border-color: rgba(102, 210, 143, 0.42);
  background: rgba(67, 173, 108, 0.86);
  color: #07140c;
}

.operator-worktop-actions #stopInviteSending,
.operator-worktop-actions #stopInviteSending.is-stopping {
  border-color: rgba(232, 107, 107, 0.46);
  background: rgba(190, 72, 72, 0.86);
  color: #fff;
}

.operator-worktop-actions #clearInviteDrafts {
  background: rgba(16, 18, 20, 0.46);
  color: #d9a84f;
}

.operator-select-all-switch {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 18, 20, 0.52), rgba(29, 29, 34, 0.34)),
    radial-gradient(circle at 100% 0%, rgba(102, 210, 143, 0.07), transparent 42%);
  color: #dedbd3;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.operator-select-all-switch:hover {
  border-color: rgba(229, 183, 99, 0.28);
  background-color: rgba(229, 183, 99, 0.08);
  transform: translateX(3px);
}

.operator-select-all-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.operator-select-all-switch span {
  position: relative;
  width: 42px;
  height: 22px;
  border: 1px solid rgba(216, 222, 216, 0.14);
  border-radius: 999px;
  background: rgba(72, 80, 88, 0.52);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.34);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.operator-select-all-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #aab6c4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, background-color 180ms ease;
}

.operator-select-all-switch input:checked + span {
  border-color: rgba(102, 210, 143, 0.56);
  background: rgba(67, 173, 108, 0.72);
  box-shadow: 0 0 18px rgba(102, 210, 143, 0.2);
}

.operator-select-all-switch input:checked + span::after {
  background: #eef8ef;
  transform: translateX(20px);
}

.operator-select-all-switch input:disabled + span,
.operator-select-all-switch input:disabled ~ b {
  opacity: 0.48;
}

.operator-select-all-switch b {
  overflow: hidden;
  color: #dedbd3;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-center-profile-board {
  min-height: 0;
  overflow: hidden;
}

.operator-center-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-center-profile-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-center-profile-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(19, 24, 22, 0.68), rgba(16, 18, 20, 0.54)),
    radial-gradient(circle at 100% 0%, rgba(102, 210, 143, 0.12), transparent 38%);
  padding: 10px;
  cursor: grab;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.operator-center-profile-card:hover {
  border-color: rgba(229, 183, 99, 0.34);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.operator-center-profile-card.is-dragging {
  cursor: grabbing;
  opacity: 0.46;
  transform: scale(0.985);
}

.operator-center-profile-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(229, 183, 99, 0.34);
  border-radius: 50%;
  background: rgba(229, 183, 99, 0.08);
  color: #d9a84f;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
}

.operator-center-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-center-profile-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.operator-center-profile-info strong {
  overflow: hidden;
  color: #dedbd3;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-center-profile-info em {
  overflow: hidden;
  color: #aab6c4;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-summary-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.08), transparent 34%);
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.operator-summary-card:hover {
  border-color: rgba(229, 183, 99, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.operator-summary-card > span {
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-summary-card h2 {
  margin: -8px 0 0;
  color: #dedbd3;
  font-size: 28px;
  line-height: 1.1;
}

.operator-summary-stats {
  display: grid;
  gap: 10px;
}

.operator-summary-stats article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 12px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.operator-summary-stats article:hover {
  background: rgba(229, 183, 99, 0.08);
  transform: translateX(-3px);
}

.operator-summary-stats strong {
  color: #d9a84f;
  font-size: 30px;
  line-height: 1;
}

.operator-summary-stats em {
  color: #98a6b7;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.operator-empty-workspace {
  min-height: 0;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.24);
  padding: 12px;
}

.operator-start-panel {
  display: grid;
  place-items: center;
  min-height: 0;
}

.operator-start-placeholder {
  width: min(520px, 72%);
  min-height: 240px;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 18, 20, 0.2), rgba(29, 29, 34, 0.18)),
    radial-gradient(circle at 50% 0%, rgba(229, 183, 99, 0.05), transparent 44%);
  opacity: 0.55;
}

.operator-invite-workspace {
  display: grid;
  grid-template-rows: minmax(190px, 1fr);
  gap: 14px;
  min-height: 0;
}

.operator-invite-composer,
.operator-invite-board {
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.operator-invite-composer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
}

.operator-invite-composer-head,
.operator-invite-profile-top,
.operator-invite-draft-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operator-invite-composer-head div:first-child {
  display: grid;
  gap: 5px;
}

.operator-invite-composer-head span,
.operator-invite-draft-card header span {
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-invite-composer-head strong {
  color: #dedbd3;
  font-size: 22px;
  line-height: 1;
}

.operator-invite-composer textarea {
  min-height: 96px;
  max-height: 220px;
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  overflow-y: auto;
  resize: none;
  outline: none;
  box-shadow: none;
}

.operator-invite-composer textarea:focus,
.operator-invite-composer textarea:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: rgba(229, 183, 99, 0.3);
}

.operator-invite-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.operator-invite-actions button {
  position: relative;
  min-width: 92px;
  min-height: 34px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 10px;
  background: rgba(16, 18, 20, 0.08);
  color: #dbe4f5;
  font-weight: 900;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.operator-invite-actions button:hover {
  border-color: rgba(229, 183, 99, 0.42);
  color: #ffe0a0;
  box-shadow: inset 0 -2px 0 rgba(229, 183, 99, 0.72);
  transform: translateY(-1px);
}

.operator-invite-actions button:first-child {
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
}

.operator-invite-actions #startInviteSending {
  border-color: rgba(102, 210, 143, 0.42);
  background: rgba(67, 173, 108, 0.86);
  color: #07140c;
}

.operator-invite-actions #startInviteSending.is-stopping {
  border-color: rgba(232, 107, 107, 0.46);
  background: rgba(190, 72, 72, 0.86);
  color: #fff;
}

#translateAllInviteDrafts {
  min-width: 72px;
}

.operator-invite-actions button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
}

.operator-invite-actions button.is-loading span {
  display: inline-block;
  animation: inviteButtonWave 1450ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--i) * 75ms);
}

.operator-invite-campaign-status {
  min-height: 20px;
  color: #98a6b7;
  font-size: 12px;
  font-weight: 800;
}

.operator-invite-translate-result {
  max-height: 110px;
  font-size: 12px;
}

@keyframes inviteButtonWave {
  0%,
  75%,
  100% {
    transform: translateY(0);
  }

  18% {
    transform: translateY(-5px);
  }

  34% {
    transform: translateY(2px);
  }
}

.operator-invite-board {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.operator-invite-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 100%;
  color: #98a6b7;
  text-align: center;
}

.operator-invite-empty strong,
.operator-invite-empty span {
  display: block;
}

.operator-invite-empty strong {
  color: #dedbd3;
  font-size: 16px;
}

.operator-invite-empty span {
  max-width: 320px;
  color: #98a6b7;
  font-size: 13px;
  font-weight: 800;
}

.operator-invite-draft-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 12px;
}

.operator-invite-draft-card header strong {
  min-width: 0;
  color: #dedbd3;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-invite-draft-card header em {
  min-width: 26px;
  border: 1px solid rgba(229, 183, 99, 0.22);
  border-radius: 999px;
  color: #d9a84f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.operator-invite-draft-card p {
  margin: 0;
  color: #c4ccd5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.operator-invite-draft-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.operator-invite-draft-card footer span {
  color: #98a6b7;
  font-size: 12px;
  font-weight: 800;
}

.operator-invite-draft-card footer button {
  min-height: 34px;
  border: 1px solid rgba(229, 183, 99, 0.3);
  border-radius: 8px;
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
  font-weight: 900;
}

.operator-invite-draft-card footer button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.operator-invite-site-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.operator-invite-site-switcher button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  padding: 0 10px;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.operator-invite-site-switcher button:hover,
.operator-invite-site-switcher button.active {
  border-color: rgba(229, 183, 99, 0.28);
  background: rgba(229, 183, 99, 0.09);
  transform: translateY(-2px);
}

.operator-invite-site-switcher strong {
  color: #d9a84f;
}

.operator-romance-profile-count {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(229, 183, 99, 0.22);
  border-radius: 8px;
  background: rgba(229, 183, 99, 0.07);
  color: #dedbd3;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.operator-romance-profile-count strong {
  color: #d9a84f;
}

.operator-invite-profile-list {
  display: grid;
  align-content: start;
  gap: 7px;
  padding-top: 3px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-invite-profile-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-invite-profile-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 8px 9px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.operator-invite-profile-card:hover {
  border-color: rgba(229, 183, 99, 0.26);
  background: rgba(229, 183, 99, 0.07);
  transform: translateY(-2px);
}

.operator-invite-profile-card.selected {
  border-color: rgba(102, 210, 143, 0.74);
  background:
    linear-gradient(135deg, rgba(102, 210, 143, 0.13), rgba(16, 18, 20, 0.44)),
    rgba(16, 18, 20, 0.36);
  box-shadow:
    0 0 0 1px rgba(102, 210, 143, 0.28),
    0 0 22px rgba(102, 210, 143, 0.16);
  opacity: 1;
}

.operator-invite-profile-card.duplicate-draft,
.operator-invite-profile-card.duplicate-draft.selected,
.operator-invite-profile-card.duplicate-draft.not-selected,
.operator-invite-profile-card.similar-draft,
.operator-invite-profile-card.similar-draft.selected,
.operator-invite-profile-card.similar-draft.not-selected {
  border-color: rgba(255, 43, 43, 0.98);
  background:
    linear-gradient(135deg, rgba(255, 43, 43, 0.2), rgba(45, 8, 8, 0.72)),
    rgba(24, 8, 8, 0.88);
  box-shadow:
    0 0 0 2px rgba(255, 43, 43, 0.58),
    0 0 24px rgba(255, 43, 43, 0.58),
    inset 0 0 18px rgba(255, 43, 43, 0.14);
  filter: none;
  opacity: 1;
}

.operator-invite-profile-card.duplicate-draft textarea[data-invite-draft-text],
.operator-invite-profile-card.similar-draft textarea[data-invite-draft-text] {
  border-color: rgba(255, 80, 80, 0.5);
  background: rgba(46, 10, 10, 0.62);
  color: #ffdede;
}

.operator-invite-profile-card.not-selected {
  border-color: rgba(216, 222, 216, 0.06);
  background: rgba(7, 8, 10, 0.44);
  filter: saturate(0.65);
  opacity: 0.48;
}

.operator-invite-profile-card.not-selected:hover {
  opacity: 0.72;
}

.operator-invite-profile-card.disconnected {
  cursor: not-allowed;
}

.operator-invite-status-lamp {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 1px solid rgba(152, 166, 183, 0.28);
  border-radius: 50%;
  background: rgba(77, 84, 91, 0.72);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.operator-invite-status-lamp.is-sending {
  border-color: rgba(134, 255, 177, 0.92);
  background: #66d28f;
  box-shadow:
    0 0 5px rgba(102, 210, 143, 0.95),
    0 0 16px rgba(102, 210, 143, 0.72),
    0 0 30px rgba(102, 210, 143, 0.38);
  animation: inviteStatusPulse 1.5s ease-in-out infinite;
}

@keyframes inviteStatusPulse {
  50% {
    box-shadow:
      0 0 7px rgba(102, 210, 143, 1),
      0 0 22px rgba(102, 210, 143, 0.84),
      0 0 38px rgba(102, 210, 143, 0.46);
  }
}

.operator-invite-profile-card[aria-disabled="true"] {
  cursor: wait;
}

.operator-invite-profile-card .operator-invite-profile-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operator-invite-profile-card .profile-letter-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.operator-invite-profile-card .profile-letter-meta {
  flex: 1;
}

.operator-invite-profile-card .profile-letter-meta strong {
  font-size: 12px;
}

.operator-invite-profile-card .profile-letter-site {
  font-size: 10px;
}

.operator-invite-profile-card .profile-letter-meta em {
  font-size: 12px;
}

.operator-invite-card-generate {
  min-width: 30px;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid rgba(229, 183, 99, 0.34);
  border-radius: 999px;
  background: rgba(229, 183, 99, 0.12);
  color: #f0c979;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.operator-invite-card-generate:hover {
  border-color: rgba(229, 183, 99, 0.64);
  background: rgba(229, 183, 99, 0.2);
  color: #ffe0a0;
}

.operator-invite-card-generate:disabled {
  opacity: 0.55;
  cursor: wait;
}

.operator-invite-card-generate.is-loading {
  color: #111316;
  background: #d9a84f;
}

.operator-invite-profile-count {
  justify-self: end;
  min-width: 22px;
  border: 1px solid rgba(229, 183, 99, 0.18);
  border-radius: 999px;
  background: rgba(229, 183, 99, 0.08);
  color: #f0d08a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 8px;
}

.operator-invite-counter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(229, 183, 99, 0.22);
  border-radius: 999px;
  color: #d9a84f;
  font-size: 13px;
  line-height: 1;
}

.operator-invite-draft-box {
  display: grid;
  gap: 4px;
}

.operator-invite-profile-card textarea[data-invite-draft-text] {
  width: 100%;
  min-height: 36px;
  max-height: 58px;
  margin: 0;
  border: 1px solid rgba(216, 222, 216, 0.08);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.32);
  color: #aeb8c5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 7px;
  resize: none;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-invite-profile-card textarea[data-invite-draft-text]::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-invite-profile-card textarea[data-invite-draft-text]:focus {
  border-color: rgba(229, 183, 99, 0.42);
  outline: none;
  box-shadow: 0 0 0 1px rgba(229, 183, 99, 0.16);
}

.operator-invite-profile-card textarea[data-invite-draft-text][readonly] {
  color: #f0d9aa;
}

.operator-invite-draft-translators {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  min-height: 12px;
}

.operator-invite-draft-translators button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3d59a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.operator-invite-draft-translators button:hover {
  color: #ffd98d;
  text-decoration: underline;
}

.operator-side-actions.single-action {
  grid-template-columns: 1fr;
}

.operator-page-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
}

.operator-page-nav > span {
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.operator-page-nav a,
.operator-page-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 18, 20, 0.52), rgba(29, 29, 34, 0.34)),
    radial-gradient(circle at 100% 0%, rgba(229, 183, 99, 0.05), transparent 42%);
  color: #dedbd3;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.operator-page-nav a::before,
.operator-page-nav button::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 168, 79, 0.95), rgba(170, 182, 196, 0.75));
  transition: width 280ms ease;
}

.operator-page-nav a:hover,
.operator-page-nav button:hover {
  border-color: rgba(229, 183, 99, 0.28);
  background-color: rgba(229, 183, 99, 0.08);
  transform: translateX(3px);
}

.operator-page-nav a:hover::before,
.operator-page-nav button:hover::before {
  width: 100%;
}

.operator-rail-right {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  min-height: 0;
}

.operator-video-rail {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.operator-video-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(21, 23, 26, 0.9), rgba(12, 14, 17, 0.92)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.08), transparent 36%);
  padding: 11px;
  overflow: hidden;
}

.operator-video-panel header {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.operator-video-panel header span {
  color: #d9a84f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-video-panel header strong {
  overflow: hidden;
  color: #dedbd3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-video-local {
  cursor: default;
}

.operator-video-screen {
  min-height: 0;
  position: relative;
  border: 1px solid rgba(216, 222, 216, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(53, 60, 69, 0.28), transparent 60%),
    #080a0d;
  overflow: hidden;
}

.operator-video-screen video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #080a0d;
}

.operator-video-placeholder {
  display: grid;
  place-content: center;
  gap: 7px;
  position: absolute;
  inset: 0;
  color: #98a6b7;
  padding: 14px;
  text-align: center;
}

.operator-video-placeholder[hidden] {
  display: none;
}

.operator-video-placeholder strong {
  color: #dedbd3;
  font-size: 13px;
}

.operator-video-placeholder span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.operator-video-live-indicator {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 9px;
  right: 9px;
  border: 2px solid rgba(8, 10, 13, 0.9);
  border-radius: 50%;
  background: #59616b;
}

.operator-video-live-indicator.is-live {
  background: #66d28f;
  box-shadow: 0 0 12px rgba(102, 210, 143, 0.92);
}

.operator-video-toggle {
  min-height: 34px;
  border: 1px solid rgba(102, 210, 143, 0.42);
  border-radius: 8px;
  background: rgba(67, 173, 108, 0.86);
  color: #07140c;
  font-size: 12px;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.operator-video-broadcast-status {
  position: absolute;
  top: 10px;
  right: 11px;
  max-width: 46%;
  margin: 0;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.72);
  padding: 4px 8px;
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.operator-video-broadcast-status[data-state="checking"] {
  color: #e2b04f;
}

.operator-video-broadcast-status[data-state="live"] {
  color: #55e39a;
  text-shadow: 0 0 10px rgba(85, 227, 154, 0.55);
}

.operator-video-broadcast-status[data-state="error"] {
  color: #ff7777;
}

.operator-video-broadcast-status[data-state="available"] {
  color: #e2b04f;
}

.operator-video-toggle:hover {
  transform: translateY(-1px);
}

.operator-video-toggle.is-stopping {
  border-color: rgba(232, 107, 107, 0.46);
  background: rgba(190, 72, 72, 0.86);
  color: #fff;
}

.operator-rail-right .operator-page-nav {
  min-height: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.operator-rail-right .operator-page-nav > span {
  grid-column: 1 / -1;
}

.operator-rail-right .operator-page-nav a,
.operator-rail-right .operator-page-nav button {
  min-height: 34px;
  font-size: 10px;
}

.operator-online-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.operator-sent-invites-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(216, 222, 216, 0.1);
  padding-top: 8px;
  overflow: hidden;
}

.operator-online-panel .operator-rail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.operator-online-panel .operator-rail-head span,
.operator-online-panel .operator-rail-head strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-online-panel .operator-rail-head button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 28px;
  width: 54px;
  min-width: 0;
  border: 1px solid rgba(229, 183, 99, 0.24);
  border-radius: 7px;
  background: rgba(229, 183, 99, 0.08);
  color: #d9a84f;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operator-online-meta {
  color: #98a6b7;
  font-size: 10px;
  font-weight: 800;
}

.operator-online-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-sent-invites-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-online-list::-webkit-scrollbar,
.operator-sent-invites-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-online-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 5px 7px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.operator-sent-invites-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-sent-invites-meta {
  color: #98a6b7;
  font-size: 10px;
  font-weight: 800;
}

.operator-sent-invite-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(229, 183, 99, 0.14);
  border-radius: 8px;
  background: rgba(229, 183, 99, 0.06);
  padding: 5px 6px;
}

.operator-sent-invite-side {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.operator-sent-invite-side.man {
  justify-content: flex-end;
  text-align: right;
}

.operator-sent-invite-side .operator-online-avatar {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

.operator-sent-invite-side .operator-online-person strong {
  font-size: 9px;
}

.operator-sent-invite-side .operator-online-person em {
  font-size: 8px;
}

.operator-sent-invite-arrow {
  color: #d9a84f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.operator-active-chats-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.operator-chat-profiles-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  min-height: 170px;
  max-height: 34%;
}

.operator-chat-contacts-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  min-height: 170px;
}

.operator-chat-profile-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-chat-profile-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-chat-contact-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-chat-contact-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-chat-profile-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  padding: 7px;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.operator-chat-contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  padding: 7px;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.operator-chat-contact-card:hover,
.operator-chat-contact-card.active {
  border-color: rgba(229, 183, 99, 0.36);
  background: rgba(229, 183, 99, 0.08);
  transform: translateY(-1px);
}

.operator-chat-contact-lamps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  justify-items: center;
}

.contact-lamp {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(216, 222, 216, 0.16);
  background: rgba(152, 166, 183, 0.24);
}

.contact-lamp-active.is-on {
  border-color: rgba(102, 210, 143, 0.9);
  background: #66d28f;
  box-shadow: 0 0 12px rgba(102, 210, 143, 0.88);
}

.contact-lamp-camera.is-on {
  border-color: rgba(184, 117, 255, 0.95);
  background: #b875ff;
  box-shadow: 0 0 12px rgba(184, 117, 255, 0.88);
}

.operator-chat-profile-card:hover,
.operator-chat-profile-card.active {
  border-color: rgba(102, 210, 143, 0.44);
  background: rgba(102, 210, 143, 0.08);
  transform: translateY(-1px);
}

.operator-chat-profile-card.offline {
  opacity: 0.48;
}

.operator-chat-status {
  color: #98a6b7;
  font-size: 11px;
  font-weight: 800;
}

.active-chat-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.active-chat-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.active-chat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  padding: 7px;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.active-chat-card:hover,
.active-chat-card.active {
  border-color: rgba(102, 210, 143, 0.32);
  background: rgba(102, 210, 143, 0.07);
  transform: translateY(-1px);
}

.active-chat-card.needs-reply {
  border-color: rgba(102, 210, 143, 0.52);
  background:
    radial-gradient(circle at 92% 18%, rgba(102, 210, 143, 0.18), transparent 34%),
    rgba(102, 210, 143, 0.08);
  box-shadow: 0 0 18px rgba(102, 210, 143, 0.12);
}

.active-chat-card.needs-reply .operator-online-avatar i {
  background: #66d28f;
  box-shadow: 0 0 10px rgba(102, 210, 143, 0.86);
}

.active-chat-card.closing {
  opacity: 0.62;
}

.active-chat-card.closing .operator-online-avatar i {
  background: #d9a84f;
}

.operator-chat-unread {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #66d28f;
  color: #101412;
  font-size: 10px;
  font-weight: 900;
}

.operator-chat-video-active {
  border: 1px solid rgba(102, 210, 143, 0.42);
  border-radius: 999px;
  background: rgba(102, 210, 143, 0.12);
  color: #66d28f;
  padding: 3px 5px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(102, 210, 143, 0.14);
}

.operator-chat-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.operator-chat-thread {
  display: grid;
  min-height: 0;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.28);
  padding: 0;
  color: #98a6b7;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: auto;
}

.operator-chat-thread::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-chat-thread strong {
  color: #dedbd3;
  font-size: 16px;
}

.operator-chat-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  color: #aab6c7;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.operator-chat-selected {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: left;
}

.operator-chat-selected-thread {
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.operator-chat-selected-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid rgba(216, 222, 216, 0.08);
  background: rgba(16, 18, 20, 0.4);
  padding: 8px 15px;
  position: relative;
  z-index: 1;
}

.operator-chat-party {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.operator-chat-party strong {
  color: #d9a84f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-chat-party-man {
  flex: 1;
}

.operator-chat-head-arrow {
  color: #d9a84f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.operator-chat-head-avatar {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 168, 79, 0.45);
  border-radius: 50%;
  background: rgba(217, 168, 79, 0.1);
  color: #d9a84f;
  font-size: 10px;
  font-weight: 900;
}

.operator-chat-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-chat-man-lines {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operator-chat-man-lines em {
  color: #98a6b7;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-chat-selected p {
  margin: 0;
  color: #c4ccd5;
  line-height: 1.5;
}

.operator-chat-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 14px 15px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-chat-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-chat-message {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: min(78%, 520px);
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 12px;
  padding: 9px 11px;
  user-select: text;
}

.operator-chat-message-translators {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.operator-chat-message .operator-chat-message-translate {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f3d59a !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1 !important;
  cursor: pointer;
}

.operator-chat-message .operator-chat-message-translate:hover {
  color: #ffd98d !important;
  text-decoration: underline;
}

.operator-chat-message.incoming {
  justify-self: start;
  text-align: left;
  border-color: rgba(92, 142, 205, 0.24);
  background:
    linear-gradient(135deg, rgba(28, 38, 53, 0.88), rgba(16, 22, 31, 0.82));
  box-shadow: 0 0 0 1px rgba(92, 142, 205, 0.04);
}

.operator-chat-message.outgoing {
  justify-self: end;
  text-align: right;
  border-color: rgba(229, 183, 99, 0.34);
  background:
    linear-gradient(135deg, rgba(64, 49, 25, 0.9), rgba(37, 30, 21, 0.86));
  box-shadow: 0 0 0 1px rgba(229, 183, 99, 0.05);
}

.operator-chat-message p {
  margin: 0;
  color: #dedbd3;
  font-size: 15px;
  line-height: 1.45;
  user-select: text;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.operator-chat-message-translated {
  color: #f2e8d4;
}

.operator-chat-message-text {
  display: inline;
  color: #dedbd3;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  font-size: inherit;
  line-height: inherit;
  pointer-events: auto;
}

.operator-chat-message-text::selection,
.operator-chat-reply-editor::selection {
  background: rgba(92, 142, 205, 0.45);
  color: #fff;
}

.operator-chat-message .romance-chat-smile {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -5px;
  margin: 0 2px;
}

.operator-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 74px;
  color: #aab6c2;
  font-size: 11px;
  font-weight: 800;
  user-select: none;
}

.operator-chat-message.outgoing .operator-chat-message-meta {
  justify-content: flex-end;
}

.operator-chat-no-history {
  align-self: center;
  justify-self: center;
  color: #98a6b7;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.operator-chat-closed-notice {
  margin: 0 15px 14px;
  border: 1px solid rgba(232, 107, 107, 0.28);
  border-radius: 10px;
  background: rgba(232, 107, 107, 0.08);
  color: #e7b5b5;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.operator-chat-closed-notice strong {
  color: #f2d0d0;
  font-size: inherit;
}

.operator-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.operator-online-card:hover {
  border-color: rgba(102, 210, 143, 0.28);
  background: rgba(102, 210, 143, 0.06);
  transform: translateX(-2px);
}

.operator-rail-right .operator-online-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.operator-rail-right .operator-online-person strong {
  font-size: 10px;
}

.operator-rail-right .operator-online-person em {
  font-size: 8px;
}

.operator-online-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  position: relative;
  border: 1px solid rgba(229, 183, 99, 0.22);
  border-radius: 50%;
  background: rgba(229, 183, 99, 0.08);
}

.operator-online-avatar img,
.operator-online-avatar b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  color: #d9a84f;
  font-size: 9px;
  overflow: hidden;
}

.operator-online-avatar i {
  width: 8px;
  height: 8px;
  position: absolute;
  right: -1px;
  bottom: 0;
  border: 2px solid #1c1d20;
  border-radius: 50%;
  background: #66d28f;
}

.operator-online-person {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.operator-online-person strong,
.operator-online-person em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-online-person strong {
  color: #dedbd3;
  font-size: 11px;
}

.operator-online-person em {
  color: #98a6b7;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.operator-online-camera {
  color: #66d28f;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.operator-online-empty {
  color: #98a6b7;
  padding: 12px 4px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.operator-online-pagination {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.operator-online-pagination button {
  min-width: 0;
  width: 100%;
  height: 25px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 6px;
  background: rgba(16, 18, 20, 0.42);
  color: #98a6b7;
  font-size: 10px;
  font-weight: 900;
}

.operator-online-pagination button.active,
.operator-online-pagination button:hover:not(:disabled) {
  border-color: rgba(229, 183, 99, 0.34);
  background: rgba(229, 183, 99, 0.12);
  color: #d9a84f;
}

.operator-online-pagination button:disabled {
  opacity: 0.35;
}

.operator-modal[hidden] {
  display: none;
}

.operator-modal {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(5, 7, 9, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.operator-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.operator-modal-card {
  display: grid;
  gap: 14px;
  width: min(440px, calc(100vw - 34px));
  position: relative;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.96), rgba(29, 29, 34, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(229, 183, 99, 0.09), transparent 42%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  padding: 20px;
  transform: translateY(12px) scale(0.98);
  transition: transform 160ms ease;
}

.operator-modal.is-open .operator-modal-card {
  transform: translateY(0) scale(1);
}

.operator-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 50%;
  background: rgba(16, 18, 20, 0.7);
  color: #dedbd3;
  font-size: 22px;
  line-height: 1;
}

.operator-modal-close:hover {
  border-color: rgba(229, 183, 99, 0.34);
  color: #d9a84f;
}

.operator-modal-eyebrow {
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-modal-card h2 {
  margin: -8px 44px 2px 0;
  color: #dedbd3;
  font-size: 30px;
  line-height: 1;
}

.operator-profile-detail-modal {
  width: min(1220px, calc(100vw - 110px));
  min-height: auto;
  gap: 14px;
  padding: 20px;
}

.operator-profile-detail-modal h2 {
  font-size: 26px;
}

.operator-profile-modal-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 10px;
  background: rgba(16, 18, 20, 0.42);
  padding: 10px;
}

.operator-profile-modal-summary .operator-center-profile-avatar {
  width: 52px;
  height: 52px;
}

.operator-profile-modal-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.operator-profile-modal-summary strong {
  overflow: hidden;
  color: #dedbd3;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-profile-modal-summary em {
  overflow: hidden;
  color: #aab6c4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-profile-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: 14px;
  min-height: 0;
}

.operator-profile-modal-main {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.operator-profile-modal-editor {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.operator-profile-modal-editor label {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.operator-profile-modal-editor span,
.operator-profile-modal-journal header span {
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-profile-modal-editor input,
.operator-profile-modal-editor textarea {
  width: 100%;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 10px;
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  font-size: 14px;
  line-height: 1.45;
  padding: 13px;
}

.operator-profile-modal-editor input {
  min-height: 44px;
}

.operator-profile-modal-editor textarea {
  min-height: 360px;
  height: min(460px, 56vh);
  max-height: 560px;
  resize: vertical;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-profile-modal-editor textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-profile-modal-editor input:focus,
.operator-profile-modal-editor textarea:focus {
  outline: none;
  border-color: rgba(229, 183, 99, 0.48);
  box-shadow: 0 0 0 3px rgba(229, 183, 99, 0.12);
}

.operator-profile-modal-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.operator-profile-modal-actions button {
  min-width: 86px;
  min-height: 36px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.52);
  color: #dedbd3;
  font-weight: 900;
}

.operator-profile-modal-actions button:first-child {
  border-color: rgba(102, 210, 143, 0.42);
  background: rgba(67, 173, 108, 0.86);
  color: #07140c;
}

.operator-profile-modal-actions button:nth-child(2) {
  border-color: rgba(232, 107, 107, 0.46);
  background: rgba(190, 72, 72, 0.86);
  color: #fff;
}

.operator-profile-modal-actions span {
  overflow: hidden;
  color: #98a6b7;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-profile-modal-journal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: start;
  gap: 10px;
  height: min(460px, 56vh);
  min-height: 360px;
  max-height: 560px;
  margin-top: 204px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(16, 18, 20, 0.5), rgba(24, 26, 30, 0.42)),
    radial-gradient(circle at 100% 0%, rgba(229, 183, 99, 0.06), transparent 42%);
  padding: 14px;
}

.operator-profile-modal-journal header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.operator-profile-modal-journal header strong {
  color: #dedbd3;
  font-size: 18px;
  font-weight: 900;
}

.operator-profile-modal-journal-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operator-profile-modal-journal-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.operator-profile-modal-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  border: 1px dashed rgba(216, 222, 216, 0.12);
  border-radius: 10px;
  color: #98a6b7;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 16px;
}

.operator-profile-sent-recipient {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 10px;
  background: rgba(16, 18, 20, 0.42);
  padding: 10px;
}

.operator-profile-sent-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(229, 183, 99, 0.24);
  border-radius: 50%;
  background: rgba(229, 183, 99, 0.1);
  color: #d9a84f;
  font-size: 13px;
  font-weight: 950;
}

.operator-profile-sent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-profile-sent-recipient div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operator-profile-sent-recipient strong {
  overflow: hidden;
  color: #dedbd3;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-profile-sent-recipient span,
.operator-profile-sent-recipient em {
  overflow: hidden;
  color: #98a6b7;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-profile-sent-recipient p {
  display: -webkit-box;
  margin: 1px 0;
  overflow: hidden;
  color: #c4ccd5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.operator-profile-detail-modal .operator-modal-close {
  display: inline;
  width: auto;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aab6c4;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  box-shadow: none;
  text-shadow: none;
}

.operator-profile-detail-modal .operator-modal-close:hover {
  background: transparent;
  color: #d9a84f;
  box-shadow: none;
  transform: none;
}

@media (max-width: 1100px) {
  .operator-profile-detail-modal {
    width: min(860px, calc(100vw - 34px));
  }
}

.operator-settings-grid {
  display: grid;
  gap: 10px;
}

.operator-settings-grid button {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid rgba(229, 183, 99, 0.18);
  border-radius: 10px;
  background: rgba(16, 18, 20, 0.46);
  color: #dedbd3;
  padding: 14px;
  text-align: left;
}

.operator-settings-grid button:hover {
  border-color: rgba(229, 183, 99, 0.38);
  background: rgba(229, 183, 99, 0.08);
}

.operator-settings-grid button span {
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-settings-grid button strong {
  font-size: 20px;
}

.operator-settings-grid button em {
  color: #98a6b7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.operator-gemini-field {
  display: grid;
  gap: 6px;
}

.operator-gemini-field span {
  color: #98a6b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.operator-gemini-field input {
  min-height: 40px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.46);
  color: #dedbd3;
  padding: 0 12px;
  outline: none;
  box-shadow: none;
}

.operator-gemini-field input:focus,
.operator-gemini-field input:focus-visible {
  border-color: rgba(229, 183, 99, 0.28);
  outline: none;
  box-shadow: none;
}

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

.operator-gemini-actions button {
  min-width: 92px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(229, 183, 99, 0.26);
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
  font-weight: 900;
}

.operator-chat-workspace,
.operator-letter-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

.operator-chat-workspace textarea,
.operator-chat-reply-editor,
.operator-letter-workspace textarea {
  min-height: 72px;
  max-height: 220px;
  align-self: end;
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
  overflow-y: auto;
  resize: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}

.operator-chat-reply-editor {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.operator-chat-reply-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(222, 219, 211, 0.48);
  pointer-events: none;
}

.operator-chat-workspace textarea:focus,
.operator-chat-workspace textarea:focus-visible,
.operator-chat-reply-editor:focus,
.operator-chat-reply-editor:focus-visible,
.operator-letter-workspace textarea:focus,
.operator-letter-workspace textarea:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: rgba(229, 183, 99, 0.3);
}

.operator-chat-workspace button,
.operator-letter-workspace button {
  min-width: 118px;
  min-height: 38px;
  border-radius: 8px;
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
  font-weight: 900;
}

.operator-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.operator-reply-actions button {
  min-width: 112px;
}

.operator-reply-actions button:first-child,
.operator-reply-actions button:nth-child(2) {
  border: 1px solid rgba(229, 183, 99, 0.26);
  background: rgba(16, 18, 20, 0.46);
  color: #d9a84f;
}

.operator-translate-result {
  max-height: 150px;
  overflow: auto;
  border: 1px solid rgba(229, 183, 99, 0.24);
  border-radius: 8px;
  background: rgba(229, 183, 99, 0.08);
  color: #dedbd3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.operator-translate-result strong {
  display: block;
  margin-bottom: 6px;
  color: #d9a84f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-translate-result p {
  margin: 0;
  white-space: pre-wrap;
}

.operator-translate-result[hidden] {
  display: none;
}

.operator-letter-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.operator-letter-view {
  display: grid;
  place-items: center;
  min-height: 0;
  color: #dedbd3;
  font-weight: 500;
  overflow: auto;
}

.operator-letter-filter {
  position: relative;
  z-index: 4;
}

.operator-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(229, 183, 99, 0.2);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.44);
  color: #dedbd3;
  padding: 0 12px;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.operator-filter-toggle:hover,
.operator-filter-toggle[aria-expanded="true"] {
  border-color: rgba(229, 183, 99, 0.38);
  background: rgba(229, 183, 99, 0.08);
  transform: translateY(-1px);
}

.operator-filter-toggle span,
.operator-filter-menu span {
  color: #dedbd3;
  font-size: 13px;
  font-weight: 900;
}

.operator-filter-toggle strong,
.operator-filter-menu strong {
  color: #d9a84f;
  font-size: 14px;
  line-height: 1;
}

.operator-filter-menu {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.98), rgba(29, 29, 34, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(229, 183, 99, 0.08), transparent 38%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  padding: 8px;
}

.operator-filter-menu[hidden] {
  display: none;
}

.operator-filter-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 0 9px;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.operator-filter-menu button:hover,
.operator-filter-menu button.active {
  border-color: rgba(229, 183, 99, 0.24);
  background: rgba(229, 183, 99, 0.08);
  transform: translateX(2px);
}

.operator-empty-small {
  border: 1px dashed rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  color: #98a6b7;
  font-size: 13px;
  font-weight: 800;
  padding: 14px;
  text-align: center;
}

.letter-item {
  text-align: left;
}

.operator-sync-status {
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.32);
  color: #98a6b7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  padding: 10px 12px;
}

.operator-status-list {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.28);
  padding: 12px;
}

.operator-status-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(216, 222, 216, 0.09);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 10px 12px;
}

.operator-status-list span {
  color: #98a6b7;
  font-size: 12px;
  font-weight: 900;
}

.operator-status-list strong {
  color: #d9a84f;
  font-size: 18px;
  line-height: 1;
  text-align: right;
}

.operator-status-list strong.sync-wave {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0;
}

.operator-status-list strong.sync-wave span {
  display: inline-block;
  animation: syncLetterWave 1700ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--i) * 90ms);
  transform-origin: 50% 100%;
}

@keyframes syncLetterWave {
  0%,
  78%,
  100% {
    color: #d9a84f;
    transform: translateY(0);
    opacity: 0.92;
  }

  30% {
    color: #f2d89d;
    transform: translateY(-7px) scale(1.04);
    opacity: 1;
  }

  45% {
    color: #f7e5bd;
    transform: translateY(-3px) scale(1.01);
    opacity: 1;
  }

  58% {
    color: #d9a84f;
    transform: translateY(1px) scale(0.99);
    opacity: 0.96;
  }
}

.compact-letter-list {
  gap: 8px;
  padding-top: 12px;
}

.compact-letter-item {
  gap: 4px;
  min-height: 72px;
  padding: 10px 11px;
}

.compact-letter-item span {
  font-size: 13px;
  line-height: 1.15;
}

.compact-letter-item em,
.compact-letter-item b {
  font-size: 11px;
  line-height: 1.25;
}

.compact-letter-item b {
  color: #d9a84f;
}

.profile-letter-item {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  overflow: hidden;
}

.profile-letter-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(229, 183, 99, 0.88), rgba(229, 183, 99, 0.88)) top left / 0 1px no-repeat,
    linear-gradient(180deg, rgba(229, 183, 99, 0.88), rgba(229, 183, 99, 0.88)) top right / 1px 0 no-repeat,
    linear-gradient(270deg, rgba(229, 183, 99, 0.88), rgba(229, 183, 99, 0.88)) bottom right / 0 1px no-repeat,
    linear-gradient(0deg, rgba(229, 183, 99, 0.88), rgba(229, 183, 99, 0.88)) bottom left / 1px 0 no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: background-size 520ms ease, opacity 180ms ease;
}

.profile-letter-item:hover::after,
.profile-letter-item.active::after {
  background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
  opacity: 1;
}

.profile-letter-item > * {
  position: relative;
  z-index: 1;
}

.profile-letter-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(229, 183, 99, 0.26);
  border-radius: 999px;
  background: rgba(229, 183, 99, 0.12);
}

.profile-letter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-letter-avatar b {
  color: #e5b763;
  font-size: 13px;
  line-height: 1;
}

.profile-letter-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-letter-meta strong {
  overflow: hidden;
  color: #dedbd3;
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-letter-site {
  color: #aeb8c5;
  font-size: 12px;
  font-weight: 800;
}

.profile-letter-meta em {
  color: #d9a84f;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.operator-letter-detail {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 100%;
  align-content: start;
  border: 0;
  background: transparent;
  padding: 4px 6px 10px;
}

.operator-letter-detail span {
  color: #d9a84f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-letter-detail h2 {
  margin: 0;
  color: #dedbd3;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.22;
}

.operator-letter-detail strong {
  color: #c4ccd5;
  font-size: 13px;
  font-weight: 700;
}

.operator-letter-detail p {
  margin: 0;
  color: #d8ded8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-wrap;
}

.operator-letter-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.operator-letter-attachments a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 216, 0.12);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.42);
  transition: border-color 180ms ease, transform 180ms ease;
}

.operator-letter-attachments a:hover {
  border-color: rgba(229, 183, 99, 0.42);
  transform: translateY(-2px);
}

.operator-letter-attachments img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.operator-message-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  border: 1px solid rgba(216, 222, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.78), rgba(29, 29, 34, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(229, 183, 99, 0.06), transparent 34%);
  padding: 16px;
}

.operator-message-panel[hidden] {
  display: none;
}

.operator-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.operator-side-actions button {
  min-height: 56px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.operator-side-actions button:hover {
  border-color: rgba(229, 183, 99, 0.28);
  background: rgba(229, 183, 99, 0.09);
  transform: translateY(-2px);
}

.operator-rail-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.operator-dashboard-profile-sites {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.operator-rail-head,
.operator-context-card,
.operator-pane-head,
.conversation-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.operator-rail-head span,
.operator-context-card span,
.operator-pane-head span {
  color: #d9a84f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-rail-head strong {
  color: #dedbd3;
  font-size: 20px;
}

.active-chat-list,
.assigned-profile-list,
.conversation-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.profile-switch,
.assigned-profile {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  padding: 12px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.profile-switch:hover,
.profile-switch.active,
.assigned-profile:hover,
.assigned-profile.active {
  border-color: rgba(229, 183, 99, 0.32);
  background: rgba(229, 183, 99, 0.08);
  transform: translateY(-1px);
}

.profile-switch span,
.assigned-profile span {
  color: #dedbd3;
  font-weight: 900;
}

.profile-switch em,
.assigned-profile em {
  color: #98a6b7;
  font-size: 13px;
  font-style: normal;
}

.profile-switch b {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(229, 183, 99, 0.16);
  color: #e5b763;
  font-size: 12px;
}

.operator-context-card {
  padding: 16px;
}

.operator-context-card h2 {
  margin: 8px 0 6px;
  color: #dedbd3;
  font-size: 28px;
}

.operator-status-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.operator-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
}

.operator-tabs button {
  min-height: 42px;
  border-radius: 6px;
  background: transparent;
  color: #98a6b7;
  font-weight: 900;
}

.operator-tabs button.active,
.operator-tabs button:hover {
  background: rgba(229, 183, 99, 0.12);
  color: #dedbd3;
}

.operator-work-area {
  min-height: 0;
  overflow: hidden;
}

.operator-pane {
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding: 16px;
}

.operator-pane.active {
  display: grid;
}

.operator-pane-head h2 {
  margin: 6px 0 0;
  color: #dedbd3;
  font-size: 24px;
}

.conversation-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.36);
  padding: 12px;
}

.conversation-item strong {
  color: #dedbd3;
}

.conversation-item p {
  margin: 0;
  color: #bfc3c7;
  line-height: 1.5;
}

.operator-reply-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.operator-reply-box textarea {
  min-height: 76px;
  border-color: rgba(216, 222, 216, 0.12);
  background: rgba(16, 18, 20, 0.58);
  color: #dedbd3;
}

.operator-reply-box button {
  align-self: stretch;
  min-width: 150px;
  background: rgba(217, 168, 79, 0.72);
  color: #101412;
  font-weight: 900;
}

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

.template-list button {
  justify-content: flex-start;
  min-height: 40px;
  border: 1px solid rgba(216, 222, 216, 0.1);
  background: rgba(16, 18, 20, 0.36);
  color: #dedbd3;
  text-align: left;
}

@media (max-width: 1100px) {
  #profiles .profile-form {
    grid-template-columns: 1fr;
  }

  .operator-workspace-page {
    overflow: auto;
  }

  .operator-workbench {
    grid-template-columns: 1fr;
    height: auto;
  }

  .operator-rail,
  .operator-center {
    min-height: auto;
    overflow: visible;
  }

  .operator-center {
    grid-template-rows: auto;
  }

  .operator-worktop,
  .operator-context-card,
  .operator-pane-head,
  .operator-reply-box {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .operator-worktop,
  .operator-context-card,
  .operator-pane-head {
    display: flex;
  }

  .operator-pane {
    min-height: 520px;
  }

  .director-shell,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .director-sidebar,
  .sidebar {
    position: static;
    height: auto;
  }

  .director-grid.two,
  .director-metrics,
  .balance-grid,
  .grid.two,
  .metrics,
  .connector-grid,
  .dashboard-page .connector-grid {
    grid-template-columns: 1fr;
  }

  .profile-form,
  .operator-form,
  .balance-form,
  .operator-start-panel,
  .form-row,
  .split,
  .topbar,
  .panel-head,
  .director-topbar,
  .director-panel-head,
  .director-actions,
  .panel-actions,
  .site-toggle-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .director-topbar,
  .director-panel-head,
  .director-actions,
  .panel-actions {
    display: flex;
  }

  .hero,
  .feature-grid,
  .product-list,
  .sites-grid,
  .registration-shell,
  .form-grid,
  .site-select-grid,
  .requests-list,
  .admin-token-row {
    grid-template-columns: 1fr;
  }

  .registration-copy {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .landing-header,
  .landing-nav,
  .hero-actions,
  .info-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-header,
  .landing-nav {
    display: flex;
    width: min(440px, calc(100% - 40px));
  }

  .landing-nav a {
    width: 100%;
  }

  .auth-split {
    width: 100%;
  }

}

@media (min-width: 1101px) and (max-width: 1320px) {
  .sites-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-select-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.operator-workspace-page .operator-workbench {
  grid-template-columns: 330px minmax(0, 1fr) 280px;
}

body.operator-workspace-page .operator-center {
  grid-template-rows: minmax(260px, 42%) minmax(0, 58%);
}

body.operator-invites-page .operator-center {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.operator-video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.operator-video-stage .operator-video-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
}

.operator-video-stage .operator-video-screen {
  min-height: 170px;
}

body.operator-workspace-page .operator-chat-workspace,
body.operator-workspace-page .operator-chat-thread {
  min-height: 0;
}

body.operator-workspace-page .operator-chat-workspace {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  user-select: auto;
}

body.operator-workspace-page .operator-rail-left {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

body.operator-workspace-page:not(.operator-chats-page) .operator-rail-right {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(112px, 0.34fr);
  gap: 9px;
  min-height: 0;
}

body.operator-invites-page .operator-rail-right {
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
}

body.operator-invites-page .operator-invites-rail-right {
  display: flex !important;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  height: 100%;
}

body.operator-invites-page .operator-invites-rail-right .operator-page-nav {
  flex: 0 0 auto;
}

body.operator-invites-page .operator-invites-rail-right .operator-online-panel,
body.operator-invites-page .operator-invites-rail-right .operator-sent-invites-panel {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
}

body.operator-chats-page .operator-rail-right {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

body.operator-workspace-page .operator-active-chats-panel,
body.operator-workspace-page .operator-chat-profiles-panel,
body.operator-workspace-page .operator-chat-contacts-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  max-height: none;
  height: 100%;
}

body.operator-workspace-page .operator-chat-profile-list,
body.operator-workspace-page .operator-chat-contact-list {
  align-content: start;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

body.operator-workspace-page .active-chat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 74px;
}

.active-chat-side {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.active-chat-man {
  justify-content: flex-end;
  text-align: right;
}

.active-chat-man .operator-online-person {
  order: 1;
}

.active-chat-man .operator-online-avatar {
  order: 2;
}

.active-chat-arrow {
  color: #d9a84f;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.active-chat-badges {
  display: grid;
  gap: 4px;
  justify-items: end;
}

body.operator-workspace-page .operator-chat-profile-card {
  min-height: 54px;
  align-items: center;
  padding: 7px;
}

body.operator-workspace-page .operator-chat-contact-card {
  min-height: 48px;
}

@media (max-width: 1180px) {
  body.operator-workspace-page .operator-workbench {
    grid-template-columns: 300px minmax(0, 1fr) 250px;
  }
}

@media (max-width: 980px) {
  body.operator-workspace-page .operator-workbench {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  body.operator-workspace-page .operator-center {
    grid-template-rows: auto auto minmax(420px, 1fr);
  }

  .operator-video-stage {
    grid-template-columns: 1fr;
  }
}
