

.swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  font: inherit;
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active { border-color: var(--text); transform: scale(1.1); }
.swatch[data-accent="indigo"]  { background: var(--indigo); }
.swatch[data-accent="teal"]    { background: var(--teal); }
.swatch[data-accent="violet"]  { background: var(--violet); }
.swatch[data-accent="rose"]    { background: var(--rose); }
.swatch[data-accent="amber"]   { background: var(--amber); }
.swatch[data-accent="emerald"] { background: var(--emerald); }
.swatch[data-accent="blue"]    { background: var(--blue); }
.swatch[data-accent="sky"]     { background: var(--sky); }
.swatch[data-accent="cyan"]    { background: var(--cyan); }
.swatch[data-accent="fuchsia"] { background: var(--fuchsia); }
.swatch[data-accent="pink"]    { background: var(--pink); }
.swatch[data-accent="red"]     { background: var(--red); }
.swatch[data-accent="orange"]  { background: var(--orange); }
.swatch[data-accent="lime"]    { background: var(--lime); }

.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-transform: capitalize;
  
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: var(--font-body);
}
.preset-pill:hover { color: var(--text); border-color: var(--border-strong); }
.preset-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
}

.theme-popover-wrap { position: relative; display: inline-flex; }
.theme-popover {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
  width: 300px; padding: 16px;
  background: var(--card-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
  
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.theme-popover.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.theme-popover::before {
  content: ""; position: absolute; top: -6px; right: 16px;
  width: 11px; height: 11px; background: var(--card-solid);
  border-top: 1px solid var(--border-strong); border-left: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
.theme-popover__section { display: flex; flex-direction: column; gap: 9px; }
.theme-popover__label {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-3);
}
.theme-popover__swatches { flex-wrap: wrap; gap: 9px; }
.theme-popover__mode { flex-direction: row; align-items: center; justify-content: space-between; }
.theme-popover__mode > span { font-size: 0.85rem; font-weight: 600; color: var(--text); }
@media (max-width: 560px) {
  .theme-popover { width: calc(100vw - 32px); right: -8px; }
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.auth__brand {
  position: relative;
  padding: 48px 44px;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.04));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.auth__brand::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.35;
  bottom: -80px; right: -80px;
}
.auth__brand > * { position: relative; z-index: 1; }
.auth__tagline { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; max-width: 16ch; }
.auth__sub { color: var(--text-2); font-size: 0.92rem; margin-top: 14px; max-width: 32ch; }
.auth__feat { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.auth__feat-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-2); }
.auth__feat-item .i { color: var(--accent-2); width: 18px; height: 18px; }

.auth__form { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.auth__hint { color: var(--text-2); font-size: 0.88rem; margin-top: 6px; margin-bottom: 28px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field__label { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.field__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field__input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.field__input::placeholder { color: var(--text-3); }

.auth__row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 24px; font-size: 0.82rem; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); }
.link { color: var(--accent-2); font-weight: 600; }

.auth__divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-3); font-size: 0.78rem; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.theme-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.theme-strip > span { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

.key-box {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.key-box__val {
  flex: 1;
  min-width: 0;
  font-family: var(--font-num);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.key-box__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 40px;
  height: auto;
  align-self: stretch;
  color: var(--text-2);
  border: none;
  border-left: 1px solid var(--border);
  background: var(--surface-hover);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  
  appearance: none;
  -webkit-appearance: none;
}
.key-box__copy:hover { color: var(--accent-2); background: var(--surface-2); }
.key-box__copy:active { background: var(--surface); }
.key-box__copy:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.5);
}
.key-box__copy .i { width: 16px; height: 16px; flex-shrink: 0; }

.key-box__copy.is-copied {
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
}
.key-box__copy.is-copied .i {
  animation: copyPop 0.28s var(--spring);
}
@keyframes copyPop {
  0% { transform: scale(0.6); opacity: 0.4; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.key-box__copy--icon { padding: 0; width: 44px; }
.key-box__copy--icon .i { width: 16px; height: 16px; }

.key-box--lg .key-box__val { font-size: 1rem; padding: 14px 18px; }

.mono {
  font-family: var(--font-num);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.usage-bar { margin-top: 4px; }
.usage-bar__track {
  height: 6px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}
.usage-bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.5s var(--ease-out);
}
.usage-bar__fill.is-warn  { background: linear-gradient(90deg, var(--amber-2), var(--amber)); }
.usage-bar__fill.is-full  { background: linear-gradient(90deg, var(--rose-2), var(--rose)); }
.usage-bar__label {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-3);
}
.usage-bar__label strong { color: var(--text-2); font-family: var(--font-num); }

.countdown-bar { margin-top: 10px; }
.countdown-bar__track {
  height: 8px;
  border-radius: 5px;
  background: var(--track);
  overflow: hidden;
}
.countdown-bar__fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--teal-2), var(--teal));
  transition: width 0.6s var(--ease-out);
}
.countdown-bar__fill.is-warn { background: linear-gradient(90deg, var(--amber-2), var(--amber)); }
.countdown-bar__fill.is-danger { background: linear-gradient(90deg, var(--rose-2), var(--rose)); }
.countdown-bar__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-2);
}

