/* ==========================================================================
   UNIFIED SETTINGS & CREDENTIALS CONTROL CENTER (v5.3.6)
   Monochromatic, Ultra-Dense, Anti-Reflow Architecture.
   Scoped prefix: .setm-* & .tv-push-*
   ========================================================================== */

:root {
  --setm-surface: #121212;
  --setm-surface2: #1c1c1c;
  --setm-surface3: #0c0c0c;
  --setm-line: #1c1c1c;
  --setm-text: #f2f2f2;
  --setm-text-dim: #a8a8a8;
  --setm-text-faint: #737373;
  --setm-accent: #ffffff;
  --setm-accent-text: #000000;
  --setm-danger: #ff8585;
  --setm-hover: #171717;
}

.setm-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.setm-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.setm-modal {
  position: relative;
  width: 760px;
  height: 600px;
  max-width: 94vw;
  max-height: 92vh;
  min-height: 0;
  background: var(--setm-surface);
  border: 1px solid #262626;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  box-shadow: none;
  animation: setmPop 0.16s ease-out;
}

@keyframes setmPop {
  from { opacity: 0; transform: scale(0.98) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.setm-sidebar {
  width: 196px;
  flex: none;
  background: var(--setm-surface3);
  border-right: 1px solid var(--setm-line);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  overflow-y: auto;
  box-sizing: border-box;
}

.setm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 14px;
}

.setm-brand svg {
  width: 17px;
  height: 17px;
  stroke: var(--setm-text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setm-brand span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.setm-nav-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--setm-text-faint);
  padding: 12px 10px 6px;
  text-transform: uppercase;
}

.setm-nav-label.first {
  padding-top: 6px;
}

.setm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--setm-text-dim);
  cursor: pointer;
  margin-bottom: 2px;
  transition: all 0.12s ease;
  user-select: none;
}

.setm-nav-item:hover {
  background: var(--setm-hover);
  color: var(--setm-text);
}

.setm-nav-item.active {
  background: var(--setm-surface2);
  color: #ffffff;
}

.setm-nav-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.setm-sidebar-spacer {
  flex: 1;
  min-height: 24px;
}

.setm-add-btn-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: var(--setm-accent);
  color: var(--setm-accent-text);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease;
  margin-top: 12px;
}

.setm-add-btn-side:hover {
  background: #e2e2e2;
}

.setm-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--setm-surface);
}

.setm-content-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--setm-line);
  background: #0f0f0f;
  flex: none;
}

.setm-content-head h1 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  letter-spacing: -0.01em;
}

.setm-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-dim);
  cursor: pointer;
  border: 1px solid transparent;
  flex: none;
  transition: all 0.12s ease;
}

.setm-icon-btn:hover {
  background: var(--setm-hover);
  color: var(--setm-text);
  border-color: #2c2c2c;
}

.setm-icon-btn.hidden {
  display: none;
}

.setm-view {
  display: none;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
}

.setm-view#setmViewList {
  flex-direction: row;
}

.setm-set-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 18px 22px;
  box-sizing: border-box;
  width: 100%;
}

.setm-tokens-list {
  width: 280px;
  flex: none;
  border-right: 1px solid var(--setm-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #101010;
}

.setm-list-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 8px;
}

.setm-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.setm-trow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.setm-trow:hover {
  background: var(--setm-hover);
}

.setm-trow.selected {
  background: var(--setm-surface2);
  border-color: #2a2a2a;
}

.setm-trow-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-dim);
  flex: none;
}

.setm-trow.selected .setm-trow-icon {
  background: #292929;
  color: #ffffff;
}

.setm-trow-body {
  flex: 1;
  min-width: 0;
}

.setm-trow-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setm-trow-sub {
  font-size: 10px;
  color: var(--setm-text-faint);
  margin-top: 1px;
  font-family: var(--font-mono);
}

.setm-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  flex: none;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  background: transparent !important;
  border: none !important;
}

.setm-badge.device { color: #a3a3a3; }
.setm-badge.cloud { color: #f5f5f5; }
.setm-badge.session { color: #737373; }

.setm-icon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.setm-detail {
  flex: 1;
  padding: 20px 22px;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
}

.setm-detail-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-faint);
  font-size: 12px;
  text-align: center;
  flex-direction: column;
  gap: 8px;
}

.setm-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.setm-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--setm-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-dim);
  flex: none;
}