.license-card { display: flex; flex-direction: column; gap: 14px; }
.license-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.license-card__plan {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.license-card__meta { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--border); }
.license-card__meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; gap: 8px; }
.license-card__meta-row span:first-child { color: var(--text-3); flex-shrink: 0; }
.license-card__meta-row span:last-child { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.license-card__email { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.license-card__email .key-box__copy--inline { width: 24px; height: 24px; padding: 0 4px; color: var(--text-3); border: none; background: transparent; border-radius: 6px; }
.license-card__email .key-box__copy--inline:hover { color: var(--accent-2); background: var(--surface-hover); }
.license-card__actions { display: flex; gap: 8px; margin-top: 4px; }
.license-card__actions .btn { flex: 1; }

.key-box__copy--inline { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); border: none; background: transparent; border-radius: 6px; cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease); flex-shrink: 0; }
.key-box__copy--inline:hover { color: var(--accent-2); background: var(--surface-hover); }
.key-box__copy--inline .i { width: 14px; height: 14px; }
.key-box__copy--inline.is-copied { color: var(--teal); }

.plan-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 20px;
}
.plan-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plan-badge--trial { color: var(--text-3); background: var(--surface-hover); }
.plan-badge--pro { color: var(--accent-2); background: rgba(var(--accent-rgb), 0.14); }
.plan-badge--lifetime { color: var(--amber); background: rgba(245, 158, 11, 0.14); }
.plan-badge--enterprise { color: var(--teal); background: rgba(45, 212, 191, 0.14); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 20px;
}
.toolbar .search { width: 280px; max-width: 100%; }
.toolbar .select { height: 42px; }
.toolbar__spacer { flex: 1; }

.license-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 16px;
}
.license-toolbar-row .search { width: 280px; max-width: 100%; }
.license-toolbar-row .select { height: 42px; }
.license-toolbar-row__count { font-size: 0.82rem; white-space: nowrap; }
.license-toolbar-row__spacer { flex: 1; }
.license-toolbar-row .seg { padding: 3px; }
.license-toolbar-row .seg__btn { padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; }

.settings-layout { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: 24px; }
.settings-panel { display: flex; flex-direction: column; gap: 20px; }

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.82rem;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.device-picker { display: flex; flex-direction: column; gap: 4px; min-width: 280px; }

.license-picker { position: relative; }
.license-picker__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.license-picker__trigger:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.license-picker__trigger:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
.license-picker__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}
.license-picker__caret {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.25s var(--ease);
}
.license-picker__trigger[aria-expanded="true"] .license-picker__caret { transform: rotate(180deg); }

.license-picker__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--card-solid, var(--surface));
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(0,0,0,0.35));
  padding: 6px;
  display: none;
}
.license-picker__panel.is-open { display: block; }

.license-picker__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.license-picker__search .search__icon { width: 16px; height: 16px; flex-shrink: 0; }
.license-picker__search input {
  flex: 1;
  width: 100%;
  border: none;
  background: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 0;
}
.license-picker__search input::placeholder { color: var(--text-3); }
.license-picker__search input::-webkit-search-decoration,
.license-picker__search input::-webkit-search-cancel-button,
.license-picker__search input::-webkit-search-results-button,
.license-picker__search input::-webkit-search-results-decoration { display: none; }

.license-picker__list {
  max-height: 264px;
  overflow-y: auto;
}
.license-picker__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.12s var(--ease);
  
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.license-picker__item:hover,
.license-picker__item.is-active { background: var(--surface-hover); }
.license-picker__item.is-selected { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.license-picker__item-key { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.license-picker__item-email { font-size: 0.76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.license-picker__item--clear { flex-direction: row; align-items: center; color: var(--text-3); font-style: italic; border-bottom: 1px solid var(--border); margin-bottom: 4px; border-radius: 9px; }
.license-picker__item--clear .license-picker__item-email { color: var(--text-3); font-style: italic; }
.license-picker__empty { padding: 16px; text-align: center; color: var(--text-3); font-size: 0.82rem; }

td.table-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; }
}

.notif-badge {
  position: absolute;
  top: 6px; right: 6px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.62rem;
  display: grid; place-items: center;
  padding: 0 5px;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.5);
}
.search__icon { color: var(--text-3); }

.app-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  user-select: none;
  white-space: nowrap;
  max-width: 220px;
}
.app-badge__name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
  flex-shrink: 0;
}
.app-badge__dot--idle {
  background: var(--text-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-3) 22%, transparent);
}

.app-switcher { display: flex; align-items: center; }

.client-search { position: relative; }
.client-search > input {
  width: 100%;
  box-sizing: border-box;
  
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  
  -webkit-appearance: none;
  appearance: none;
}
.client-search > input::placeholder { color: var(--text-3); }

.client-search > input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
.client-search > input::-webkit-search-decoration,
.client-search > input::-webkit-search-cancel-button,
.client-search > input::-webkit-search-results-button,
.client-search > input::-webkit-search-results-decoration { display: none; }