.setm-detail-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.setm-detail-sub {
  font-size: 11px;
  color: var(--setm-text-faint);
  margin: 2px 0 16px;
  font-family: var(--font-mono);
}

.setm-btnrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.setm-dbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--setm-surface2);
  color: var(--setm-text);
  border: 1px solid #2c2c2c;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}

.setm-dbtn:hover {
  background: #2a2a2a;
  border-color: #383838;
}

.setm-dbtn.danger {
  color: var(--setm-danger);
}

.setm-dbtn.danger:hover {
  background: rgba(255, 133, 133, 0.1);
  border-color: rgba(255, 133, 133, 0.3);
}

.setm-dbtn.primary {
  background: var(--setm-accent);
  color: var(--setm-accent-text);
  border: 1px solid #ffffff;
}

.setm-info-box {
  margin-top: 18px;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--setm-text-dim);
  line-height: 1.5;
}

.setm-set-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 18px 22px;
}

.setm-card {
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.setm-card-sub {
  font-size: 11px;
  color: var(--setm-text-faint);
  line-height: 1.45;
}

.setm-srow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--setm-line);
}

.setm-srow.first {
  border-top: none;
  padding-top: 0;
}

.setm-srow.last {
  padding-bottom: 0;
}

.setm-srow-main {
  flex: 1;
  min-width: 0;
}

.setm-srow-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.setm-srow-desc {
  font-size: 11px;
  color: var(--setm-text-faint);
  margin-top: 2px;
  line-height: 1.4;
}

.setm-storage-count {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--setm-text-faint);
}

.setm-seg {
  display: flex;
  background: #080808;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.setm-seg.fill .setm-seg-item {
  flex: 1;
  text-align: center;
}

.setm-seg-item {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--setm-text-dim);
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease;
}

.setm-seg-item:hover {
  color: var(--setm-text);
}

.setm-seg-item.active {
  background: var(--setm-accent);
  color: var(--setm-accent-text);
}

.setm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.setm-chip {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--setm-surface2);
  border: 1px solid var(--setm-line);
  font-size: 11px;
  font-weight: 600;
  color: var(--setm-text-dim);
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease;
}

.setm-chip:hover {
  color: var(--setm-text);
}

.setm-chip.on {
  background: var(--setm-accent);
  color: var(--setm-accent-text);
  border-color: transparent;
}

.setm-meter {
  height: 5px;
  border-radius: 3px;
  background: #242424;
  overflow: hidden;
  margin-top: 8px;
}

.setm-meter-fill {
  height: 100%;
  background: var(--setm-accent);
  border-radius: 3px;
  transition: width 0.35s ease;
}

.setm-console {
  background: #080808;
  border: 1px solid var(--setm-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--setm-text-dim);
  line-height: 1.6;
  max-height: 110px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}

.setm-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--setm-surface2);
  border: 1px solid #333333;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  max-width: 80%;
  text-align: center;
}

.setm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.setm-add-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 24px 20px;
  min-height: 0;
}

.setm-add-inner {
  width: 380px;
  flex: none;
}

.setm-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 16px;
}

.setm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333333;
}

.setm-dot.active {
  background: var(--setm-accent);
  width: 16px;
  border-radius: 3px;
}

.setm-step {
  display: none;
}

.setm-step.active {
  display: block;
}

.setm-prompt {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.setm-prompt-sub {
  font-size: 11.5px;
  color: var(--setm-text-faint);
  margin-bottom: 14px;
}

.setm-big-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}

.setm-big-choice:hover {
  border-color: #3a3a3a;
}

.setm-big-choice .icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--setm-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-dim);
  flex: none;
}

.setm-big-choice .title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1px;
}

.setm-big-choice .sub {
  font-size: 10.5px;
  color: var(--setm-text-faint);
}

.setm-vault-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.setm-add-context-box {
  background: #0c0c0c;
  border: 1px solid #222222;
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}

.setm-pin-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  margin: 10px 0 14px;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  border-radius: 10px;
  text-align: center;
}

.setm-pin-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.setm-pin-desc {
  font-size: 10.5px;
  color: var(--setm-text-faint);
  margin-bottom: 12px;
  max-width: 320px;
  line-height: 1.4;
}