.client-search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 264px;
  overflow-y: auto;
  background: var(--card-solid, var(--surface));
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(0,0,0,0.35));
  padding: 6px;
  display: none;
}
.client-search__dropdown.is-open { display: block; }
.client-search__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.12s var(--ease);
}
.client-search__item:hover,
.client-search__item.is-active { background: var(--surface-hover); }
.client-search__avatar {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.client-search__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.client-search__name { font-weight: 600; font-size: 0.86rem; color: var(--text); }
.client-search__email { font-size: 0.76rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-search__empty { padding: 16px; text-align: center; color: var(--text-3); font-size: 0.82rem; }

.client-search__selected {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
}
.client-search__clear {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--text-3); cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.client-search__clear:hover { color: var(--text); background: var(--surface-hover); }
.client-search__clear .i { width: 16px; height: 16px; }

#licenseStats .kpi__top:has(> *:only-child) { justify-content: flex-start; }
#licenseStats .kpi { padding: 18px 20px; }

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-size: 0.88rem;
}
#licenseListCard .empty-state { grid-column: auto; }

@media (max-width: 1180px) and (min-width: 981px) {
  .license-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.lic-list-email { color: var(--text); }
.lic-list-actions { white-space: nowrap; display: flex; gap: 6px; justify-content: flex-end; }
.lic-list-actions .btn { flex: none; }

#licenseListBody td .key-box__copy--inline { vertical-align: middle; margin-left: 6px; }
#licenseListBody .mono { font-size: 0.82rem; }

.settings-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.settings-input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
.settings-input::placeholder { color: var(--text-3); }
.field__hint { font-size: 0.82rem; color: var(--text-3); display: block; margin-bottom: 4px; }

.cred-row { display: flex; flex-direction: column; gap: 6px; }
.cred-row__label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.cred-row__value {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.cred-row__val {
  flex: 1;
  min-width: 0;
  font-family: var(--font-num);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}
.cred-row__actions { display: flex; align-items: center; gap: 4px; padding-right: 6px; flex-shrink: 0; }
.cred-row__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none; background: transparent;
  color: var(--text-3); cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.cred-row__btn:hover { color: var(--accent-2); background: var(--surface-hover); }
.cred-row__btn .i { width: 16px; height: 16px; }
.cred-row__btn--text { width: auto; padding: 0 10px; font-size: 0.76rem; font-weight: 600; font-family: var(--font-body); }
.cred-row__btn.is-copied { color: var(--teal); }

.cred-edit {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cred-edit.is-open { display: flex; }
.cred-edit .settings-input { flex: 1; }

@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; max-width: 460px; }
  .auth__brand { display: none; }
}

.th-sort {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color 0.2s var(--ease);
  outline: none;
  border-radius: 6px;
}
.th-sort:hover { color: var(--text); }
.th-sort:focus-visible {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.4);
}
.th-sort .th-sort__arrow {
  width: 13px;
  height: 13px;
  margin-left: 5px;
  vertical-align: -2px;
  opacity: 0.4;
  transition: opacity 0.2s var(--ease);
}

.th-sort__arrow--neutral { opacity: 0; }
.th-sort:hover .th-sort__arrow--neutral { opacity: 0.45; }
.th-sort.is-asc .th-sort__arrow,
.th-sort.is-desc .th-sort__arrow { opacity: 1; color: var(--accent-2); }

.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.per-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
}
.per-page > span { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.select--sm { height: 34px; padding-top: 0; padding-bottom: 0; font-size: 0.8rem; border-radius: 9px; }

.pager {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pager__btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-num);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pager__btn:hover:not(.is-disabled):not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}
.pager__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 4px 12px -4px rgba(var(--accent-rgb), 0.7);
}
.pager__btn.is-disabled,
.pager__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pager__btn .i { width: 16px; height: 16px; }
.pager__ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-3);
  font-family: var(--font-num);
  font-size: 0.82rem;
  user-select: none;
}

.pager__info { white-space: nowrap; }

.card__foot__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.card__foot .pager + .pager__info { margin-left: auto; }

#userStats .kpi__top:has(> *:only-child) { justify-content: flex-start; }
#userStats .kpi { padding: 18px 20px; }

#clientsChart { display: block; }

@media (max-width: 720px) {
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card__foot .pager { justify-content: center; }
  .card__foot .pager__info { text-align: center; }
  .th-sort .th-sort__arrow--neutral { opacity: 0.45; } 
}

.field-note {
  font-size: 0.82rem;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.5;
}

.field-error {
  font-size: 0.82rem;
  color: var(--rose);
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.5;
}

.client-search__pending {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.14);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.client-search__item.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.client-search__item.is-disabled:hover {
  background: transparent;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.user-actions .btn { white-space: nowrap; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface-hover);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center/14px no-repeat;
  -webkit-mask: url("data-image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-item__q::after { transform: rotate(180deg); }
.faq-item__a {
  padding: 0 18px 16px;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-links__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.quick-links__item:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.quick-links__item .i {
  width: 20px; height: 20px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.task-list { display: flex; flex-direction: column; }
.task-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s var(--ease);
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--surface-hover); }
.task-row__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface);
  flex-shrink: 0;
}
.task-row__icon .i { width: 18px; height: 18px; color: var(--text-2); }
.task-row__body { flex: 1; min-width: 0; }
.task-row__name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.task-row__meta { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.task-row__progress {
  width: 100%;
  max-width: 140px;
  margin-top: 6px;
}
.task-row__progress .usage-bar__track { height: 5px; border-radius: 3px; }
.task-row__progress .usage-bar__fill { height: 100%; border-radius: 3px; }
.task-row__progress .usage-bar__label { margin-top: 4px; font-size: 0.72rem; }
.task-row__status { flex-shrink: 0; }

.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row__label { font-size: 0.82rem; color: var(--text-3); flex-shrink: 0; }
.info-row__value { font-size: 0.88rem; font-weight: 600; color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact-form .field { margin-bottom: 16px; }
.contact-form .settings-input { width: 100%; }
.contact-form textarea.settings-input { min-height: 120px; resize: vertical; font-family: var(--font-body); line-height: 1.5; }

@media (max-width: 820px) {
  .quick-links { grid-template-columns: 1fr; }
  .task-row { flex-wrap: wrap; gap: 10px; }
  .task-row__progress { max-width: 100%; }
}

.camp-mono { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); }

.camp-thead { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-2)); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); position: sticky; top: 0; z-index: 2; }
.camp-thead__main { flex: 1; min-width: 0; }
.camp-thead__meta { flex-shrink: 0; width: 600px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; color: var(--text-3); }
.camp-thead__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-thead__actions { width: 128px; text-align: right; flex-shrink: 0; }
@media (max-width: 900px) { .camp-thead { display: none; } }

.camp-thead__main .camp-sort-th { width: 100%; }
.camp-sort-th {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  cursor: pointer; white-space: nowrap;
}
.camp-sort-th__label { overflow: hidden; text-overflow: ellipsis; }
.camp-sort-th:hover { color: var(--text-2); }
.camp-sort-th.is-active { color: var(--accent); }
.camp-sort-arrow {
  width: 0; height: 0; opacity: 0.32; flex-shrink: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor; 
}
.camp-sort-arrow.is-asc { opacity: 1; border-bottom: 5px solid currentColor; }
.camp-sort-arrow.is-desc { opacity: 1; border-bottom: none; border-top: 5px solid currentColor; }
@media (max-width: 900px) { .camp-sort-th { cursor: default; } }

.camp-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.camp-toolbar__search { width: 260px; max-width: 100%; height: 34px; padding: 0 12px; }
.camp-toolbar__search input { font-size: 0.85rem; }
.camp-toolbar__search .search__icon { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .camp-toolbar__search, .camp-toolbar__search.is-expanded { width: 100%; padding: 0 12px; justify-content: flex-start; }
  .camp-toolbar__search input { display: block; }
}
.camp-toolbar__slot { display: inline-flex; }
.camp-toolbar__spacer { flex: 1 1 auto; }
.camp-toolbar__count {
  font-size: 0.72rem; font-weight: 700; color: var(--text-3); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.camp-toolbar__clear {
  border: none; background: transparent; color: var(--accent);
  font-size: 0.76rem; font-weight: 600; cursor: pointer; padding: 5px 9px; border-radius: 7px;
  transition: background 0.18s var(--ease);
}
.camp-toolbar__clear:hover { background: rgba(var(--accent-rgb), 0.1); }

.camp-sort-select { min-width: 150px; }

.camp-foot { border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }

.camp-empty { padding: 54px 20px; text-align: center; }

.pp-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pp-summary { font-size: 0.8rem; color: var(--text-3); min-height: 20px; }
.pp-summary--ok { color: var(--teal); font-weight: 600; }
.pp-summary--bad { color: var(--rose); font-weight: 600; }
.pp-summary--mixed { color: var(--amber); font-weight: 600; }
.pp-summary--checking { color: var(--accent); }
.pp-ok { color: var(--teal); }
.pp-bad { color: var(--rose); }

.pp-status { white-space: nowrap; font-size: 0.78rem; font-weight: 600; }
.pp-status--ok { color: var(--teal); }
.pp-status--err { color: var(--rose); }
.pp-status--cancelled { color: var(--text-3); }
.pp-status--pending, .pp-status--checking { color: var(--text-2); }

.pp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pp-dot--ok { background: var(--teal); }
.pp-dot--err { background: var(--rose); }
.pp-dot--idle { background: var(--text-3); opacity: 0.6; }

.pp-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
  animation: ppSpin 0.7s linear infinite;
}
@keyframes ppSpin { to { transform: rotate(360deg); } }

.camp-item { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 24px; border-bottom: 1px solid var(--border); transition: all .2s var(--ease); }
.camp-item:last-child { border-bottom: none; }
.camp-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--border); transition: background .25s var(--ease); }
.camp-item.is-active::before { background: var(--accent); }
.camp-item.is-paused::before { background: rgb(251,191,36); }
.camp-item.is-completed::before { background: var(--teal); }
.camp-item:hover { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.03), transparent 60%); }
@media (max-width: 900px) {
  .camp-item { flex-wrap: wrap; gap: 12px; padding: 14px 16px 14px 20px; }
  .camp-item__info { order: 1; flex: 1 1 calc(100% - 58px); }
  .camp-item__actions { order: 2; flex: 0 0 auto; }
  .camp-item__meta-mobile { order: 3; flex: 1 1 100%; }
  .camp-item__avatar { width: 38px; height: 38px; border-radius: 10px; font-size: .9rem; }
}

.camp-item__avatar { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.28); text-transform: uppercase; }
.camp-item.is-active .camp-item__avatar { box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.4); }
.camp-item__info { flex: 1; min-width: 0; }
.camp-item__name { font-weight: 600; font-size: .95rem; color: var(--text); display: flex; align-items: center; gap: 9px; line-height: 1.3; }
.camp-item__name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; min-width: 0; }
@media (max-width: 1100px) { .camp-item__name-text { max-width: 240px; } }
@media (max-width: 900px) { .camp-item__name-text { max-width: none; } }