.setm-pin-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.setm-pin-cell {
  width: 38px;
  height: 42px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.12s ease, background 0.12s ease;
  caret-color: var(--setm-text);
}

.setm-pin-cell.is-match {
  border-color: var(--status-green-text);
  color: var(--status-green-text);
}

.setm-pin-cell.is-error {
  border-color: var(--setm-danger);
  color: var(--setm-danger);
}

.setm-pin-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.setm-pin-cell:focus {
  border-color: #ffffff;
  background: #222222;
}


.hud-vault-pill.is-locked {
  border-color: rgba(255, 209, 102, 0.45) !important;
  background: rgba(255, 209, 102, 0.08) !important;
  animation: pulseLock 2s infinite ease-in-out;
}

@keyframes pulseLock {
  0%, 100% { border-color: rgba(255, 209, 102, 0.45); }
  50% { border-color: rgba(255, 209, 102, 0.9); }
}

.setm-vault-card {
  flex: 1;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.setm-vault-card:hover {
  border-color: #383838;
}

.setm-vault-card.selected {
  border-color: var(--setm-accent);
  background: #181818;
}

.setm-vault-card .title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.setm-vault-card .sub {
  font-size: 10px;
  color: var(--setm-text-faint);
  line-height: 1.35;
}

.setm-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.setm-exp-card {
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  align-self: start;
}

.setm-exp-card.span2 {
  grid-column: 1 / -1;
}

.setm-exp-card:hover {
  border-color: #383838;
}

.setm-exp-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.setm-exp-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--setm-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-dim);
  flex: none;
}

.setm-exp-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
}

.setm-exp-card-body {
  display: none;
  font-size: 11px;
  color: var(--setm-text-dim);
  line-height: 1.55;
  margin-top: 10px;
}

.setm-exp-card.open .setm-exp-card-body {
  display: block;
}

.setm-exp-card.open .chevron {
  transform: rotate(90deg);
}

.setm-pin-grid {
  position: relative;
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
  gap: 8px;
}

.setm-pin-grid.is-decrypting::after {
  content: '';
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  animation: matteSweep 1.2s linear infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes matteSweep {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.setm-pin-grid.is-decrypting .setm-inline-pin {
  pointer-events: none;
  color: #ffffff !important;
  border-color: #1f1f1f !important;
  background: #0e0e0e !important;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  animation: matteGlitch 1.2s infinite;
  font-family: var(--font-mono);
}

@keyframes matteGlitch {
  0%, 100% { opacity: 1; transform: translateY(0); }
  15% { opacity: 0.5; transform: translateY(-1px); }
  30% { opacity: 1; transform: translateY(0); }
  45% { opacity: 0.7; transform: translateY(1px); }
  60% { opacity: 1; transform: translateY(0); }
  85% { opacity: 0.6; transform: translateY(0); }
}

.setm-pin-grid.is-error .setm-inline-pin {
  border-color: var(--setm-danger);
  color: var(--setm-danger);
  animation: matteShake 0.4s ease-in-out;
  background: #0e0e0e !important;
  text-shadow: none;
}

@keyframes matteShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* UNIFIED DEPLOY IDENTITY DIALOG (SETTINGS DESIGN ALIGNED) */
.tv-push-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99995;
  display: none;
  align-items: center;
  justify-content: center;
  animation: setmPop 0.14s ease-out;
}

.tv-push-dialog.active {
  display: flex;
}

.tv-push-card {
  width: 92vw;
  max-width: 460px;
  background: var(--setm-surface, #121212);
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: none;
}

.tv-push-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2px;
}

.tv-push-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-push-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tv-push-esc {
  background: transparent;
  border: 1px solid #262626;
  color: var(--setm-text-dim, #a8a8a8);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.tv-push-esc:hover {
  background: var(--setm-surface2, #1c1c1c);
  color: #ffffff;
}

.tv-push-sub {
  font-size: 11px;
  color: var(--setm-text-faint, #6c7284);
}

.tv-push-sub strong {
  color: var(--setm-text, #f2f2f2);
}

.tv-push-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 250px;
  overflow-y: auto;
  padding: 1px 0;
}

.tv-token-option {
  background: var(--setm-surface3, #0e0e0e);
  border: 1px solid var(--setm-line, #1c1c1c);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.tv-token-option:hover {
  background: var(--setm-hover, #171717);
  border-color: #2c2c2c;
}

.tv-token-option.selected {
  background: var(--setm-surface2, #1c1c1c);
  border-color: #383838;
}

.tv-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tv-opt-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #141414;
  border: 1px solid #202020;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setm-text-dim, #a8a8a8);
  flex-shrink: 0;
}

.tv-token-option.selected .tv-opt-icon {
  background: #242424;
  color: #ffffff;
}

.tv-opt-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tv-opt-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-opt-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--setm-text-faint, #6c7284);
}

.tv-opt-sub {
  font-size: 10px;
  color: var(--setm-text-faint, #6c7284);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-opt-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tv-badge-chip {
  font-size: 9.5px;
  font-family: var(--font-mono, monospace);
  padding: 1px 6px;
  border-radius: 4px;
  background: #161616;
  border: 1px solid #262626;
  color: #a3a3a3;
}

.tv-remember-bar {
  padding: 4px 2px;
}

.tv-remember-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--setm-text-faint, #6c7284);
  cursor: pointer;
  user-select: none;
}

.tv-remember-label input {
  accent-color: var(--setm-accent, #ffffff);
  cursor: pointer;
}

.tv-push-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.setm-field-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--setm-text-faint);
  margin: 0 0 6px;
}

.setm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.setm-statuschip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--setm-text-dim);
  line-height: 1;
}

.setm-statuschip b {
  color: #ffffff;
  font-weight: 600;
}

.setm-statuschip-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.setm-statuschip.tone-ok { color: var(--status-green-text); }
.setm-statuschip.tone-warn { color: var(--status-yellow-text); }
.setm-statuschip.tone-bad { color: var(--status-red-text); }
.setm-statuschip.tone-dim { color: var(--setm-text-faint); }

.setm-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--setm-text-dim);
}

.setm-banner strong {
  color: #ffffff;
  font-weight: 600;
}

.setm-banner.tone-warn { border-color: rgba(255, 209, 102, 0.3); }
.setm-banner.tone-bad { border-color: rgba(255, 133, 133, 0.35); }

.setm-banner .setm-pin-grid {
  justify-content: center;
  gap: 6px;
}

.setm-banner .setm-pin-cell {
  width: 32px;
  height: 36px;
  font-size: 15px;
}

.setm-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.setm-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--status-blue-text);
}

.setm-link:hover { text-decoration: underline; }
.setm-link.danger { color: var(--setm-danger); }

.setm-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--setm-text-faint);
}

.setm-trow.is-dim {
  opacity: 0.55;
}

.setm-sum {
  margin-top: 12px;
  padding: 10px 12px;
}

.setm-sum-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.setm-sum-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.setm-sum-row label {
  font-size: 11.5px;
  color: var(--setm-text-dim);
  white-space: nowrap;
}
.setm-sum-row select.input-field-sm {
  width: auto;
  min-width: 110px;
  font-size: 11px;
  height: 28px;
  padding: 0 8px;
  background: #0e0e0e;
  border: 1px solid #151515;
  border-radius: 6px;
  color: #fff;
  outline: none;
}

.setm-sum-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.setm-sum-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 11.5px;
  height: 32px;
}

.setm-note {
  margin-top: 12px;
  padding: 0 6px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--setm-text-faint);
}

.setm-orgchip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 4px;
  background: var(--setm-surface2);
  border: 1px solid var(--setm-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--setm-text-dim);
  cursor: pointer;
}

.setm-org-list {
  margin: -8px 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--setm-text-faint);
  word-break: break-word;
}

.setm-reason {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--setm-surface3);
  border: 1px solid var(--setm-line);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--setm-text-dim);
}

.setm-dbtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .setm-modal {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .setm-sidebar {
    width: 54px;
    padding: 10px 4px;
  }
  .setm-brand span, .setm-nav-item span, .setm-nav-label, .setm-add-btn-side span {
    display: none;
  }
  .setm-tokens-list {
    width: 200px;
  }
  .setm-exp-grid {
    grid-template-columns: 1fr;
  }
  .setm-exp-card.span2 {
    grid-column: auto;
  }
}