@media (max-width: 1020px) {
  .table-wrap--camp { margin: 0; padding: 0; overflow: visible; }
  .table--campadmin thead { display: none; }
  .table--campadmin, .table--campadmin tbody, .table--campadmin tr, .table--campadmin td { display: block; width: 100%; }
  .table--campadmin { font-size: .88rem; }
  .table--campadmin tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 16px; border-radius: 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); }
  .table--campadmin tr:last-child { margin-bottom: 0; }
  .table--campadmin tbody td { display: flex; align-items: center; gap: 10px; padding: 7px 0; border: none; white-space: normal; flex-wrap: wrap; min-width: 0; }
  .table--campadmin td::before { content: attr(data-label); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; flex-shrink: 0; width: 84px; }
  .table--campadmin td[data-label="Name"] { grid-column: 1 / -1; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
  .table--campadmin td[data-label="Name"]::before { display: none; }
  .table--campadmin td[data-label="Name"] strong { font-size: 1rem; }
  .table--campadmin td[data-label="Actions"] { grid-column: 1 / -1; justify-content: flex-end; gap: 6px; border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 6px; }
  .table--campadmin td[data-label=""]::before { content: none; }
}

.camp-status { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.camp-status__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.camp-status--draft { background: var(--surface-2); color: var(--text-3); }
.camp-status--active { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); }
.camp-status--active .camp-status__dot { animation: campPulse 1.6s ease-in-out infinite; }
.camp-status--paused { background: rgba(251, 191, 36, 0.14); color: rgb(251, 191, 36); }
.camp-status--completed { background: rgba(var(--teal-rgb), 0.14); color: var(--teal); }

.camp-tag--revoked { display: inline-flex; align-items: center; gap: 4px; font-size: .6rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; flex-shrink: 0; background: rgba(248, 81, 73, 0.12); color: rgb(248, 81, 73); border: 1px solid rgba(248, 81, 73, 0.35); cursor: help; }
.camp-tag--revoked svg { width: 11px; height: 11px; }
.camp-tag--human { display: inline-flex; align-items: center; font-size: .6rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; flex-shrink: 0; background: rgba(var(--accent-rgb, 9 105 218), .12); color: var(--accent, #0969da); border: 1px solid rgba(var(--accent-rgb, 9 105 218), .35); }
@keyframes campPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

@keyframes campHitFlash {
  0%   { background: rgba(var(--accent-rgb), 0.18); box-shadow: inset 0 0 0 2px var(--accent); }
  45%  { background: rgba(var(--accent-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45); }
  100% { background: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
.camp-item.is-hit-flash,
.camp-card.is-hit-flash { animation: campHitFlash 1.3s var(--ease) 1; border-radius: var(--radius-sm); }

@keyframes campHitBadgePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
[data-hits-for] { position: relative; }
[data-hits-for].is-hit-pop { animation: campHitBadgePop 0.6s var(--spring) 1; }

@keyframes campHitFloat {
  0%   { opacity: 0; transform: translate(-50%, 4px) scale(0.6); }
  25%  { opacity: 1; transform: translate(-50%, -6px) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(1); }
}
.camp-hit-float {
  position: absolute; left: 50%; top: -2px;
  font-family: var(--font-num); font-weight: 800; font-size: 0.82rem;
  color: var(--accent); pointer-events: none; white-space: nowrap;
  text-shadow: 0 1px 10px rgba(var(--accent-rgb), 0.55);
  animation: campHitFloat 1.15s var(--ease-out) 1;
}

@keyframes kpiHitPop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.kpi__value.is-hit-pop { animation: kpiHitPop 0.6s var(--spring) 1; transform-origin: left center; }

.camp-item__meta-col { flex-shrink: 0; width: 600px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: center; }
.camp-meta-cell { min-width: 0; font-size: .73rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; transition: border-color .18s var(--ease); }
.camp-item:hover .camp-meta-cell { border-color: var(--border); }
.camp-meta-cell svg { width: 13px; height: 13px; color: var(--text-3); flex-shrink: 0; }
.camp-meta-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
@media (max-width: 1240px) { .camp-item__meta-col { display: none; } }

.camp-item__meta-mobile { display: none; font-size: .74rem; color: var(--text-3); margin-top: 5px; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1240px) { .camp-item__meta-mobile { display: flex; } }
.camp-item__meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); display: inline-block; }

.camp-item__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; width: 168px; justify-content: flex-end; }
@media (max-width: 900px) { .camp-item__actions { width: auto; } }
.camp-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: all .18s var(--ease); position: relative; }
.camp-icon-btn svg { width: 17px; height: 17px; transition: transform .18s var(--ease); }
.camp-icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); transform: translateY(-2px); }
.camp-icon-btn:active { transform: translateY(0); }
.camp-icon-btn--edit:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.25); }
.camp-icon-btn--copy:hover { color: var(--teal); background: rgba(var(--teal-rgb), 0.1); border-color: rgba(var(--teal-rgb), 0.25); }
.camp-icon-btn--power:hover { color: var(--teal); background: rgba(var(--teal-rgb), 0.1); border-color: rgba(var(--teal-rgb), 0.25); }
.camp-icon-btn--power.is-disable:hover { color: rgb(251, 191, 36); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.25); }
.camp-icon-btn--delete:hover { color: var(--rose); background: rgba(var(--rose-rgb), 0.1); border-color: rgba(var(--rose-rgb), 0.25); }
.camp-icon-btn--term:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.25); }

.camp-icon-btn[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--card-solid); font-size: .66rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s var(--ease); z-index: 20; box-shadow: var(--shadow-md); }
.camp-icon-btn[data-tip]::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--text); opacity: 0; transition: opacity .15s var(--ease); }
.camp-icon-btn:hover[data-tip]::after, .camp-icon-btn:hover[data-tip]::before { opacity: 1; }

.camp-view-seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; border: 1px solid var(--border); }
.camp-view-seg .seg__btn { border: none; background: transparent; color: var(--text-3); padding: 7px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; transition: all .18s var(--ease); line-height: 0; }
.camp-view-seg .seg__btn:hover { color: var(--text); }
.camp-view-seg .seg__btn.is-active { background: var(--card-solid); color: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 18px; }
@media (max-width: 680px) { .camp-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 14px; } }
@media (max-width: 480px) { .camp-grid { grid-template-columns: 1fr; } }
.camp-card { position: relative; background: linear-gradient(180deg, var(--card-solid), var(--surface)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .25s var(--ease); display: flex; flex-direction: column; }
.camp-card__strip { height: 4px; width: 100%; background: var(--border); flex-shrink: 0; }
.camp-card.is-active .camp-card__strip { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.camp-card.is-paused .camp-card__strip { background: rgb(251, 191, 36); }
.camp-card.is-completed .camp-card__strip { background: var(--teal); }
.camp-card:hover { border-color: rgba(var(--accent-rgb), 0.3); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.camp-card__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 0; min-width: 0; }
.camp-card__head-info { flex: 1; min-width: 0; }
.camp-card__title { font-weight: 700; font-size: .95rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.camp-card__sub { margin-top: 5px; }
.camp-card__body { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.camp-card__chip { display: flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; font-size: .75rem; color: var(--text-2); min-width: 0; transition: border-color .18s var(--ease); }
.camp-card__chip svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.camp-card__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.camp-card__chip--full { grid-column: 1 / -1; }
.camp-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); margin-top: auto; background: var(--surface); }
.camp-card__date { font-size: .7rem; color: var(--text-3); display: flex; align-items: center; gap: 5px; min-width: 0; }
.camp-card__date svg { width: 12px; height: 12px; flex-shrink: 0; }
.camp-card__acts { display: flex; gap: 4px; flex-shrink: 0; }
@media (max-width: 400px) {
  .camp-card__foot { flex-direction: column; gap: 8px; align-items: stretch; }
  .camp-card__acts { justify-content: flex-end; }
  .camp-icon-btn { width: 32px; height: 32px; border-radius: 8px; }
  .camp-icon-btn svg { width: 15px; height: 15px; }
}

.camp-proxy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 16px 0; padding: 10px 12px; border-radius: 11px; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02)); border: 1px solid rgba(var(--accent-rgb), 0.2); }
.camp-proxy__main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.camp-proxy__main svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.camp-proxy__cfg { font-size: .8rem; font-weight: 700; color: var(--text); }
.camp-proxy__type { font-size: .64rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); white-space: nowrap; }
.camp-proxy__count { font-size: .7rem; font-weight: 600; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.camp-proxy--local { background: linear-gradient(135deg, rgba(var(--teal-rgb), 0.08), rgba(var(--teal-rgb), 0.02)); border-color: rgba(var(--teal-rgb), 0.2); }
.camp-proxy--local .camp-proxy__main svg { color: var(--teal); }
.camp-proxy--local .camp-proxy__type { background: rgba(var(--teal-rgb), 0.16); color: var(--teal); }

.camp-card__foot-meta { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }

.camp-card__hits { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.25); font-size: .72rem; font-weight: 700; color: var(--accent); transition: all .15s var(--ease); }
.camp-card__hits:hover { background: rgba(var(--accent-rgb), 0.18); border-color: rgba(var(--accent-rgb), 0.4); }
.camp-card__hits svg { width: 13px; height: 13px; flex-shrink: 0; }
.camp-card__hits strong { color: var(--accent); font-weight: 900; font-size: .85rem; letter-spacing: -.01em; }
.camp-card__chip--budget { justify-content: center; font-weight: 700; color: var(--text-2); background: var(--surface); }

.camp-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.camp-stat { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px; font-size: .74rem; font-weight: 600; color: var(--text-2); transition: border-color .18s var(--ease); white-space: nowrap; }
.camp-stat svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.camp-stat strong { color: var(--text); font-weight: 700; }
.camp-stat--live { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.12); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.08); }
.camp-stat--live svg { color: var(--accent); }
.camp-stat--live strong { color: var(--accent); }
.camp-card__stats { display: flex; gap: 8px; padding: 0 16px 4px; flex-wrap: wrap; }

.campterm-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.campterm-overlay.is-open { opacity: 1; pointer-events: auto; }
.campterm { background: #0d1117; border: 1px solid #1f2937; border-radius: 14px; width: min(720px, 100%); max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); transform: scale(.96) translateY(8px); transition: transform .25s var(--spring); }
.campterm-overlay.is-open .campterm { transform: scale(1) translateY(0); }
.campterm__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #161b22; border-bottom: 1px solid #1f2937; }
.campterm__dots { display: flex; gap: 6px; }
.campterm__dots span { width: 11px; height: 11px; border-radius: 50%; }
.campterm__dots span:nth-child(1) { background: #ff5f57; }
.campterm__dots span:nth-child(2) { background: #febc2e; }
.campterm__dots span:nth-child(3) { background: #28c840; }
.campterm__title { flex: 1; font-size: .78rem; font-weight: 600; color: #c9d1d9; font-family: var(--font-mono, ui-monospace, monospace); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campterm__badge { font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; background: rgba(40, 200, 64, 0.15); color: #28c840; border: 1px solid rgba(40, 200, 64, 0.3); }
.campterm__badge.is-idle { background: rgba(139, 148, 158, 0.15); color: #8b949e; border-color: rgba(139, 148, 158, 0.3); }
.campterm__body { flex: 1; overflow-y: auto; padding: 16px; font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .78rem; line-height: 1.7; color: #adbac7; background: #0d1117; }
.campterm__body::-webkit-scrollbar { width: 8px; }
.campterm__body::-webkit-scrollbar-track { background: transparent; }
.campterm__body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
.campterm__line { display: flex; gap: 8px; animation: camptermIn .2s var(--ease-out); }
@keyframes camptermIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
.campterm__time { color: #6e7681; flex-shrink: 0; white-space: nowrap; }
.campterm__lvl { flex-shrink: 0; font-weight: 700; min-width: 44px; }
.campterm__lvl--info { color: #58a6ff; }
.campterm__lvl--ok { color: #28c840; }
.campterm__lvl--warn { color: #d29922; }
.campterm__lvl--err { color: #f85149; }
.campterm__msg { color: #adbac7; word-break: break-word; }
.campterm__msg em { color: #bc8cff; font-style: normal; }
.campterm__foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #161b22; border-top: 1px solid #1f2937; }
.campterm__foot-info { font-size: .7rem; color: #6e7681; font-family: var(--font-mono, ui-monospace, monospace); }
.campterm__clear { font-size: .7rem; font-weight: 600; color: #8b949e; background: transparent; border: 1px solid #30363d; border-radius: 7px; padding: 5px 12px; cursor: pointer; transition: all .15s; }
.campterm__clear:hover { color: #c9d1d9; border-color: #8b949e; }

.camp-console { background: #0d1117; border: 1px solid #1f2937; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.camp-console__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #161b22; border-bottom: 1px solid #1f2937; }
.camp-console__title { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: #c9d1d9; }
.camp-console__pulse { width: 8px; height: 8px; border-radius: 50%; background: #28c840; animation: campPulse 1.6s ease-in-out infinite; }
.camp-console__count { font-size: .66rem; font-weight: 600; color: #6e7681; font-family: var(--font-mono, ui-monospace, monospace); }
.camp-console__body { height: 240px; overflow-y: auto; padding: 14px 16px; font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .76rem; line-height: 1.7; color: #adbac7; background: #0d1117; }
.camp-console__body::-webkit-scrollbar { width: 8px; }
.camp-console__body::-webkit-scrollbar-track { background: transparent; }
.camp-console__body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }

.campterm__tools { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: #0d1117; border-bottom: 1px solid #1f2937; flex-wrap: wrap; }
.campterm__filters { display: flex; gap: 5px; flex-wrap: wrap; }
.campterm__fchip { font-size: .66rem; font-weight: 700; padding: 4px 10px; border-radius: 7px; border: 1px solid #30363d; background: transparent; color: #6e7681; cursor: pointer; transition: all .15s var(--ease); text-transform: uppercase; letter-spacing: .03em; font-family: var(--font-mono, ui-monospace, monospace); user-select: none; }
.campterm__fchip:hover { color: #c9d1d9; border-color: #8b949e; }
.campterm__fchip.is-active { color: #c9d1d9; background: #21262d; border-color: #8b949e; }
.campterm__fchip--info.is-active { border-color: #58a6ff; color: #58a6ff; background: rgba(88, 166, 255, 0.12); }
.campterm__fchip--ok.is-active { border-color: #28c840; color: #28c840; background: rgba(40, 200, 64, 0.12); }
.campterm__fchip--warn.is-active { border-color: #d29922; color: #d29922; background: rgba(210, 153, 34, 0.12); }
.campterm__fchip--err.is-active { border-color: #f85149; color: #f85149; background: rgba(248, 81, 73, 0.12); }
.campterm__fcount { font-size: .6rem; font-weight: 600; color: #6e7681; margin-left: 1px; }
.campterm__search { flex: 1; min-width: 120px; position: relative; }
.campterm__search input { width: 100%; background: #0d1117; border: 1px solid #30363d; border-radius: 8px; padding: 6px 10px 6px 30px; font-size: .74rem; color: #c9d1d9; font-family: var(--font-mono, ui-monospace, monospace); outline: none; transition: border-color .15s; }
.campterm__search input::placeholder { color: #484f58; }
.campterm__search input:focus { border-color: #58a6ff; }
.campterm__search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: #6e7681; pointer-events: none; }

.campterm__clear { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 7px; border: 1px solid #30363d; background: transparent; color: #6e7681; cursor: pointer; transition: all .15s var(--ease); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-family: var(--font-mono, ui-monospace, monospace); flex-shrink: 0; }
.campterm__clear svg { width: 13px; height: 13px; }
.campterm__clear:hover { color: #f85149; border-color: #f85149; background: rgba(248, 81, 73, 0.12); }
.campterm__clear:disabled { opacity: .5; cursor: not-allowed; }
.campterm__empty { padding: 28px 16px; text-align: center; color: #484f58; font-size: .78rem; font-family: var(--font-mono, ui-monospace, monospace); }

@media (max-width: 600px) {
  .campterm-overlay { padding: 0; }
  .campterm { border-radius: 0; width: 100%; max-height: 100vh; height: 100vh; min-height: 100%; }
  .campterm__title { font-size: .72rem; }
  .campterm__tools { flex-direction: column; align-items: stretch; gap: 8px; }
  .campterm__search { min-width: 0; }
  .campterm__foot { flex-direction: column; gap: 8px; align-items: stretch; }
  .campterm__foot-info { text-align: center; }
  .campterm__foot > div { justify-content: center; }
  .campterm__line { flex-wrap: wrap; }
  .campterm__msg { flex: 1 1 100%; padding-left: 52px; margin-top: -2px; }
  .camp-console__body { height: 200px; }
}
@media (max-width: 420px) {
  .campterm__filters { justify-content: center; }
  .campterm__bar { padding: 10px 12px; gap: 6px; }
  .campterm__dots span { width: 9px; height: 9px; }
}

.camp-empty-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }

.tproxy-mode-row {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tproxy-mode-label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.tproxy-mode-seg {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tproxy-mode-btn {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-3);
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s var(--ease);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tproxy-mode-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text);
  background: var(--surface-hover);
}
.tproxy-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.tproxy-mode-hint {
  margin-top: 7px;
  font-size: .72rem;
  color: var(--text-3);
  line-height: 1.45;
}

.tproxy-del-cb {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.tproxy-del-cb:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--surface-hover);
}
.tproxy-del-cb input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.tproxy-del-cb span {
  font-size: .8rem;
  color: var(--text);
  font-weight: 600;
  display: block;
}
.tproxy-del-cb__sub {
  font-size: .72rem !important;
  color: var(--text-3);
  font-weight: 400 !important;
  margin-top: 2px;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .tproxy-mode-btn { font-size: .72rem; padding: 6px 5px; }
  .tproxy-mode-seg { gap: 3px; }
}


/* ── Human Sessions view (admin) ───────────────────────────────────────── */
.cf-check { display: flex; align-items: center; gap: 9px; padding: 7px 0; cursor: pointer; font-size: .85rem; user-select: none; }
.cf-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }

.sess-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.sess-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sess-stat__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
.sess-stat__val { font-size: 1.28rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }

.sess-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.sess-drop { margin: 0 0 6px; padding: 22px 18px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.sess-drop:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .04); }
.sess-drop.is-over { border-color: var(--accent); background: rgba(var(--accent-rgb), .09); }
.sess-drop.is-busy { opacity: .6; pointer-events: none; }
.sess-drop__ic { width: 26px; height: 26px; color: var(--accent); }
.sess-drop__main { font-size: .88rem; font-weight: 600; }
.sess-drop__main strong { color: var(--accent); }
.sess-drop__sub { font-size: .74rem; color: var(--text-3); }

.table--sess td[data-label="File"] .sess-file { font-family: var(--mono, monospace); font-size: .78rem; overflow-wrap: anywhere; }
.sess-label { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sess-ev { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.sess-ev__pill { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); white-space: nowrap; }
.sess-ev__pill--move { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.sess-dur { font-variant-numeric: tabular-nums; font-weight: 600; }
.sess-warn { color: var(--amber); cursor: help; }
.table--sess td[data-label=""] { text-align: right; white-space: nowrap; }

@media (max-width: 1180px) {
  .sess-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .table-wrap--sess { margin: 0; padding: 0; overflow: visible; }
  .table--sess thead { display: none; }
  .table--sess, .table--sess tbody, .table--sess tr, .table--sess td { display: block; width: 100%; }
  .table--sess { font-size: .88rem; }
  .table--sess tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 16px; border-radius: 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); }
  .table--sess tr:last-child { margin-bottom: 0; }
  .table--sess tbody td { display: flex; align-items: center; gap: 10px; padding: 7px 0; border: none; white-space: normal; flex-wrap: wrap; min-width: 0; }
  .table--sess td::before { content: attr(data-label); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; flex-shrink: 0; width: 92px; }
  .table--sess td[data-label="File"] { grid-column: 1 / -1; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
  .table--sess td[data-label="File"]::before { display: none; }
  .table--sess td[data-label=""] { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 6px; text-align: left; }
  .table--sess td[data-label=""]::before { content: none; }
  .table--sess td.sess-empty { grid-column: 1 / -1; }
  .table--sess td.sess-empty::before { content: none; }
  .sess-label { max-width: none; white-space: normal; }
}
@media (max-width: 620px) {
  .sess-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sess-stat { padding: 11px 12px; }
  .sess-stat__val { font-size: 1.08rem; }
  .sess-actions { width: 100%; }
  .sess-actions .btn { flex: 1 1 auto; justify-content: center; }
  .sess-drop { padding: 18px 14px; }
  .sess-drop__main { font-size: .82rem; }
  .table--sess tr { grid-template-columns: 1fr; }
  .table--sess td::before { width: 86px; }
}
@media (max-width: 420px) {
  .sess-stats { grid-template-columns: 1fr; }
  .sess-drop__sub { font-size: .7rem; }
}
